Startup Issue with Minecraft - URL cannot be determined

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Decadeus’ v2.4.6.6 (Mainline)
Virtualization Docker
Application Minecraft
Module MinecraftModule
Running in Container Yes
Current State Installing

Problem Description

Issue

I’m trying to get forge 47.1.3 up and running but when I try to start the server I always get a “URL cannot be determined” error

Reproduction Steps

  • select forge 47.1.3
  • update
  • start
  • select jdk17

Just a sanity check, the Jar has been left as “Autoselect”?
If so could you right click the instance from the main panel, hit “View logs”, then share that?

[18:21:58] [Logger Info] : Starting AMP version 2.4.6.6 (Decadeus), built 05/10/2023 11:56
[18:21:58] [Logger Info] : Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[18:21:58] [Logger Info] : Running in a Docker environment.
[18:21:58] [Logger Info] : OS: Linux / x86_64
[18:21:58] [Logger Info] : CPU: AMD Ryzen 5 3600 6-Core Processor (8C/8T)
[18:21:58] [Logger Info] : RAM: 19976MB
[18:21:58] [Logger Info] : AMP Instance ID: …
[18:21:58] [Logger Info] : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[18:21:58] [Logger Info] : Metrics publishing is enabled at udp://localhost:12820.
[18:21:58] [Logger Info] : Loaded FileManagerPlugin by CubeCoders Limited
[18:21:58] [Logger Info] : Loaded EmailSenderPlugin by CubeCoders Limited
[18:21:58] [Logger Info] : Loaded WebRequestPlugin by CubeCoders Limited
[18:21:58] [Logger Info] : Loaded LocalFileBackupPlugin by CubeCoders Limited
[18:21:58] [Logger Info] : Loaded CommonCorePlugin by CubeCoders Limited
[18:21:59] [Logger Info] : Licence Present: AMP Professional Edition
[18:21:59] [FileManager Notice] : No SSH keypair available for embedded server, generating new keypair…
[18:21:59] [Logger Notice] : Generated new keypair with fingerprint …
[18:21:59] [Logger Notice] : Using keypair with fingerprint …
[18:21:59] [Logger Info] : SFTP Server started on 0.0.0.0:2224
[18:21:59] [Webserver Info] : Websockets are enabled.
[18:21:59] [Logger Info] : Webserver started on …
[18:21:59] [Logger Info] : RouterTimer@10Hz with 2 jobs started
[18:21:59] [Core Info] : Checking for AMP updates…
[18:21:59] [Logger Info] : Startup mode is StartApplication, SkipThisTime.
[18:21:59] [Core Info] : AMP is up to date.
[18:22:04] [Logger Info] : Updating Modpack cache for 86 modpacks…
[18:22:10] [Logger Activity] : Authentication attempt for user admin from 127.0.0.1
[18:22:10] [Core Activity] : Authentication success
[18:22:15] [Logger Activity] : Authentication attempt for user admin from …
[18:22:15] [Logger Activity] : Authentication failure for user admin from … - Failure
[18:22:15] [Logger Activity] : SFTP connection request from … (WinSCP_release_6.1.2)
[18:22:15] [Logger Activity] : SFTP authentication denied for admin@… : Failure
[18:22:15] [Logger Activity] : Authentication attempt for user admin from …
[18:22:15] [Core Activity] : Authentication success
[18:22:15] [Logger Activity] : SFTP connection request from … (WinSCP_release_6.1.2)
[18:22:15] [Logger Activity] : SFTP login success for admin@…
[18:22:24] [Logger:admin Activity] : Changing setting MinecraftModule.GameSettings.Difficulty to 3
[18:22:24] [Logger Info] : Update complete.
[18:22:27] [Logger:admin Activity] : Changing setting MinecraftModule.GameSettings.SpawnProtectionRadius to 0
[18:22:27] [Logger:admin Activity] : Changing setting MinecraftModule.GameSettings.AllowFlight to True
[18:22:28] [Logger:admin Activity] : Changing setting MinecraftModule.GameSettings.EnablePVPCombat to True
[18:22:30] [Logger:admin Activity] : Changing setting MinecraftModule.GameSettings.TimeoutMins to 0
[18:22:34] [Logger:admin Activity] : Changing setting MinecraftModule.JavaSettings.JavaVersion to /usr/lib/jvm/temurin-17-jdk-amd64/bin/java
[18:22:44] [Logger:admin Activity] : Changing setting MinecraftModule.LimitsSettings.MaxViewDistance to 24
[18:22:47] [Logger:admin Activity] : Changing setting MinecraftModule.LimitsSettings.MaxPlayers to 100
[18:22:48] [Logger:admin Activity] : Changing setting MinecraftModule.LimitsSettings.LockToOfficial to True
[18:22:50] [Logger:admin Activity] : Changing setting MinecraftModule.LimitsSettings.SleepMode to False
[18:22:56] [Logger:admin Activity] : Changing setting MinecraftModule.MinecraftSettings.ServerType to 50
[18:23:02] [Logger:admin Activity] : Changing setting MinecraftModule.MinecraftSettings.SpecificForgeVersion to 47.1.3 (mc 1.20.1)
[18:23:29] [API:admin Activity] : Updating the application.
JVM info: Eclipse Adoptium - 17.0.8.1 - 17.0.8.1+1
java.net.preferIPv4Stack=true
Current Time: 19/11/2023 18:23:32
Host: … [51.79.83.165]
Host: … [51.79.83.165]
Host: … [13.107.213.60, 13.107.246.60]
Host: … [13.107.213.60, 13.107.246.60]
Host: … [13.107.213.60, 13.107.246.60]
Host: … [18.66.218.108, 18.66.218.122, 18.66.218.34, 18.66.218.18]
Found java version 17.0.8.1
Target Directory: .
Data kindly mirrored by CreeperHost at …
Considering minecraft server jar
Downloading library from https://piston-data.mojang.com/v1/objects/84194a2f286ef7c14ed7ce0090dba59902951553/server.jar
Download completed: Checksum validated.
Downloading libraries

