Recent Discussions

Players getting disconnected with "Bad Packet Handling" exclusively on Linux (possibly UNIX based sy

Unanswered
Wetterhoun posted this in #questions
Messages114 messages
Views0 views
WetterhounOP
Description: Packet handling error io.netty.handler.codec.DecoderException: Badly compressed packet - actual length of uncompressed payload 30500 is does not match declared size 32030


Hi all!

long story short I have started a Fabric 1.21.4 vannila+ SMP server, but my players gets disconnected with Packet handling errors like the code block above very often. Yet the issue only occurs on Linux (someone else mentioned it happens on MacOS as well), but the exact same save on Windows is running without any issue at all.

The issue gets more intense with more players being in the server: when one player is in the server it rarely happens, when there are two players the issue happens about once in 10 minutes, three players makes it happen very two minutes or so, and four players basically mean everyone gets disconnected immediately.

I have done many attempts to find out what the issue is, but I couldn't.
The followings are the things that I have tested and none effected the issue of the disconnections:
- Removed all the mods but the issue remains the same.
- Switched Minecraft version (to 1.19.4) but the issue remains.
- Ran the server without Docker (I started with a docker server, itzg/minecraft-server) but the issue remains.
- Switched Linux distro (from NixOS to Debian) but the issue remains.
- Used a different port (from 25565 to 25566) to see if my ISP limited the port but the issue remains.
- Switched the firewall to a different one (Mikrotik to OPNSense) but the issue remains.
The only way to host a reliable server I've found so far is to move the server to Windows.

If anyone knows the solution, or suggestions on what to do in attempts of finding the issue, please let me know, thank you!
WetterhounOP
Here are the info of the hardware and OS: A HP Z440 with a E5-2680V4, 128Gb ECC Ram, and a 1TB 870 Evo, running Proxmox. Every system I mentioend above were running as a VM. The machine is hardwired to a Mikrotik hEX S.
image.png
here is the result of MTR, no packet losses at all
Asiatic Lion
if you dont mind me asking where did you buy it?
Like i have a feeling the issue is just your host having terrible routing to your entire playerbase or them potentially dropping packets
WetterhounOP
the z440? it's from one of the discord mods of r/homelab
Key West Quail-Dove
Badly compressed packet - actual length of uncompressed payload 30500 is does not match declared size 32030 seems to suggest something going wrong with the packets being compressed incorrectly
@Asiatic Lion Like i have a feeling the issue is just your host having terrible routing to your entire playerbase or them potentially dropping packets
WetterhounOP
that is the thing I forgot to specify, when the issue occurs, everyone including myself conencting from LAN, all get disconnected
mind sharing your server properties and mod list?
do you use a proxy like velocity or bungee cord?
do you also use any ddos protection like neoprotect or tcp shield?
WetterhounOP
---- Minecraft Network Protocol Error Report ----
// 404

Time: 2025-01-25 20:51:50
Description: Packet handling error

java.net.SocketException: Connection reset

give me one sec I am pulling up error logs that were not compression related reports
I remember there was also something about light_chunks but I can't find the logs right now
@Tamz mind sharing your server properties and mod list?
do you use a proxy like velocity or bungee cord?
WetterhounOP
no mod no proxies, but also no ddos protections
regarding server properties I am using docker which in the compose file I specified:
environment:
      EULA: "TRUE"
      TYPE: FABRIC
      VERSION: 1.21.4
      SERVER_NAME: "FishStall: Vanilla-Latest"
      INIT_MEMORY: 1G
      MAX_MEMORY: 8G
      DIFFICULTY: hard
      ICON: /data/server-icon.jpg
      MOTD: "\u00A74\u00A7n\u00A7lGET YOUR ASSES IN HERE"
      SIMULATION_DISTANCE: 10
      USE_AIKAR_FLAGS: TRUE
      NETWORK_COMPRESSION_THRESHOLD: 0
#Minecraft server properties
#Thu Jan 30 19:19:27 UTC 2025
accepts-transfers=false
allow-flight=false
allow-nether=true
broadcast-console-to-ops=true
broadcast-rcon-to-ops=true
bug-report-link=
difficulty=hard
enable-command-block=false
enable-jmx-monitoring=false
enable-query=false
enable-rcon=true
enable-status=true
enforce-secure-profile=true
enforce-whitelist=false
entity-broadcast-range-percentage=100
force-gamemode=false
function-permission-level=2
gamemode=survival
generate-structures=true
generator-settings={}
hardcore=false
hide-online-players=false
initial-disabled-packs=
initial-enabled-packs=vanilla
level-name=world
level-seed=
level-type=minecraft\:normal
log-ips=true
max-chained-neighbor-updates=1000000
max-players=20
max-tick-time=60000
max-world-size=29999984
motd=§4§n§lGET YOUR ASSES IN HERE
network-compression-threshold=0
online-mode=true
op-permission-level=4
pause-when-empty-seconds=60
player-idle-timeout=0
prevent-proxy-connections=false
pvp=true
query.port=25565
rate-limit=0
rcon.password=HIDENED
rcon.port=25575
region-file-compression=deflate
require-resource-pack=false
resource-pack=
resource-pack-id=
resource-pack-prompt=
resource-pack-sha1=
server-ip=
server-name=FishStall\: Vanilla-Latest
server-port=25565
simulation-distance=10
spawn-monsters=true
spawn-protection=16
sync-chunk-writes=true
text-filtering-config=
text-filtering-version=0
use-native-transport=true
view-distance=10
white-list=false
my bad I forgot I have the instance mounted locally
here is the server.property file
oh but the clients that were connecting to the server all had mods, can client mods be an issue?
I should call my friends to check that out
wrong person, just realized lol
try adding Packetfixer mod to the server to see if that does anything
@Tamz try adding Packetfixer mod to the server to see if that does anything
WetterhounOP
added but I don't have people to test the server with me
@Wetterhoun added but I don't have people to test the server with me
does it happen with everyone that joins?
WetterhounOP
Yeah it disconnects everyone at the same time
But the issue only occurs when more players join
When it’s only me it almost never happens
interesting
this is a Home server yeah?
WetterhounOP
Two player = about once ten minutes
is it maybe a bandwith issue?
Loading...