Minecraft - Java Instance will not start

OS Name/Version: Debian 11

Product Name/Version: 2.5.0.0 Callisto

Problem Description:
This has been an issue for a while, I’ve just hoped it would be patched but it’s still broken.
I am attempting to run a Minecraft - Java Instance, but it’s failing to start. I’ve checked the logs and it keeps saying the port is being used, and I’ve changed the port about 10 times with the same result.
Java is properly installed, and I am running a bedrock server with absolutely no issues. Here’s what I am getting in the log file

[06:52:00] [Core Info]            : Starting AMP version 2.5.0.0 (Callisto), built 15/03/2024 19:18
[06:52:00] [Core Info]            : Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[06:52:00] [Logger Info]          : Purging old audit logs (this may take a moment)...
[06:52:00] [Core Info]            : Running in a Docker environment.
[06:52:00] [Core Info]            : OS: Linux / x86_64
[06:52:00] [Core Info]            : CPU: AMD Ryzen 9 7900X 12-Core Processor (12C/24T)
[06:52:00] [Core Info]            : RAM: 128057MB
[06:52:00] [Core Info]            : AMP Instance ID: --removed--
[06:52:00] [Loader Info]          : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[06:52:00] [Core Info]            : Metrics publishing is enabled at udp://localhost:12820.
[06:52:00] [Loader Info]          : Loaded FileManagerPlugin by CubeCoders Limited
[06:52:00] [Loader Info]          : Loaded EmailSenderPlugin by CubeCoders Limited
[06:52:00] [Loader Info]          : Loaded WebRequestPlugin by CubeCoders Limited
[06:52:00] [Loader Info]          : Loaded LocalFileBackupPlugin by CubeCoders Limited
[06:52:00] [Loader Info]          : Loaded CommonCorePlugin by CubeCoders Limited
[06:52:00] [Core Info]            : Licence Present: AMP Advanced Edition
[06:52:00] [FileManager Notice]   : Using keypair with fingerprint yzp7hVxYqUrQcJkESLZpaJBAaO97k/0KzSYGJ97JVZw=
[06:52:00] [FileManager Info]     : SFTP Server started on --removed--:2240
[06:52:00] [Webserver Info]       : Websockets are enabled.
[06:52:01] [Webserver Info]       : Webserver started on http://127.0.0.1:8084
[06:52:01] [Logger Info]          : RouterTimer@10Hz with 2 jobs started
[06:52:01] [ErrorReporter Error]  : Socket exception - Trivial error / user error. Will not be submitted.
[06:52:01] [Core Info]            : Checking for AMP updates...
[06:52:01] [ErrorReporter Error]  : [Error] --- Begin Exception Data ---
[Error] OS: Linux (x86_64/Docker)
[Error] Module: MinecraftModule, Version: AMP 2.5.0.0
[Error] Release spec: Mainline - built by CUBECODERS/buildbot on CCL-DEV
[Error] Instance ID: --removed--
[Error] SocketException
[Error] [0] (SocketException) : Address already in use
[Error]   at Net.Sockets.Socket.Bind (Net.EndPoint localEP) 
  at Net.Sockets.TcpListener.Start (Int32 backlog) 
  at m.Http.HttpBackend.ConnectionLoop () 
[Error] --- End Exception Data ---
[Warning] Last error was raised less than 60 minutes ago, error report will not be submitted.

[06:52:01] [ErrorReporter Info]   : ####################################
[06:52:01] [ErrorReporter Info]   : #         Self Diagnostics         #
[06:52:01] [ErrorReporter Info]   : ####################################
[06:52:01] [ErrorReporter Info]   : The IP and Port combination requested by the socket is already in use by another application. Either end the other application or re-bind this AMP instance to a different IP/port.

Steps to reproduce:

  • Deleted the instance.
  • Recreated instance
  • Attempted to run with Docker

Actions taken to resolve so far:

  • Verified java was installed - openjdk version “20.0.2” 2023-07-18
  • Verified ports not being used by other applications.

This is pretty common if the server is sleeping and restarts via the scheduler.
Should be able to clear the port by stopping/starting the instance, then I’d suggest you either disable sleep mode or disable the restart in the scheduler to prevent this from happening again

If that isn’t the issue, I’d say try an OS reboot to see if that gets it kickin.

Or stop the instance and change the port to see if there’s just something weird going on with 25565.

I have done multiple system reboots as well, still no change.

Something else running on port 8084?

Nope, But today I just noticed I have a new set of errors showing up now.

EDIT:

Well, apparently I was wrong… There is something using 8084. Mono

[21:24:43] [Core Info]            : Starting AMP version 2.5.0.0 (Callisto), built 15/03/2024 19:18
[21:24:43] [Core Info]            : Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[21:24:43] [Logger Info]          : Purging old audit logs (this may take a moment)...
[21:24:43] [Core Warning]         : Current time zone is set to EST - It is recommended you switch to UTC+0 to avoid time-zone related issues
[21:24:43] [Core Info]            : OS: Linux / x86_64
[21:24:43] [Core Info]            : CPU: AMD Ryzen 9 7900X 12-Core Processor (12C/24T)
[21:24:43] [Core Info]            : RAM: 128057MB
[21:24:43] [Core Info]            : AMP Instance ID: 956eeb4a-17c0-48c0-91cf-8fa76ecb8db2
[21:24:44] [Loader Info]          : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[21:24:44] [Core Info]            : Metrics publishing is enabled at udp://localhost:12820.
[21:24:44] [Loader Info]          : Loaded FileManagerPlugin by CubeCoders Limited
[21:24:44] [Loader Info]          : Loaded EmailSenderPlugin by CubeCoders Limited
[21:24:44] [Loader Info]          : Loaded WebRequestPlugin by CubeCoders Limited
[21:24:44] [Loader Info]          : Loaded LocalFileBackupPlugin by CubeCoders Limited
[21:24:44] [Loader Info]          : Loaded CommonCorePlugin by CubeCoders Limited
[21:24:44] [Core Info]            : Licence Present: AMP Advanced Edition
[21:24:44] [Minecraft Warning]    : Unable to get Spigot version data from https://hub.spigotmc.org/versions/
[21:24:44] [Core Error]           : HttpRequestException
[21:24:44] [Core Error]           : [0] (HttpRequestException) : The SSL connection could not be established, see inner exception.
[21:24:44] [Core Error]           :   at MinecraftModule.UpdateManager.GetSpigotVersions () 
[21:24:44] [Core Error]           : AuthenticationException
[21:24:44] [Core Error]           : [1] (AuthenticationException) : Authentication failed, see inner exception.
[21:24:44] [Core Error]           : FrameworkBtlsException
[21:24:44] [Core Error]           : [2] (FrameworkBtlsException) : Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
  at /usr/src/mono/external/boringssl/ssl/handshake_client.c:1132
[21:24:44] [Core Error]           :   at Framework.Btls.FrameworkBtlsContext.ProcessHandshake () 
  at Framework.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Framework.Net.Security.AsyncOperationStatus status, Boolean renegotiate) 
  at (wrapper remoting-invoke-with-check) Framework.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Framework.Net.Security.AsyncOperationStatus,bool)
  at Framework.Net.Security.AsyncHandshakeRequest.Run (Framework.Net.Security.AsyncOperationStatus status) 
[21:24:44] [Minecraft Warning]    : Unable to get Paper version data from https://papermc.io/api/v2/projects/paper
[21:24:44] [Core Error]           : HttpRequestException
[21:24:44] [Core Error]           : [0] (HttpRequestException) : The SSL connection could not be established, see inner exception.
[21:24:44] [Core Error]           :   at MinecraftModule.UpdateManager.GetPaperVersions () 
[21:24:44] [Core Error]           : AuthenticationException
[21:24:44] [Core Error]           : [1] (AuthenticationException) : Authentication failed, see inner exception.
[21:24:44] [Core Error]           : FrameworkBtlsException
[21:24:44] [Core Error]           : [2] (FrameworkBtlsException) : Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
  at /usr/src/mono/external/boringssl/ssl/handshake_client.c:1132
