Startup Issue with Application Deployment - Perpetually "Stopping instance" message

System Information

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

Problem Description

Issue

I clicked “stop instance” for an application several weeks ago, and the “Stopping Instance” message now shows perpetually, and has been this way for a month. I also cannot delete the instance since I have important files in it. I cannot manage the instance at all.

Reproduction Steps

  • Clicked “stop instance”
  • tried to update instance
  • tried to update AMP

Right click the instance and hit View Logs to see what’s going on

Here’s the latest log.

[05:27:05] [Core Info/1]          : Starting AMP version 2.5.1.0 (Callisto), built 06/07/2024 22:13
[05:27:05] [Core Info/1]          : Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[05:27:05] [Logger Info/1]        : Deleting 112 old log files...
[05:27:05] [Core Info/1]          : Running in a QEMU KVM environment.
[05:27:05] [Core Info/1]          : OS: Linux / x86_64
[05:27:05] [Core Info/1]          : CPU: AMD EPYC 7543P 32-Core Processor (2C/2T)
[05:27:05] [Core Info/1]          : RAM: 7959MB
[05:27:05] [Core Info/1]          : AMP Instance ID: 0638079e-78c4-4fe9-8d20-2a34f79ff90a
[05:27:06] [Loader Info/1]        : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[05:27:06] [Core Info/1]          : Metrics publishing is enabled at udp://localhost:12820.
[05:27:06] [Loader Info/1]        : Loaded FileManagerPlugin by CubeCoders Limited
[05:27:06] [Loader Info/1]        : Loaded EmailSenderPlugin by CubeCoders Limited
[05:27:06] [Loader Info/1]        : Loaded WebRequestPlugin by CubeCoders Limited
[05:27:06] [Loader Info/1]        : Loaded LocalFileBackupPlugin by CubeCoders Limited
[05:27:06] [Loader Info/1]        : Loaded CommonCorePlugin by CubeCoders Limited
[05:27:06] [Loader Info/1]        : Loaded AnalyticsPlugin by CubeCoders Limited
[05:27:06] [Analytics Info/5]     : GeoIP database not found, downloading...
[05:27:07] [Core Info/1]          : Licence Present: AMP Enterprise Edition - Lifetime Licence
[05:27:07] [FileManager Notice/1] : Using keypair with fingerprint ZoGYIlsigKQpmf4W9mbXPM0dOpJRUqyBBsYKDXKRd50=
[05:27:07] [FileManager Info/1]   : SFTP Server started on 0.0.0.0:2224
[05:27:07] [Webserver Info/1]     : Websockets are enabled.
[05:27:07] [Logger Info/10]       : RouterTimer@10Hz with 2 jobs started
[05:27:07] [Webserver Info/1]     : Webserver started on http://0.0.0.0:8081
[05:27:07] [Core Info/1]          : Checking for AMP updates...
[05:27:07] [Core Info/1]          : Startup mode is UpdateAndStart.
[05:27:08] [Minecraft Warning/5]  : Unable to get Bedrock version data from https://www.minecraft.net/en-us/download/server/bedrock: Match not found.
[05:27:08] [Minecraft Info/5]     : Trying first Bedrock info fallback...
[05:27:08] [Core Info/8]          : A new update is available!
[05:27:08] [Minecraft Info/8]     : Updating Modpack cache for 4 modpacks...
[05:27:10] [Minecraft Info/16]    : Update complete.
[05:27:13] [Minecraft Warning/16] : Unable to get first fallback Bedrock version data from https://www.minecraft.net/en-us/download/server/bedrock: Match not found.
[05:27:13] [Minecraft Info/16]    : Trying second Bedrock info fallback...
[05:27:14] [Minecraft Info/5]     : Latest Bedrock version: 1.21.31.04
[05:27:15] [Core Activity/8]      : Authentication attempt for user admin from 127.0.0.1
[05:27:16] [Core Activity/16]     : Authentication success
[05:27:16] [Minecraft Info/16]    : Java located at /usr/lib/jvm/temurin-20-jdk-amd64/bin/java
[05:27:16] [Minecraft Info/16]    : Using 'Fabric' compatibility mode.
Downloading Minecraft server
Installing Fabric Loader 0.16.9(24w44a) on the server
Downloading required files
Downloading library org.ow2.asm:asm:9.7.1
Downloading library org.ow2.asm:asm-analysis:9.7.1
Downloading library org.ow2.asm:asm-commons:9.7.1
Downloading library org.ow2.asm:asm-tree:9.7.1
Downloading library org.ow2.asm:asm-util:9.7.1
Downloading library net.fabricmc:sponge-mixin:0.15.4+mixin.0.8.7
Downloading library net.fabricmc:intermediary:24w44a
Downloading library net.fabricmc:fabric-loader:0.16.9
Generating server launch JAR
[05:27:23] [ERROR]: Uncaught exception in thread "main"
java.lang.RuntimeException: An exception occurred when launching the server!
	at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:71)
	at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69)
