Windows 11 Pro- Amp - When starting instance- Docker returned error code 125

Note - If you do not fill in every section below, your post won’t be answered - you must provide the steps you have followed so far and the actions you’ve already taken. Make sure to remove this notice from your post too.

OS Name/Version:Windows 11 Pro Amp ver: “2.4.0.4”

Product Name/Version: (Always use the full version number - not ‘Latest’)
Amp 2.4.0.4

Problem Description:

Startup failure: Docker returned error code 125
This happen when clicking start on Minecraft Instance configured to load in Docker.

Steps to reproduce:

  • Click start on Instance.
  • Restarted whole system
  • Click start on Instance

Actions taken to resolve so far:
None. Googled the error code but it essentially means “didn’t start” with no more details.
oh and I also ran ampinstmgr reactivate “instanceName” which seemed to work fine. (saw this in the forums elsewhere) seemed like an ok think to do. Did not correct the situation though maybe fixed other stuff. :wink:

Additional info that is likely relevant but I don’t know how to go about correcting.

I am running docker on the Windows machine ALREADY. It is on, up, and successfully running a Minecraft Instance. Ultimate I will end up moving the “world” files from that docker container over to the instance inside Amp once I have the instance up and running.

I would like to use docker. I am a novice with docker. The already running docker on the windows machine will be used as well to host servers that are not games and will not be part of Amp. So having Docker running outside of Amp is important.

I configured Docker FIRST. Amp weeks later. I don’t know how to look into this problem but I’m guessing Amp has an issue launching Docker because of a security issue or a user access issue? Not sure how to go about correcting that if that’s the problem and also not sure where in the log files to look to track down what’s going on.

Lastly, if I turn off the running in docker for the Minecraft Instance, I get a java not found message. I’ve verified Java is installed and in the path. This is a separate issue at the moment though.

Appreciate any and all help. Thank you!

Have you checked AMPs logs to see if they give any further information as to what the problem is?

I get this from the console. Where can I find the appropriate logs and I’ll look there.

docker: error during connect: This error may indicate that the docker daemon is not running.: Post “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create?name=AMP_JohnsonFamilyMCSVSUR”: open //./pipe/docker_engine: Access is denied.
See ‘docker run --help’.
Failed to configure new instance JohnsonFamilyMCSVSUR - Startup failure: Docker returned error code 125

Found this in the ADS01 Amp Log Files area.

[17:02:42] [System:admin Info] : docker: error during connect: This error may indicate that the docker daemon is not running.: Post “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create?name=AMP_JohnsonFamilyMCSVSUR”: open //./pipe/docker_engine: Access is denied.
[17:02:42] [System:admin Info] : See ‘docker run --help’.
[17:02:42] [System:admin Warning] : Failed to configure new instance JohnsonFamilyMCSVSUR - Startup failure: Docker returned error code 125

Make sure you follow the full guide: How do I configure AMP to use Docker?

Ok! Went through the link you sent and everything was good except for steps 8, 9, 10. Completed those and then tried creating a new instance. It created the instance successfully and it appears to be running but when I click on “manage” i get “The instance JF-MC-J-VASUR01 is either not running, or not currently available. Check that it is running, and if it fails to restart - check it’s logs.”

When I look in the console I see this.

12:38:05

Managed remote instance JF-MC-J-VASUR01 at http://127.0.0.1:8082/

12:38:06

Authentication token for admin requested by ManageInstance on behalf of admin

:Anonymous

12:38:07

Failure to make API call to JF-MC-J-VASUR01 (ht-BREAKINGLINKtp://127.0.0.1:8082/API/Core/GetAPISpec) - retried 10 times : An error occurred while sending the request.

HttpRequestException

[0] (HttpRequestException) : An error occurred while sending the request.

at ADSModule.WebMethods.() at ADSModule.WebMethods.()

WebException

[1] (WebException) : The underlying connection was closed: The connection was closed unexpectedly.

at Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)

When I look in the file manager _VDS_ADS01/AMP_Logs/AMPLOG 2022-09-26 17-58-00.log I see this.

