question

cooltom2013 avatar image
cooltom2013 asked

Mock Vm Local testing issue!

what file is playfab looking for in, Microsoft.Azure.Gaming.VmAgent.Common.Interface.PorcessWrapper.Start()

Does anyone know what could cause this problem?

While trying to use the mock vm agent,

PS U:\Testing> U:\Testing\MockVMAgent.exe
Warning: SessionCookie is not specified.
TitleId: 1204A761
BuildId: e519c26e-a835-4704-ba61-61694232f510
VmId: xcloudwusu4uyz5daouzl:WestUs:055f914f-5127-4f52-8e54-1318764efb95:tvmps_63238888e6a640eb8ecbfef949fdc3fb879bf69913f6469b9353692d0eea5be2_d
Root output folder: U:\Testing\PlayFabVmAgentOutput\PlayFabVmAgentOutput\2020-06-30T01-58-35
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
      User profile is available. Using 'C:\Users\jwawo\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 - U:\Testing\PlayFabVmAgentOutput\PlayFabVmAgentOutput\2020-06-30T01-58-35\ExtAssets\SH0\A0\ultraball_v9Server.exe, Args - 3v3_Ultravalhalla? -port=7777 -log.
info: MockPlayFabVmAgent[0]
      Creating the configuration file at U:\Testing\PlayFabVmAgentOutput\PlayFabVmAgentOutput\2020-06-30T01-58-35\Config\SH0\gsdkConfig.json
Unhandled exception. System.ComponentModel.Win32Exception (2): The system cannot find the file specified.
   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)
documentation
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.

Citrus Yan avatar image Citrus Yan commented ·

Did you follow this guide and configure the basic setup correctly?

0 Likes 0 ·
cooltom2013 avatar image cooltom2013 Citrus Yan commented ·

Yes, I think so, this is the MultiplayerSettings.json

{
  "RunContainer": false,
  "OutputFolder": "U:\\Testing",
  "NumHeartBeatsForActivateResponse": 10,
  "NumHeartBeatsForTerminateResponse": 60,
  "AgentListeningPort": 56001,
  "AssetDetails": [
    {
      "MountPath": "C:\\Assets",
      "LocalFilePath": "U:\\Testing\\WindowsServer.zip"
    }
  ],
  "GameCertificateDetails": [],
  "PortMappingsList": [
    [
      {
        "NodePort": 56100,
        "GamePort": {
          "Name": "game_port",
          "Number": 7777,
          "Protocol": "UDP"
        }
      },
      {
        "NodePort": 56101,
        "GamePort": {
          "Name": "game_port_dudp",
          "Number": 27016,
          "Protocol": "UDP"
        }
      },
      {
        "NodePort": 56102,
        "GamePort": {
          "Name": "game_port_stcp",
          "Number": 27015,
          "Protocol": "UDP"
        }
      }
    ]
  ],
0 Likes 0 ·
cooltom2013 avatar image cooltom2013 Citrus Yan commented ·
  "ProcessStartParameters": {
    "StartGameCommand": "ultraball_v9Server.exe 3v3_Ultravalhalla? -port=7777 -log"
  },
  "ContainerStartParameters": {
    "StartGameCommand": "C:\\Assets\\ultraball_v9Server.exe",
    "ResourceLimits": {
      "Cpus": 0,
      "MemoryGib": 0
    },
    "ImageDetails": {
      "Registry": "mcr.microsoft.com",
      "ImageName": "playfab/multiplayer",
      "ImageTag": "wsc-10.0.17763.973.1",
      "Username": "",
      "Password": ""
    }
  },
  "SessionConfig": {
    "SessionId": "ba67d671-512a-4e7d-a38c-2329ce181946",
    "SessionCookie": null,
    "InitialPlayers": [ "Player1", "Player2" ]
  },
  "TitleId": "",
  "BuildId": "00000000-0000-0000-0000-000000000000",
  "Region": "WestUs"
}
0 Likes 0 ·
cooltom2013 avatar image cooltom2013 Citrus Yan commented ·

The Zip is placed inside the VM folder

0 Likes 0 ·

1 Answer

·
cooltom2013 avatar image
cooltom2013 answered

Never mind I was zipping the folder at the wrong level, so that it couldn't find the exe, resolved.

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.