Hi Mike,
OS Name/Version:
Debian 10 (Linux 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux)
Product Name/Version:
AMP Lapetus 1.9.5.2
Problem Description:
i have an amp installation with four minecraft instances running as docker instances. After upgrading to latest AMP version 1.9.5.2, the minecraft instances are not able to start. Logfile doesn't show any error or other information.
Webinterface error: "This task could not be completed: Starting Instance - Starting Minecraft01 (Minecraft01)...."
Log output if i start with AMPLOGLEVEL=0:
AMP_LOG_LEVEL=0 ampinstmgr -s Minecraft01
[Info] Logging level set to Debug
[Info] AMP Instance Manager v1.9.5.2 built 30/01/2020 16:29
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Debug] Syncing certificate store using /etc/ssl/certs/ca-certificates.crt
[Debug] Current certificate store contains 128 items, system store contains 128
[Debug] Sync process completed.
[Debug] Loading instances from /home/amp/.ampdata/instances.json...
[Debug] Loaded 5 instances.
[Debug] Running command line: "/usr/bin/docker inspect AMP_Minecraft01" from ""
[Info] Starting Instance: 'Minecraft01'
[Debug] Running command line: "/usr/bin/docker inspect AMP_Minecraft01" from ""
[Debug] Starting process /usr/bin/docker
[Debug] Working Directory:
[Debug] Arguments: images cubecoders/ampbase --format {{.Tag}}
[Debug] Started process with ID 4419
[Debug] Starting process /usr/bin/id
[Debug] Working Directory:
[Debug] Arguments: -u
[Debug] Started process with ID 4428
[Debug] Running command line: "/usr/bin/docker run --rm -d --mac-address 02:42:ac:ff:21:50 --name AMP_Minecraft01 -v "/home/amp/.ampdata/instances/Minecraft01":/AMP -v "/home/amp/.config":/home/AMP/.config:ro -v /opt/cubecoders/amp:/opt/cubecoders/amp:ro -p 0.0.0.0:8081:8081/tcp -e MONO_THREADS_PER_CPU='2000' -e MONO_GC_PARAMS='major=marksweep-conc' -e LD_LIBRARY_PATH='./:/opt/cubecoders/amp/:/AMP/' -e MONO_TLS_PROVIDER='btls' -e LANG='en_US.UTF-8' -e AMPUSERID='1003' -p 25565:25565/both cubecoders/ampbase:java8" from ""
[Info] This instance failed to start. Run 'ampinstmgr LastLog Minecraft01' to view it's most recent log.
Log output when i start the docker command
/usr/bin/docker run --rm -d --mac-address 02:42:ac:ff:21:50 --name AMP_Minecraft01 -v "/home/amp/.ampdata/instances/Minecraft01":/AMP -v "/home/amp/.config":/home/AMP/.config:ro -v /opt/cubecoders/amp:/opt/cubecoders/amp:ro -p 0.0.0.0:8081:8081/tcp -e MONO_THREADS_PER_CPU='2000' -e MONO_GC_PARAMS='major=marksweep-conc' -e LD_LIBRARY_PATH='./:/opt/cubecoders/amp/:/AMP/' -e MONO_TLS_PROVIDER='btls' -e LANG='en_US.UTF-8' -e AMPUSERID='1003' -p 25565:25565/both cubecoders/ampbase:java8
/usr/bin/docker: invalid publish opts format (should be name=value but got '0.0.0.0:8081:8081/tcp').
See '/usr/bin/docker run --help'.
so it seems docker is misreading the first "-p" tag as an environment variable.
Steps to reproduce:
- Create new minecraft docker instance
- Update from amp 1.9.5.0 to 1.9.5.2
- Start minecraft instance
Actions taken to resolve so far:
- server reboot
- new minecraft instance created, same output
- new factorio docker instance created: this instance is woking and both "-p" tags are at the end of the docker command