Startup Issue with Application Deployment - Non-managed instances exist

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Phobos’ v2.6.0.6 (Mainline)
Virtualization QEMU_KVM
Application Application Deployment
Module ADSModule
Running in Container No
Current State Indeterminate

Problem Description

Issue

Hi, I have removed my Beammp server, because my friends couldnt connect to it (port forwarding enabled), so I removed the beammp server for troubleshooting. Then I added the Beammp server again, but I cant create it inside a docker container. I get docker error 125, with this error code:
22:17:04
Updating remote source CubeCoders/AMPTemplates
Updating existing remote source GitHub - CubeCoders/AMPTemplates: For the AMP community to share Generic Module templates.
No local changes to save
No stash entries found.
22:17:05
Already up to date.
Non-managed instances exist, autoconfigure cannot guarantee that the configuration is valid!
Downloading AMP from https://downloads.cubecoders.com/AMP/Mainline/20241120.1/AMP_x86_64.zip
22:17:42
Complete
22:17:44
00b2837e8615630d2712de5ab07bc198b2f2e7e2a8cd313a0eb2940ec576e838
22:17:45
docker: Error response from daemon: driver failed programming external connectivity on endpoint AMP_BeamMP01_CONFIGURE (73ad0fe9505aa6c4cb112eba2757790990d588fb1885003f42b51a8105dafa42): failed to bind port 0.0.0.0:8082/tcp: Error starting userland proxy: listen tcp4 0.0.0.0:8082: bind: address already in use.
Failed to configure new instance BeamMP01 - Startup failure: Docker returned error code 125
Configuration Failed: Startup failure: Docker returned error code 125
Create Instance Failed: Startup failure: Docker returned error code 125

Reproduction Steps

  • Install Beammp server and have it working
  • Remove BeamMP server
  • add the Beammp server again.

Did you remove/re-add the instance manually? If so, that would cause some funky issues.

I installed and removed it in de gui, so didn’t do anything weird there.

What’s the output of ampinstmgr status?

I get this output with the amp user:

Now what’s the output of ls /home/amp/.ampdata/instances ?

The same instances:

That all looks fine then, the “Unmanaged instances” warning is probably unrelated to the BeamMP problem you’re having.
Try creating the BeamMP server again, and if you run into issues, right click the new instance and hit View Logs to see what’s going on

AMP doesnt create a new instance, I get a menu with a startup failure and error code 125.
I see this in the deployment log:

I does deploy without docker, but not start. This is the logfile I have:
[22:53:15] [Program Info/1] : Starting AMP version 2.6.0.6 (Phobos), built 20/11/2024 20:57
[22:53:15] [Program Info/1] : Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[22:53:15] [Core Info/1] : Loading configuration from provisionargs.kvp…
[22:53:15] [Program Info/1] : Running in a QEMU KVM environment.
[22:53:15] [Program Warning/1] : Current time zone is set to Eastern Standard Time - It is recommended you switch to UTC+0 to avoid time-zone related issues
[22:53:15] [Program Info/1] : OS: Linux / x86_64
[22:53:15] [Program Info/1] : CPU: Intel(R) Core™ i5-10400H CPU @ 2.60GHz (1C/2T)
[22:53:15] [Program Info/1] : RAM: 7796MB
[22:53:15] [Program Info/1] : AMP Instance ID: 4bfb63d2-d551-4aaf-88d6-6ee66bd2e5c7
[22:53:15] [Program Info/1] : Performing first-time setup for this instance, please wait…
[22:53:16] [Core Info/1] : Loaded GenericModule version 2.6.0.6 by CubeCoders Limited
[22:53:16] [Core Info/1] : Metrics publishing is enabled at udp://localhost:12820.
[22:53:16] [Loader Info/1] : Loaded FileManagerPlugin by CubeCoders Limited
[22:53:16] [Loader Info/1] : Loaded EmailSenderPlugin by CubeCoders Limited
[22:53:16] [Loader Info/1] : Loaded WebRequestPlugin by CubeCoders Limited
[22:53:16] [Loader Info/1] : Loaded LocalFileBackupPlugin by CubeCoders Limited
[22:53:16] [Loader Info/1] : Loaded CommonCorePlugin by CubeCoders Limited
[22:53:16] [Loader Info/1] : Loaded AnalyticsPlugin by CubeCoders Limited
[22:53:16] [System Error/11] : Missing plugin/assembly: MaxMind.Db (/home/amp/.ampdata/instances/BeamMP01/Plugins/MaxMind.Db/MaxMind.Db.dll) for
[22:53:16] [Loader Info/1] : GenericModule requests dependency steamcmdplugin…
[22:53:16] [System Info/11] : GeoIP database not found, downloading…
[22:53:16] [Loader Info/1] : Loaded steamcmdplugin by CubeCoders Limited
[22:53:16] [Loader Info/1] : GenericModule requests dependency RCONPlugin…
[22:53:16] [Loader Info/1] : Loaded RCONPlugin by CubeCoders Limited
[22:53:16] [Core Warning/1] : No such setting node: GenericModule.App.MonitorChildProcess - maybe the relevant plugin/module isn’t loaded?
[22:53:16] [Core Warning/1] : No such setting node: GenericModule.App.MonitorChildProcessWaitMs - maybe the relevant plugin/module isn’t loaded?
[22:53:16] [Core Warning/1] : No such setting node: GenericModule.Console.ActivateLogRegex - maybe the relevant plugin/module isn’t loaded?
[22:53:16] [Core Info/1] : Performing activation, please wait…
[22:53:17] [Core Info/1] : Activated successfully.
[22:53:17] [Core Info/1] : Licence Present: AMP Advanced Edition - Lifetime Licence
[22:53:17] [Program Info/1] : AMP has completed its first time setup. Saving settings and shutting down.

And this one, but I dont know if this is the logfile from docker:
[22:53:19] [Program Info/1] : Starting AMP version 2.6.0.6 (Phobos), built 20/11/2024 20:57
[22:53:19] [Program Info/1] : Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[22:53:19] [Program Info/1] : Running in a QEMU KVM environment.
[22:53:19] [Program Warning/1] : Current time zone is set to Eastern Standard Time - It is recommended you switch to UTC+0 to avoid time-zone related issues
[22:53:19] [Program Info/1] : OS: Linux / x86_64
[22:53:19] [Program Info/1] : CPU: Intel(R) Core™ i5-10400H CPU @ 2.60GHz (1C/2T)
[22:53:19] [Program Info/1] : RAM: 7796MB
[22:53:19] [Program Info/1] : AMP Instance ID: 4bfb63d2-d551-4aaf-88d6-6ee66bd2e5c7
[22:53:19] [Core Info/1] : Loaded GenericModule version 2.6.0.6 by CubeCoders Limited
[22:53:19] [Core Info/1] : Metrics publishing is enabled at udp://localhost:12820.
[22:53:19] [Loader Info/1] : Loaded FileManagerPlugin by CubeCoders Limited
[22:53:19] [Loader Info/1] : Loaded EmailSenderPlugin by CubeCoders Limited
[22:53:20] [Loader Info/1] : Loaded WebRequestPlugin by CubeCoders Limited
[22:53:20] [Loader Info/1] : Loaded LocalFileBackupPlugin by CubeCoders Limited
[22:53:20] [Loader Info/1] : Loaded CommonCorePlugin by CubeCoders Limited
[22:53:20] [Loader Info/1] : Loaded AnalyticsPlugin by CubeCoders Limited
[22:53:20] [System Error/9] : Missing plugin/assembly: MaxMind.Db (/home/amp/.ampdata/instances/BeamMP01/Plugins/MaxMind.Db/MaxMind.Db.dll) for
[22:53:20] [Loader Info/1] : GenericModule requests dependency steamcmdplugin…
[22:53:20] [Loader Info/1] : Loaded steamcmdplugin by CubeCoders Limited
[22:53:20] [Loader Info/1] : GenericModule requests dependency RCONPlugin…
[22:53:20] [Loader Info/1] : Loaded RCONPlugin by CubeCoders Limited
[22:53:20] [Core Info/1] : Licence Present: AMP Advanced Edition - Lifetime Licence
[22:53:20] [FileManager Notice/1] : No SSH keypair available for embedded server, generating new keypair…
[22:53:20] [FileManager Notice/1] : Generated new keypair with fingerprint zPg97WyNH+ELTARvKICC93BJrmjc2cq7QeSuubBQHoI=
[22:53:20] [Loader Notice/1] : Using keypair with fingerprint zPg97WyNH+ELTARvKICC93BJrmjc2cq7QeSuubBQHoI=
[22:53:20] [Loader Info/1] : SFTP Server started on 192.168.178.134:2225
[22:53:21] [Core Info/1] : Webserver started on http://127.0.0.1:8082
[22:53:21] [System Info/9] : Checking for AMP updates…
[22:53:21] [System Info/10] : Startup mode is UpdateAndStart.
[22:53:21] [System Info/7] : AMP is up to date.
[22:53:32] [System Activity/14] : Authentication attempt for user laurens from 127.0.0.1
[22:53:34] [System Activity/7] : Authentication success
[22:53:34] [System Warning/9] : Slow method invocation: Login took 2626ms to complete.
[22:53:34] [System Warning/9] : Slow response: Core.Login took 2629ms to complete.
[22:53:39] [Core:laurens Activity/9] : Starting the application.
[22:54:06] [API:laurens Activity/7] : Changing setting Meta.GenericModule.AuthKey to 41f1454e-9b89-4c28-a33b-0d08bdc87899
[22:54:06] [Generic:laurens Warning/7] : Tried to merge config file ./beammp/serverfiles/ServerConfig.toml but the file does not exist.
[22:54:06] [Generic:laurens Warning/7] : Tried to merge config file ./beammp/serverfiles/ServerConfig.toml but the file does not exist.
[22:54:10] [Core:laurens Activity/7] : Starting the application.
[22:54:14] [Generic:laurens Info/16] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
[22:54:14] [Generic:laurens Info/16] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
[22:54:14] [Generic:laurens Info/16] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
[22:54:14] [Generic:laurens Info/16] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
[22:54:14] [System:laurens Warning/16] : The application stopped unexpectedly. Exit code 127
[22:54:14] [Generic:laurens Error/16] : NullReferenceException
[22:54:14] [Generic:laurens Error/16] : [0] (NullReferenceException) : Object reference not set to an instance of an object.
[22:54:14] [Generic:laurens Error/16] : at GenericModule.GenericApp.DoAppStartup(Boolean IsUpdating)
at GenericModule.GenericApp.Start()
[22:54:17] [Generic:laurens Info/10] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
[22:54:17] [Generic:laurens Info/10] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
[22:54:17] [Core:laurens Error/10] : InvalidOperationException
[22:54:17] [Core:laurens Error/10] : [0] (InvalidOperationException) : Cannot process request because the process (3181) has exited.
/home/amp/.ampdata/instances/BeamMP01/beammp/serverfiles/BeamMP-Server: error while loading shared libraries: liblua5.3.so.0: cannot open shared object file: No such file or directory
[22:54:17] [Core:laurens Error/10] : at Diagnostics.Process.ThrowIfExited(Boolean refresh)
at Diagnostics.Process.EnsureState(State state)
at Diagnostics.Process.GetStat()
at Diagnostics.Process.get_StartTimeCore()
at Diagnostics.Process.get_StartTime()
at ModuleShared.AppServerBase.get_StartTime()
at ModuleShared.AppServerBase.get_Uptime()
at ModuleShared.MetricsInfoPublisher.UpdateMetrics()
[22:54:17] [System:laurens Warning/16] : The application stopped unexpectedly. Exit code 127
[22:54:20] [Generic:laurens Info/9] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
[22:54:20] [Generic:laurens Info/9] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
/home/amp/.ampdata/instances/BeamMP01/beammp/serverfiles/BeamMP-Server: error while loading shared libraries: liblua5.3.so.0: cannot open shared object file: No such file or directory
[22:54:20] [System:laurens Warning/16] : The application stopped unexpectedly. Exit code 127
[22:54:23] [Generic:laurens Info/7] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
[22:54:23] [Generic:laurens Info/7] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
/home/amp/.ampdata/instances/BeamMP01/beammp/serverfiles/BeamMP-Server: error while loading shared libraries: liblua5.3.so.0: cannot open shared object file: No such file or directory
[22:54:23] [System:laurens Warning/10] : The application stopped unexpectedly. Exit code 127
[22:54:26] [Generic:laurens Info/16] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
[22:54:26] [Generic:laurens Info/16] : Merging config file ./beammp/serverfiles/ServerConfig.toml (INI format) using Unicode (UTF-8) encoding.
/home/amp/.ampdata/instances/BeamMP01/beammp/serverfiles/BeamMP-Server: error while loading shared libraries: liblua5.3.so.0: cannot open shared object file: No such file or directory
[22:54:26] [System:laurens Warning/9] : The application stopped unexpectedly. Exit code 127

Check your other instance’s logs, I have a feeling the ports displayed in the status readout aren’t the actual ports they’re using.
That sort of thing can be caused by improperly running ampinstmgr repair, seen it a few times from other users.
Once that’s all fine and figured, you can move onto fixing BeamMP
Or if you want to use BeamMP without docker, figure out what dependencies it needs.