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

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

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

    Sahnebar

    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:
    Minecraft# java -Xmx2048M -Xms2048M -jar craftbukkit.jar
    195 recipes
    27 achievements
    02:29:44 [INFO] Starting minecraft server version 1.3.1
    02:29:44 [INFO] Loading properties
    02:29:44 [INFO] Default game type: SURVIVAL
    02:29:44 [INFO] Generating keypair
    02:29:44 [INFO] Starting Minecraft server on *:25565
    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)
    02:29:45 [INFO] Preparing level "world"
    02:29:45 [INFO] Preparing start region for level 0 (Seed: -3675022148633830140)
    02:29:45 [INFO] Preparing start region for level 1 (Seed: -3675022148633830140)
    02:29:46 [INFO] Preparing spawn area: 69%
    02:29:46 [INFO] Preparing start region for level 2 (Seed: -3675022148633830140)
    02:29:46 [INFO] Server permissions file permissions.yml is empty, ignoring it
    02:29:46 [INFO] Done (1.720s)! For help, type "help" or "?"
    02:29:53 [INFO] /192.168.2.103:64801 lost connection
    02:29:59 [INFO]  [I][Removed] [/I][/192.168.2.103:64806] lost connection
    02:34:04 [INFO]  [I][Removed][/I] [/192.168.2.103:65095] lost connection
    02:34:06 [INFO]  [I][Removed][/I] [/ 192.168.2.103 :65309] lost connection
    02:34:33 [INFO]  [I][Removed][/I] [/192.168.2.103:65240] lost connection
    02:34:36 [INFO]  [I][Removed][/I] [/ 192.168.2.103 :65285] lost connection
    >
    




    //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:
    Minecraft# java -Xmx2048M -Xms2048M -jar minecraft_server.jar
    2012-08-19 14:43:52 [INFO] /192.168.2.103:51087 lost connection
    java.security.ProviderException: nextBytes() failed
            at sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:270)
            at sun.security.provider.NativePRNG$RandomIO.access$200(NativePRNG.java:108)
            at sun.security.provider.NativePRNG.engineNextBytes(NativePRNG.java:97)
            at java.security.SecureRandom.nextBytes(SecureRandom.java:433)
            at java.math.BigInteger.randomBits(BigInteger.java:475)
            at java.math.BigInteger.<init>(BigInteger.java:464)
            at sun.security.rsa.RSACore.getBlindingParameters(RSACore.java:261)
            at sun.security.rsa.RSACore.crtCrypt(RSACore.java:130)
            at sun.security.rsa.RSACore.rsa(RSACore.java:84)
            at com.sun.crypto.provider.RSACipher.a(DashoA13*..)
            at com.sun.crypto.provider.RSACipher.engineDoFinal(DashoA13*..)
            at javax.crypto.Cipher.doFinal(DashoA13*..)
            at hw.a(SourceFile:120)
            at hw.b(SourceFile:115)
            at hw.a(SourceFile:107)
            at dx.a(SourceFile:52)
            at bb.i(SourceFile:245)
            at bb.c(SourceFile:15)
            at bc.run(SourceFile:93)
    Caused by: java.io.InterruptedIOException
            at java.io.FileInputStream.readBytes(Native Method)
            at java.io.FileInputStream.read(FileInputStream.java:199)
            at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:185)
            at sun.security.provider.NativePRNG$RandomIO.ensureBufferValid(NativePRNG.java:247)
            at sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:261)
            ... 18 more
    
    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

    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

    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

    i try to make my own server the only promblem it says the server is down when it isnt
     
  5. Offline

    Gunnerrrrr

    Are you on the recommended build of craftbukkit?
     
  6. Offline

    Sahnebar

    yes i use the CraftBukkit Recommended Build (1.3.1-R1.0).
     
  7. Offline

    Gunnerrrrr

    How much ram does your computer/server have?
     
  8. Offline

    Sahnebar

    i start it with this parameters and the Server has 4096 MB ram.

    Code:
    java -Xmx2048M -Xms2048M -jar craftbukkit.jar
    Hey now i updatet Bukkit to the new Version
    Code:
    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:
    14:02:29 [INFO] Done (7.093s)! For help, type "help" or "?"
    14:02:29 [INFO] GroupManager - INFO - Bukkit Permissions Updated!
    14:02:31 [INFO] /192.168.2.103:49999 lost connection
    14:02:34 [INFO] [FONT=Consolas][Removed][/FONT][/192.168.2.103:50002] lost connection
    14:02:42 [INFO] [FONT=Consolas][Removed][/FONT][/192.168.2.103:50018] lost connection
    14:02:57 [INFO] [FONT=Consolas][Removed][/FONT][/192.168.2.103:50065] lost connection
    
    Please Someone can help me?

    Thank You,
    Sani


    //Edit3:
    Hmm... i don't understand this. Now i tried to run the Old version
    Code:
    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.

    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:
    Minecraft# java -Xmx2048M -Xms2048M -jar minecraft_server.jar
    195 recipes
    27 achievements
    2012-08-19 14:43:48 [INFO] Starting minecraft server version 1.3.2
    2012-08-19 14:43:48 [INFO] Loading properties
    2012-08-19 14:43:48 [INFO] Default game type: SURVIVAL
    2012-08-19 14:43:48 [INFO] Generating keypair
    2012-08-19 14:43:48 [INFO] Starting Minecraft server on *:25565
    2012-08-19 14:43:48 [INFO] Preparing level "world"
    2012-08-19 14:43:48 [INFO] Preparing start region for level 0
    2012-08-19 14:43:49 [INFO] Done (0.821s)! For help, type "help" or "?"
    2012-08-19 14:43:52 [INFO] /192.168.2.103:51087 lost connection
    java.security.ProviderException: nextBytes() failed
            at sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:270)
            at sun.security.provider.NativePRNG$RandomIO.access$200(NativePRNG.java:108)
            at sun.security.provider.NativePRNG.engineNextBytes(NativePRNG.java:97)
            at java.security.SecureRandom.nextBytes(SecureRandom.java:433)
            at java.math.BigInteger.randomBits(BigInteger.java:475)
            at java.math.BigInteger.<init>(BigInteger.java:464)
            at sun.security.rsa.RSACore.getBlindingParameters(RSACore.java:261)
            at sun.security.rsa.RSACore.crtCrypt(RSACore.java:130)
            at sun.security.rsa.RSACore.rsa(RSACore.java:84)
            at com.sun.crypto.provider.RSACipher.a(DashoA13*..)
            at com.sun.crypto.provider.RSACipher.engineDoFinal(DashoA13*..)
            at javax.crypto.Cipher.doFinal(DashoA13*..)
            at hw.a(SourceFile:120)
            at hw.b(SourceFile:115)
            at hw.a(SourceFile:107)
            at dx.a(SourceFile:52)
            at bb.i(SourceFile:245)
            at bb.c(SourceFile:15)
            at bc.run(SourceFile:93)
    Caused by: java.io.InterruptedIOException
            at java.io.FileInputStream.readBytes(Native Method)
            at java.io.FileInputStream.read(FileInputStream.java:199)
            at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:185)
            at sun.security.provider.NativePRNG$RandomIO.ensureBufferValid(NativePRNG.java:247)
            at sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:261)
            ... 18 more
    2012-08-19 14:43:54 [INFO] [Removed][/192.168.2.103:51089] lost connection
     
    2012-08-19 14:47:26 [INFO] Unknown command. Try /help for a list of commands.
    stop
    2012-08-19 14:47:28 [INFO] Stopping the server
    2012-08-19 14:47:28 [INFO] Stopping server
    2012-08-19 14:47:28 [INFO] Saving players
    java.net.SocketException: Socket closed
            at java.net.PlainSocketImpl.socketAccept(Native Method)
     
            at fy.run(SourceFile:56)
    2012-08-19 14:47:28 [INFO] Saving worlds
    2012-08-19 14:47:28 [INFO] Saving chunks for level 'world'/Overworld
    2012-08-19 14:47:28 [INFO] Saving chunks for level 'world'/Nether
    2012-08-19 14:47:28 [INFO] Saving chunks for level 'world'/The End
    2012-08-19 14:47:28 [INFO] Stopping server
    2012-08-19 14:47:28 [INFO] Saving players
    2012-08-19 14:47:28 [INFO] Saving worlds
    
    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):
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
  9. Offline

    ZeroOne_01

    Thanks man, that helped me a lot.
     
  10. Offline

    lokpique

    What a delightfully random revival! (See what I did there?!?!?!)
     
  11. Offline

    miniiskirts


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

    _Minerman

    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"?
     
Thread Status:
Not open for further replies.

Share This Page