issue when players disconnect

A new update is now available, introducing seasons and more!
  • Steam or Standalone?
    Steam
    Singleplayer or multiplayer?
    Multiplayer
    Error message?
    No
    Operating system
    Windows

    ive started getting this on the console when a player disconnects from the server



    java.io.IOException: An existing connection was forcibly closed by the remote host

    at sun.nio.ch.SocketDispatcher.read0(Native Method)

    at sun.nio.ch.SocketDispatcher.read(Unknown Source)

    at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)

    at sun.nio.ch.IOUtil.read(Unknown Source)

    at sun.nio.ch.SocketChannelImpl.read(Unknown Source)

    at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)

    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1106)

    at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:343)

    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)

    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)

    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)

    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)

    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)

    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)

    at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)

    at java.lang.Thread.run(Unknown Source)

  • This just means that the connection was forcibly closed. This happens if a player quits the game immediately, so there is not enough time to disconnect gracefully. It's not an issue at all, this message does not have a negative impact on the server ;)

  • still having the issue when no one has been on since restart.


    Rising World - 0.9.6 - Dedicated Server

    Windows Server 2019 10.0 Java 1.8.0_291 (amd64) Memory: 9320 MB

    2021/05/10 07:35 PM

    ____________________________________________________


    Start context...

    Items initialized!

    Plants initialized!

    NPCs initialized!

    Initialize Static Classes...

    Constructions initialized!

    Projectile-Definitions initialized!

    Weapon-Definitions initialized!

    Objects initialized!

    Clothing initialized!

    Picking initialized!

    Food-Definitions initialized!

    Storages initialized!

    Vehicles initialized!

    Crafting-Definitions initialized!

    Record-Definitions initialized!

    Initializing world (sqlite)

    LOAD WORLD New World

    DATABASE TYPE: SQLite

    C:\rw/Worlds/New World:::New World

    CREATE WORLD STRUCTURE - DONE!

    2021/05/10 07:35 PM z.a

    INFO: DatabaseTaskManager started with ThreadPoolSize 1

    WORLDINFO Gamemode: Survival

    Gametype set to Survival

    WORLDINFO Seed: 1588370014461

    WORLDINFO Caves: true

    WORLDINFO Vegetations: true

    WORLDINFO OreAmount: 3

    WORLDINFO StartBiome: null

    WORLDINFO DisabledNPCs:

    WORLDINFO DisabledDungeons:

    WORLDINFO DisabledWaterSources:

    WORLDINFO Worldtype: Normal

    WORLDINFOS seed: 1588370014461 type: Normal caves: true vegetations: true oreamount: 3 startbiome: null disablednpc: [] disableddungeons: [] disabledwatersources: []

    WORLDINFO Time: 31.8.16 13:28:25.300365

    WORLDINFO Creationdate: 1588370014465

    WORLDINFO Version: 0.9.6_39

    TRIGGER UPDATE

    Worldconverter: Updating not required

    WORLDINFO Spawninventory: 0 0 0 0

    WORLDINFO Spawnclothing: 5 -1 -1 1 0 1 0 -1 -1 -1 0 -1 -1 -1 0 -1 -1 -1 -1 1 0 2 0 -1 -1 -1 0 -1 -1 -1 0 -1 -1 -1

    Worldpart generating...

    Biomepart generating...

    Loaded Biomepart from cache: 0 - 0 (4ms)

    Loaded Worldpart (v3) from cache: 0 - 0 (334ms)

    WORLDINFO Spawnposition: 5532.9185 65.05638 -232.03116

    WORLDINFO Spawnrotation: 0.018333627 0.70775104 -0.018379495 0.70598483


    Loading custom images...

    Image test.jpg: Invalid file format

    271 images successfully loaded!


    INITIAL WEATHER Default 1395.0

    2888 chests loaded from DB!

    2145 texts loaded from DB!

    12 Plants loaded from DB!

    235 Furnaces loaded from DB!

    2021/05/10 07:35 PM h.a

    INFO: Custom journal loaded (9)!

    Custom logo: logo.jpg (602033b)

    53511 NPCs loaded from DB!

    20 Vehicles loaded from DB!

    STARTING RISING WORLD SERVER...

    Server bind to IP: ***.***.***.***:4255

    2021/05/10 07:35 PM JIW-Network

    INFO: [NetworkServer] Add channel Port:4,255 Type:TCP Index:0

    2021/05/10 07:35 PM JIW-Network

    INFO: [NetworkServer] Add channel Port:4,256 Type:UDP Index:1

    2021/05/10 07:35 PM JIW-Network

    INFO: [NetworkServer] Add channel Port:4,256 Type:TCP Index:2

    2021/05/10 07:35 PM JIW-Network

    INFO: [NetworkServer] Add channel Port:4,257 Type:UDP Index:3

    2021/05/10 07:35 PM JIW-Network

    INFO: [NetworkServer] Add channel Port:4,257 Type:TCP Index:4

    2021/05/10 07:35 PM JIW-Network

    INFO: [NetworkServer] Add channel Port:4,258 Type:UDP Index:5

    2021/05/10 07:35 PM JIW-Network

    INFO: [NetworkServer] Add channel Port:4,258 Type:TCP Index:6

    2021/05/10 07:35 PM I.g

    INFO: Default server permissions loaded successfully!

    Found 16 files in groups folder

    2021/05/10 07:35 PM I.g

    INFO: Group "admin" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "BluePrint" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "Citizen" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "Duchess" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "Duke" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "Jester" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "King" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "Knight" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "newb" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "Noble" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "Prince" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "Princess" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "PVP" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "Queen" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "Survivlist" permissions loaded successfully!

    2021/05/10 07:35 PM I.g

    INFO: Group "Terraintools" permissions loaded successfully!

    RISING WORLD SERVER STARTED


    2021/05/10 07:35 PM JIW-Network

    INFO: [NetworkServer] Add channel Port:4,253 Type:TCP Index:0

    RCON Server bind to IP: :4253

    Steam - Load native library: steam_api64.dll Filesize: 250656 bytes

    Steam - Load native library: steamworks4j64.dll Filesize: 273920 bytes

    Steam - Load native library: steamworks4j-server64.dll Filesize: 145920 bytes

    STEAM BIND TO 0 (), PORT 4255, 4259 MODE: Authentication


    SteamID: 76561197960265728 (0)

    Query IP: 0

    Steam Query Server bind to ANY (4255)

    2021/05/10 07:35 PM: Steam Servers Connected (1102958949 -> xxx.xxx.xxx.xxx)

    java.io.IOException: An existing connection was forcibly closed by the remote host

    at sun.nio.ch.SocketDispatcher.read0(Native Method)

    at sun.nio.ch.SocketDispatcher.read(Unknown Source)

    at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)

    at sun.nio.ch.IOUtil.read(Unknown Source)

    at sun.nio.ch.SocketChannelImpl.read(Unknown Source)

    at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)

    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1106)

    at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:343)

    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)

    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)

    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)

    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)

    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)

    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)

    at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)

    at java.lang.Thread.run(Unknown Source)

    java.io.IOException: An existing connection was forcibly closed by the remote host

    at sun.nio.ch.SocketDispatcher.read0(Native Method)

    at sun.nio.ch.SocketDispatcher.read(Unknown Source)

    at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)

    at sun.nio.ch.IOUtil.read(Unknown Source)

    at sun.nio.ch.SocketChannelImpl.read(Unknown Source)

    at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)

    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1106)

    at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:343)

    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)

    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)

    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)

    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)

    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)

    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)

    at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)

    at java.lang.Thread.run(Unknown Source)

    java.io.IOException: An existing connection was forcibly closed by the remote host

    at sun.nio.ch.SocketDispatcher.read0(Native Method)

    at sun.nio.ch.SocketDispatcher.read(Unknown Source)

    at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)

    at sun.nio.ch.IOUtil.read(Unknown Source)

    at sun.nio.ch.SocketChannelImpl.read(Unknown Source)

    at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)

    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1106)

    at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:343)

    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)

    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)

    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)

    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)

    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)

    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)

    at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)

    at java.lang.Thread.run(Unknown Source)

  • This sounds like something else tries to establish a connection to the server, i.e. something connects to port 4255, 4256, 4257 or 4258. The server then thinks it's a player connection.


    There was a similar situation in the past where a game hoster used the wrong port to query the server (the query port is 4254, but the hoster accidentally used port 4256) - this resulted in lots of similar warnings too (since the server only expects player connections on these ports).

  • The last reply was more than 365 days ago, this thread is most likely obsolete. It is recommended to create a new thread instead.

    • :)
    • ;)
    • :(
    • :P
    • ^^
    • :D
    • :verysad:
    • ;(
    • X(
    • :*
    • :|
    • :crazy:
    • :lol:
    • :dizzy:
    • =O
    • <X
    • ||
    • :thinking:
    • :wacko:
    • :/
    • 8)
    • :wat:
    • :huh:
    • :silenced:
    • :wow:
    • 8|
    • :angry:
    • :thumbdown:
    • :thumbup:
    • :sleeping:
    • :hushed:
    • :nerd:
    • :saint:
    • :drooling:
    • :love:
    • :monocle:
    • :poo:
    • :party:
    • :drunk:
    • <3
    • :!:
    • :?:
    The maximum number of attachments: 10
    Maximum File Size: 1 MB
    Allowed extensions: 7z, asset, avi, bmp, dds, gif, jpeg, jpg, json, log, lua, mp3, mp4, ogg, pdf, permissions, png, properties, rar, txt, unitypackage, xml, zip

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!