MitchTalmadge / AMP-dockerized

CubeCoders AMP in a Docker Image. Easily create game servers for games like Minecraft, GMod, TF2, Factorio, and StarBound!
https://hub.docker.com/r/mitchtalmadge/amp-dockerized
Other
91 stars 22 forks source link

Updated Unraid to 6.10.3 exsisting containers cannot launch #127

Open LostkingZ opened 2 years ago

LostkingZ commented 2 years ago

Hey, got an issue trying to start up some containers on AMP installed on Unraid. getting this error when I try to start the instance of the minecraft server, any ideas? image image

Tried to make a new Minecraft server container and it works fine, just the existing containers seem to error and are not allowed to launch??

LostkingZ commented 2 years ago

When updating unraid, I stopped the servers and shut down the containers before restarting unraid for the update. I'm guessing something in the perms is off but I don't know what? maybe needs an update to the app pushing out to tix the perms??

LostkingZ commented 2 years ago

Update, making a new instance of Minecraft and moving the port over, and copying the files let me launch it but I think if Unraid is rebooted, I might face the same issue again with it not allowing me to boot the instance. Really unsure what is causing this permission issue?

MitchTalmadge commented 2 years ago

Can you post the logs of the container itself?

LostkingZ commented 2 years ago

image

AMP Logs:

text  error  warn  system  array  login  

Current default time zone: 'Europe/London'
Local time is now:      Wed Jun 15 04:05:02 BST 2022.
Universal Time is now:  Wed Jun 15 03:05:02 UTC 2022.

AMP Started.
----------------------
NOTICE: Java 17 is now the default in this image. Java 16 has been removed in preference of Java 17, which is LTS.
Use the Java Configuration section in the AMP Web UI to select a specific version. Otherwise, Java 17 will be used automatically.
----------------------
Entrypoint Sleeping. Logs can be viewed through AMP web UI or at ampdata/instances/Main/AMP_Logs
Shutting Down AMP...
[Info] AMP Instance Manager v2.3.3.4 built 06/06/2022 18:55
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Stopping Instance: 'Main'
[Info] Stopping instance Main...
[Info] Requesting soft-stop...
[Info] Waiting for instance to stop...
[Info] Instance was shut down gracefully.
[Info] Instance Main has stopped.
[Info] Stopping Instance: 'test'
[Info] Stopping instance test...
[Info] Requesting soft-stop...
[Info] Waiting for instance to stop...
----------------------
Starting AMP-Dockerized...
----------------------
Note: This is an UNOFFICIAL IMAGE for CubeCoders AMP. This was created by the community, NOT CubeCoders.
Please, DO NOT contact CubeCoders (Discord or otherwise) for technical support when using this image.
They do not support nor endorse this image and will not help you.
Instead, please direct support requests to https://github.com/MitchTalmadge/AMP-dockerized/issues.
We are happy to help you there!
Thank you!!
----------------------

Copying AMP Core...
Ensuring AMP user exists...
Ensuring correct file permissions...
Setting timezone from TZ env var...
Making sure Main instance exists...
Setting all instances to use MainLine updates...
> Main:
[Info] AMP Instance Manager v2.3.3.4 built 06/06/2022 18:55
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] This instance is already on the Mainline release stream.
> oKR-Server:
[Info] AMP Instance Manager v2.3.3.4 built 06/06/2022 18:55
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] This instance is already on the Mainline release stream.
> Old_EnglishServer:
[Info] AMP Instance Manager v2.3.3.4 built 06/06/2022 18:55
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] This instance is already on the Mainline release stream.
> test:
[Info] AMP Instance Manager v2.3.3.4 built 06/06/2022 18:55
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] This instance is already on the Mainline release stream.
Upgrading Instances...
[Info] AMP Instance Manager v2.3.3.4 built 06/06/2022 18:55
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Upgrading instance Main
[Info] Using cached archive: /home/amp/.ampdata/instances/AMPCache-2334.zip
[Info] Upgrade successful
[Info] Upgrading instance oKR-Server
[Info] Using cached archive: /home/amp/.ampdata/instances/AMPCache-2334.zip
[Info] Upgrade successful
[Info] Upgrading instance Old_EnglishServer
[Info] Using cached archive: /home/amp/.ampdata/instances/AMPCache-2334.zip
[Info] Upgrade successful
[Info] Upgrading instance test
[Info] Using cached archive: /home/amp/.ampdata/instances/AMPCache-2334.zip
[Info] Upgrade successful
Ensuring Main Instance will Start on Boot...
Starting AMP...
[Info] AMP Instance Manager v2.3.3.4 built 06/06/2022 18:55
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Waiting for AMP instance to start...
[Notice] AMP instance Main is now running.
[Info] Waiting for AMP instance to start...
[Notice] AMP instance oKR-Server is now running.
[Info] Waiting for AMP instance to start...
[Notice] AMP instance Old_EnglishServer is now running.
[Info] Waiting for AMP instance to start...
[Notice] AMP instance test is now running.
AMP Started.
----------------------
NOTICE: Java 17 is now the default in this image. Java 16 has been removed in preference of Java 17, which is LTS.
Use the Java Configuration section in the AMP Web UI to select a specific version. Otherwise, Java 17 will be used automatically.
----------------------
Entrypoint Sleeping. Logs can be viewed through AMP web UI or at ampdata/instances/Main/AMP_Logs
LostkingZ commented 2 years ago

Console logs:

Application State: Services Running
:admin
14:33:32

Waiting for AMP instance to start...
AMP instance oKR-Server is now running.

14:34:06

Waiting for AMP instance to start...
AMP instance oKR-Server is now running.
Managed remote instance oKR-Server at http://127.0.0.1:8081/
Authentication token for admin requested by ManageInstance on behalf of admin

:Anonymous
14:34:07

Failure to make API call to oKR-Server (http://127.0.0.1:8081/API/Core/GetAPISpec) - retried 10 times : Connection refused
HttpRequestException
[0] (HttpRequestException) : Connection refused
at ADSModule.WebMethods.MakeInstanceRequest (m.Http.IHttpRequest request, String REQ_RAWJSON, String requesturi) at ADSModule.WebMethods.Servers (m.Http.IHttpRequest request, String id, String REQ_RAWJSON)
SocketException
[1] (SocketException) : Connection refused

:admin
14:38:48

Protected setting ADSModule.NewInstanceDefaults.NewInstanceKey changed.

14:38:53

Waiting for AMP instance to start...
AMP instance Old_EnglishServer is now running.

14:39:02

Waiting for AMP instance to start...
AMP instance Old_EnglishServer is now running.

14:39:03

Managed remote instance Old_EnglishServer at http://127.0.0.1:8082/
Authentication token for admin requested by ManageInstance on behalf of admin

:Anonymous
14:39:03

Failure to make API call to Old_EnglishServer (http://127.0.0.1:8082/API/Core/GetAPISpec) - retried 10 times : Connection refused
HttpRequestException
[0] (HttpRequestException) : Connection refused
at ADSModule.WebMethods.MakeInstanceRequest (m.Http.IHttpRequest request, String REQ_RAWJSON, String requesturi) at ADSModule.WebMethods.Servers (m.Http.IHttpRequest request, String id, String REQ_RAWJSON)
SocketException
[1] (SocketException) : Connection refused
LostkingZ commented 2 years ago

AMPLOG 2022-06-15 14-34-06

[14:34:06] [Core Info]            : Running in a Docker environment.
[14:34:06] [Core Info]            : OS: Linux / x86_64
[14:34:06] [Core Info]            : CPU: AMD Ryzen 9 5950X 16-Core Processor (16C/32T)
[14:34:06] [Core Info]            : AMP Instance ID: eb75d153-f1ac-428c-a900-c805f120d66d
[14:34:06] [ModuleLoader Info]    : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[14:34:06] [Core Info]            : Metrics publishing is enabled at udp://localhost:12820.
[14:34:06] [ModuleLoader Info]    : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[14:34:06] [ModuleLoader Info]    : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[14:34:06] [ModuleLoader Info]    : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[14:34:06] [ModuleLoader Info]    : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[14:34:06] [ModuleLoader Info]    : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[14:34:07] [FileManager Notice]   : Using keypair with fingerprint sBLGvkE8glxya0h+bv+sR2nvxkhHP10so+ucwRgxFcE=
[14:34:07] [FileManager Info]     : SFTP Server started on 0.0.0.0:2224
[14:34:07] [Core Error]           : No valid AMP licence was found. Please run `ampinstmgr reactivate oKR-Server` to reactivate this instance.
LostkingZ commented 2 years ago

I have tried to re-enter the license but that seems to have no effect?

MitchTalmadge commented 2 years ago

Huh, it says the instance is running but it can't connect... That's weird. I'll see if I can reproduce it on my server.

For the license problem, did you set a static MAC address? Without one it will lose the license on each restart.

LostkingZ commented 2 years ago

I have set a static MAC address

LostkingZ commented 2 years ago

Rebooting AMP after adding the static MAC address looks to have broken the new test instances

AMP Console Log for test instance:


16:54:42

Waiting for AMP instance to start...

16:54:43

AMP instance test is now running.
Managed remote instance test at http://127.0.0.1:8083/
Authentication token for admin requested by ManageInstance on behalf of admin

:Anonymous
16:54:43

Failure to make API call to test (http://127.0.0.1:8083/API/Core/GetAPISpec) - retried 10 times : Connection refused
HttpRequestException
[0] (HttpRequestException) : Connection refused
at ADSModule.WebMethods.MakeInstanceRequest (m.Http.IHttpRequest request, String REQ_RAWJSON, String requesturi) at ADSModule.WebMethods.Servers (m.Http.IHttpRequest request, String id, String REQ_RAWJSON)
SocketException
[1] (SocketException) : Connection refused
LostkingZ commented 2 years ago

making a new instance works fine still though