The server installed successfully
You can delete this installer file now if you wish
[18:24:12] [API:admin Activity] : Starting the application.
[18:24:14] [API:admin Activity] : Starting the application.
[18:24:14] [Minecraft:admin Info] : Lock-To-Official is in effect, changing the server type to Official.
[18:24:14] [Logger:admin Info] : Java located at /usr/lib/jvm/temurin-17-jdk-amd64/bin/java
[18:24:14] [Logger:admin Info] : Using ‘Official’ compatibility mode.
JVM info: Eclipse Adoptium - 17.0.8.1 - 17.0.8.1+1
java.net.preferIPv4Stack=true
Current Time: 19/11/2023 18:24:14
Host: … [51.79.83.165]
Host: … [51.79.83.165]
Host: … [13.107.246.60, 13.107.213.60]
Host: … [13.107.246.60, 13.107.213.60]
Host: … [13.107.246.60, 13.107.213.60]
Host: … [18.66.218.122, 18.66.218.108, 18.66.218.34, 18.66.218.18]
Found java version 17.0.8.1
Exception in thread “main”
java.awt.HeadlessException:
No X11 DISPLAY variable was set,
but this program performed an operation which requires it.
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:166)
at java.desktop/java.awt.Window.(Window.java:553)
at java.desktop/java.awt.Frame.(Frame.java:428)
at java.desktop/java.awt.Frame.(Frame.java:393)
at java.desktop/javax.swing.SwingUtilities$SharedOwnerFrame.(SwingUtilities.java:1919)
at java.desktop/javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1995)
at java.desktop/javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1695)
at java.desktop/javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:874)
at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:676)
at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:647)
at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:191)
at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:161)
[18:24:16] [Logger:admin Warning] : Server failed to start 1/5 times…
[18:24:16] [Logger:admin Warning] : Server stopped within 5 seconds of starting, AMP will not attempt to restart it.
[18:24:25] [API:admin Activity] : Starting the application.
[18:24:25] [Logger:admin Warning] : No version metadata exists for release
[18:24:25] [Minecraft:admin Warning] : Couldn’t determine URL to fetch update from.
[19:08:44] [Logger:admin Activity] : Changing setting MinecraftModule.JavaSettings.JavaVersion to /usr/lib/jvm/temurin-18-jdk-amd64/bin/java
[19:08:47] [API:admin Activity] : Starting the application.
[19:08:47] [Logger:admin Warning] : No version metadata exists for release
[19:08:47] [Minecraft:admin Warning] : Couldn’t determine URL to fetch update from.

Thats the log without the Installation…
Yes the Jar was left to Autoselect, as no server.jar is created. Theres only the forge-installer.jar

Delete the libraries folder, then hit Download/Update under Server Settings.
See if that kicks things over

no unfortunetly that didn’t change anything either.
The installer gets downloaded again but I get the same error when trying to start

I see the X11 DISPLAY error is showing up, so it may be worth re-creating the server in a new instance. Just with the same server settings and such.
Test plain Forge first to see if everything is working smooth, then import the pack