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

522 when downloading spigot jar #3200

Open
nhavens opened this issue Dec 22, 2024 · 4 comments
Open

522 when downloading spigot jar #3200

nhavens opened this issue Dec 22, 2024 · 4 comments

Comments

@nhavens
Copy link

nhavens commented Dec 22, 2024

I've attempted to install Minecraft using the wonderful itzg minecraft helm chart. My eventual goal is to use world data from a Spigot Minecraft server that ran outside of kubernetes. I have the following in my values.yaml:

minecraftServer:
  eula: "TRUE"
  type: "SPIGOT"

Unfortunately, my Minecraft pod has been in CrashLoopBackOff status for > 12 hours. In pod logs, I see that it's failing to download the spigot jar.

[init] Running as uid=1000 gid=3000 with /data as 'drwxrwsr-x 5 1000 2000 4096 Dec 22 15:37 /data'
[init] Resolving type given SPIGOT
[init] Downloading Spigot from https://download.getbukkit.org/spigot/spigot-1.21.jar ...
curl: (22) The requested URL returned error: 522

ERROR: failed to download from https://download.getbukkit.org/spigot/spigot-1.21.jar
       Visit https://getbukkit.org/download/spigot to lookup the
       exact version or see if download site is unavailable.
       Click into the version entry to find the **exact** version.

rm: cannot remove 'spigot_server-1.21.jar.1': No such file or directory

Is this a common occurrence for the default Spigot download source? Can anyone suggest an alternate download source that's more reliable?

@nhavens
Copy link
Author

nhavens commented Dec 22, 2024

I've also tried setting the BUILD_FROM_SOURCE environment variable to "true". While that makes some progress, it eventually fails for lack of a java compiler in the container image. I can post the exact error message later today if that would be helpful.

@itzg
Copy link
Owner

itzg commented Dec 22, 2024

A few things

@itzg itzg transferred this issue from itzg/docker-mc-backup Dec 22, 2024
@nhavens
Copy link
Author

nhavens commented Dec 22, 2024

Thanks for the speedy response! Sorry about posting the issue against the wrong repo 😊 Thanks for moving it to the right place.

We're up and running with Paper. I'm not sure whether it'd be better to just close this issue or to request that the docs be updated to list Paper a recommended alernative to Spigot. Alternatively, in the itzg minecraft helm chart, you could do the following to get type: "SPIGOT" working:

  • set the env var BUILD_FROM_SOURCE to "true"
  • enable the startupProbe (to allow time for compilation)
  • set the image tag to java21-jdk

@itzg
Copy link
Owner

itzg commented Dec 22, 2024

Yeah, I might at least add an info box at the top of the Spigot/Bukkit page recommending Paper instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants