question

henrikprivat avatar image
henrikprivat asked

Starting the Docker image has an error

.\startup.cmd : The term '.\startup.cmd' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:47 + ..\scripts\WindowsContainerStartupScript.ps1; .\startup.cmd + ~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (.\startup.cmd:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

When trying to start the docker image, same error both locally and on the VM.

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.

Seth Du avatar image Seth Du ♦ commented ·

May I have more details about your scenario? According to the error, ".\startup.cmd" is not a proper commend. May I ask what does startup.cmd contain? Where do you find the reference of it?

Have you referred Locally debugging game servers and integration with PlayFab for local testing?

0 Likes 0 ·
henrikprivat avatar image henrikprivat Seth Du ♦ commented ·

I managed to get past the issue when running MocKVmAgent in container, however just as on the playfab VM the container exits with exit code 1 and the console log is:

{"log":"Running Startup Script\n","stream":"stdout","time":"2020-09-23T13:38:44.0699801Z"}
{"log":"Certificates located at: C:\\GameCertificates\n","stream":"stdout","time":"2020-09-23T13:38:44.0979804Z"}

And nothing more, it then proceeds to delete the container.

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ henrikprivat commented ·

The log doesn't seem to provide enough information. Exit code 1 usually means there is error.

How do you create the server build? which platform you are using to develop? Have you checked the official sample? https://github.com/PlayFab/gsdkSamples

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

What's the command line you used to run our docker image? Please try these commands listed in this thread: https://community.playfab.com/questions/45991/starting-docker-error-code-1.html?childToView=46022#answer-46022

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.