Caused by: java.lang.RuntimeException: Error invoking MC server bundler: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 64.0
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:102)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.locateGame(MinecraftGameProvider.java:193)
	at net.fabricmc.loader.impl.launch.knot.Knot.createGameProvider(Knot.java:175)
	at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:130)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
	at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23)
	at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69)
	... 1 more
Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 64.0
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:875)
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor$1.loadClass(BundlerProcessor.java:65)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:496)
	at java.base/java.lang.Class.forName(Class.java:475)
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:85)
	... 7 more
[05:27:23] [Minecraft Warning/6]  : Server failed to start 1/5 times...
[05:27:23] [Minecraft Warning/6]  : The application stopped unexpectedly. Exit code 1
[05:27:23] [Minecraft Info/6]     : Java located at /usr/lib/jvm/temurin-20-jdk-amd64/bin/java
[05:27:23] [Minecraft Info/6]     : Using 'Fabric' compatibility mode.
[05:27:23] [ERROR]: Uncaught exception in thread "main"
java.lang.RuntimeException: An exception occurred when launching the server!
	at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:71)
	at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69)
Caused by: java.lang.RuntimeException: Error invoking MC server bundler: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 64.0
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:102)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.locateGame(MinecraftGameProvider.java:193)
	at net.fabricmc.loader.impl.launch.knot.Knot.createGameProvider(Knot.java:175)
	at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:130)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
	at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23)
	at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69)
	... 1 more
Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 64.0
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:875)
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor$1.loadClass(BundlerProcessor.java:65)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:496)
	at java.base/java.lang.Class.forName(Class.java:475)
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:85)
	... 7 more
[05:27:23] [Minecraft Warning/16] : Server failed to start 2/5 times...
[05:27:23] [Minecraft Warning/16] : Server stopped within 5 seconds of starting, AMP will not attempt to restart it.
[05:27:39] [API:admin Activity/14] : Sent to console: `start`
[05:27:39] [Minecraft:admin Error/14] : Failed to write to Minecraft server STDIN stream. Server process will be killed (if it isn't already dead)
[05:27:39] [Core:admin Error/14]  : IOException
[05:27:39] [Core:admin Error/14]  : [0] (IOException) : Write fault on path /home/amp/.ampdata/instances/mc01/[Unknown]
[05:27:39] [Core:admin Error/14]  :   at IO.FileStream.WriteInternal (Byte[] src, Int32 offset, Int32 count) 
  at IO.FileStream.Write (Byte[] array, Int32 offset, Int32 count) 
  at MinecraftModule.MinecraftApp.WriteLine (String message) 
[05:32:02] [API:admin Activity/6] : Changing setting MinecraftModule.Java.JavaVersion to /usr/lib/jvm/temurin-17-jdk-amd64/bin/java
[05:32:06] [API:admin Activity/16] : Starting the application.
[05:32:06] [Minecraft:admin Info/16] : Java located at /usr/lib/jvm/temurin-17-jdk-amd64/bin/java
[05:32:06] [Minecraft:admin Info/16] : Using 'Fabric' compatibility mode.
[05:32:07] [ERROR]: Uncaught exception in thread "main"
java.lang.RuntimeException: An exception occurred when launching the server!
	at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:71)
	at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69)
Caused by: java.lang.RuntimeException: Error invoking MC server bundler: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:102)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.locateGame(MinecraftGameProvider.java:193)
	at net.fabricmc.loader.impl.launch.knot.Knot.createGameProvider(Knot.java:175)
	at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:130)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
	at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23)
	at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69)
	... 1 more
Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:879)
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor$1.loadClass(BundlerProcessor.java:65)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:467)
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:85)
	... 7 more
[05:32:08] [Minecraft:admin Warning/15] : Server failed to start 3/5 times...
[05:32:08] [Minecraft:admin Warning/15] : Server stopped within 5 seconds of starting, AMP will not attempt to restart it.
[05:33:55] [API:admin Activity/13] : Updating the application.
[05:41:51] [Core Error/13]        : SocketException
[05:41:51] [Core Error/13]        : [0] (SocketException) : Connection refused
[05:41:51] [Core Error/13]        :   at Net.Sockets.Socket.Send (Byte[] buffer, Int32 offset, Int32 size, Net.Sockets.SocketFlags socketFlags) 
  at Net.Sockets.UdpClient.Send (Byte[] dgram, Int32 bytes) 
  at ModuleShared.MetricsInfoPublisher.UpdateMetrics () 
