Skip to content

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

@yisharsr

Description

@yisharsr

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions