question

huiyu06078 avatar image
huiyu06078 asked

playfab build status : "unhealthy" (with LocalMultiplayerAgent result),Playfab Server always "unhealthy" (with LocalMultiplayerAgent result)

I tried to debug it locally with LocalMultiplayerAgent . But still can't find out why it's unhealthy

PS C:\PlayFabVmAgent\LocalMultiplayerAgentPublish> .\LocalMultiplayerAgent.exe
Thank you for using PlayFab Multiplayer Servers
Check this page for debugging tips: https://github.com/PlayFab/gsdkSamples/blob/master/Debugging.md
No output directory specified, defaulting to agent directory
Warning: SessionCookie is not specified.
TitleId: F751827
BuildId: 7ba5bbc7-6b64-4fc1-a1ca-ab3a999b6b47
VmId: xcloudwusu4uyz5daouzl:WestUs:059959f2-b891-4455-a5ff-14c973e61475:tvmps_6c79f2e5d0114b0fb7c9b80a501cedc4d18b461dc2af469382e7a6ae8202a26e_d
Root output folder: C:\Users\AAA\AppData\Local\Temp\.net\LocalMultiplayerAgent\ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=\PlayFabVmAgentOutput\2022-08-18T19-45-59
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
      User profile is available. Using 'C:\Users\AAA\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
Local Multiplayer Agent is listening on port 56001
Player1, Player2
info: PlayFabLocalMultiplayerAgent[0]
      Starting process for session host with instance number 0 and process info: FileName - C:\Users\AAA\AppData\Local\Temp\.net\LocalMultiplayerAgent\ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=\PlayFabVmAgentOutput\2022-08-18T19-45-59\ExtAssets\SH0\A0\PlayFabPhotonTest.exe, Args - .
info: PlayFabLocalMultiplayerAgent[0]
      Creating the configuration file at C:\Users\AAA\AppData\Local\Temp\.net\LocalMultiplayerAgent\ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=\PlayFabVmAgentOutput\2022-08-18T19-45-59\Config\SH0\gsdkConfig.json
info: PlayFabLocalMultiplayerAgent[0]
      Started process for session host. Instance Number: 0, UniqueId: 22c92aad-dbfb-4cca-87c9-b3957f64a3b2, ProcessId: 12472
info: PlayFabLocalMultiplayerAgent[0]
      Waiting for heartbeats from the game server.....
[UnityMemory] Configuration Parameters - Can be set up in boot.config
    "memorysetup-bucket-allocator-granularity=16"
    "memorysetup-bucket-allocator-bucket-count=8"
    "memorysetup-bucket-allocator-block-size=4194304"
    "memorysetup-bucket-allocator-block-count=1"
    "memorysetup-main-allocator-block-size=16777216"
    "memorysetup-thread-allocator-block-size=16777216"
    "memorysetup-gfx-main-allocator-block-size=16777216"
    "memorysetup-gfx-thread-allocator-block-size=16777216"
    "memorysetup-cache-allocator-block-size=4194304"
    "memorysetup-typetree-allocator-block-size=2097152"
    "memorysetup-profiler-bucket-allocator-granularity=16"
    "memorysetup-profiler-bucket-allocator-bucket-count=8"
    "memorysetup-profiler-bucket-allocator-block-size=4194304"
    "memorysetup-profiler-bucket-allocator-block-count=1"
    "memorysetup-profiler-allocator-block-size=16777216"
    "memorysetup-profiler-editor-allocator-block-size=1048576"
    "memorysetup-temp-allocator-size-main=4194304"
    "memorysetup-job-temp-allocator-block-size=2097152"
    "memorysetup-job-temp-allocator-block-size-background=1048576"
    "memorysetup-job-temp-allocator-reduction-small-platforms=262144"
    "memorysetup-temp-allocator-size-background-worker=32768"
    "memorysetup-temp-allocator-size-job-worker=262144"
    "memorysetup-temp-allocator-size-preload-manager=262144"
    "memorysetup-temp-allocator-size-nav-mesh-worker=65536"
    "memorysetup-temp-allocator-size-audio-worker=65536"
    "memorysetup-temp-allocator-size-cloud-worker=32768"
    "memorysetup-temp-allocator-size-gfx=262144"
Mono path[0] = 'C:/Users/AAA/AppData/Local/Temp/.net/LocalMultiplayerAgent/ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=/PlayFabVmAgentOutput/2022-08-18T19-45-59/ExtAssets/SH0/A0/PlayFabPhotonTest_Data/Managed'
Mono config path = 'C:/Users/AAA/AppData/Local/Temp/.net/LocalMultiplayerAgent/ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=/PlayFabVmAgentOutput/2022-08-18T19-45-59/ExtAssets/SH0/A0/MonoBleedingEdge/etc'
Initialize engine version: 2022.1.7f1 (240f4c1f462c)
[Subsystems] Discovering subsystems at path C:/Users/AAA/AppData/Local/Temp/.net/LocalMultiplayerAgent/ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=/PlayFabVmAgentOutput/2022-08-18T19-45-59/ExtAssets/SH0/A0/PlayFabPhotonTest_Data/UnitySubsystems
Forcing GfxDevice: Null
GfxDevice: creating device client; threaded=0; jobified=0
NullGfxDevice:
    Version:  NULL 1.0 [1.0]
    Renderer: Null Device
    Vendor:   Unity Technologies
Begin MonoManager ReloadAssembly
- Completed reload, in  0.519 seconds
ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Microsoft Media Foundation video decoding to texture disabled: graphics device is Null, only Direct3D 11 and Direct3D 12 (only on desktop) are supported for hardware-accelerated video decoding.
ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader GUI/Text Shader shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
UnloadTime: 0.628600 ms
ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
[ServerStartUp].StartRemoteServer
http://127.0.0.1:56001/v1/sessionHosts/22c92aad-dbfb-4cca-87c9-b3957f64a3b2/heartbeats
22c92aad-dbfb-4cca-87c9-b3957f64a3b2
C:\Users\AAA\AppData\Local\Temp\.net\LocalMultiplayerAgent\ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=\PlayFabVmAgentOutput\2022-08-18T19-45-59\GameLogs\22c92aad-dbfb-4cca-87c9-b3957f64a3b2
0 PlayFabMultiplayerAgentView awake
ReadyForPlayers
Timer:1.000007 - Max:1
state: PlayFab.MultiplayerAgent.Model.HeartbeatRequest, payload: {"CurrentGameState":"StandingBy","CurrentGameHealth":"Healthy","CurrentPlayers":[]}
Non-secure network connections disabled in Player Settings
InvalidOperationException: Insecure connection not allowed
  at (wrapper managed-to-native) UnityEngine.Networking.UnityWebRequest.BeginWebRequest(UnityEngine.Networking.UnityWebRequest)
  at UnityEngine.Networking.UnityWebRequest.SendWebRequest () [0x00001] in <9824c1df763e461aba1dcaccb8f343fd>:0
  at PlayFab.PlayFabMultiplayerAgentAPI+<SendHeartBeatRequest>d__51.MoveNext () [0x000e5] in <0700f76daa354811bb898d76928bc49e>:0
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <bdc3a73afdcf4911820c0910ffbe2823>:0
UnityEngine.MonoBehaviour:StartCoroutineManaged2(MonoBehaviour, IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
PlayFab.PlayFabMultiplayerAgentView:LateUpdate()
,

I uploaded .zip to playFab server many times.

But the status is alway "unhealthy"

I tried to debug it locally with LocalMultiplayerAgent but still can't find out the "unhealthy" reason

PS C:\PlayFabVmAgent\LocalMultiplayerAgentPublish> .\LocalMultiplayerAgent.exe
Thank you for using PlayFab Multiplayer Servers
Check this page for debugging tips: https://github.com/PlayFab/gsdkSamples/blob/master/Debugging.md
No output directory specified, defaulting to agent directory
Warning: SessionCookie is not specified.
TitleId: F751827
BuildId: 7ba5bbc7-6b64-4fc1-a1ca-ab3a999b6b47
VmId: xcloudwusu4uyz5daouzl:WestUs:059959f2-b891-4455-a5ff-14c973e61475:tvmps_6c79f2e5d0114b0fb7c9b80a501cedc4d18b461dc2af469382e7a6ae8202a26e_d
Root output folder: C:\Users\AAA\AppData\Local\Temp\.net\LocalMultiplayerAgent\ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=\PlayFabVmAgentOutput\2022-08-18T19-45-59
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
      User profile is available. Using 'C:\Users\AAA\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
Local Multiplayer Agent is listening on port 56001
Player1, Player2
info: PlayFabLocalMultiplayerAgent[0]
      Starting process for session host with instance number 0 and process info: FileName - C:\Users\AAA\AppData\Local\Temp\.net\LocalMultiplayerAgent\ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=\PlayFabVmAgentOutput\2022-08-18T19-45-59\ExtAssets\SH0\A0\PlayFabPhotonTest.exe, Args - .
info: PlayFabLocalMultiplayerAgent[0]
      Creating the configuration file at C:\Users\AAA\AppData\Local\Temp\.net\LocalMultiplayerAgent\ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=\PlayFabVmAgentOutput\2022-08-18T19-45-59\Config\SH0\gsdkConfig.json
info: PlayFabLocalMultiplayerAgent[0]
      Started process for session host. Instance Number: 0, UniqueId: 22c92aad-dbfb-4cca-87c9-b3957f64a3b2, ProcessId: 12472
info: PlayFabLocalMultiplayerAgent[0]
      Waiting for heartbeats from the game server.....
[UnityMemory] Configuration Parameters - Can be set up in boot.config
    "memorysetup-bucket-allocator-granularity=16"
    "memorysetup-bucket-allocator-bucket-count=8"
    "memorysetup-bucket-allocator-block-size=4194304"
    "memorysetup-bucket-allocator-block-count=1"
    "memorysetup-main-allocator-block-size=16777216"
    "memorysetup-thread-allocator-block-size=16777216"
    "memorysetup-gfx-main-allocator-block-size=16777216"
    "memorysetup-gfx-thread-allocator-block-size=16777216"
    "memorysetup-cache-allocator-block-size=4194304"
    "memorysetup-typetree-allocator-block-size=2097152"
    "memorysetup-profiler-bucket-allocator-granularity=16"
    "memorysetup-profiler-bucket-allocator-bucket-count=8"
    "memorysetup-profiler-bucket-allocator-block-size=4194304"
    "memorysetup-profiler-bucket-allocator-block-count=1"
    "memorysetup-profiler-allocator-block-size=16777216"
    "memorysetup-profiler-editor-allocator-block-size=1048576"
    "memorysetup-temp-allocator-size-main=4194304"
    "memorysetup-job-temp-allocator-block-size=2097152"
    "memorysetup-job-temp-allocator-block-size-background=1048576"
    "memorysetup-job-temp-allocator-reduction-small-platforms=262144"
    "memorysetup-temp-allocator-size-background-worker=32768"
    "memorysetup-temp-allocator-size-job-worker=262144"
    "memorysetup-temp-allocator-size-preload-manager=262144"
    "memorysetup-temp-allocator-size-nav-mesh-worker=65536"
    "memorysetup-temp-allocator-size-audio-worker=65536"
    "memorysetup-temp-allocator-size-cloud-worker=32768"
    "memorysetup-temp-allocator-size-gfx=262144"
Mono path[0] = 'C:/Users/AAA/AppData/Local/Temp/.net/LocalMultiplayerAgent/ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=/PlayFabVmAgentOutput/2022-08-18T19-45-59/ExtAssets/SH0/A0/PlayFabPhotonTest_Data/Managed'
Mono config path = 'C:/Users/AAA/AppData/Local/Temp/.net/LocalMultiplayerAgent/ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=/PlayFabVmAgentOutput/2022-08-18T19-45-59/ExtAssets/SH0/A0/MonoBleedingEdge/etc'
Initialize engine version: 2022.1.7f1 (240f4c1f462c)
[Subsystems] Discovering subsystems at path C:/Users/AAA/AppData/Local/Temp/.net/LocalMultiplayerAgent/ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=/PlayFabVmAgentOutput/2022-08-18T19-45-59/ExtAssets/SH0/A0/PlayFabPhotonTest_Data/UnitySubsystems
Forcing GfxDevice: Null
GfxDevice: creating device client; threaded=0; jobified=0
NullGfxDevice:
    Version:  NULL 1.0 [1.0]
    Renderer: Null Device
    Vendor:   Unity Technologies
Begin MonoManager ReloadAssembly
- Completed reload, in  0.519 seconds
ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Microsoft Media Foundation video decoding to texture disabled: graphics device is Null, only Direct3D 11 and Direct3D 12 (only on desktop) are supported for hardware-accelerated video decoding.
ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader GUI/Text Shader shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
UnloadTime: 0.628600 ms
ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
[ServerStartUp].StartRemoteServer
http://127.0.0.1:56001/v1/sessionHosts/22c92aad-dbfb-4cca-87c9-b3957f64a3b2/heartbeats
22c92aad-dbfb-4cca-87c9-b3957f64a3b2
C:\Users\AAA\AppData\Local\Temp\.net\LocalMultiplayerAgent\ray67pB6YrFlTR5Fth+KKMkZ2KMXL98=\PlayFabVmAgentOutput\2022-08-18T19-45-59\GameLogs\22c92aad-dbfb-4cca-87c9-b3957f64a3b2
0 PlayFabMultiplayerAgentView awake
ReadyForPlayers
Timer:1.000007 - Max:1
state: PlayFab.MultiplayerAgent.Model.HeartbeatRequest, payload: {"CurrentGameState":"StandingBy","CurrentGameHealth":"Healthy","CurrentPlayers":[]}
Non-secure network connections disabled in Player Settings
InvalidOperationException: Insecure connection not allowed
  at (wrapper managed-to-native) UnityEngine.Networking.UnityWebRequest.BeginWebRequest(UnityEngine.Networking.UnityWebRequest)
  at UnityEngine.Networking.UnityWebRequest.SendWebRequest () [0x00001] in <9824c1df763e461aba1dcaccb8f343fd>:0
  at PlayFab.PlayFabMultiplayerAgentAPI+<SendHeartBeatRequest>d__51.MoveNext () [0x000e5] in <0700f76daa354811bb898d76928bc49e>:0
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <bdc3a73afdcf4911820c0910ffbe2823>:0
UnityEngine.MonoBehaviour:StartCoroutineManaged2(MonoBehaviour, IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
PlayFab.PlayFabMultiplayerAgentView:LateUpdate()
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Made Wang avatar image
Made Wang answered

From lines 76, 77 in the log, it seems that some of your network settings are causing the connection to drop. And this seems to be a Unity issue, refer to [Bug] Non-secure network connections disabled in Player Settings Issue #484 googlesamples/unity-jar-resolver GitHub. It is recommended that you seek technical support from the Unity forum.

Also, we recommend using the LTS version of Unity.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.