container@pterodactyl~ java -version
openjdk version "21.0.7" 2025-04-15 LTS
OpenJDK Runtime Environment Temurin-21.0.7+6 (build 21.0.7+6-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.7+6 (build 21.0.7+6-LTS, mixed mode, sharing)
container@pterodactyl~ java -Xms128M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar
Downloading mojang_1.21.5.jar
Failed to download mojang_1.21.5.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:1252)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1138)
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:1690)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1614)
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)```
Even in I set a custom server jar, it says it fails to resolve. Possibly something with docker?
#Inside pterodactyl panel, it seems it cannot resolve downloads
21 messages · Page 1 of 1 (latest)
There were too many logs to read @limber viper. Please post 5 or less.
Failed to download mojang_1.21.5.jar
java.net.UnknownHostException: piston-data.mojang.com
Ok theres no autocomplete
@limber viper It's a DNS issue.
Pterodactyl is an open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
I'm a bit of a noob so I'm not 100% sure what I should do here. I did the command resolvectl status and it reads ```root@ubuntu ~ # resolvectl status
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
Link 2 (enp5s0)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 185.12.64.1
DNS Servers: 185.12.64.2 185.12.64.1 2a01:4ff:ff00::add:1 2a01:4ff:ff00::add:2
Link 3 (br-a3be5c52bb99)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Link 4 (docker0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Link 30 (br-9f6cb0b6f067)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Link 271 (br-167047cdf7fd)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported```
/etc/resolv.conf - nameserver 127.0.0.53 options edns0 trust-ad search .
/etc/network/interfaces - ```# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*
The loopback network interface
auto lo
iface lo inet loopback```
interface: 172.0.0.53
dns:
- 185.12.64.2
- 185.12.64.1
- 2a01:4ff:ff00::add:1
- 2a01:4ff:ff00::add:2
name: pterodactyl_nw
ispn: false
driver: bridge
network_mode: pterodactyl_nw
is_internal: false
enable_icc: true
network_mtu: 1500
interfaces:
v4:
subnet: 172.18.0.0/16
gateway: 172.18.0.1
v6:
subnet: fdba:17c8:6c94::/64
gateway: fdba:17c8:6c94::1011
domainname: ""```
i edited this but it didn't work, i changed interface and dns idk if i even was supposed to change interface
cloudflare dns should work tho so idek
.
I dont think you have to change the interface. And restart wings after you change it.
Do you know how I can find what the interface was because I changed it without backing up stupidly
172.18.0.1
ty
When I change the dns to the one that shows in resolvectl status, it gets hung at "downloading mojang_1.21.5.jar"
and if I set it to cloudflare I get java.net.UnknownHostException
thats one step forward atleast
lol true
just a wild guess. Try removing the ipv6 since its optional and maybe it hangs on it.
I've tried that, but when I do it without the ipv6 it does the java.net.UnknownHostException error