Posted November 1, 20178 yr Server Log If I had to hazard a guess, I'd say this line is the point of no return for connections: Spoiler WARNING: Failed to re-register a Channel to the new Selector. java.lang.ClassCastException: io.netty.channel.nio.SelectedSelectionKeySetSelector cannot be cast to java.nio.channels.spi.AbstractSelector at java.nio.channels.spi.AbstractSelectableChannel.register(Unknown Source) at io.netty.channel.nio.NioEventLoop.rebuildSelector0(NioEventLoop.java:347) at io.netty.channel.nio.NioEventLoop.rebuildSelector(NioEventLoop.java:318) at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:769) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:388) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) at java.lang.Thread.run(Unknown Source) Client Log Users have no problem connecting to the server and playing until several hours pass, and all of a sudden something happens and users cannot connect to the server anymore until a server restart. If a user is already on the server when whatever error happens, he can continue playing on the server while other users are unable to connect. I stumbled upon this thread while looking for a solution. I am not suffering from players getting disconnected, but the rest of the symptoms seem to line up. It suggests that the 4.1.9 version of Netty is causing this particular issue. I have no idea how to get forge to use a different version of Netty. Help! Thanks ahead guys, and great work on forge! EDIT: After playing for several more hours with no issues and a full server of people, I disconnected to refresh the in-game maps. When trying to rejoin my server I get the error: failed to connect to server java.nio.channels.closedchannelexception Now there is still a full server of people playing, but no new players can join. Server Log This time there seems to be no indication of any errors in the server log. I'm very confused. Client Log EDIT2: So I did in fact have a player get disconnected when encountering this error: Server Log This seems to help confirm that it is indeed the Netty issue highlighted here. Edited November 2, 20178 yr by Swampfox
November 3, 20178 yr Author I hope I can bump after several days with no solution in sight? Is there no hope for using a new netty version with forge? Or should I get to work on getting a restart script running every 4 hours?
September 8, 20187 yr Author I'm going to bump this thread yet again a year later, because I am running a 1.12.2 server and having the exact same issues again. Can nobody really advise me how to force forge to use an updated version of netty? It is frustrating as all hell. Edit: I'm very sorry. I managed to find this post made in the time between my posts here, and I believe it has solved my issue. Ahh If I just could have had LexManos give that info to me a year ago ? Edited September 8, 20187 yr by Swampfox
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.