[18:33:38] [System:admin Activity] : Managed remote instance JF-MC-J-VASUR01 at htBREAKINGLINKtp://127.0.0.1:8082/
[18:33:38] [ADS:admin Activity] : Authentication token for admin requested by ManageInstance on behalf of admin
[18:33:38] [System:Anonymous Error] : Failure to make API call to JF-MC-J-VASUR01 (hBREAKINGLINKtp://127.0.0.1:8082/API/Core/GetAPISpec) - retried 10 times : An error occurred while sending the request.
[18:33:38] [ADS:Anonymous Error] : HttpRequestException
[18:33:38] [ADS:Anonymous Error] : [0] (HttpRequestException) : An error occurred while sending the request.
[18:33:38] [ADS:Anonymous Error] : at ADSModule.WebMethods.()
at ADSModule.WebMethods.()
[18:33:38] [ADS:Anonymous Error] : WebException
[18:33:38] [ADS:Anonymous Error] : [1] (WebException) : The underlying connection was closed: The connection was closed unexpectedly.
[18:33:38] [ADS:Anonymous Error] : at Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
[18:34:48] [System:admin Activity] : Downloaded file __VDS__ADS01/AMP_Logs/AMPLOG 2022-09-26 17-58-00.log (API mode)

I THINK I’ve made progress?

Forgive me but I typed “BREAKINGLINK” above so I could post this response as new users are only allowed 2 links per post.

I just opened Docker Desktop and I see the new container running interestingly enough. Not sure if that makes any difference at all. I can actually see the docker container. I can’t connect to MC that is supposedly running in it. I can get to the command line of the container though. So… it DID successfully create a container in docker that appears to be configured for minecraft. Shows all the ports etc.

Restarted the container via docker desktop, then tried to manage again. Same error messages.

==another edit apologies==

I decided to try something other than Minecraft as an instance so I went with Teamspeak3 as I thought I’d use it in the future sometime. Gave it a run and then got this error in the logs after it created the instance.

Managed remote instance TS301 at http://127.0.0.1:8081/

Authentication token for admin requested by ManageInstance on behalf of admin

:Anonymous

18:24:39

Failure to make API call to TS301 (http://127.0.0.1:8081/API/Core/GetAPISpec) - retried 10 times : An error occurred while sending the request.

HttpRequestException

[0] (HttpRequestException) : An error occurred while sending the request.

at ADSModule.WebMethods.() at ADSModule.WebMethods.()

WebException

[1] (WebException) : The underlying connection was closed: The connection was closed unexpectedly.

at Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)

Something going on with the API? I see the docker container of the TS3 instance running. (and the minecraft one for that matter, but both kick up this same error.

I’m at a loss of what to try next. My software(windows) Firewall is disabled.

Check the logs for that specific instance (Right Click → View Logs)

Also assuming you’ve changed the AMP IP binding to 0.0.0.0, you’ll need to delete the existing instance and make a fresh one with the new configuration.

Hello Mike!

Here is what’s in the logs from yesterday. Today’s logs are just checking for updates and no errors. No errors at all actually in the instance logs. Here is the minecraft instance log. AMP IP bindings are 0.0.0.0 but I didn’t CHANGE them to that, they’ve been that since creation. (maybe I did change it but I don’t remember ever changing it)

Minecraft Instance Log:

[18:50:28] [Core Info] : Starting AMP version 2.4.0.4 (Halimede), built 10/09/2022 16:30
[18:50:28] [Core Info] : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[18:50:29] [Core Info] : Running in a Docker environment.
[18:50:29] [Core Info] : OS: Linux / x86_64
[18:50:29] [Core Info] : CPU: AMD Ryzen 9 5900X 12-Core Processor (12C/24T)
[18:50:29] [Core Info] : AMP Instance ID: 31fb2aac-c55b-4f94-a1a3-76f695570aa3
[18:50:29] [ModuleLoader Info] : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[18:50:29] [Core Info] : Metrics publishing is enabled at udp://host.docker.internal:12820.
[18:50:30] [ModuleLoader Info] : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[18:50:30] [ModuleLoader Info] : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[18:50:30] [ModuleLoader Info] : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[18:50:30] [ModuleLoader Info] : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[18:50:30] [ModuleLoader Info] : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[18:50:30] [Core Info] : Licence Present: AMP Professional Edition (Licenced to Damian Johnson)
[18:50:30] [FileManager Notice] : Using keypair with fingerprint KIlz2TB1fukJHRLz1hUqUTUuIfaWGJin88PASbwtCV8=
[18:50:30] [FileManager Info] : SFTP Server started on 0.0.0.0:2225
[18:50:30] [WebServer Info] : Websockets are enabled.
[18:50:30] [Logger Warning] : RouterTimer@10Hz with 2 jobs started
[18:50:30] [WebServer Info] : Webserver started on hBREAKLINKttp://127.0.0.1:8082
[18:50:30] [Core Info] : Checking for AMP updates…
[18:50:31] [Core Info] : AMP is up-to-date.
[18:50:38] [Minecraft Info] : Modpack cache is up-to-date.

In addition here is the TS3 Log

[00:24:41] [Core Info] : Starting AMP version 2.4.0.4 (Halimede), built 10/09/2022 16:30
[00:24:41] [Core Info] : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[00:24:41] [Core Info] : Running in a Docker environment.
[00:24:41] [Core Info] : OS: Linux / x86_64
[00:24:41] [Core Info] : CPU: AMD Ryzen 9 5900X 12-Core Processor (12C/24T)
[00:24:41] [Core Info] : AMP Instance ID: 3b2c6516-86ac-4a2e-8b91-2b684010da3c
[00:24:41] [ModuleLoader Info] : Loaded GenericModule version 1.0.0.0 by CubeCoders Limited
[00:24:41] [Core Info] : Metrics publishing is enabled at udp://host.docker.internal:12820.
[00:24:41] [ModuleLoader Info] : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[00:24:41] [ModuleLoader Info] : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[00:24:41] [ModuleLoader Info] : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[00:24:41] [ModuleLoader Info] : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[00:24:41] [ModuleLoader Info] : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[00:24:41] [ModuleLoader Info] : GenericModule requests dependency steamcmdplugin…
[00:24:41] [ModuleLoader Info] : Loaded steamcmdplugin version 1.0.0.0 by CubeCoders Limited
[00:24:41] [ModuleLoader Info] : GenericModule requests dependency RCONPlugin…
[00:24:41] [ModuleLoader Info] : Loaded RCONPlugin version 1.0.0.1 by CubeCoders Limited
[00:24:41] [Core Info] : Licence Present: AMP Professional Edition (Licenced to Damian Johnson)
[00:24:41] [FileManager Notice] : No SSH keypair available for embedded server, generating new keypair…
[00:24:41] [FileManager Notice] : Generated new keypair with fingerprint N/osYzRFUsk3NzoWTy+PEf9ArSBgKYFYIjjYtnBUd0s=
[00:24:42] [FileManager Notice] : Using keypair with fingerprint N/osYzRFUsk3NzoWTy+PEf9ArSBgKYFYIjjYtnBUd0s=
[00:24:42] [FileManager Info] : SFTP Server started on 0.0.0.0:2224
[00:24:42] [WebServer Info] : Websockets are enabled.
[00:24:42] [WebServer Info] : Webserver started on http://127.0.0.1:8081
[00:24:42] [Logger Warning] : RouterTimer@10Hz with 2 jobs started
[00:24:42] [Core Info] : Checking for AMP updates…
[00:24:42] [Core Info] : AMP is up-to-date.

Since you mentioned creating a new instance I did and here are those results… I’ve created a NEW Minecraft Instance for testing. It created it with out any errors popping up. No errors in the log file before attempting manage it. When I try to manage it I get the error “Instance Unavailable” I can see the instance running in docker with all the appropriate ports forwarded. Here is the log file from that instance after attempting to manage it.

[16:09:08] [Core Info] : Starting AMP version 2.4.0.4 (Halimede), built 10/09/2022 16:30
[16:09:08] [Core Info] : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[16:09:08] [Core Info] : Running in a Docker environment.
[16:09:08] [Core Info] : OS: Linux / x86_64
[16:09:08] [Core Info] : CPU: AMD Ryzen 9 5900X 12-Core Processor (12C/24T)
[16:09:08] [Core Info] : AMP Instance ID: 006a816f-997d-4421-a613-2bf1e0de14d8
[16:09:08] [ModuleLoader Info] : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[16:09:08] [Core Info] : Metrics publishing is enabled at udp://host.docker.internal:12820.
[16:09:08] [ModuleLoader Info] : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[16:09:08] [ModuleLoader Info] : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[16:09:08] [ModuleLoader Info] : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[16:09:08] [ModuleLoader Info] : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[16:09:08] [ModuleLoader Info] : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[16:09:08] [Core Info] : Licence Present: AMP Professional Edition (Licenced to Damian Johnson)
[16:09:09] [FileManager Notice] : No SSH keypair available for embedded server, generating new keypair…
[16:09:09] [FileManager Notice] : Generated new keypair with fingerprint P483Qyw+0ijYOSm+s8qVUU71vNTQHtFxILqKo/SXURM=
[16:09:09] [FileManager Notice] : Using keypair with fingerprint P483Qyw+0ijYOSm+s8qVUU71vNTQHtFxILqKo/SXURM=
[16:09:09] [FileManager Info] : SFTP Server started on 0.0.0.0:2226
[16:09:09] [WebServer Info] : Websockets are enabled.
[16:09:09] [Logger Warning] : RouterTimer@10Hz with 2 jobs started
[16:09:09] [WebServer Info] : Webserver started on http://127.0.0.1:8083
[16:09:09] [Core Info] : Checking for AMP updates…
[16:09:10] [Core Info] : AMP is up-to-date.
[16:09:16] [Minecraft Info] : Updating Modpack cache for 95 modpacks…
[16:09:38] [Minecraft Info] : Update complete.

The only errors I see are the ones that pop up when I try to manage an instance or when I look in the ADS01 AMP_Logs

[16:07:17] [InstanceManager:admin Warning] : Non-managed instances exist, autoconfigure cannot guarentee that the configuration is valid!
[16:07:19] [System:admin Info] : Using cached archive: D:\AMPDatastore\Instances\AMPCache-2404.zip
[16:07:22] [System:admin Info] : [Info] AMPStart for Docker - v22.08.1
[16:07:22] [System:admin Info] : [Info] Performing first-time container setup…
[16:07:22] [System:admin Info] : [Info] Container setup complete.
[16:07:22] [System:admin Info] : [Info] AMP Instance Manager v2.4.0.4 built 10/09/2022 16:02
[16:07:23] [System:admin Info] : e[?1he=e[6ne[He[2Je[39;49m[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[16:07:25] [System:admin Info] : e[39;49m[Info] Certificates have been synced.
[16:07:26] [System:admin Info] : e[39;49me[?1le>e[39;49me[?1he=e[6ne[He[2Je[32me[32me[32me[32me[32me[32me[32me[32me[32me[32me[32me[32m[16:07:26] [Core Info] : Starting AMP version 2.4.0.4 (Halimede), built 10/09/2022 16:30
[16:07:26] [System:admin Info] : [16:07:26] [Core Info] : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[16:07:27] [System:admin Info] : [16:07:27] [Core Info] : Running in a Docker environment.
[16:07:27] [System:admin Info] : [16:07:27] [Core Info] : OS: Linux / x86_64
[16:07:27] [System:admin Info] : [16:07:27] [Core Info] : CPU: AMD Ryzen 9 5900X 12-Core Processor (12C/24T)
[16:07:27] [System:admin Info] : [16:07:27] [Core Info] : AMP Instance ID: 5db6cbbd-8871-419b-a1f7-c1316d861995
[16:07:27] [System:admin Info] : [16:07:27] [Core Info] : Performing first-time setup for this instance, please wait…
[16:07:29] [System:admin Info] : [16:07:29] [Core Info] : AMP has completed its first time setup. Saving settings and shutting down.
[16:07:30] [System:admin Info] : e[?1le>e[39;49m
[16:07:30] [System:admin Info] : Start for instance testing10101 was requested, but it is already running.
[16:08:19] [System:admin Activity] : Downloaded file __VDS__testing10101/AMP_Logs/AMPLOG 2022-09-27 16-07-26.log (API mode)
[16:09:04] [System:admin Info] : c38b061f76561180592f61f0728ac3631d71e2d359c37649c1fc670d0fa63c0b
[16:09:05] [System:admin Activity] : Managed remote instance testing10101 at http://127.0.0.1:8083/
[16:09:06] [ADS:admin Activity] : Authentication token for admin requested by ManageInstance on behalf of admin
[16:09:06] [System:Anonymous Error] : Failure to make API call to testing10101 (http://127.0.0.1:8083/API/Core/GetAPISpec) - retried 10 times : An error occurred while sending the request.
[16:09:06] [ADS:Anonymous Error] : HttpRequestException
[16:09:06] [ADS:Anonymous Error] : [0] (HttpRequestException) : An error occurred while sending the request.
[16:09:06] [ADS:Anonymous Error] : at ADSModule.WebMethods.()
at ADSModule.WebMethods.()
[16:09:06] [ADS:Anonymous Error] : WebException
[16:09:06] [ADS:Anonymous Error] : [1] (WebException) : The underlying connection was closed: The connection was closed unexpectedly.
[16:09:06] [ADS:Anonymous Error] : at Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
[16:09:51] [System:admin Activity] : Downloaded file __VDS__testing10101/AMP_Logs/AMPLOG 2022-09-27 16-09-08.log (API mode)
[16:11:16] [System:admin Activity] : Downloaded file __VDS__ADS01/AMP_Logs/AMPLOG 2022-09-27 00-00-00.log (API mode)

Of course if I switch over to the console I see same failure to make API call error as above. Here is that from the Console.

10:07:17

Non-managed instances exist, autoconfigure cannot guarentee that the configuration is valid!

10:07:19

Using cached archive: D:\AMPDatastore\Instances\AMPCache-2404.zip

10:07:22

[Info] AMPStart for Docker - v22.08.1

[Info] Performing first-time container setup…

[Info] Container setup complete.

[Info] AMP Instance Manager v2.4.0.4 built 10/09/2022 16:02

10:07:23

e[?1he=e[6ne[He[2Je[39;49m[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV

10:07:25

e[39;49m[Info] Certificates have been synced.

10:07:26

e[39;49me[?1le>e[39;49me[?1he=e[6ne[He[2Je[32me[32me[32me[32me[32me[32me[32me[32me[32me[32me[32me[32m[16:07:26] [Core Info] : Starting AMP version 2.4.0.4 (Halimede), built 10/09/2022 16:30

[16:07:26] [Core Info] : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV

10:07:27

[16:07:27] [Core Info] : Running in a Docker environment.

[16:07:27] [Core Info] : OS: Linux / x86_64

[16:07:27] [Core Info] : CPU: AMD Ryzen 9 5900X 12-Core Processor (12C/24T)

[16:07:27] [Core Info] : AMP Instance ID: 5db6cbbd-8871-419b-a1f7-c1316d861995

[16:07:27] [Core Info] : Performing first-time setup for this instance, please wait…

10:07:29

[16:07:29] [Core Info] : AMP has completed its first time setup. Saving settings and shutting down.

10:07:30

e[?1le>e[39;49m

Start for instance testing10101 was requested, but it is already running.

10:08:19

Downloaded file __VDS__testing10101/AMP_Logs/AMPLOG 2022-09-27 16-07-26.log (API mode)

10:09:04

c38b061f76561180592f61f0728ac3631d71e2d359c37649c1fc670d0fa63c0b

10:09:05

Managed remote instance testing10101 at http://127.0.0.1:8083/

10:09:06

Authentication token for admin requested by ManageInstance on behalf of admin

:Anonymous

10:09:06

Failure to make API call to testing10101 (http://127.0.0.1:8083/API/Core/GetAPISpec) - retried 10 times : An error occurred while sending the request.

HttpRequestException

[0] (HttpRequestException) : An error occurred while sending the request.

at ADSModule.WebMethods.() at ADSModule.WebMethods.()

WebException

[1] (WebException) : The underlying connection was closed: The connection was closed unexpectedly.

at Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)

:admin

10:09:51

Downloaded file __VDS__testing10101/AMP_Logs/AMPLOG 2022-09-27 16-09-08.log (API mode)

10:11:16

Downloaded file __VDS__ADS01/AMP_Logs/AMPLOG 2022-09-27 00-00-00.log (API mode)

Open to suggestions. I’d obviously like to know the cause of the error and fix it, but if getting to that point involves uninstalling and reinstalling I can do that. I never LIKE to do that as I’d prefer finding the specific issue and fixing it.

The purpose for AMP for me is to have an easy visual interface for MC servers, Valheim, and TS3. Having those config files for setting up the docker instances are really great as well as the ability to manage the instance with out having to command line all the time.

I could just skip AMP all together and just run things in docker on my own… I just really don’t want to if I can use something much cooler. Your help is appreciated.