Read Timed Out

Discussion in 'Bukkit Help' started by MGNick, May 4, 2011.

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

    dddbliss

    This has nothing to do with minecraft.net, as it is happening when there is no problem with minecraft.net. This has been occuring very often (within an hour) on my bukkit, the latest rb 1000. This wasn't happening previously. Something has to give here, I am surprised there has been no clear definition of what is causing it.
     
  2. Offline

    vlado2portos

    Yes scratch the minecraft.net theory, might have been just coincident... version git-Bukkit-0.0.0-947-g9dc3fea-b1024jnks is holding for now, I'm going to sleep and hopes that it will be up when I wake up :)
     
  3. Offline

    Kainzo

    1. "Server thread" prio=10 tid=0x00002aaab80e6800 nid=0x15de runnable [0x0000000043c87000]
    2. java.lang.Thread.State: RUNNABLE
    3. at java.util.HashMap.put(HashMap.java:401)
    4. at java.util.HashSet.add(HashSet.java:217)
    5. at com.nijiko.permissions.PermissionCache.cacheResult(PermissionCache.java:22)
    6. at com.nijiko.permissions.Entry.cache(Entry.java:255)
    7. at com.nijiko.permissions.Entry.has(Entry.java:243)
    8. at com.nijiko.permissions.Entry.has(Entry.java:229)
    9. at com.nijiko.permissions.Entry.hasPermission(Entry.java:195)
    10. at com.nijiko.permissions.ModularControl.permission(ModularControl.java:269)
    11. at com.nijiko.permissions.ModularControl.permission(ModularControl.java:256)
    12. at com.nijiko.permissions.ModularControl.has(ModularControl.java:249)
    13. at com.ChaseHQ.Statistician.StatisticianPlugin.permissionToRecordStat(StatisticianPlugin.java:156)
    14. at com.ChaseHQ.Statistician.EventDataHandlers.EDHPlayer.PlayerMove(EDHPlayer.java:106)
    15. at com.ChaseHQ.Statistician.Listeners.StatisticianPlayerListener.onPlayerMove(StatisticianPlayerListener.java:48)
    16. at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
    17. at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    18. at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    19. - locked <0x000000077c7efc40> (a org.bukkit.plugin.SimplePluginManager)
    20. at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
    21. at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    22. at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    23. at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    24. at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    25. at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    26. at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    27. at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)


      Sounds like A permissions issue.
     
  4. Offline

    harley032707

    try updating the craftbukkit it should fix the problem
     
  5. Offline

    vlado2portos

    so far so good with 1024 build, survived night
     
  6. Offline

    GmK

    One thing I have found, and others have 'confirmed' on #bukkit to also seem to have worked: Reduce the amount of GCs you run! The more heavy you GC, the more likely you get time outs.

    Do not ask me why that is - I went from 4-5 Read Time Outs with some very very heavy GC setting to no timeouts with only a Concmark Sweep.

    No guarantees - but something you can test!
     
  7. Offline

    vlado2portos

    latest report from me: still going with no time out with 1024 build longest so far
     
  8. Offline

    Mhalkyer

    I ran two more stack traces and one of the few similarities was the Permissions caching. I've posted on the Permissions thread and I'm waiting for @rcjrrjcr to respond.

    @GmK To clarify I'm running cb1000 and tried the concmark sweep.
     
  9. Offline

    vlado2portos

    well 1024 just just timed out :( I'm starting to give up... I will try to run normal minecraft server and new map just to see if it is beacause of server ( it wasn't doing it before ) or because of craftbukkit.. :((
     
  10. Offline

    GmK

    @Kainzo

    Because you asked - mine doesnt seem to relate to Permissions:

    Show Spoiler

    Code:
    Java stack information for the threads listed above:
    ===================================================
    "Timer-5":
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000006e0373b48> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
        at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:214)
        at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.cancelTasks(CraftScheduler.java:294)
        at net.erbros.PvPTime.PvPTime.checkTimeClock(PvPTime.java:146)
        at net.erbros.PvPTime.PlayerEventListener.onPlayerCommandPreprocess(PlayerEventListener.java:15)
        at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:272)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        - locked <0x00000006e029bfd8> (a org.bukkit.plugin.SimplePluginManager)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:706)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
        at org.bukkit.craftbukkit.entity.CraftPlayer.chat(CraftPlayer.java:148)
        at com.beecub.bCoolDown.bWarmUpTimer.run(bWarmUpTimer.java:29)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
    "Server thread":
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:333)
        - waiting to lock <0x00000006e029bfd8> (a org.bukkit.plugin.SimplePluginManager)
        at net.minecraft.server.World.k(World.java:445)
        at net.minecraft.server.World.applyPhysics(World.java:432)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:453)
        at net.minecraft.server.World.applyPhysics(World.java:428)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:453)
        at net.minecraft.server.World.applyPhysics(World.java:433)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:453)
        at net.minecraft.server.World.applyPhysics(World.java:433)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:453)
        at net.minecraft.server.World.applyPhysics(World.java:428)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:453)
        at net.minecraft.server.World.applyPhysics(World.java:428)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:453)
        at net.minecraft.server.World.applyPhysics(World.java:428)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:453)
        at net.minecraft.server.World.applyPhysics(World.java:428)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:453)
        at net.minecraft.server.World.applyPhysics(World.java:433)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:453)
        at net.minecraft.server.World.applyPhysics(World.java:433)
        at net.minecraft.server.World.update(World.java:401)
        at net.minecraft.server.World.setData(World.java:343)
        at org.bukkit.craftbukkit.block.CraftBlock.setData(CraftBlock.java:62)
        at com.sk89q.craftbook.ic.ICUtil.setState(ICUtil.java:52)
        at com.sk89q.craftbook.ic.families.FamilySISO$ChipStateSISO.set(FamilySISO.java:82)
        at com.sk89q.craftbook.ic.families.FamilySISO$ChipStateSISO.setOutput(FamilySISO.java:120)
        at com.sk89q.craftbook.gates.logic.Clock.think(Clock.java:74)
        at com.sk89q.craftbook.ic.SelfTriggeredICMechanic.think(SelfTriggeredICMechanic.java:48)
        at com.sk89q.craftbook.MechanicManager.think(MechanicManager.java:446)
        at com.sk89q.craftbook.bukkit.MechanicClock.run(MechanicClock.java:33)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Found 1 deadlock.


    Whole Pastebin: http://pastebin.com/RqkhSnXM
     
  11. Offline

    Kainzo

    Looks like the scheduler, some kind of IC or PVPtime toggles - causing that.. what plugin for IC are you using?
     
  12. Offline

    GmK

    For ICs we use Craftbook, for the PvP we use PvPTime - I for now disabled PvPTime and the bcooldown thing,both from the first part of the stack, and if that doesnt work will disable CraftBook.

    Let's see....
     
  13. Offline

    Kainzo

    We were using bcooldown - it caused a few time outs so I yanked it. Unsure if that could be it, but its probably not running threadsafe.
     
  14. Offline

    Mhalkyer

    @Kainzo

    I -FINALLY- fixed the "Read Timed Out" issues. It was the Permissions 3.x plugin. I rebuilt it with 'fair mode' and it's been running all night at around 1GB with no memory leaks. Here's a link to the thread post with more details and a download link (if you all want to try):

    http://forums.bukkit.org/threads/ad...in-of-tomorrow-935.18430/page-190#post-496631

    Note: I haven't had -any- permission problems or "Read Timed Out" issues since updating.
     
  15. Offline

    Kainzo

    With fair mode? whats that? hmm I see. http://dl.dropbox.com/u/20948609/Permissions_custom.jar
     
  16. Offline

    GmK

    Thanks for this - I'll try it as well!
     
  17. Offline

    Retricide

    I've got to agree, for my situation at least. I switched to PermissionsEx two weeks ago, and haven't had the error since (I used to get it every other day, at the longest interval). PermissionsEx is working out really well, and it's got some nice built-in commands and storage backends. It was also very easy to convert to it's format.
    It seems to be working for me, at the least.
     
  18. Offline

    vlado2portos

    interesting I will trey this as well
     
  19. Offline

    bob3695

    Hey guys,

    I am having a very similar issue. For those of you that are suggesting that it is Permissions, I switched away from Permissions 3.x in favor Bukkits built in permissions. Any one having issues with those permissions?

     
  20. Offline

    Trollkemada

  21. Offline

    vlado2portos

    For me was the solution to turn of falsebook IC and minecart mania...

    Server is now running 3 days without error using this plugins:

    DispenserButton, CreeperHeal, DreamLand, Essentials, BukkitSpeak, Jail, Permissions, DeathTpPlus, FalseBookBlock, WaterproofRedstone, SupernaturalPlayers, CraftBukkitUpToDate, WorldGuard, FalseBookExtra, Tombstone, War, Landmarks, DropClear, FalseBookCore, IgnoreLogger, iChat, WorldEdit, EssentialsSpawn, creaturebox, dynmap, LogBlock, WormholeXTreme
     
  22. Offline

    panade

    ehm... ^^ toght cool maybe a permissions fix i tried it the server spammed errors then the WHOLE server crashed (a vps) and now if i watch in my admin terminal to reboot it says unknown hardware error so maintenance... ehm... XD

    i tested it a while now (btw hoster had an ram dmg but i dont think its from my server on a virtual machine XD) and it realy solves the read time out... but it spamms java errors and freezes and it generaly freezes now on restart...????

    so i have to choose now between freeze and crash XD
     
  23. Offline

    Raelizer

    yeah i started getting this problem once i installed permissions.
     
  24. Offline

    Noppoly

    I'm getting this, but it seems to happen even when I run the vanilla server software from Minecraft.net.
     
  25. Offline

    Bookkc1

    Last edited by a moderator: May 15, 2016
  26. Offline

    phaed

    I found that DeathTPPlus starts off fine and after a few minutes its CPU usage skyrockets. I removed this and my server feels like new.
     
  27. Offline

    Moo Master

    Even on 1060 i still get the Time out errors, and i've recreated it on 2 servers with different plugin sets.
     
  28. Offline

    maxij

    Yeah, i have this problem. It's VERY irritating when you're not monitoring the server 24/7...:'(
     
    THG3 and Moo Master like this.
  29. Offline

    xGcoinx

    Same problem here....
     
  30. Offline

    NeO_Anderson

    So I'm starting to think this is a bukkit bug and not a plugin bug.. because. This issue only started happening around the 1000# build for me, now and then i'd get the server crashing for lack of memory but thats entirely different.

    This issue seems to be pretty constant. I have now remoevd pretty much all my plugins except the main ones, like WE, WG, LWC e.t.c

    Testing to see if it crashes still but I think this could be bukkit itself...

    Or maybe one of these big plugins are actually to blame? If this is the case, what will do we.. can't remvoe worldguard unless we want griefers :S
     
    THG3 likes this.
Thread Status:
Not open for further replies.

Share This Page