Internal Exception: java.io.IOException: Error while write(...)

Discussion in 'Spigot Help' started by PirateCraft, May 8, 2015.

Thread Status:
Not open for further replies.
  1. Over the last few days I have noticed this popping up in my console with players, what does it mean? I just had one player that logs in and it does this and hes kicked straight away.
    Code (Text):
    [11:19:41] [Server thread/INFO]: peuterking lost connection: Internal Exception: java.io.IOException: Error while write(...): Connection reset by peer
     
  2. Do you get more detail in the log files?
    Connection reset by peer means your server has gotten some sort of error or a reason to send back to the player's client an RST packet, which basically means kill the connection immediately.
    This can happen if the player is using a client that sends some kind of information that the server does not expect to receive. Tt can mean many other things.
     
  3. Could you please post a full error log, with many examples of it occurring? Is it always the same exception? Do you see this happening when something has been modified, ran, installed? Thanks.
     
  4. NullBlox

    Patron

    I get pretty much same thing.

    Code (Text):
    [12:03:21 INFO]: DodgerRo9 issued server command: //rg addmember Cat'
    [12:03:22 INFO]: Tooth212 issued server command: /msg sm hide
    [12:03:23 INFO]: naruto3323 issued server command: /warp airforcebase
    [12:03:26 INFO]: chris84902 issued server command: /tpa Carter0727
    [12:03:27 INFO]: Carter0727 was slain by Zombie
    [12:03:30 INFO]: boo2bean issued server command: /bal
    [12:03:34 INFO]: Carter0727 issued server command: /tpa DodgerRo9
    [12:03:35 INFO]: Syncfusionzz was slain by Zombie
    [12:03:40 INFO]: naruto3323 was Demolished by Tooth212's Carbine
    [12:03:41 INFO]: Syncfusionzz issued server command: /warp highway
    [12:03:43 INFO]: [TheBrotherhood][Ⅰ]naruto3323:TOOTH
    [12:03:44 INFO]: Tooth212 issued server command: /msg sm lol
    [12:03:45 INFO]: [TheBrotherhood][Ⅰ]naruto3323:MY GOD
    [12:03:46 INFO]: boo2bean issued server command: /gang rename
    [12:03:48 INFO]: naruto3323 issued server command: /warp airforcebase
    [12:03:50 INFO]: oO_Hyper_Oo has just earned the achievement [Taking Inventory]
    [12:03:53 INFO]: boo2bean issued server command: /gang leave
    [12:03:55 INFO]: DodgerRo9 issued server command: //rg addmember Carter0727
    [12:03:57 INFO]: [Technologicals][Ⅱ]Tooth212:there is one god naruto
    [12:03:57 INFO]: DodgerRo9 issued server command: /tpyes
    [12:03:57 INFO]: [KZS][Ⅰ]DiamondDash10:DodgerRo9 u still on?
    [12:03:58 INFO]: UgirlP issued server command: /gang
    [12:03:58 INFO]: naruto3323 issued server command: /spawnb
    [12:03:59 INFO]: naruto3323 issued server command: /spawn
    [12:04:00 INFO]: naruto3323 was Demolished by Tooth212's Carbine
    [12:04:01 INFO]: boo2bean issued server command: /gang romote boo2bean
    [12:04:01 INFO]: Syncfusionzz was slain by Zombie
    [12:04:02 INFO]: DodgerRo9:yeah
    [12:04:04 INFO]: naruto3323 issued server command: /warp airforcebase
    [12:04:07 INFO]: Syncfusionzz issued server command: /warp highway
    [12:04:08 INFO]: [HuskyGang][Ⅴ]lXxBennyxXl:t
    [12:04:10 INFO]: DodgerRo9:bein swamped by zambiz
    [12:04:10 INFO]: [HuskyGang][Ⅴ]lXxBennyxXl:lol
    [12:04:16 INFO]: DiamondDash10 issued server command: /tpa DodgerRo9
    [12:04:19 INFO]: boo2bean issued server command: /gang demote
    [12:04:20 INFO]: naruto3323 was Demolished by Tooth212's Carbine
    [12:04:21 INFO]: [WorldGuard] Region data changes made in 'KronicZombieSurvival' have been background saved
    [12:04:25 INFO]: Tooth212 issued server command: /msg sm sorry btw
    [12:04:25 INFO]: boo2bean issued server command: /gang delete
    [12:04:30 INFO]: oO_Hyper_Oo issued server command: /tpa lXxBennyxXl
    [12:04:33 INFO]: smariem0714 issued server command: /r thats ok
    [12:04:33 INFO]: Syncfusionzz was slain by Zombie
    [12:04:38 INFO]: Syncfusionzz issued server command: /warp highway
    [12:04:39 INFO]: skyhawk3600 lost connection: Internal Exception: java.io.IOException: Error while write(...): Broken pipe
    [12:04:39 INFO]: [Bank] Saving Bank for 3f7af243-45a5-4964-9655-2de165d360f0 to file
    [12:04:39 INFO]: skyhawk3600 Has Left The Server!
    [12:04:39 INFO]: Carter0727 lost connection: Internal Exception: java.io.IOException: Error while write(...): Broken pipe
    [12:04:39 INFO]: [Bank] Saving Bank for 06a12bc1-20fc-4681-91b4-bec82748fd2d to file
    [12:04:39 INFO]: Carter0727 Has Left The Server!
    [12:04:39 INFO]: chris84902 lost connection: Internal Exception: java.io.IOException: Error while write(...): Broken pipe
    [12:04:39 INFO]: [Bank] Saving Bank for 0c243c04-ccbc-4ac5-ae38-abdb4e4df8e8 to file
    [12:04:39 INFO]: chris84902 Has Left The Server!
    [12:04:39 INFO]: DiamondDash10 lost connection: Internal Exception: java.io.IOException: Error while write(...): Broken pipe
    [12:04:39 INFO]: [Bank] Saving Bank for a19de916-a520-468c-810c-f08d2789b821 to file
     
     
  5. This may or may not work, but I've had luck with changing java (on my dedi) from openjdk to the webupd8's oracle java, and updating to the latest build of spigot.
     
  6. NullBlox

    Patron

    On latest spigot.
    [12:21:50 INFO]: This server is running CraftBukkit version git-Spigot-3ccbe77-a6a57a9 (MC: 1.8.7) (Implementing API version 1.8.7-R0.1-SNAPSHOT)

    [12:21:50 INFO]: You are running the latest version

    Whats is the huge dif in java? I would also assume someone from spigot could maybe clarify what Java to use or if it should matter?
    anyone jdk or web?
     
  7. http://stackoverflow.com/questions/...cle-jdk-and-open-jdk#comment27153592_17364418
     
    • Winner Winner x 1
  8. NullBlox

    Patron

    #8 NullBlox, Jun 5, 2015
    Last edited: Jun 5, 2015
    • Friendly Friendly x 1
  9. NullBlox

    Patron

    Still same issues.
    Code (Text):
    [13:49:17 INFO]: smariem0714 issued server command: /bounty place lxxbennyxxl 3000
    [13:49:17 INFO]: CoolSpice646 issued server command: /msg Fancy
    [13:49:20 INFO]: [Kronic][Ⅰ]jayminer400:I'm number 3 on da bandits list
    [13:49:21 INFO]: smariem0714 issued server command: /bounty place confirm
    [13:49:21 INFO]: [Bounty] A new bounty has been placed for $2700.
    [13:49:21 INFO]: gamer200040 issued server command: /tpa ArcticRogue_360
    [13:49:22 INFO]: [HuskyGang][Ⅴ]lXxBennyxXl:hey someone put a bounty on me
    [13:49:23 INFO]: [Kronic][Ⅰ]jayminer400:yyyyyyyyyaaaaaaaaaaa
    [13:49:26 INFO]: lXxBennyxXl issued server command: /bounty list
    [13:49:26 INFO]: ArcticRogue_360 issued server command: /tpaccept
    [13:49:28 INFO]: [HuskyGang][Ⅴ]lXxBennyxXl:yes
    [13:49:29 INFO]: FancyPants14 issued server command: /warp football
    [13:49:30 INFO]: CoolSpice646 issued server command: /warp footballfield
    [13:49:31 INFO]: jayminer400 issued server command: /b set
    [13:49:34 INFO]: jayminer400 issued server command: /b help
    [13:49:36 INFO]: jayminer400 issued server command: /bounty help
    [13:49:37 INFO]: [HuskyGang][Ⅴ]lXxBennyxXl:I am at hospital
    [13:49:39 INFO]: FancyPants14 issued server command: /p h football
    [13:49:40 INFO]: ChillerKraft has just earned the achievement [Taking Inventory]
    [13:49:44 INFO]: jayminer400 issued server command: /bounty list
    [13:49:45 INFO]: [HuskyGang][Ⅴ]lXxBennyxXl:warp hospital to find me
    [13:49:52 INFO]: [CleanUp] Removed 71 Entities!
    [13:49:54 INFO]: ArcticRogue_360 issued server command: /ar check
    [13:49:59 INFO]: DUDEARAMA was slain by Zombie
    [13:50:03 INFO]: smariem0714 issued server command: /bounty place cookie956\
    [13:50:04 INFO]: [Kronic][Ⅰ]jayminer400:I'm gonna look at my fabulous head at spawn
    [13:50:05 INFO]: [HuskyGang][Ⅴ]lXxBennyxXl:if u want the money
    [13:50:06 INFO]: jayminer400 issued server command: /spawn
    [13:50:06 INFO]: DUDEARAMA issued server command: /warp
    [13:50:07 INFO]: smariem0714 issued server command: /bounty place cookie956
    [13:50:08 INFO]: [Kronic][Ⅰ]jayminer400::)
    [13:50:10 INFO]: ChillerKraft:I think I'm cheating
    [13:50:10 INFO]: ToxicSkittlesHD lost connection: Internal Exception: java.io.IOException: Error while read(...): Connection reset by peer
    [13:50:10 INFO]: [Bank] Saving Bank for f65d1c18-419c-4b1a-b83a-58306034cb53 to file
     
  10. NullBlox

    Patron

    Current Spigot from today. Still issue.
    This is a new player who just logged in.
    Then someone say's hello to them and they was disconnected.

    This server is running CraftBukkit version git-Spigot-b3c0272-7723b90 (MC: 1.8.7) (Implementing API version 1.8.7-R0.1-SNAPSHOT)
    You are running the latest version



    Code (Text):
    [13:02:31 INFO]: UUID of player Isnoire is 36245a7a
    [13:02:32 INFO]: IP of Isnoire:
    [13:02:32 INFO]: [Bank] New Bank for 36245a7a
    [13:02:32 INFO]: Isnoire[/] logged in with entity id 9402 at ([KronicZombieSurvival]115.5, 69.0, 695.5)
    [13:02:32 INFO]: Isnoire joined the game
    [13:02:32 INFO]: Creating empty config: /home/customer/Desktop/KronicMain1.8/plugins/Essentials/userdata/36245a7a
    [13:02:32 INFO]: Testing for DroneBL passed.
    [13:02:32 INFO]: Testing for Torenvall passed.
    [13:02:33 INFO]: Testing for ProxyBL passed.
    [13:02:33 INFO]: Testing for Sectoor passed.
    [13:02:33 INFO]: Testing for SpamhausSBL passed.
    [13:02:33 INFO]: Testing for Sorbs passed.
    [13:02:33 INFO]: Testing for SpamhausXBL passed.
    [13:02:33 INFO]: Check completed.
    [13:02:36 INFO]: UUID of player ClumsyNinja64 is c0fe8939
    [13:02:36 INFO]: [Bank] Loading Bank for c0fe8939
    [13:02:36 INFO]: ClumsyNinja64[/] logged in with entity id 9425 at
    [13:02:36 INFO]: ClumsyNinja64 joined the game
    [13:02:36 INFO]: Testing for DroneBL passed.
    [13:02:36 INFO]: Testing for Torenvall passed.
    [13:02:37 INFO]: Testing for ProxyBL passed.
    [13:02:37 INFO]: Testing for Sectoor passed.
    [13:02:37 INFO]: Testing for SpamhausSBL passed.
    [13:02:37 INFO]: Testing for Sorbs passed.
    [13:02:37 INFO]: Testing for SpamhausXBL passed.
    [13:02:37 INFO]: Check completed.
    [13:02:38 INFO]: Pudginator:wait lego
    [13:02:38 INFO]: [kids][Ⅰ]moonlight2005:Pudginator can u add me]
    [13:02:39 INFO]: legobat_5 issued server command: /pay Pudginator 2000
    [13:02:40 INFO]: [FarmerBros][Ⅲ]ChrisRyanMiner:welcome Isnoire
    [13:02:41 INFO]: [Omega][Ⅳ]wldwaillord:hello Isnoire
    [13:02:47 INFO]: Isnoire lost connection: Internal Exception: java.io.IOException: Error while read(...): Connection reset by peer
    [13:02:47 INFO]: [Bank] Saving Bank for 36245a7a to file
    [13:02:47 INFO]: Isnoire Has Left The Server!
     
  11. Are you running a proxy server using Bungee? I am not sure but it might be an internal issue when connecting to an other server. Or it could be a MySQL error when reading something that requires information from the game.
     
  12. NullBlox

    Patron

    I do not use bungee.
     
  13. NullBlox

    Patron

    Issue is still around.

    [08:39:31 INFO]: This server is running CraftBukkit version git-Spigot-07a5b1b-53433de (MC: 1.8.7) (Implementing API version 1.8.7-R0.1-SNAPSHOT)

    [08:39:31 INFO]: You are running the latest version



    See Error and look, you will see the following.
    I can not seam to find the cause. This may not even be server side but can not find any more info on this issue. Hope this can help to resolve it. If I find a fix or gets fixed in a update I will post again.

    [08:30:14 INFO]: HasanChina lost connection: Internal Exception: java.io.IOException: Error while read(...): Connection reset by peer

    [08:30:14 INFO]: [Bank] Saving Bank for PERSONALINFOBLOCKED to file


    [08:30:40 INFO]: furko_ylmz lost connection: Internal Exception: java.io.IOException: Error while read(...): Connection reset by peer

    [08:30:40 INFO]: [Bank] Saving Bank for PERSONALINFOBLOCKED to file



    Code (Text):
    [08:26:41 INFO]: There are 6 out of maximum 80 players online.
    [08:26:41 INFO]: BountyHunter: whiteXD12
    [08:26:41 INFO]: Traveller: Donald_Duck0312, furko_ylmz, HasanChina, mineemask
    [08:26:41 INFO]: Vip: victorLance117
    [08:26:42 INFO]: furko_ylmz was Neutralized by whiteXD12's Uzi
    [08:26:43 INFO]: [Drundar][Ⅴ]victorLance117:hi guys
    [08:26:47 INFO]: victorLance117 issued server command: /home
    [08:26:52 INFO]: furko_ylmz issued server command: /warp highway
    [08:27:09 INFO]: HasanChina was Neutralized by whiteXD12's Uzi
    [08:27:13 INFO]: furko_ylmz was Neutralized by whiteXD12's Uzi
    [08:27:16 INFO]: HasanChina issued server command: /warp highWay
    [08:27:19 INFO]: furko_ylmz issued server command: /warp highway
    [08:27:48 INFO]: furko_ylmz was Neutralized by whiteXD12's Uzi
    [08:27:53 INFO]: furko_ylmz issued server command: /warp highway
    [08:28:01 INFO]: HasanChina was Neutralized by whiteXD12's Uzi
    [08:28:07 INFO]: HasanChina issued server command: /warp highWay
    [08:28:08 INFO]: [Kronic][Ⅲ]whiteXD12:adrtude!
    [08:28:13 INFO]: furko_ylmz was Neutralized by whiteXD12's Uzi
    [08:28:26 INFO]: HasanChina was Neutralized by whiteXD12's Uzi
    [08:28:31 INFO]: HasanChina issued server command: /warp highWay
    [08:28:34 INFO]: mineemask issued server command: /bal
    [08:28:50 INFO]: HasanChina was Neutralized by whiteXD12's Uzi
    [08:28:55 INFO]: Donald_Duck0312 issued server command: /bay mineemask 124
    [08:28:56 INFO]: HasanChina issued server command: /warp highWay
    [08:29:04 INFO]: [Kronic][Ⅲ]whiteXD12:LOL, STOP MESSING AROUND
    [08:29:04 INFO]: Donald_Duck0312 issued server command: /bay mineemask 124
    [08:29:12 INFO]: [Bank] Giving Interest
    [08:29:16 INFO]: HasanChina was Neutralized by whiteXD12's Uzi
    [08:29:23 INFO]: HasanChina issued server command: /warp highWay
    [08:29:27 INFO]: [CleanUp] Warning Ground items will be removed in 80 seconds!
    [08:29:33 INFO]: mineemask:-/pay mineemask 124
    [08:29:34 INFO]: victorLance117 issued server command: /spawn
    [08:29:40 INFO]: furko_ylmz issued server command: /warp highway
    [08:29:43 INFO]: furko_ylmz issued server command: /warp highway
    [08:29:46 INFO]: Donald_Duck0312 issued server command: /py mineemask 124
    [08:29:51 INFO]: victorLance117 issued server command: /spawn
    [08:30:05 INFO]: Donald_Duck0312 issued server command: /pey mineemask 124
    [08:30:07 INFO]: [CleanUp] Warning Ground items will be removed in 40 seconds!
    [08:30:09 INFO]: HasanChina was Neutralized by whiteXD12's Uzi
    [08:30:14 INFO]: HasanChina lost connection: Internal Exception: java.io.IOException: Error while read(...): Connection reset by peer
    [08:30:14 INFO]: [Bank] Saving Bank for PERSONALINFOBLOCKED to file
    [08:30:14 INFO]: HasanChina Has Left The Server!
    [08:30:27 INFO]: [Kronic][Ⅲ]whiteXD12:xD, that rage
    [08:30:29 INFO]: whiteXD12 issued server command: /home
    [08:30:29 INFO]: Donald_Duck0312 issued server command: /pqy mineemask 124
    [08:30:37 INFO]: Donald_Duck0312 issued server command: /pqy mineemask 124
    [08:30:39 INFO]: victorLance117 issued server command: /spawn
    [08:30:40 INFO]: furko_ylmz lost connection: Internal Exception: java.io.IOException: Error while read(...): Connection reset by peer
    [08:30:40 INFO]: [Bank] Saving Bank for PERSONALINFOBLOCKED to file


    Maximum memory: 17,036 MB.
    Allocated memory: 17,036 MB.
    Free memory: 13,927 MB.
     
     
  14. I saw the "[08:39:31 INFO]: You are running the latest version", but what version of client do you have? I can definitely say it's the server not accepting the request when trying to look over your information (Checks to see if your account is real and stuff). I know this happens using Bungee, but you clearly said you're not using Bungee. Hmm. Pretty much to explain what's happening, java.io is a package in the jar file of spigot (bukkit and all those other jars). What happens is when you join a server, this package which is from http://netty.io looks for information, mostly packets that are read and sent to the server. It checks what version your server is running, if it corresponds to your client's version, if your account is real, checks the UUID and IP and so on. I am not an expert on the topic, but my guess would be from the new Spigot build you are running, which is maybe not fully compatible with some of the information netty expects.

    Here is what I suggest you do:

    1) Check your client version. Try downgrading it to an older one and see what happens (keep logs)
    2) Downgrade your spigot back to the last one you last build before this new update and again, run some tests and keep a log trace.
    3) I am not sure about this one, but your firewall and/or VPN might be preventing some of your information to be sent from your client to the server, thus triggering an exception.

    Again, those are the things I would do. I am not an expert at all, but I know some things. Do correct me if I'm wrong.

    I hope this helps.
     
  15. NullBlox

    Patron

    #1: It does not happen to me so not sure how I would track the client....
    #2: Dont believe I can do such a roll back at this point. To many plugins updated.
    #3: this I can check.

    I do keep logs and nightly backups of the entire server in full. Just hard to pull a roll back.
    Its also not seaming to be consistent. So that makes it also hard to track.
    Its pretty easy to find the cause if its always happening and specific timings, thats seams not to be the case though.
    I will keep a eye out. An there was more 1.8.7 updates so maybe Im not the only one with this issue.
    An may already be getting resolved. Never know.
     
  16. Try asking some of your players having this issue to use the same client version you are on. Which would be the latest I assume. Ask them to see if that fixes the issue.
     
  17. NullBlox

    Patron

    I will ask them when, if I can.
    I use 1.8 on 1.8.7 cuase I use shaders and I dont get the issue myself.

    Thanks for yoyur help.
     
  18. Disc

    Supporter

    @NullBlox did you ever find out what was causing this issue? I've been having the same problem for a good three weeks and I can't determine what is causing it.
     
  19. @Disc @PirateCraft @NullBlox Do you use any plugins from this author? From looking at this topic it seems like the issue often occurs through his plugins. The OP mentioned VBOs were his issue. If you have them on, turn it off and try it again.
     
  20. NullBlox

    Patron

    I do not know the cause.
    Its not the VBO settings. I never touched those and they are currently off.

    This happens when you /kick player, also happens when NCP kicks for suspect hacks, and when my server's wrapper kicks them on the restarts.
    So it seams to me to be something with how plugins are handling /kick

    I can reproduce this by loggin in and using console to /kick myself.

    [20:44:14 INFO]: CONSOLE issued server command: /kick zach
    [20:44:14 INFO]: [Bank] Saving Bank for UUID to file
    [20:44:14 INFO]: ZachryWilsn lost connection: Kicked from server.
    [20:44:14 INFO]: [Thirst] Saving player ZachryWilsn
    [20:44:14 INFO]: [Thirst] removing player ZachryWilsn
    [20:44:14 INFO]: §6Player§c Console §6kicked ZachryWilsn for Kicked from server..
    [20:44:14 WARN]: handleDisconnection() called twice

    So.... Im not a coder but its Kick that is seams to create the issue. Hope that helps to fix this issue.
    An if I find the fix I will report. Also On current Spigot.


    [20:45:37 INFO]: This server is running CraftBukkit version git-Spigot-d2856ae-8f0f4ed (MC: 1.8.7) (Implementing API version 1.8.7-R0.1-SNAPSHOT)
    [20:45:37 INFO]: Checking version, please wait...
    [20:45:37 INFO]: You are running the latest version


    [​IMG]
     
Thread Status:
Not open for further replies.