Server attempts to send disconnect packets in the status phase
Clients invalidly handling their connection during the status phase will cause a SocketException to be thrown, which is handled by the ClientConnection#exceptionCaught method. This results in a clientbound/minecraft:disconnect packet with the message 'Internal Exception: (stringified error)'to be sent to the client. However, this packet doesn't exist in the status phase, so the server logs the following exception:
Error sending packet clientbound/minecraft:disconnect
io.netty.handler.codec.EncoderException: Sending unknown packet 'clientbound/minecraft:disconnect'
I would expect this exception to not be thrown as sending a disconnect packet with text during the status phase makes no sense, and the true error is with the client rather than the server.
Linked Issues
Created Issue:
Server attempts to send disconnect packets in the status phase
Clients invalidly handling their connection during the status phase will cause a SocketException to be thrown, which is handled by the ClientConnection#exceptionCaught method. This results in a clientbound/minecraft:disconnect packet with the message 'Internal Exception: (stringified error)'to be sent to the client. However, this packet doesn't exist in the status phase, so the server logs the following exception:
Error sending packet clientbound/minecraft:disconnect io.netty.handler.codec.EncoderException: Sending unknown packet 'clientbound/minecraft:disconnect'I would expect this exception to not be thrown as sending a disconnect packet with text during the status phase makes no sense, and the true error is with the client rather than the server.
is duplicated by
Affects 1.21.4.
Thank you for your report!
We're tracking this issue in MC-271325, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
I attached log-2024-05-01.txt, it goes along with this packet capture file that was too large for me to upload: https://drive.google.com/file/d/1l1RAHCC_-rwh8S2B1PO3YecRxdpyFvO0/view?usp=sharing
The issue happens at the times
[21:55:41] packet 11267
[23:46:39] packet 14259
[00:11:10] packet 14940
[00:13:02] packet 14990
[02:41:30] packet 18900
[04:47:41] packet 22144
[05:33:36] packet 23300
Affects 24w20a.
Affects 24w21b.
Affects 1.21 Pre-release 2.
Seems like this is breach attempt from old exploit. When older version, you might observed log that says something like <known player> disconnected from <not matching IP address>.
Seems like this is some kind of side effect of patching that exploit (or just updating java version). I experienced server crash when server processing these kind of errors.
There seems to be a Fabric mod which implements a fix for this bug: Disconnect Packet Fix
Can anyone provide an update on this bug?
Happens on 1.21.3, on all Bukkit forks and Vanilla. This has been freaking me out for ages!
ServerOyster: 1.21.3 is outdated and no longer supported on this bug tracker. Please only confirm issues for the latest version (1.21.4+).
Also happens on 1.21.4
Also happens without any players currently being online, or recently disconnected:
Last player online left, then this error happens multiple times, here's one of them, no player activity since 01:03:41
Version: 1.21.4 (Fabric)