Solved Random Timed Server Crashes

Discussion in 'Bukkit Help' started by Tallcraft, May 26, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Tallcraft

    A few weeks ago, I decided to update to the new RB build (2.0).
    I started the server, everything worked fine, also after a couple of hours, no errors. But then, after a half day, people could not connect to my server anymore and were kicked as the problem appeared. It just displayed something like "Read timed out". The server itself was still running but displaying the error-message below and did not let players connect. I could just restart it, again, no errors. After a few hours, the same thing happened again.
    I downgraded to RB 1.0 again, everything was fine, I decided to wait for the new RB to fix it. But this error persists in the current RB (3.0).
    Could you help me solving this problem ?


    Here you got general information about the server and the error:

    1. What OS are you using (Brand and version - Ex. Windows XP SP3)?
    Linux Debian Squeeze

    2. What architecture is the OS you are running (x64 or x86)?
    x86_64

    3. What version and architecture is your java install? (Type: java -version in command prompt.)
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze1)
    OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)


    4. Are you running any wrappers? McMyAdmin, mcadmin, Hamachi, etc?
    No

    5. What build of CraftBukkit are you running? (do NOT say latest. Say the build number.)
    1.2.5-R3.0

    6. What command are you using to run your CraftBukkit server?
    I am using this init-script: https://github.com/Ahtenus/minecraft-init
    It starts the server with these paremeters:
    Code:
    INVOCATION="java -Xmx$MAXMEM -Xms$INITMEM -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=$CPU_COUNT -XX:+AggressiveOpts -jar $SERVICE nogui"
    7. What plugins are you running?
    LagMeter, MultiInv, PlugMan, WorldEdit, NoCheatPlus, Vault, Stargate, PermissionsEx, Multiverse-Core, ecoCreature, WorldGuard, TreeAssist, AntiGrief, InfinitePlots, AutoMessage, MessageChangerLite, ModTRS, PluginList, iConomy, GoKart, Permissions, HawkEye, CommandHelper, Honeypot, mcbans, InfiniteClaims, Essentials, ChatManager, EssentialsSpawn, Multiverse-Portals, LWC, dynmap, ChestShop, WorldBorder

    8. What error are you getting (post your server.log file)?
    Code:
    18:42:57 [SEVERE] java.lang.NullPointerException
    18:42:57 [SEVERE]      at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:63)
    18:42:57 [SEVERE]      at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    18:42:57 [SEVERE]      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    18:42:57 [SEVERE]      at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    18:42:57 [SEVERE] Unexpected exception
    java.lang.NullPointerException
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:63)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    18:43:27 [INFO] Read timed out
    18:44:30 [INFO] Read timed out
    18:44:50 [INFO] Read timed out
    9. What have you tried already?
    Downgrading to RB 1.0, server is running fine then.
    Updating to RB 3.0, problem persists.

    10. Have you tried any of the things below?
    I can not really test the server, it would take ages, because it is crashing very random, often it takes about 12 hours until crash.
    Also, testing each plugin independently would take me weeks.




    Same problem as here: http://forums.bukkit.org/threads/this-error-causes-crashes-but-what-causes-this-error.76648/
     
  2. Offline

    Tallcraft

    Can anyone help me ? Problem persists, after a few days > Crash, timeout for the players.
     
  3. Offline

    lazy_architect

    Have this exact same problem. I know it is not bukkit as I have another server running just fine with no crash on a different plugin set. I have not had time to test all the plugins but my guess is falsebook, Server has been too busy to take it down and find out.
     
  4. Offline

    Tallcraft

    I guess its not, I havent installed falsebook.
     
  5. Offline

    KevinSeabury

    I had the same problem and tested all my plugins one by one and after weeks I figured out it was just the RB. I ran my server clean of plugins and on a fresh map and it still crashed every 3 hours or so. Downgrading to the R1 fixed it. I have no idea why the latest RB is doing that.
     
  6. Offline

    Tallcraft

  7. Offline

    Lolmewn Retired Staff

    But which one.. Hmm
     
  8. Offline

    TheBeast808

    Hey I'm having the exact same issue and I have about the same story as you when it came to how it started. Check my thread here: http://forums.bukkit.org/threads/this-error-causes-crashes-but-what-causes-this-error.76648/

    After comparing my plugins with yours, I see that we only share these:
    Code:
    WorldEdit, NoCheatPlus, Vault, PermissionsEx, Multiverse-Core, WorldGuard, iConomy, Permissions, Honeypot, mcbans, ChatManager, dynmap, WorldBorder
    I'm still looking around for more admins with this issue to see if I can narrow it down further. I'll let you know if I find the source of the crash.
     
  9. Offline

    number1_Master

    You guys have to replace nogui with nojline. It says inside the forum.
     
  10. Offline

    Tallcraft

  11. Offline

    number1_Master

    I saw that your startup script wasn't changed to jline. I had that exact same error, and read time outs when I failed to do that.
    It is worth a shot.
     
  12. Offline

    Tallcraft

    Ok, thank you, I will give it a try.
     
    nunber1_Master likes this.
  13. Offline

    number1_Master

    It is ' nojline ' btw, not ' jline '.
     
  14. Offline

    Tallcraft

    I know... but the library is called jline, nojline just turns it off. I do not really know what jline is used for...
     
  15. Offline

    number1_Master

  16. Offline

    Tallcraft

  17. Offline

    number1_Master

  18. Offline

    TheBeast808

    That's not it. I'm reading the Bukkit source right now trying to figure out this problem, and the last line the NPE points to this bit of code in NetListenThread:
    Code:
      public void a()
      {
        for (int i = 0; i < this.g.size(); i++) {
          NetLoginHandler netloginhandler = (NetLoginHandler)this.loginHandlerList.get(i);
          try
          {
            netloginhandler.a();
          } catch (Exception exception) {
            netloginhandler.disconnect("Internal server error");
            a.log(Level.WARNING, "Failed to handle packet: " + exception, exception);
          }
    a() goes on, but nothing else can throw this. In particular, it points to this line:
    Code:
    netloginhandler.disconnect("Internal server error");
    After reading the source and making as much sense of the obfuscated code as I could, I believe that netloginhandler is null. That's why netloginhandler.a() throws an except, and then due to the fact that there is no try { }catch() {} around the netloginhandler.disconnet, it throws an unrecoverable NPE.

    However, I still have no damn clue how to solve this.
     
  19. Offline

    Tallcraft

    And this is caused by a plugin?
     
  20. Offline

    Cirno

    That was decompiled Bukkit code. It is true; it's causing an NPE because netloginhandler might return null.
     
  21. Offline

    TheBeast808

    It's good to hear somebody agree. This is the first time I've ever had to do this for an error, and I wasn't sure if I was just crazy or not.
     
  22. Offline

    LEOcab

    I had the same issue! I updated to one of the R3.1 devs, still same problem. Then I uninstalled Citizens because of a gut feeling and it hasn't crashed since... :eek:
     
  23. Offline

    Tallcraft

    For me its fine as well for a few days now, we will see...
     
  24. Offline

    TheBeast808

    Well, I submitted a bug report to bukkit, and so far I'm being ignored.
     
  25. Offline

    Tallcraft

  26. Offline

    TheBeast808

    Well, I submitted a full explanation on the NPE and the a walkthrough of the code that I believe is causing it. So far, evilsteph has just changed the ticket to private, but I haven't heard a word for about 36 hours.
    It IS a plugin that is causing it to be null, but bukkit should be able to handle that exception.
     
  27. Offline

    Tallcraft

    Alright, lets just wait for that, could you provide a link to the ticket?
     
  28. Offline

    TheBeast808

  29. Offline

    TheBeast808

  30. Offline

    Tallcraft

    Seems to be fixed. Thank you all, for your help!
     
Thread Status:
Not open for further replies.

Share This Page