Player joining causes server to go offline

Discussion in 'Spigot Help' started by UltraKart, Apr 15, 2021.

  1. I'm running into an issue where players logging in will get an error saying that authentication servers are down. It's been happening for the past couple days, and I can manually ping authserver.mojang.com, so clearly not?

    As a test, I had my server continually ping google.com. When a player tries to join, the ping test hangs.

    It seems like the server is being disconnected from the internet entirely. I'm not sure if this is a Spigot issue or something else.
     
  2. What host are you using? also do you have a list of plugins?
     
  3. I'm hosting on my own hardware. And have Veinminer and Dynmap installed but for the sake of troubleshooting those are disabled.
     
  4. Do you get any errors in console when a player tries to join and have you ensured that you have opened all the ports needed for your server? :)
     
  5. The right ports are open. This is only a recent problem, and after repeated login attempts players are able to get in.
    Failed attempts look like this in the console:
    Code (Text):
    [01:06:29] [User Authenticator #2/INFO]: Disconnecting [email protected][id=<null>,name=UltraKart,properties={},legacy=false] (/98.169.216.64:52679): Authentication servers are down. Please try again later, sorry!
    [01:06:29] [User Authenticator #2/ERROR]: Couldn't verify username because servers are unavailable
     
  6. are you running the most recent version of spigot for your server?
     
  7. Yes, I ran buildtools earlier this week to make sure.
     
  8. I think I had run into a such issue in the past on my dedicated server. It was the JVM dns cache or something like that.

    Basically I restarted my dedicated server and it fixed the problem.
     
  9. I've rebooted many times and the problem persists.
    I'll try to clear the dns cache and see what happens.
     
    • Like Like x 1
  10. I mean, could we get the exact thing you get in console when a player try to join ?

    Also it would be interesting to have your plugin list and your timings.

    Are you using the latest version of spigot for your game version ?
     
  11. I tried to login just now and still get the same error.
    Code (Text):
    [09:38:52] [User Authenticator #2/INFO]: Disconnecting [email protected][id=<null>,name=UltraKart,properties={},legacy=false] (/98.169.216.64:50428): Authentication servers are down. Please try again later, sorry!
    [09:38:52] [User Authenticator #2/ERROR]: Couldn't verify username because servers are unavailable
    [09:38:52] [Server thread/INFO]: [email protected][id=<null>,name=UltraKart,properties={},legacy=false] (/98.169.216.64:50428) lost connection: Authentication servers are down. Please try again later, sorry!
    It took me a few attempts to successfully login. I tried to run a timings test but /timings paste failed and gave me this error.

    Code (Text):
    java.net.UnknownHostException: timings.spigotmc.org
            at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[?:1.8.0_282]
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_282]
            at java.net.Socket.connect(Socket.java:607) ~[?:1.8.0_282]
            at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:284) ~[?:1.8.0_282]
            at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173) ~[?:1.8.0_282]
            at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[?:1.8.0_282]
            at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[?:1.8.0_282]
            at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[?:1.8.0_282]
            at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264) ~[?:1.8.0_282]
            at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367) ~[?:1.8.0_282]
            at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) ~[?:1.8.0_282]
            at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) ~[?:1.8.0_282]
            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) ~[?:1.8.0_282]
            at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) ~[?:1.8.0_282]
            at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1340) ~[?:1.8.0_282]
            at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1315) ~[?:1.8.0_282]
            at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:264) ~[?:1.8.0_282]
            at org.bukkit.command.defaults.TimingsCommand$PasteThread.run(TimingsCommand.java:234) [spigot-1.16.5.jar:3036-Spigot-a25e8ed-c85efa8]
    A few minutes later I tried /timings paste again and got this.
    https://www.spigotmc.org/go/timings?url=woyicemozi

    I had Veinminer and Dynmap installed, but for now I have them disabled.

    I ran buildtools earlier this week to make sure I had the latest spigot. Ran it again just now but this time with --compile craftbukkit to see what would happen. Will report back if there any changes in behavior.
     
  12. The fact that your server was unable to resolve the host timings.spigotmc.org definitely show that there is a serious issue about the server resolving ANY hostname. What about contacting the company that hosts your server ?
     
  13. As I said earlier, I host on my own hardware.
    So it seems the problem is more fundamental than spigot after all. Welp.
     
  14. Do you still need help? Also this doesnt seem to be a spigot problem. more along the lines of a Hosting issue maybe?
     
  15. The problem hasn't gone away, but it seems like the problem runs deeper than spigot.
    I wasn't sure at first because it seemed like spigot was causing the connection to cut out but nope, the connection dies randomly anyway.
    Should I remake this thread elsewhere?