question

Jody Ruben avatar image
Jody Ruben asked

Unity PlayFab Mirror Server stuck in StandingBy,Local Server stuck at StandBy

Hi today I tried to run server locally in Linux by following this tutorial : https://github.com/PlayFab/LocalMultiplayerAgent/blob/master/linuxContainersOnWindows.md
After reaching the part of running LocalMultiplayerAgent.exe -lcow to run the server,
The server start and stucked at CurrentGameState: StandingBy
Where should I start looking for this problem?

CurrentGameState: StandingBy
info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1]
      Executing ObjectResult, writing value of type 'Microsoft.Azure.Gaming.AgentInterfaces.SessionHostHeartbeatInfo'.
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
      Executed action LocalMultiplayerAgent.Controllers.SessionHostController.ProcessHeartbeat (LocalMultiplayerAgent) in 13.0235ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 14.3437ms 200 application/json; charset=utf-8

In case need the setup of MultiplayerSettings.json
{
    "RunContainer": true,
    "OutputFolder": "C:\\output\\UnityServerLinux",
    "NumHeartBeatsForActivateResponse": 1,
    "NumHeartBeatsForTerminateResponse": 150000,
    "TitleId": "",
    "BuildId": "00000000-0000-0000-0000-000000000000",
    "Region": "WestUs",
    "AgentListeningPort": 56001,
    "ContainerStartParameters": {
        "ImageDetails": {
            "Registry": "darkwagon.io",
            "ImageName": "tacticia",
            "ImageTag": "0.1",
            "Username": "",
            "Password": ""
        }
    },
    "PortMappingsList": [
        [
            {
                "NodePort": 56100,
                "GamePort": {
                    "Name": "game_port",
                    "Number": 7777,
                    "Protocol": "TCP"
                }
            }
        ]
    ],
    "SessionConfig": {
        "SessionId": "ba67d671-512a-4e7d-a38c-2329ce181946",
        "SessionCookie": null,
        "InitialPlayers": [ "Player1", "Player2" ]
    }
}

,

Hi want to ask about PlayFab + Mirror Unity Integration, I tried to follow the example from here : https://github.com/PlayFab/LocalMultiplayerAgent/blob/master/linuxContainersOnWindows.md After following the tutorial I reach to part of load the docker
LocalMultiplayerAgent.exe - lcow
But apparently the server status stuck at StandingBy and never gone to active. What possibility I missed here?

CurrentGameState: StandingBy
info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1]
      Executing ObjectResult, writing value of type 'Microsoft.Azure.Gaming.AgentInterfaces.SessionHostHeartbeatInfo'.
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
      Executed action LocalMultiplayerAgent.Controllers.SessionHostController.ProcessHeartbeat (LocalMultiplayerAgent) in 13.0235ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 14.3437ms 200 application/json; charset=utf-8
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

NumHeartBeatsForActivateResponse is the time to wait to convert from standby to active, it is recommended to set it to a larger value.

Usually, if the server status cannot be changed, it may be a configuration error. You can refer to MpsSamples/UnityMirror at main PlayFab/MpsSamples (github.com) for troubleshooting.

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.