Failed to download Paper 1.16 ????
I'm sure you have to solve this:
[init] Resolved version given LATEST into 1.16
[init] Resolving type given PAPER
[init] Downloading Paper 1.16 (build latest) from https://papermc.io/api/v1/paper/1.16/latest/download ...
curl: (22) The requested URL returned error: 404
[init] ERROR: failed to download from https://papermc.io/api/v1/paper/1.16/latest/download (status=0)
I don't think paper 1.16 is out yet. It appears to be trying to fetch from https://papermc.io/api/v1/paper/1.16/<VERSION>/download regardless of version, even though the latest is https://papermc.io/api/v1/paper/1.15.2/370/download. I just put in a ticket with the same issue.
Edit: for now, you can work around it by adding '-e VERSION=1.15.2 -e PAPERBUILD=370'. Likely the scripts are all switching to 1.16 because vanilla did, and the 3rd party stuff hasn't caught up yet. You'll need a legacy Minecraft client to connect, but that seems to be the situation unless you want to run vanilla.
Yeah, I need to look again at what it’ll take to cap Paper (and friends, like Spigot) at 1.15.2 until they’re caught up.
@itzg Paper's Jenkins instance seems to have an API however I don't know about the others.
I just temporarily switched my servers back over to vanilla until this is resolved. If you have your /data folder mounted on the host OS, you can just recreate the container on top of it again and it seems to work, unless you need some sort of paper-specific functionality I'm unaware of.
According to their dev 'Z750', they don't have an ETA on paper 1.16, so it'll probably be a minute.
@peace-blaster You can just set the VERSION=1.15.2 env variable until it's fixed. (or until paper has a 1.16 build)
Paper 1.16.1 is out now so someone should probably rename this issue to reflect fixing it for future versions. (@itzg ?)
It sounds like the issue can be simply closed. BTW, I’m not sure what there is to fix for future versions.
Well like you said before, we need a way to cap paper/spigot/etc at a specific version until they update.
Edit: can probably also just pull down their git repos at docker build time and see what version they're on
recently ran into this as well. I noticed in the logs, it knows of previous versions. Maybe it can fall back to the latest version available, instead of having the container restart every 3 seconds with the same error?
[init] ERROR: 1.16.2 is not (yet) published by PaperMC
[init] Set VERSION to one of the following:
[init] 1.16.1, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13-pre7, 1.13, 1.12.2, 1.12.1, 1.12, 1.11.2, 1.10.2, 1.9.4, 1.8.8
edit: yeah this would be trivial (for paper at least)
https://github.com/itzg/docker-minecraft-server/blob/master/start-deployPaper#L16
curl -fsSL https://papermc.io/api/v1/paper 2> /dev/null | jq -r '.versions | first'
fetches the latest version available for paper
edit: yeah this would be trivial (for paper at least)
Yes, it would be trivial (and PRs are welcome BTW); however, I was hesitant to have the meaning of VERSION=LATEST differ from the primary semantic of "latest mainline/official version" to "if paper, then LATEST is actually the latest version available for Paper".
If I can get some thumbs up/down votes on that conditional behavior, then I'm good with adding the logic.
...meanwhile, please reach out to the PaperMC people and see if there's help that can be contributed to get 1.16.2 released sooner.
1.16.2 RC4 is a available via this URL. I believe they have not released it yet since stability and world corruption is still an issue even between 1.16.1 and 1.16.2 (exists in vanilla and spigot too).
FYI PaperMC 1.16.2 is now available; however, I'm still working on enhancing the "pick latest PaperMC version" logic for the next case like this.
Latest image now improves the logic to fallback to latest available PaperMC version when VERSION=LATEST is used.
FYI, I just tried using VERSION=LATEST and it tried to grab Paper 1.16.3 which doesn't appear to exist yet. I know you said you included fallback logic but it didn't seem to kick in for me. I had to plunk in 1.16.2 to get it to work
Hmm, now's my chance to test and re-fix that logic.
Paper 1.16.3 is now available so I'll have to try to reproduce the issue differently.
[02:41:52 INFO]: This server is running Paper version git-Paper-191 (MC: 1.16.3) (Implementing API version 1.16.3-R0.1-SNAPSHOT)
@yllekz BTW are you sure you have pulled the latest image? I reviewed the latest changes and it looks like it should handle it correctly.
Yeah it looks like in the time that I made the comment and today, Paper 1.16.3 came out. I might have to wait till another version variance to re-test, but yeah yesterday I was just getting "failed to download" over and over. I am 95% certain I had the latest image but you never know. I'll test again next time this comes up.