ME1312 / SubServers-2

SubServers – The Minecraft Server Management Platform
Apache License 2.0
91 stars 23 forks source link

Unable to create Paper server #71

Closed morgan2233 closed 2 years ago

morgan2233 commented 2 years ago

Platform Information

SubServers.Bungee v2.18a (21w49e)

What Happened

[01:13:53] [INFO]: empires/Creator > Loading Template: Paper
[01:13:53] [INFO]: empires/Creator > Launching Build Script...
[01:13:53] [INFO]: empires/Creator > Downloading Paper...
[01:13:53] [INFO]: empires/Creator > --2021-12-06 01:13:53--  https://papermc.io/api/v1/paper/1.17.1/latest/download
[01:13:53] [INFO]: empires/Creator > Resolving papermc.io (papermc.io)... 172.67.72.198, 104.26.13.138, 104.26.12.138, ...
[01:13:53] [INFO]: empires/Creator > Connecting to papermc.io (papermc.io)|172.67.72.198|:443... connected.
[01:13:53] [INFO]: empires/Creator > HTTP request sent, awaiting response... 200 OK
[01:13:53] [INFO]: empires/Creator > Length: 1548 (1.5K) [application/octet-stream]
[01:13:53] [INFO]: empires/Creator > Saving to: ‘Paper.jar’
[01:13:53] [INFO]: empires/Creator > 
[01:13:53] [INFO]: empires/Creator >      0K .                                                     100% 33.2M=0s
[01:13:53] [INFO]: empires/Creator > 
[01:13:53] [INFO]: empires/Creator > 2021-12-06 01:13:53 (33.2 MB/s) - ‘Paper.jar’ saved [1548/1548]
[01:13:53] [INFO]: empires/Creator > 
[01:13:53] [ERROR]: empires/Creator > Received invalid jarfile when requesting Paper version 1.17.1:
[01:13:53] [ERROR]: empires/Creator > PK
[01:13:53] [ERROR]: empires/Creator > Couldn't build the server jar. Check the SubCreator logs for more detail.

How It Happened

Tried to create server using default paper template

ME1312 commented 2 years ago

Yes, this issue is going to be formally addressed in the release notes for the upcoming version. Given that I already have those prepared, I'll let this part be known early.

An Old Template Is Retiring...

It is with a heavy heart that we are forced to say goodbye to Paper's v1 download API... and the default template that was built upon it. For those who don't know, this deprecated API of theirs has stopped working recently — and what was to replace it?

Nothing. Literally nothing.

Apparently, the developers over at PaperMC don't want you to update to the latest builds of their software, as v2 of the download API was designed to specifically discourage this behavior (mirror). Despite how ridiculous that stance is, v2 has remained this way for its entire existence.

So, unless they suddenly have a change of heart, support for the default template Paper is being formally discontinued. Users of this template who follow new Minecraft releases are encouraged to migrate over to the new Purpur template given that it exists downstream from Paper; and so has the same added features. Users of this template who are sticking to an older server version can make use of the custom template system to continue using their favorite Paper version.