Solved Connection Lost - End of stream (v.Bukkit-1.3.1-R1/R2)

Discussion in 'Bukkit Help' started by Sahnebar, Aug 13, 2012.

  1. Offline

    Sahnebar

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hello,

    i've hosted my Minecraft Server since 1.2.5. Now i've updated and got some Probelems. :( I don't know what the Problem is but ingame I always get the same error: "Connection Lost - End of stream"

    What i've done?
    1. Removed alle Plugins - Doesn't work
    2. Deleted complete Server and hostet in a new Directory - Doesn't Work
    3. Postet for Help here :D

    Code (Text):
    1. Minecraft# java -Xmx2048M -Xms2048M -jar craftbukkit.jar
    2. 195 recipes
    3. 27 achievements
    4. 02:29:44 [INFO] Starting minecraft server version 1.3.1
    5. 02:29:44 [INFO] Loading properties
    6. 02:29:44 [INFO] Default game type: SURVIVAL
    7. 02:29:44 [INFO] Generating keypair
    8. 02:29:44 [INFO] Starting Minecraft server on *:25565
    9. 02:29:45 [INFO] This server is running CraftBukkit version git-Bukkit-1.3.1-R1.0-b2320jnks (MC: 1.3.1) (Implementing API version 1.3.1-R1.0)
    10. 02:29:45 [INFO] Preparing level "world"
    11. 02:29:45 [INFO] Preparing start region for level 0 (Seed: -3675022148633830140)
    12. 02:29:45 [INFO] Preparing start region for level 1 (Seed: -3675022148633830140)
    13. 02:29:46 [INFO] Preparing spawn area: 69%
    14. 02:29:46 [INFO] Preparing start region for level 2 (Seed: -3675022148633830140)
    15. 02:29:46 [INFO] Server permissions file permissions.yml is empty, ignoring it
    16. 02:29:46 [INFO] Done (1.720s)! For help, type "help" or "?"
    17. 02:29:53 [INFO] /192.168.2.103:64801 lost connection
    18. 02:29:59 [INFO]  [I][Removed] [/I][/192.168.2.103:64806] lost connection
    19. 02:34:04 [INFO]  [I][Removed][/I] [/192.168.2.103:65095] lost connection
    20. 02:34:06 [INFO]  [I][Removed][/I] [/ 192.168.2.103 :65309] lost connection
    21. 02:34:33 [INFO]  [I][Removed][/I] [/192.168.2.103:65240] lost connection
    22. 02:34:36 [INFO]  [I][Removed][/I] [/ 192.168.2.103 :65285] lost connection
    23. >
    24.  




    //Edit:
    I got some News:
    I solved the Problem now! :D
    Now i tried to use the original Mincraft Server and what happend? It Doesn't work too... :eek:but now i got some Java errors:'(.
    Code (Text):
    1. Minecraft# java -Xmx2048M -Xms2048M -jar minecraft_server.jar
    2. 2012-08-19 14:43:52 [INFO] /192.168.2.103:51087 lost connection
    3. java.security.ProviderException: nextBytes() failed
    4.         at sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:270)
    5.         at sun.security.provider.NativePRNG$RandomIO.access$200(NativePRNG.java:108)
    6.         at sun.security.provider.NativePRNG.engineNextBytes(NativePRNG.java:97)
    7.         at java.security.SecureRandom.nextBytes(SecureRandom.java:433)
    8.         at java.math.BigInteger.randomBits(BigInteger.java:475)
    9.         at java.math.BigInteger.<init>(BigInteger.java:464)
    10.         at sun.security.rsa.RSACore.getBlindingParameters(RSACore.java:261)
    11.         at sun.security.rsa.RSACore.crtCrypt(RSACore.java:130)
    12.         at sun.security.rsa.RSACore.rsa(RSACore.java:84)
    13.         at com.sun.crypto.provider.RSACipher.a(DashoA13*..)
    14.         at com.sun.crypto.provider.RSACipher.engineDoFinal(DashoA13*..)
    15.         at javax.crypto.Cipher.doFinal(DashoA13*..)
    16.         at hw.a(SourceFile:120)
    17.         at hw.b(SourceFile:115)
    18.         at hw.a(SourceFile:107)
    19.         at dx.a(SourceFile:52)
    20.         at bb.i(SourceFile:245)
    21.         at bb.c(SourceFile:15)
    22.         at bc.run(SourceFile:93)
    23. Caused by: java.io.InterruptedIOException
    24.         at java.io.FileInputStream.readBytes(Native Method)
    25.         at java.io.FileInputStream.read(FileInputStream.java:199)
    26.         at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:185)
    27.         at sun.security.provider.NativePRNG$RandomIO.ensureBufferValid(NativePRNG.java:247)
    28.         at sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:261)
    29.         ... 18 more
    30.  
    Okay, for anyone else that is running a similar environment as me and is having this problem:
    I did some obscure interwebz digging and found a fix that works for me, at least.
    I had to add:
    to properly randomize the java entropy gathering device. It seems that the issue comes from my /dev/urandom@ symlink not working as it is supposed to inside the JVM environment. This could probably be changed in a security properties file to just use /dev/random, but for now I can define it manually so... oh well. If it helps anyone, this is my final working command line (it's one line):
     
  2. Offline

    Gunnerrrrr

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I had this same problem. For me one my worlds became corrupt in the update! Disable one of your worlds at once, at see if its better.
     
  3. Offline

    Sahnebar

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thank you for the Tip but this is a complete new world because i tried to make a fresh install of Minecraft.
    Hmm... what is our Problem:(
     
  4. Offline

    Spartacus4D

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i try to make my own server the only promblem it says the server is down when it isnt
     
  5. Offline

    Gunnerrrrr

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Are you on the recommended build of craftbukkit?
     
  6. Offline

    Sahnebar

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    yes i use the CraftBukkit Recommended Build (1.3.1-R1.0).
     
  7. Offline

    Gunnerrrrr

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How much ram does your computer/server have?
     
  8. Offline

    Sahnebar

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i start it with this parameters and the Server has 4096 MB ram.

    Code (Text):
    1. java -Xmx2048M -Xms2048M -jar craftbukkit.jar
     
  9. Offline

    Sahnebar

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey now i updatet Bukkit to the new Version
    Code (Text):
    1. CraftBukkit version git-Bukkit-1.3.1-R2.0-b2340jnks (MC: 1.3.1) (Implementing API version 1.3.1-R2.0)
    but i still won't work.

    Now i'll get the sam Errors as before.
    Code (Text):
    1. 14:02:29 [INFO] Done (7.093s)! For help, type "help" or "?"
    2. 14:02:29 [INFO] GroupManager - INFO - Bukkit Permissions Updated!
    3. 14:02:31 [INFO] /192.168.2.103:49999 lost connection
    4. 14:02:34 [INFO] [FONT=Consolas][Removed][/FONT][/192.168.2.103:50002] lost connection
    5. 14:02:42 [INFO] [FONT=Consolas][Removed][/FONT][/192.168.2.103:50018] lost connection
    6. 14:02:57 [INFO] [FONT=Consolas][Removed][/FONT][/192.168.2.103:50065] lost connection
    7.  
    Please Someone can help me?

    Thank You,
    Sani


    //Edit3:
    Hmm... i don't understand this. Now i tried to run the Old version
    Code (Text):
    1. This server is running CraftBukkit version git-Bukkit-1.2.5-R5.0-b2262jnks (MC: 1.2.5) (Implementing API version 1.2.5-R5.0)
    and it Works. So there are some Changes in the new Version 1.3.1 which make the Server don't work.
     
  10. Offline

    Sahnebar

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I got some News:
    I solved the Problem now! :D
    Now i tried to use the original Mincraft Server and what happend? It Doesn't work too... :eek: but now i got some Java errors:'(.
    Code (Text):
    1. Minecraft# java -Xmx2048M -Xms2048M -jar minecraft_server.jar
    2. 195 recipes
    3. 27 achievements
    4. 2012-08-19 14:43:48 [INFO] Starting minecraft server version 1.3.2
    5. 2012-08-19 14:43:48 [INFO] Loading properties
    6. 2012-08-19 14:43:48 [INFO] Default game type: SURVIVAL
    7. 2012-08-19 14:43:48 [INFO] Generating keypair
    8. 2012-08-19 14:43:48 [INFO] Starting Minecraft server on *:25565
    9. 2012-08-19 14:43:48 [INFO] Preparing level "world"
    10. 2012-08-19 14:43:48 [INFO] Preparing start region for level 0
    11. 2012-08-19 14:43:49 [INFO] Done (0.821s)! For help, type "help" or "?"
    12. 2012-08-19 14:43:52 [INFO] /192.168.2.103:51087 lost connection
    13. java.security.ProviderException: nextBytes() failed
    14.         at sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:270)
    15.         at sun.security.provider.NativePRNG$RandomIO.access$200(NativePRNG.java:108)
    16.         at sun.security.provider.NativePRNG.engineNextBytes(NativePRNG.java:97)
    17.         at java.security.SecureRandom.nextBytes(SecureRandom.java:433)
    18.         at java.math.BigInteger.randomBits(BigInteger.java:475)
    19.         at java.math.BigInteger.<init>(BigInteger.java:464)
    20.         at sun.security.rsa.RSACore.getBlindingParameters(RSACore.java:261)
    21.         at sun.security.rsa.RSACore.crtCrypt(RSACore.java:130)
    22.         at sun.security.rsa.RSACore.rsa(RSACore.java:84)
    23.         at com.sun.crypto.provider.RSACipher.a(DashoA13*..)
    24.         at com.sun.crypto.provider.RSACipher.engineDoFinal(DashoA13*..)
    25.         at javax.crypto.Cipher.doFinal(DashoA13*..)
    26.         at hw.a(SourceFile:120)
    27.         at hw.b(SourceFile:115)
    28.         at hw.a(SourceFile:107)
    29.         at dx.a(SourceFile:52)
    30.         at bb.i(SourceFile:245)
    31.         at bb.c(SourceFile:15)
    32.         at bc.run(SourceFile:93)
    33. Caused by: java.io.InterruptedIOException
    34.         at java.io.FileInputStream.readBytes(Native Method)
    35.         at java.io.FileInputStream.read(FileInputStream.java:199)
    36.         at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:185)
    37.         at sun.security.provider.NativePRNG$RandomIO.ensureBufferValid(NativePRNG.java:247)
    38.         at sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:261)
    39.         ... 18 more
    40. 2012-08-19 14:43:54 [INFO] [Removed][/192.168.2.103:51089] lost connection
    41.  
    42. 2012-08-19 14:47:26 [INFO] Unknown command. Try /help for a list of commands.
    43. stop
    44. 2012-08-19 14:47:28 [INFO] Stopping the server
    45. 2012-08-19 14:47:28 [INFO] Stopping server
    46. 2012-08-19 14:47:28 [INFO] Saving players
    47. java.net.SocketException: Socket closed
    48.         at java.net.PlainSocketImpl.socketAccept(Native Method)
    49.  
    50.         at fy.run(SourceFile:56)
    51. 2012-08-19 14:47:28 [INFO] Saving worlds
    52. 2012-08-19 14:47:28 [INFO] Saving chunks for level 'world'/Overworld
    53. 2012-08-19 14:47:28 [INFO] Saving chunks for level 'world'/Nether
    54. 2012-08-19 14:47:28 [INFO] Saving chunks for level 'world'/The End
    55. 2012-08-19 14:47:28 [INFO] Stopping server
    56. 2012-08-19 14:47:28 [INFO] Saving players
    57. 2012-08-19 14:47:28 [INFO] Saving worlds
    58.  
    Okay, for anyone else that is running a similar environment as me and is having this problem:
    I did some obscure interwebz digging and found a fix that works for me, at least.
    I had to add:
    to properly randomize the java entropy gathering device. It seems that the issue comes from my /dev/urandom@ symlink not working as it is supposed to inside the JVM environment. This could probably be changed in a security properties file to just use /dev/random, but for now I can define it manually so... oh well. If it helps anyone, this is my final working command line (it's one line):
     
  11. Offline

    ZeroOne_01

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks man, that helped me a lot.
     
  12. Offline

    lokpique

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    What a delightfully random revival! (See what I did there?!?!?!)
     
  13. Offline

    miniiskirts

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    Where do I add that????
     
  14. Offline

    _Minerman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey guys I have the same problem, it polls fine but when i connect it says end of stream. After a few tries it works or if if a load a singleplayer world. Anybody got any idea why it says "End of Stream"?
     

Share This Page