[21:24:44] [Core Error]           :   at Framework.Btls.FrameworkBtlsContext.ProcessHandshake () 
  at Framework.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Framework.Net.Security.AsyncOperationStatus status, Boolean renegotiate) 
  at (wrapper remoting-invoke-with-check) Framework.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Framework.Net.Security.AsyncOperationStatus,bool)
  at Framework.Net.Security.AsyncHandshakeRequest.Run (Framework.Net.Security.AsyncOperationStatus status) 
[21:24:44] [Minecraft Warning]    : Failed to get latest Forge version data from https://maven.minecraftforge.net/net/minecraftforge/forge/maven-metadata.xml
[21:24:44] [Core Error]           : HttpRequestException
[21:24:44] [Core Error]           : [0] (HttpRequestException) : The SSL connection could not be established, see inner exception.
[21:24:44] [Core Error]           :   at MinecraftModule.UpdateManager.GetForgeUpdateData () 
[21:24:44] [Core Error]           : AuthenticationException
[21:24:44] [Core Error]           : [1] (AuthenticationException) : Authentication failed, see inner exception.
[21:24:44] [Core Error]           : FrameworkBtlsException
[21:24:44] [Core Error]           : [2] (FrameworkBtlsException) : Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
  at /usr/src/mono/external/boringssl/ssl/handshake_client.c:1132
[21:24:44] [Core Error]           :   at Framework.Btls.FrameworkBtlsContext.ProcessHandshake () 
  at Framework.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Framework.Net.Security.AsyncOperationStatus status, Boolean renegotiate) 
  at (wrapper remoting-invoke-with-check) Framework.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Framework.Net.Security.AsyncOperationStatus,bool)
  at Framework.Net.Security.AsyncHandshakeRequest.Run (Framework.Net.Security.AsyncOperationStatus status) 
[21:24:44] [FileManager Notice]   : Using keypair with fingerprint yzp7hVxYqUrQcJkESLZpaJBAaO97k/0KzSYGJ97JVZw=
[21:24:44] [FileManager Info]     : SFTP Server started on --hidden--:2240
[21:24:44] [Webserver Info]       : Websockets are enabled.
[21:24:44] [Webserver Info]       : Webserver started on http://127.0.0.1:8084
[21:24:44] [Logger Info]          : RouterTimer@10Hz with 2 jobs started
[21:24:44] [ErrorReporter Error]  : Socket exception - Trivial error / user error. Will not be submitted.
[21:24:44] [ErrorReporter Error]  : [Error] --- Begin Exception Data ---
[Error] OS: Linux (x86_64/None)
[Error] Module: MinecraftModule, Version: AMP 2.5.0.0
[Error] Release spec: Mainline - built by CUBECODERS/buildbot on CCL-DEV
[Error] Instance ID: 956eeb4a-17c0-48c0-91cf-8fa76ecb8db2
[Error] SocketException
[Error] [0] (SocketException) : Address already in use
[Error]   at Net.Sockets.Socket.Bind (Net.EndPoint localEP) 
  at Net.Sockets.TcpListener.Start (Int32 backlog) 
  at m.Http.HttpBackend.ConnectionLoop () 
[Error] --- End Exception Data ---

[21:24:44] [ErrorReporter Info]   : ####################################
[21:24:44] [ErrorReporter Info]   : #         Self Diagnostics         #
[21:24:44] [ErrorReporter Info]   : ####################################
[21:24:44] [ErrorReporter Info]   : The IP and Port combination requested by the socket is already in use by another application. Either end the other application or re-bind this AMP instance to a different IP/port.

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