More Info: How to Fix io.netty.channel.abstractchannel$annotatedconnectexception
Need Help? Click here for more information on How to Fix io.netty.channel.abstractchannel$annotatedconnectexception.
Need Help? Click here for more information on How to Fix io.netty.channel.abstractchannel$annotatedconnectexception.
I've hosted a Minecraft server on a Linux VPS. It has 3GB of RAM dedicated to it and the machine has 4 cores.
I'm running it on port 22222 and this port has been opened in the firewall on both TCP and UDP.
Sometimes I am able to connect to the server but sometimes I'm not. My friends are experiencing the same issues where sometimes they're able to connect and sometimes they can't. The error we're seeing is:
Yesterday we were all connected without any issue.
Earlier I was able to connect but my wife wasn't.
Right not I am not able to connect but my friend is.
I haven't seen this problem so far when I try to connect from my Linux laptop.
The server has not been restarted at all between these events (and restarting does not help)
Does anyone have any idea of what it could be?
For reference, here's my startup command
and server.properties:
try compleating your startup script make sure it matches your hardware as well as your server and don't use up all your ram your operating system needs ram too about 512MB should be about right.
also can you give pastebins of your logs too
Hi,
The server has 4GB of RAM and it's not running anything else, so that would leave 1GB free for system things.
My log doesn't show anything related to a connection:
This is the log from today when I restarted the server.
The two logins you see is me from my Linux machine. In between those, I attempted to login from my Windows machine a few times, although nothing shows up.
ok do you have anything else running on your VPS? also don't forget to match your startup script to your hardware and server not just ram allocation
Sorry, I thought I mentioned it before: My VPS used to have some docker containers running as well but not anymore. I've even disabled the docker service. So it's not running anything else other than my Minecraft server.
When you say "match your startup script to your hardware and server", what exactly do you mean by that?
I mean you need to tell java what hardware you have and what it can use ie how many cpu cores, how to handle garbage collection etc as java cannot detect and allocate it automatically which is why we need to add the java arguments in a server startup script and minecraft client
Thanks for all the help you're giving @lcswolf but adding the cores and garbage collection options did not make it any better.
I must say that my friends are able to connect more reliably than my wife or myself when on a Windows PC.
In addition I have yet to see this issue while running on my Linux machine.
I got a Windows update and now it works all the time... O.O
Thanks for the help.