question

nhanhv avatar image
nhanhv asked

Playfab start server fail

Hi everyone.

As the title, after deployed my build onto playfab, the server starts fail. Any idea on this? I tested locally using MultiPlayerAgent on local and it works fine,

Thank you.

unrealgame manager
4 comments
10 |1200

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

nhanhv avatar image nhanhv commented ·

This is the log from multiplayeragent

TitleId: 46E03C97

BuildId: 7dde45c0-08d8-4968-842d-cb7f31b0e4f6

VmId: xcloudwusu4uyz5daouzl:WestUs:ff5c5d78-2bd6-43c0-9916-058ae69eef25:tvmps_60d37f0d2af146928a578b6bce42eda41f5cb4fbfe2a4e11a2702fa6e50c381b_d

Root output folder: D:\UnrealEngine\Projects\MpsAgent\LocalMultiplayerAgent\bin\Debug\netcoreapp3.1\PlayFabVmAgentOutput\2022-07-11T12-39-03

info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]

User profile is available. Using 'C:\Users\Hoang Nhan\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:\Assets\MultiPlayerServer\MultiPlayerServer.exe, Args - .

0 Likes 0 ·
nhanhv avatar image nhanhv nhanhv commented ·

info: PlayFabLocalMultiplayerAgent[0]

Creating the configuration file at D:\UnrealEngine\Projects\MpsAgent\LocalMultiplayerAgent\bin\Debug\netcoreapp3.1\PlayFabVmAgentOutput\2022-07-11T12-39-03\Config\SH0\gsdkConfig.json

info: PlayFabLocalMultiplayerAgent[0]

Started process for session host. Instance Number: 0, UniqueId: d778b535-785a-47b0-b038-c9e6bc8038b8, ProcessId: 18316

info: PlayFabLocalMultiplayerAgent[0]

Waiting for heartbeats from the game server.....

info: Microsoft.AspNetCore.Hosting.Diagnostics[1]

Request starting HTTP/1.1 PATCH http://127.0.0.1:56001/v1/sessionHosts/d778b535-785a-47b0-b038-c9e6bc8038b8 application/json; charset=utf-8 99

info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]

Route matched with {action = "ProcessHeartbeatV1", controller = "SessionHost"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] ProcessHeartbeatV1(System.String, Microsoft.Azure.Gaming.AgentInterfaces.SessionHostHeartbeatInfo) on controller LocalMultiplayerAgent.Controllers.SessionHostController (LocalMultiplayerAgent). CurrentGameState: Initializing

0 Likes 0 ·
nhanhv avatar image nhanhv nhanhv commented ·

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.ProcessHeartbeatV1 (LocalMultiplayerAgent) in 61.8398ms

info: Microsoft.AspNetCore.Hosting.Diagnostics[2]

Request finished in 130.2873ms 200 application/json; charset=utf-8

info: Microsoft.AspNetCore.Hosting.Diagnostics[1]

Request starting HTTP/1.1 PATCH http://127.0.0.1:56001/v1/sessionHosts/d778b535-785a-47b0-b038-c9e6bc8038b8 application/json; charset=utf-8 99

info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]

Route matched with {action = "ProcessHeartbeatV1", controller = "SessionHost"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] ProcessHeartbeatV1(System.String, Microsoft.Azure.Gaming.AgentInterfaces.SessionHostHeartbeatInfo) on controller LocalMultiplayerAgent.Controllers.SessionHostController (LocalMultiplayerAgent).

CurrentGameState: Initializing

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ commented ·

How is your build setup on PlayFab? Have you tried the running local multiplayer agent in container mode? Is there any error log from the server? Could you follow this document and check the logs from the game server?

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.