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

Failed to download Paper 1.16 ????

Open Elrondo46 opened this issue 6 years ago • 18 comments

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)

Elrondo46 avatar Jun 23 '20 20:06 Elrondo46

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.

peace-blaster avatar Jun 23 '20 20:06 peace-blaster

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 avatar Jun 23 '20 22:06 itzg

@itzg Paper's Jenkins instance seems to have an API however I don't know about the others.

ckiee avatar Jun 23 '20 23:06 ckiee

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 avatar Jun 24 '20 05:06 peace-blaster

@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)

ckiee avatar Jun 25 '20 10:06 ckiee

Paper 1.16.1 is out now so someone should probably rename this issue to reflect fixing it for future versions. (@itzg ?)

ckiee avatar Jun 28 '20 17:06 ckiee

It sounds like the issue can be simply closed. BTW, I’m not sure what there is to fix for future versions.

itzg avatar Jun 28 '20 23:06 itzg

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

ckiee avatar Jun 30 '20 13:06 ckiee

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

Arunscape avatar Aug 19 '20 04:08 Arunscape

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.

itzg avatar Aug 19 '20 17:08 itzg

...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.

itzg avatar Aug 19 '20 17:08 itzg

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).

james-d-elliott avatar Aug 19 '20 21:08 james-d-elliott

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.

itzg avatar Aug 26 '20 02:08 itzg

Latest image now improves the logic to fallback to latest available PaperMC version when VERSION=LATEST is used.

itzg avatar Aug 26 '20 02:08 itzg

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

yllekz avatar Sep 10 '20 21:09 yllekz

Hmm, now's my chance to test and re-fix that logic.

itzg avatar Sep 10 '20 22:09 itzg

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.

itzg avatar Sep 11 '20 02:09 itzg

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.

yllekz avatar Sep 11 '20 15:09 yllekz