Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration between Watchdog and Autopause? #3261

Closed
Knufle opened this issue Jan 19, 2025 · 2 comments
Closed

Integration between Watchdog and Autopause? #3261

Knufle opened this issue Jan 19, 2025 · 2 comments

Comments

@Knufle
Copy link

Knufle commented Jan 19, 2025

Enhancement Type

Improve an existing feature

Describe the enhancement

I'm running a cobblemon server https://modrinth.com/modpack/cobblemon-fabric with the following yaml

services:
  minecraft_cobblemon_fabric_modpack:
    image: itzg/minecraft-server:java21-alpine
    tty: true
    stdin_open: true
    ports:
      - "25565:25565"
    environment:
      EULA: "TRUE"
      TYPE: "MODRINTH"
      MODRINTH_MODPACK: "cobblemon-fabric"
      ENABLE_AUTOPAUSE: "TRUE"
      MAX_MEMORY: "4G"
    volumes:
      - mc_cobblemon_fabric_data:/data
    restart: unless-stopped
volumes:
  mc_cobblemon_fabric_data:

And I've noticed that everytime the server autopauses it crashes because of watchdog from what I was able to understand.

[Autopause loop] MC Server listening for connections - pausing in 600 seconds

[Autopause loop] No client connected since startup / knocked - pausing

[15:38:08] [RCON Listener #1/INFO]: Thread RCON Client /0:0:0:0:0:0:0:1 started

[15:38:08] [Server thread/INFO]: [Rcon: Saved the game]

[15:38:08] [RCON Client /0:0:0:0:0:0:0:1 #2/INFO]: Thread RCON Client /0:0:0:0:0:0:0:1 shutting down

[2025-01-19T15:38:08+00:00] [Autopause] Pausing Java process

[15:40:32] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 143850ms or 2877 ticks behind

[15:40:32] [Server Watchdog/ERROR]: A single server tick took 143.85 seconds (should be max 0.05)

[15:40:32] [Server Watchdog/ERROR]: Considering it to be crashed, server will forcibly shutdown.

Crash report: https://logs.notifiarr.com/?208efb44bfba53ce#AVBL15eX7QKKgM7bKNfkNRvBWVDCK2hxM4tepbkdTsk8

Is there any way to circumvent this?

@itzg
Copy link
Owner

itzg commented Jan 19, 2025

Read the box that says "important"

https://docker-minecraft-server.readthedocs.io/en/latest/misc/autopause-autostop/autopause/

@Knufle
Copy link
Author

Knufle commented Jan 19, 2025

Read the box that says "important"

https://docker-minecraft-server.readthedocs.io/en/latest/misc/autopause-autostop/autopause/

How are you always so fast? I was adding a comment with exactly that link when you replied lol, yeah, I tested here and just adding MAX_TICK_TIME=-1 fixed it, thanks

@Knufle Knufle closed this as completed Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants