Pugmatt / BedrockConnect

Join any Minecraft Bedrock Edition server IP on Xbox One, Nintendo Switch, and PS4/PS5
GNU General Public License v3.0
1.37k stars 159 forks source link

[nioEventLoopGroup-2-1] WARN org.cloudburstmc.netty.handler.codec.raknet.server.RakServerRateLimiter - [/192.168.1.209] Blocked because packet limit was reached null disconnected #503

Open pattarom opened 2 weeks ago

pattarom commented 2 weeks ago

What happened?

I run BedrockConnect in a container. Sometimes I cannot connect and looking in the log I find this error:

[nioEventLoopGroup-2-1] WARN org.cloudburstmc.netty.handler.codec.raknet.server.RakServerRateLimiter - [/192.168.1.209] Blocked because packet limit was reached null disconnected

For installing I use this docker composer configuration: I try to set packet limit to extreme values, but issue often returns

To resume I must manually restart the container

version: "3.8"

services:
  bedrockconnect: 
    image: strausmann/minecraft-bedrock-connect:latest
    restart: always
    environment:
      MYSQL_HOST: "db"
      MYSQL_USER: "bedrock"
      MYSQL_PASS: "bedrock"
      MYSQL_DB: "bedrock"
      CUSTOM_SERVERS: "/config/serverlist.json"
      FEATURED_SERVERS: false
      USER_SERVERS: true
      PACKET_LIMIT: 2000
      offline_packet_limit: 50
      global_packet_limit: 150000
      #BRC_VERSION: 1.45

    ports:
      - 19132:19132/udp
    depends_on:
      - db
    volumes:
     #- bedrockconnect:/config
     - /home/michele/mcbedrockc-data:/config

  db: 
    image: mariadb:10.6
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=rootpwbedrock
      - MYSQL_PASSWORD=bedrock
      - MYSQL_USER=bedrock
      - MYSQL_DATABASE=bedrock
      - TZ=Europe/Berlin
      - PGID=1000
      - PUID=1000
    ports:
      - 3306:3306
    volumes:
      - bedrockconnect_database:/var/lib/mysql

volumes:
  bedrockconnect:
    driver: local
  bedrockconnect_database:
    driver: local

Expected Behaviour?

I can connect without issues.

Steps to reproduce.

No response

Screenshots/Videos

No response

Minecraft Bedrock Version

1.21.03 but issue was still present in earlier versions

Console

XBOX and Windows PC

Additional Context

No response

Pugmatt commented 2 weeks ago

You appear to be using a Docker image strausmann/minecraft-bedrock-connect:latest, which is not provided by this project

You would most likely need to adjust packet_limit, which I see you are attempting to, but looking at this source file from strausmann/minecraft-bedrock-connect, it is not passing in the packet_limit docker environment variable to the startup command https://github.com/strausmann/minecraft-bedrock-connect/blob/main/image/bedrock-entry.sh

Since this is a file outside of this project, you may need to submit an issue to the image creator here: https://github.com/strausmann/minecraft-bedrock-connect

In the meantime, I will consider looking into adding environment variable support by default, as I do see how that could be helpful in these cases.

pattarom commented 2 weeks ago

Ok, I opened an issue to Strausmann. Thank you for your support