Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3314

Client getting kicked from Server Often

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None

      Client gets kicked from server often, sometimes after 40 minutes, sometimes after joining. Here is the server output:

      [23:24:48 WARN]: java.io.IOException: Connection reset by peer
      [23:24:48 WARN]: at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
      [23:24:48 WARN]: at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
      [23:24:48 WARN]: at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
      [23:24:48 WARN]: at sun.nio.ch.IOUtil.read(IOUtil.java:192)
      [23:24:48 WARN]: at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
      [23:24:48 WARN]: at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:446)
      [23:24:48 WARN]: at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881)
      [23:24:48 WARN]: at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:225)
      [23:24:48 WARN]: at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
      [23:24:48 WARN]: at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
      [23:24:48 WARN]: at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
      [23:24:48 WARN]: at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
      [23:24:48 WARN]: at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
      [23:24:48 WARN]: at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
      [23:24:48 WARN]: at java.lang.Thread.run(Thread.java:745)

      You will notice the first error: 'sun.nio.ch.FileDispatcherImpl.read0(Native Method)' My server has use-native-transport=false. Here is my server.properties:

      #Minecraft server properties
      #Fri Jun 09 00:52:18 CDT 2017
      spawn-protection=16
      generator-settings=
      force-gamemode=false
      allow-nether=true
      gamemode=0
      broadcast-console-to-ops=true
      enable-query=false
      player-idle-timeout=0
      difficulty=1
      spawn-monsters=true
      op-permission-level=4
      announce-player-achievements=false
      pvp=true
      snooper-enabled=false
      level-type=DEFAULT
      hardcore=false
      enable-command-block=true
      max-players=4
      network-compression-threshold=256
      resource-pack-sha1=
      max-world-size=29999984
      server-port=25565
      debug=true
      server-ip=
      spawn-npcs=true
      allow-flight=false
      level-name=world
      view-distance=10
      resource-pack=
      spawn-animals=true
      white-list=false
      generate-structures=true
      online-mode=false
      max-build-height=256
      level-seed=
      use-native-transport=false
      prevent-proxy-connections=false
      motd=Sperger Server
      enable-rcon=false

            Unassigned Unassigned
            Omadas Brandon Sperger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: