A clean installation of a Starbound server via the official Starbound instance/Generic Module (using either a standard or containerized deployment) results in a catastrophic crash of the core AMP_Instance supervisor process upon a graceful server shutdown.
While Starbound terminates cleanly, AMP hangs indefinitely in a "Stopping..." state before dropping the WebSocket connection entirely. Additionally, despite disabling "Sleep Mode" under System Settings, the "Pause" button remains visible and active in the Web UI.
Steps to Reproduce:
Create a fresh Starbound instance via the Generic Module.
Complete the SteamCMD installation phase.
Start the instance and verify the server boots completely. Go to Configuration -> System Settings -> Sleep, and set sleep it to Disabled. Note that the "Pause" button is still erroneously displayed on the instance dashboard.
Trigger a standard Stop command via the Web UI.
Observe the UI hanging on "Stopping Starbound..." until the socket connection is refused.
Check the deployment log for errors about connecting to the container.
Back at the instances page, the starbound instance is marked as offline.
LIM - Failure to make API call to Starbound01: Connection refused (127.0.0.1:8088)
WebSocket proxy failed to connect to remote 'ws://127.0.0.1:8088/stream/----': Unable to connect to the remote server
I believe the important error information is this:
[Info] Root: Shutting down Root
[21:01:30] [System:admin Info/16] : Importing config file ./starbound/211820/storage/starbound_server.config (JSON format)
[21:01:30] [System:admin Error/16] : Unhandled Exception: This will be automatically reported to the AMP developers.
[21:01:30] [System:admin Error/16] : [Error] --- Begin Exception Data ---
[Error] OS: Linux (x86_64/None)
[Error] Module: GenericModule, Version: AMP 2.7.2.6
[Error] Release spec: Mainline - built by CUBECODERS/buildbot on CCL-DEV
[Error] Instance ID: ********-****-****-****-************
[Error] ArgumentException
[Error] [0] (ArgumentException) : An item with the same key has already been added. Key: $gameServerPort
[Error] at Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at GenericModule.ModuleMain.ImportJSON(String finalPath, MetaConfigFile fileInfo)
at GenericModule.ModuleMain.ImportConfigFile(String finalPath, MetaConfigFile fileInfo)
at GenericModule.ModuleMain.ImportMetaconfigs(String ConfigFile)
at GenericModule.GenericApp.ApplicationProcess_Exited(Object sender, EventArgs e)
[Error] --- End Exception Data ---
This is a fresh install. The config file should be fine. But I did check it, and there is no issue with the gameServerPort line, and it is not duplicated in the config file.
starbound_server.config.txt (No my file is not actually accidentally named .txt I just did this because for some reason, I don't understand, .config isn't an allowed file type for github)
A clean installation of a Starbound server via the official Starbound instance/Generic Module (using either a standard or containerized deployment) results in a catastrophic crash of the core AMP_Instance supervisor process upon a graceful server shutdown.
While Starbound terminates cleanly, AMP hangs indefinitely in a "Stopping..." state before dropping the WebSocket connection entirely. Additionally, despite disabling "Sleep Mode" under System Settings, the "Pause" button remains visible and active in the Web UI.
Steps to Reproduce:
Create a fresh Starbound instance via the Generic Module.
Complete the SteamCMD installation phase.
Start the instance and verify the server boots completely. Go to Configuration -> System Settings -> Sleep, and set sleep it to Disabled. Note that the "Pause" button is still erroneously displayed on the instance dashboard.
Trigger a standard Stop command via the Web UI.
Observe the UI hanging on "Stopping Starbound..." until the socket connection is refused.
Check the deployment log for errors about connecting to the container.
Back at the instances page, the starbound instance is marked as offline.
LIM - Failure to make API call to Starbound01: Connection refused (127.0.0.1:8088)
WebSocket proxy failed to connect to remote 'ws://127.0.0.1:8088/stream/----': Unable to connect to the remote server
I believe the important error information is this:
This is a fresh install. The config file should be fine. But I did check it, and there is no issue with the gameServerPort line, and it is not duplicated in the config file.
starbound_server.config.txt (No my file is not actually accidentally named .txt I just did this because for some reason, I don't understand, .config isn't an allowed file type for github)