A
Admincraft7mo ago
Berk

Failed to download mojang_1.21.jar

I'm getting this error when trying to start the server after updating to paper 1.21 (#37) Oracle Free Tier container@pterodactyl~ java -version openjdk version "21.0.3" 2024-04-16 LTS OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing) container@pterodactyl~ java -Xms8G -Xmx20G -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -jar paper.jar Downloading mojang_1.21.jar Ubuntu 20.04 Oracle Free Tier. Pterodactyl panel. Deleted old files from 1.20 server and added new paper.jar (build #37) to update server to 1.21 but it gets stuck here. Failed to download mojang_1.21.jar java.net.UnknownHostException: piston-data.mojang.com at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:751) at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304) at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:181) at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:531) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:636) at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264) at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:377) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1237) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1123) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1675) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1599) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:223) at java.base/java.net.URL.openStream(URL.java:1325) at io.papermc.paperclip.DownloadContext.download(DownloadContext.java:55) at io.papermc.paperclip.Paperclip.setupClasspath(Paperclip.java:63) at io.papermc.paperclip.Paperclip.main(Paperclip.java:28) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at io.papermc.paperclip.Main.main(Main.java:26) container@pterodactyl~ Server marked as offline... [Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ---------- [Pterodactyl Daemon]: Exit code: 1 [Pterodactyl Daemon]: Out of memory: false [Pterodactyl Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.
4 Replies
Admincraft Meta
Admincraft Meta7mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by tberq#0
hjk321
hjk3217mo ago
Failed to download mojang_1.21.jar
java.net.UnknownHostException: piston-data.mojang.com
Failed to download mojang_1.21.jar
java.net.UnknownHostException: piston-data.mojang.com
Usually means a temporary internet issue, mojang been having issues lately. Have you tried again today? Alternatively, if you're able to download mojang_1.21.jar on your computer but not on the oracle, you can upload that jar into the cache folder and paper won't try to download it because it's already there.
Berk
BerkOP7mo ago
I was going to do this but wasn't sure if that would work. Thanks. I think it was an issue on mojang's end because it downloaded now.
hjk321
hjk3217mo ago
Yeah, they've been having problems for like 2 weeks now

Did you find this page helpful?