question

Amitai Mazliah avatar image
Amitai Mazliah asked

Server unhealthy

Hi all

I have 2 issues which might be related.

I have a unity server build which I'm trying to run using the MockVmAgent

When I run it with RunContainer = false it works perfectly.

When I try to run it with RunContainer = true I'm getting the following error

PS C:\PlayFab\MockVmAgent> .\MockVmAgent.exe
Check out our docs at aka.ms/playfabdocs!
Check this page for debugging tips: https://github.com/PlayFab/gsdkSamples/blob/master/Debugging.md
Warning: SessionCookie is not specified.
TitleId: 374662AE
BuildId: 2377805d-8a3e-4907-adbb-e60644247be5
VmId: xcloudwusu4uyz5daouzl:WestUs:79100704-1cd8-4ae5-8c12-81083be19d6e:tvmps_9c8ef5758b32483a9f2365f3b3babecbe15f8784150849d3b7909132a3268dd7_d
Root output folder: C:\GameLogs\PlayFabVmAgentOutput\2020-11-10T21-15-00
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
      User profile is available. Using 'C:\Users\Owner\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: MockPlayFabVmAgent[0]
      game_port (TCP): Local port 56100 mapped to container port 7777
info: MockPlayFabVmAgent[0]
      Starting image pull for: mcr.microsoft.com/playfab/multiplayer:wsc-10.0.17763.973.1.
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
info: MockPlayFabVmAgent[0]
      [null]
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Azure.Gaming.VmAgent.ContainerEngines.DockerContainerEngine.<>c__DisplayClass24_0.<RetrieveResources>b__3(ImagesListResponse image) in E:\MPBuildHost14-02\_work\182\s\src\VmAgent\VmAgent.Common\Interfaces\DockerContainerEngine.cs:line 566
   at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)
   at Microsoft.Azure.Gaming.VmAgent.ContainerEngines.DockerContainerEngine.RetrieveResources(SessionHostsStartInfo sessionHostsStartInfo) in E:\MPBuildHost14-02\_work\182\s\src\VmAgent\VmAgent.Common\Interfaces\DockerContainerEngine.cs:line 566
   at Microsoft.Azure.Gaming.MockVmAgent.MultiplayerServerManager.CreateAndStartContainerWaitForExit(SessionHostsStartInfo startParameters) in E:\MPBuildHost14-02\_work\182\s\src\VmAgent\MockVmAgent\MultiplayerServerManager.cs:line 65
   at Microsoft.Azure.Gaming.MockVmAgent.Program.Main(String[] args) in E:\MPBuildHost14-02\_work\182\s\src\VmAgent\MockVmAgent\Program.cs:line 86
   at Microsoft.Azure.Gaming.MockVmAgent.Program.<Main>(String[] args)

Another issue is when I upload my server zip file to playfab servers and I set standing by count to 1

I'm immediately getting unhealthy state

I'm attaching a screenshot of my server config

Any ideas how to solve the 2 issues?

Thanks in advance

multiplayer
untitled.png (59.2 KiB)
1 comment
10 |1200

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

Rick Chen avatar image Rick Chen ♦ commented ·

Could you please describe how you set up your application and the local debugging toolset in detail? Did you follow this document: Locally debugging game servers and integration with PlayFab to set up the local debugging toolset?

0 Likes 0 ·

0 Answers

·

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.