Bukkit #766 crashes the server and corrupts files

Discussion in 'Bukkit Help' started by Motsols, May 15, 2011.

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

    Motsols

    Hello,

    When I start a server with only the standard minecraft_server.jar it works fine and players can connect.
    Howerver, when I add Bukkit (without any plugins) no one can log in any more getting the error "internal exception: java.net.Socket TimedOutException: Read timed out". When I then use remote desktop to the server It fails to connect. When I go to my physical server it's not working and I have to reboot it.

    When I start with Bukkit again it gives me these error messages:
    Code:
    C:\[...]\minecraft>java -Xms1024M -Xmx1024M -jar craftb
    ukkit.jar
    [Lnet.minecraft.server.Statistic;@c4aad3
    146 recipes
    [Lnet.minecraft.server.Statistic;@c4aad3
    16 achievements
    03:31:22 [INFO] Starting minecraft server version Beta 1.5_02
    03:31:22 [INFO] Loading properties
    03:31:22 [INFO] Starting Minecraft server on *:25565
    03:31:22 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-729-
    g5ee3f0f-b766jnks (MC: 1.5_02)
    03:31:23 [INFO] Preparing level "world"
    03:31:23 [SEVERE] java.io.IOException: Not in GZIP format
    03:31:23 [SEVERE]    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    03:31:23 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    03:31:23 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    03:31:23 [SEVERE]    at net.minecraft.server.CompressedStreamTools.a(SourceFile:8)
    03:31:23 [SEVERE]    at net.minecraft.server.WorldLoader.b(SourceFile:54)
    03:31:23 [SEVERE]    at net.minecraft.server.WorldLoaderServer.isConvertable(SourceFile:84)
    03:31:23 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:157)
    03:31:23 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    03:31:23 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    03:31:23 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    03:31:23 [SEVERE] java.io.IOException: Not in GZIP format
    03:31:23 [SEVERE]    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    03:31:24 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    03:31:24 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    03:31:24 [SEVERE]    at net.minecraft.server.CompressedStreamTools.a(SourceFile:8)
    03:31:24 [SEVERE]    at net.minecraft.server.WorldLoader.b(SourceFile:65)
    03:31:24 [SEVERE]    at net.minecraft.server.WorldLoaderServer.isConvertable(SourceFile:84)
    03:31:25 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:157)
    03:31:25 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    03:31:25 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    03:31:25 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    03:31:25 [INFO] Preparing start region
    03:31:26 [SEVERE] java.io.IOException: Not in GZIP format
    03:31:26 [SEVERE]    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    03:31:26 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    03:31:26 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    03:31:26 [SEVERE]    at net.minecraft.server.CompressedStreamTools.a(SourceFile:8)
    03:31:26 [SEVERE]    at net.minecraft.server.PlayerNBTManager.c(SourceFile:92)
    03:31:27 [SEVERE]    at net.minecraft.server.World.<init>(World.java:77)
    03:31:27 [SEVERE]    at net.minecraft.server.WorldServer.<init>(WorldServer.java:22)
    03:31:27 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:165)
    03:31:27 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    03:31:27 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    03:31:28 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    03:31:28 [SEVERE] java.io.IOException: Not in GZIP format
    03:31:28 [SEVERE]    at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
    03:31:28 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    03:31:28 [SEVERE]    at java.util.zip.GZIPInputStream.<init>(Unknown Source)
    03:31:29 [SEVERE]    at net.minecraft.server.CompressedStreamTools.a(SourceFile:8)
    03:31:29 [SEVERE]    at net.minecraft.server.PlayerNBTManager.c(SourceFile:104)
    03:31:29 [SEVERE]    at net.minecraft.server.World.<init>(World.java:77)
    03:31:29 [SEVERE]    at net.minecraft.server.WorldServer.<init>(WorldServer.java:22)
    03:31:29 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:165)
    03:31:30 [SEVERE]    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    03:31:30 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    03:31:30 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    03:31:31 [INFO] Preparing spawn area: 8%
    03:31:33 [INFO] Preparing spawn area: 16%
    03:31:34 [INFO] Preparing spawn area: 57%
    03:31:34 [INFO] Done (1,165s)! For help, type "help" or "?"
    
    Then when a player tries to join this happens:
    Code:
    03:31:43 [WARNING] Time ran backwards! Did the system time change?
    03:31:47 [INFO] playeeeer [/94.254.45.170:61589] logged in with entity id 234
    03:31:48 [SEVERE] java.net.SocketException: Connection reset by peer: socketwrite error
    03:31:48 [SEVERE]    at java.net.SocketOutputStream.socketWrite0(Native Method)
    03:31:49 [SEVERE]    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    03:31:49 [SEVERE]    at java.net.SocketOutputStream.write(Unknown Source)
    03:31:49 [INFO] Connection reset
    03:31:49 [SEVERE]    at java.io.DataOutputStream.writeByte(Unknown Source)
    03:31:49 [SEVERE]    at net.minecraft.server.Packet31RelEntityMove.a(SourceFile:64)
    03:31:49 [SEVERE]    at net.minecraft.server.Packet.a(Packet.java:121)
    03:31:50 [SEVERE]    at net.minecraft.server.NetworkManager.e(NetworkManager.java:96)
    03:31:50 [SEVERE]    at net.minecraft.server.NetworkManager.d(NetworkManager.java:231)
    03:31:50 [SEVERE]    at net.minecraft.server.NetworkWriterThread.run(SourceFile:90)
    03:31:50 [INFO] playeeeer lost connection: disconnect.endOfStream
    03:31:51 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    >
    After the first player has tried to join the server is not findable by other players.


    After rebooting, I remove Bukkit and start the game with only the standard minecraft_server.jar file that I began with originally, only to get this error message
    Code:
    [INFO] Starting minecraft server version Beta 1.5_02
    [INFO] Loading properties
    [INFO] Starting Minecraft server on *:25565
    [INFO] Preparing level "mcRPG"
    [INFO] Preparing start region
    [SEVERE] Unexpected exception
    java.lang.NullPointerException
        at dg.c(SourceFile:72)
        at da.a(SourceFile:1767)
        at gr.d(SourceFile:468)
        at gn.c(SourceFile:66)
        at gn.b(SourceFile:87)
        at da.c(SourceFile:319)
        at da.a(SourceFile:276)
        at da.e(SourceFile:280)
        at da.a(SourceFile:218)
        at nn.a(SourceFile:51)
        at da.c(SourceFile:193)
        at da.<init>(SourceFile:171)
        at dg.<init>(SourceFile:25)
        at net.minecraft.server.MinecraftServer.a(SourceFile:195)
        at net.minecraft.server.MinecraftServer.c(SourceFile:160)
        at net.minecraft.server.MinecraftServer.run(SourceFile:263)
        at bj.run(SourceFile:394)
    
    When deleting all files except for my startup script, server.properties and my world folder and adding a newly downloaded minecraft_server.jar file it works again.

    My server is old and I don't know what components it has, but here's what I do know:
    Processor: AMD 2.0GHz single core
    RAM: 4x512MB
    OS: Windows XP SP3 x86
    User: Administrator level, had limited at first so tried it at admin, but still the same.
    Java version: 1.6.0_25
    Craftbukkit version: Recommended build #766, tried with #740 too but same thing there.
    Allocated Minecraft ram: 1024MB
    No plugins at all, just vanilla server, and then bukkit w/o plugins.


    I have been as clear and structured as possible, but if there's something you don't understand or need more info I'll do what I can.

    Any ideas on what could be the cause of this?
     
  2. Offline

    pomo4ka

    You changed craftbukkit.jar, and then archived with winrar?
     
  3. Offline

    ichingpow

    Install ubuntu...and use a new map file.
     
  4. Offline

    Motsols

    When I downloaded craftbukkit, I changed the name to crafbukkit.jar since it's shorter, and no, I did not archive it with winrar.

    I had Ubuntu on the server earlier but I prefer XP. I'd rather not throw away the map I've got already.

    Any more tips or help?
     
  5. Offline

    Treboran

    Wow. Bukkit should not be able to take out your OS....to be honest, it "feels" more like you might have some hardware problems.

    I'm a fan of hosting using Ubuntu myself, since the Minecraft stuff can run as a non-privileged user. And you don't have to lose your map, just copy the world folder to a USB stick or CD and then restore it once you put Linux on the machine.

    That being said, try running a memory tester and also try doing a disk scan with full check options....to try and eliminate those possibilities.
     
  6. Offline

    Motsols

    I doubt it's a hardware error because before I reinstalled it to XP it had Ubuntu with a working server on it. Now I installed XP and used a much newer bukkit build and got these problems.

    I tested if it had anything to do with my world by creating a new folder with only minecraft_server.jar and craftbukkit.jar in it, with the same result, now I can't access my server neither through the game or remote desktop.

    Do you have a good memory testing program that you can recommend?
     
  7. Offline

    TBK

  8. Offline

    Treboran

    I sure do. Download the System Rescue CD and use Memtest that's included. System Rescue is also great for fixing problems, it's a special Linux distro but it can also be used for problems with Windows based machines. (you can access the NTFS filesystem without any security involved and modify files that trojans or viruses might be preventing you from changing while in Windows, for instance)

    http://www.sysresccd.org/Main_Page
     
  9. Offline

    ichingpow

    Windows isn't a server OS. Period.
     
  10. Offline

    AgentKid

    I also don't think that Bukkit would be able to take out the entire server unless it ate up all the memory on the server. What startup script are you using? If the server did crash mid-save, though, it probably got corrupted. Do what @TBK says and use Chunkster to fix the map.

    Agreed.
     
  11. Offline

    TnT

    Honestly, I've seen countless problems on Windows OSes - XP/Vista/7/2003/2008 when running Minecraft/Bukkit. I'm not saying that as a slight against Windows - this is from experience on these forums I say that.

    While you may find a fix, you'll be much better off running Ubuntu, CentOS, or really, any Linux/Unix OS.

    As for your world, restore from backups and run it on Linux - it did get corrupt. As for your OS going out - that's not Bukkit doing that specifically - its something with Java and Windows. These issues cannot be reproduced on Linux - and while the team has put up a Windows server for testing, its damn hard to track these errors down to fix them - as they seem to be at the OS/Java level.
     
  12. Offline

    TBK

    As you say the problem isn't Windows, but Java on Windows (Java 7 is better, and it is still in beta) :(
    So the only guys to blame are Oracle.
     
  13. Offline

    TnT

    Blame whomever you want. Try to downgrade to Java 1.6.0_20, which is when Sun still ran it, see if its better. I blame both Microsoft and Sun/Oracle.
     
Thread Status:
Not open for further replies.

Share This Page