question

gabrielsiodoni avatar image
gabrielsiodoni asked

MockVMAgent crash

I am trying to verify to GSDK integration using MockVMAgen, but crach in powershell

# MockVmAgent.exe
No output directory specified, defaulting to agent directory
Warning: SessionCookie is not specified.
TitleId: F425D60
BuildId: 8a83eac9-fb0a-4f79-8433-10efc0c5e978
VmId: xcloudwusu4uyz5daouzl:WestUs:16d60d11-408e-4971-9224-9307d06cb319:tvmps_3fc826e5338546d6b497938228fd545d7e13bb889e2448aa8ec8c1fb4a575614_d
Root output folder: C:\PlayFabVmAgent\PlayFabVmAgentOutput\2020-04-25T15-46-28
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
      User profile is available. Using 'C:\Users\gabri\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]
      Starting process for session host with instance number 0 and process info: FileName - C:\Assets\PlayFabGameServer.exe, Args - .
info: MockPlayFabVmAgent[0]
      Creating the configuration file at C:\PlayFabVmAgent\PlayFabVmAgentOutput\2020-04-25T15-46-28\Config\SH0\gsdkConfig.json
Unhandled exception. System.ComponentModel.Win32Exception (2): O sistema não pode encontrar o arquivo especificado.
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.Azure.Gaming.VmAgent.Common.Interfaces.ProcessWrapper.Start(ProcessStartInfo startInfo) in E:\MPBuildHost14-01\_work\98\s\src\VmAgent\VmAgent.Common\Interfaces\ProcessWrapper.cs:line 32
   at Microsoft.Azure.Gaming.VmAgent.Common.Interfaces.ProcessRunner.CreateAndStart(Int32 instanceNumber, GameResourceDetails gameResourceDetails, ISessionHostManager sessionHostManager) in E:\MPBuildHost14-01\_work\98\s\src\VmAgent\VmAgent.Common\Interfaces\ProcessRunner.cs:line 60
   at Microsoft.Azure.Gaming.MockVmAgent.MultiplayerServerManager.CreateAndStartContainerWaitForExit(SessionHostsStartInfo startParameters) in E:\MPBuildHost14-01\_work\98\s\src\VmAgent\MockVmAgent\MultiplayerServerManager.cs:line 66
   at Microsoft.Azure.Gaming.MockVmAgent.Program.Main(String[] args) in E:\MPBuildHost14-01\_work\98\s\src\VmAgent\MockVmAgent\Program.cs:line 73
   at Microsoft.Azure.Gaming.MockVmAgent.Program.<Main>(String[] args)
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.

Sarah Zhang avatar image Sarah Zhang commented ·

Could you please tell us have you filled the MultiplayerSettings.json file correctly, and have you tried the troubleshooting steps which in the documentation Locally debugging game servers and integration with PlayFab?

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.