[05:42:26] [Core Activity/15]     : Authentication attempt for user admin from 127.0.0.1
[05:42:27] [Core Activity/8]      : Authentication success
[05:42:39] [API:admin Activity/30] : Changing setting MinecraftModule.Java.JavaVersion to /usr/lib/jvm/temurin-20-jdk-amd64/bin/java
[05:42:45] [API:admin Activity/8] : Starting the application.
[05:42:45] [Minecraft:admin Info/8] : Java located at /usr/lib/jvm/temurin-20-jdk-amd64/bin/java
[05:42:45] [Minecraft:admin Info/8] : Using 'Fabric' compatibility mode.
[05:42:45] [ERROR]: Uncaught exception in thread "main"
java.lang.RuntimeException: An exception occurred when launching the server!
	at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:71)
	at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69)
Caused by: java.lang.RuntimeException: Error invoking MC server bundler: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 64.0
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:102)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.locateGame(MinecraftGameProvider.java:193)
	at net.fabricmc.loader.impl.launch.knot.Knot.createGameProvider(Knot.java:175)
	at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:130)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
	at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23)
	at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69)
	... 1 more
Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 64.0
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:875)
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor$1.loadClass(BundlerProcessor.java:65)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:496)
	at java.base/java.lang.Class.forName(Class.java:475)
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:85)
	... 7 more
[05:42:46] [Minecraft:admin Warning/13] : Server failed to start 4/5 times...
[05:42:46] [Minecraft:admin Warning/13] : Server stopped within 5 seconds of starting, AMP will not attempt to restart it.
[05:45:48] [Core Activity/32]     : Authentication attempt for user admin from 127.0.0.1
[05:45:48] [Core Activity/15]     : Authentication success
[05:46:46] [Core Activity/15]     : Authentication attempt for user admin from 127.0.0.1
[05:46:46] [Core Activity/32]     : Authentication success
[05:47:15] [Core Activity/14]     : Authentication attempt for user admin from 127.0.0.1
[05:47:15] [Core Activity/31]     : Authentication success
[05:47:33] [Core Activity/31]     : Authentication attempt for user admin from 127.0.0.1
[05:47:33] [Core Activity/32]     : Authentication success
[05:47:46] [API:admin Activity/5] : Updating the application.
[05:47:57] [API:admin Activity/5] : Starting the application.
[05:47:57] [Minecraft:admin Info/5] : Java located at /usr/lib/jvm/temurin-20-jdk-amd64/bin/java
[05:47:57] [Minecraft:admin Info/5] : Using 'Fabric' compatibility mode.
[05:47:57] [ERROR]: Uncaught exception in thread "main"
java.lang.RuntimeException: An exception occurred when launching the server!
	at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:71)
	at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69)
Caused by: java.lang.RuntimeException: Error invoking MC server bundler: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 64.0
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:102)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.locateGame(MinecraftGameProvider.java:193)
	at net.fabricmc.loader.impl.launch.knot.Knot.createGameProvider(Knot.java:175)
	at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:130)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
	at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23)
	at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69)
	... 1 more
Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 64.0
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:875)
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor$1.loadClass(BundlerProcessor.java:65)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:496)
	at java.base/java.lang.Class.forName(Class.java:475)
	at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:85)
	... 7 more
[05:47:58] [Minecraft:admin Warning/31] : Server failed to start 5/5 times...
[05:47:58] [Minecraft:admin Warning/31] : Server stopped within 5 seconds of starting, AMP will not attempt to restart it.
[05:48:39] [Core Activity/14]     : Authentication attempt for user admin from 127.0.0.1
[05:48:39] [Core Activity/5]      : Authentication success
[05:48:47] [API:admin Activity/32] : Sent to console: `stop`
[05:48:47] [Minecraft:admin Error/32] : Failed to write to Minecraft server STDIN stream. Server process will be killed (if it isn't already dead)
[05:48:47] [Core:admin Error/32]  : IOException
[05:48:47] [Core:admin Error/32]  : [0] (IOException) : Write fault on path /home/amp/.ampdata/instances/mc01/[Unknown]
[05:48:47] [Core:admin Error/32]  :   at IO.FileStream.WriteInternal (Byte[] src, Int32 offset, Int32 count) 
  at IO.FileStream.Write (Byte[] array, Int32 offset, Int32 count) 
  at MinecraftModule.MinecraftApp.WriteLine (String message) 
[05:50:46] [API:admin Activity/31] : Changing setting Core.AMP.AppStartupMode to 1
[05:51:57] [API:admin Activity/30] : Changing setting LocalFileBackupPlugin.Cloud.UseS3Storage to True

Only issue I can see there is that you have Java 20 selected for something that needs Java 21, the rest looks fine

I’m aware of the issue there, but my post was to do with the instance itself being bugged or something. AMP won’t even let me manage the instance.

The instance looks fine, do you get any errors in the ADS’s deployment log?