Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start spigot for 1.19.* because JDK url is wrong #73

Open
yisharsr opened this issue Aug 9, 2024 · 1 comment
Open

Failed to start spigot for 1.19.* because JDK url is wrong #73

yisharsr opened this issue Aug 9, 2024 · 1 comment

Comments

@yisharsr
Copy link

yisharsr commented Aug 9, 2024

When starting the server for spigot 1.19.3 (and any other 1.19 i suspect) it fails to launch with error

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

After tracking it down, the reason is JDK download URL in /usr/local/bin/set_java_ver is wrong.

When downloading Java 18 (the expected version for 1.19), the script is trying to download from
https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.1%2B10/OpenJDK18U-jdk_x64_linux_hotspot_18.0.2.1_1.tar.gz which doesn't exist, as it is trying to download version 18.0.2 from the release tag for 18.0.1.

The correct url should be either
https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.1%2B10/OpenJDK18U-jdk_x64_linux_hotspot_18.0.1_10.tar.gz [tested and working]
or
https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jdk_x64_linux_hotspot_18.0.2.1_1.tar.gz [not tested]

@yisharsr
Copy link
Author

yisharsr commented Aug 9, 2024

As a workaround I edited the file directly inside the docker container, via portainer terminal using nano /usr/local/bin/set_java_ver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant