docker-minecraft-server icon indicating copy to clipboard operation
docker-minecraft-server copied to clipboard

Error compose with spigot 1.21.9

Open pedrohstaub opened this issue 3 months ago • 6 comments

Describe the problem

I'm getting this error when running docker compose with spigot.

minecraft-server | [init] Running as uid=1000 gid=1000 with /data as 'drwxrwxrwx 1 1000 1000 4096 Oct 2 00:27 /data' minecraft-server | [init] Image info: buildtime=2025-10-01T12:30:46.599Z,version=java21,revision=b7859d7496b66a2064c4fb75c08604a735fafab6 minecraft-server | [init] Resolving type given SPIGOT minecraft-server | [init] Downloading Spigot from https://cdn.getbukkit.org/spigot/spigot-1.21.9.jar if missing ... minecraft-server | [mc-image-helper] 00:40:03.697 ERROR : 'get' command failed. Version is 1.49.0 minecraft-server | me.itzg.helpers.get.RequestFailedException: Failed to download https://cdn.getbukkit.org/spigot/spigot-1.21.9.jar: status code: 404, reason phrase: Not Found minecraft-server | at me.itzg.helpers.get.GetCommand.resolveExpectedFilename(GetCommand.java:364) minecraft-server | at me.itzg.helpers.get.GetCommand.needsDownload(GetCommand.java:329) minecraft-server | at me.itzg.helpers.get.GetCommand.processUrisForDirectory(GetCommand.java:303) minecraft-server | at me.itzg.helpers.get.GetCommand.call(GetCommand.java:198) minecraft-server | at me.itzg.helpers.get.GetCommand.call(GetCommand.java:55) minecraft-server | at picocli.CommandLine.executeUserObject(CommandLine.java:2031) minecraft-server | at picocli.CommandLine.access$1500(CommandLine.java:148) minecraft-server | at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469) minecraft-server | at picocli.CommandLine$RunLast.handle(CommandLine.java:2461) minecraft-server | at picocli.CommandLine$RunLast.handle(CommandLine.java:2423) minecraft-server | at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277) minecraft-server | at picocli.CommandLine$RunLast.execute(CommandLine.java:2425) minecraft-server | at picocli.CommandLine.execute(CommandLine.java:2174) minecraft-server | at me.itzg.helpers.McImageHelper.main(McImageHelper.java:182) minecraft-server | Caused by: org.apache.hc.client5.http.HttpResponseException: status code: 404, reason phrase: Not Found minecraft-server | at me.itzg.helpers.http.FilenameExtractor.extract(FilenameExtractor.java:75) minecraft-server | at me.itzg.helpers.http.DeriveFilenameHandler.handleResponse(DeriveFilenameHandler.java:21) minecraft-server | at me.itzg.helpers.http.DeriveFilenameHandler.handleResponse(DeriveFilenameHandler.java:10) minecraft-server | at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:247) minecraft-server | at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:188) minecraft-server | at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:162) minecraft-server | at me.itzg.helpers.get.GetCommand.resolveExpectedFilename(GetCommand.java:356) minecraft-server | ... 13 common frames omitted minecraft-server | minecraft-server | ERROR: failed to download from https://cdn.getbukkit.org/spigot/spigot-1.21.9.jar minecraft-server | Visit https://getbukkit.org/download/spigot to lookup the minecraft-server | exact version or see if download site is unavailable. minecraft-server | Click into the version entry to find the **exact** version. minecraft-server | minecraft-server exited with code 1

Looks like spigot 1.21.9 is not available yet, or its given the wrong url to download.

I've downloaded and compiled the 1.21.9, but doesn't matter because when I run docker compose it try to download from https://cdn.getbukkit.org/spigot/spigot-1.21.9.jar instead of use the local version, wich I paste inside the server files.

If I don't set VERSION: 1.21.9 it runs 1.21.8 by default.

Is there something else to be done?

Container definition

version: '3'
services:
  minecraft:
    container_name: minecraft-server
    image: itzg/minecraft-server
    restart: 'unless-stopped'
    ports:
     - '25565:25565'
     - '19132:19132/udp'
    environment:
      VERSION: '1.21.9'
      EULA: 'TRUE'
      DIFFICULTY: 'NORMAL'
      MEMORY: '4G'
      TYPE: 'SPIGOT'
    volumes:
      - "./data:/data"
    tty: true
    stdin_open: true
`


### Container logs

Paste logs here

pedrohstaub avatar Oct 02 '25 01:10 pedrohstaub

They don't have 1.21.9 there

image

I can't do anything about that.

itzg avatar Oct 02 '25 03:10 itzg

Ok, so we wait for them. Thanks.

pedrohstaub avatar Oct 02 '25 03:10 pedrohstaub

Sorry I missed part of your original description. You can also have it build from source using a jdk image tag and https://docker-minecraft-server.readthedocs.io/en/latest/types-and-platforms/server-types/bukkit-spigot/#build-from-source

itzg avatar Oct 02 '25 11:10 itzg

Sorry for the late reply, unfortunatelly doesn't work for me, tried and keep getting minecraft-server exited with code 1 (error).

:(

pedrohstaub avatar Oct 03 '25 02:10 pedrohstaub

That's it? No other logs at all. Waiting for getbukkit is only option then.

itzg avatar Oct 03 '25 12:10 itzg

Nope, just code 1. I guess we'll have to wait. Its okay, thanks for the help.

pedrohstaub avatar Oct 04 '25 02:10 pedrohstaub