Instance not starting after upgrade

OS Name/Version: Ubuntu 18.04.6 LTS

Product Name/Version: AMP Release “Decadeus” v2.4.4, built 17/05/2023 17:54

Problem Description:

Hello,

one of my instances doesn’t start anymore since I updated ampinstmgr from 2.3 and upgraded the instance itself. I have to other instances on which I didn’t click upgrade and they work fine. This one just says in Application State: Preparing to start forever.
I’m using a custom minecraft server jar

[07:00:05] [Logger Info]          : Loading locale data for xx from xx.json...
[07:00:05] [Logger Info]          : Starting AMP version 2.4.4.0 (Decadeus), built 17/05/2023 17:54
[07:00:05] [Logger Info]          : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[07:00:05] [Logger Warning]       : Current time zone is set to CET - It is recommended you switch to UTC+0 to avoid time-zone related issues
[07:00:05] [Logger Info]          : OS: Linux / x86_64
[07:00:05] [Logger Info]          : CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (4C/8T)
[07:00:05] [Logger Info]          : RAM: 32030MB
[07:00:05] [Logger Info]          : AMP Instance ID: 84c05c5b-ae7d-4b1a-8e95-c33430907a76
[07:00:05] [Core Notice]          : Running as McMyAdmin 3
[07:00:06] [Logger Info]          : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[07:00:06] [Logger Info]          : Metrics publishing is enabled at udp://localhost:12820.
[07:00:06] [Logger Info]          : Loaded FileManagerPlugin by CubeCoders Limited
[07:00:06] [Logger Info]          : Loaded EmailSenderPlugin by CubeCoders Limited
[07:00:06] [Logger Info]          : Loaded WebRequestPlugin by CubeCoders Limited
[07:00:06] [Logger Info]          : Loaded LocalFileBackupPlugin by CubeCoders Limited
[07:00:06] [Logger Info]          : Loaded CommonCorePlugin by CubeCoders Limited
[07:00:06] [Logger Warning]       : Schedule trigger f6f9e028-f4f6-4165-9d69-e2c97e0ec297 has a mismatched ID!
[07:00:06] [Logger Info]          : Licence Present: McMyAdmin Professional Edition
[07:00:06] [Logger Notice]        : Using keypair with fingerprint CslDJ4fPxXM2LbV/SqCM6MJWXcs07selEeyDLYBgCEM=
[07:00:06] [Logger Info]          : SFTP Server started on 0.0.0.0:2225
[07:00:06] [Webserver Info]       : Websockets are enabled.
[07:00:06] [Logger Info]          : Webserver started on http://127.0.0.1:8083
[07:00:06] [Logger Info]          : RouterTimer@10Hz with 2 jobs started
[07:00:06] [Core Info]            : Checking for AMP updates...
[07:00:06] [Logger Info]          : Startup mode is StartApplication.
[07:00:06] [Logger Info]          : Java located at /usr/lib/jvm/jdk1.8.0_212/bin/java
[07:00:06] [Logger Error]         : Process configuration failed. AMP wasn't able to query the Forge version list. Please try again later.
[07:00:06] [Core Info]            : AMP is up-to-date.
[07:00:22] [Logger Warning]       : Unable to get Bedrock version data from https://minecraft.net/en-us/download/server/bedrock
[07:00:22] [Core Error]           : TaskCanceledException
[07:00:22] [Logger Error]         : [0] (TaskCanceledException) : The operation was canceled.
[07:00:22] [Core Error]           :   at MinecraftModule.UpdateManager.GetBedrockVersion () 
[07:00:22] [Core Error]           : ObjectDisposedException
[07:00:22] [Logger Error]         : [1] (ObjectDisposedException) : Cannot access a disposed object.
Object name: 'MobileAuthenticatedStream'.
[07:00:22] [Core Error]           :   at Net.Http.HttpConnection.FillAsync () 
  at Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync (Boolean foldedHeadersAllowed) 
[07:00:22] [Minecraft Info]       : Trying first Bedrock info fallback...
[07:00:27] [Minecraft Info]       : Using fallback bedrock version data...
[07:00:27] [Logger Info]          : Latest Bedrock version: 1.20.11.01
[07:00:27] [Logger Info]          : Modpack cache is up-to-date.
[07:00:49] [Logger Activity]      : Authentication attempt for user admin from 127.0.0.1
[07:00:49] [Core Activity]        : Authentication success

Steps to reproduce:

  • Upgrade ampinstmgr
  • Upgrade instance
  • Launch instance
  • Instance stays in Application State: Preparing to start

Actions taken to resolve so far:

  • Upgraded Instance
  • ampinstmgr --nocache upgradeall
  • Restarted server
  • Restarted instance

first you need to upgrade your ubuntu to 22.04 lts and then you need to upgrade your amp to 2.4.5.4

you can upgrade your ubuntu with the command

sudo do-release-upgrade

then you will run

sudo apt update && sudo apt upgrade -y

then that should get you the latest amp deb package and then login to your amp user with

sudo su amp

then run this command under that use

ampinstmgr stopall
ampinstmgr upgradeall --nocache
ampinstmgr startall

that should help and then if it still fails, then let us know but it can be that you are out of date

I followed your guide to update, the problem remains the same.

[08:42:44] [Logger Info]          : Loading locale data for xx from xx.json...
[08:42:44] [Logger Info]          : Starting AMP version 2.4.4.0 (Decadeus), built 17/05/2023 17:54
[08:42:44] [Logger Info]          : Stream: Mainline (Release) - built by CUBECODERS/buildbot on CCL-DEV
[08:42:44] [Logger Warning]       : Current time zone is set to CET - It is recommended you switch to UTC+0 to avoid time-zone related issues
[08:42:44] [Logger Info]          : OS: Linux / x86_64
[08:42:44] [Logger Info]          : CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (4C/8T)
[08:42:44] [Logger Info]          : RAM: 31962MB
[08:42:44] [Logger Info]          : AMP Instance ID: 84c05c5b-ae7d-4b1a-8e95-c33430907a76
[08:42:44] [Core Notice]          : Running as McMyAdmin 3
[08:42:44] [Logger Info]          : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[08:42:44] [Logger Info]          : Metrics publishing is enabled at udp://localhost:12820.
[08:42:44] [Logger Info]          : Loaded FileManagerPlugin by CubeCoders Limited
[08:42:44] [Logger Info]          : Loaded EmailSenderPlugin by CubeCoders Limited
[08:42:44] [Logger Info]          : Loaded WebRequestPlugin by CubeCoders Limited
[08:42:45] [Logger Info]          : Loaded LocalFileBackupPlugin by CubeCoders Limited
[08:42:45] [Logger Info]          : Loaded CommonCorePlugin by CubeCoders Limited
[08:42:45] [Logger Warning]       : Schedule trigger f6f9e028-f4f6-4165-9d69-e2c97e0ec297 has a mismatched ID!
[08:42:45] [Logger Info]          : Licence Present: McMyAdmin Professional Edition
[08:42:45] [Logger Notice]        : Using keypair with fingerprint CslDJ4fPxXM2LbV/SqCM6MJWXcs07selEeyDLYBgCEM=
[08:42:45] [Logger Info]          : SFTP Server started on 0.0.0.0:2225
[08:42:45] [Webserver Info]       : Websockets are enabled.
[08:42:45] [Logger Info]          : RouterTimer@10Hz with 2 jobs started
[08:42:45] [Logger Info]          : Webserver started on http://127.0.0.1:8083
[08:42:45] [Core Info]            : Checking for AMP updates...
[08:42:45] [Logger Info]          : Startup mode is StartApplication.
[08:42:45] [Logger Info]          : Java located at /usr/lib/jvm/jdk1.8.0_212/bin/java
[08:42:45] [Logger Error]         : Process configuration failed. AMP wasn't able to query the Forge version list. Please try again later.
[08:42:45] [Core Info]            : AMP is up-to-date.
[08:42:57] [Logger Activity]      : Authentication attempt for user admin from 127.0.0.1
[08:42:57] [Core Activity]        : Authentication success
[08:43:00] [Logger Warning]       : Unable to get Bedrock version data from https://minecraft.net/en-us/download/server/bedrock
[08:43:00] [Core Error]           : TaskCanceledException
[08:43:00] [Logger Error]         : [0] (TaskCanceledException) : The operation was canceled.
[08:43:00] [Core Error]           :   at MinecraftModule.UpdateManager.GetBedrockVersion () 
[08:43:00] [Core Error]           : ObjectDisposedException
[08:43:00] [Logger Error]         : [1] (ObjectDisposedException) : Cannot access a disposed object.
Object name: 'MobileAuthenticatedStream'.
[08:43:00] [Core Error]           :   at Net.Http.HttpConnection.FillAsync () 
  at Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync (Boolean foldedHeadersAllowed) 
[08:43:00] [Minecraft Info]       : Trying first Bedrock info fallback...
[08:43:06] [Minecraft Info]       : Using fallback bedrock version data...
[08:43:06] [Logger Info]          : Latest Bedrock version: 1.20.11.01
[08:43:06] [Logger Info]          : Modpack cache is up-to-date.
[08:43:42] [Logger Activity]      : Authentication attempt for user admin from 127.0.0.1
[08:43:42] [Core Activity]        : Authentication success

That log shows a started up instance, what does ampinstmgr status say?

image

but the webinterface still shows Application State: Preparing to start

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.