-
I’m seeing AutoPause repeatedly getting "knocked” and then immediately pausing again—even though no one ever connects. I suspect Docker’s healthcheck may be triggering these wakes, I'm not entirely sure though. I've read some similar ish discussions, but I never came across what exactly it was that is triggering this, so I want to know What exactly do you think is causing this behavior? reproducing the issue
services:
restore-backup:
# INIT-container: restores newest .tgz into ./data if empty
image: itzg/mc-backup
restart: "no"
entrypoint: ["/bin/sh", "/usr/local/bin/restore-entrypoint.sh"]
volumes:
- "./data:/data"
- "./mc-backups:/backups:ro"
- "./rclone.conf:/config/rclone/rclone.conf:ro"
- "./restore-entrypoint.sh:/usr/local/bin/restore-entrypoint.sh"
mc:
image: itzg/minecraft-server:latest
depends_on:
restore-backup:
condition: service_completed_successfully
tty: true
stdin_open: true
restart: unless-stopped
stop_grace_period: 2m
ports:
- "25565:25565"
- "19132:19132/udp"
environment:
EULA: "TRUE"
# Using fabric and downloading from modrinth
TYPE: "MODRINTH"
VERSION: "LATEST" # You could also just put in `1.21.5`
MODRINTH_LOADER: "fabric"
MODRINTH_MODPACK: "adrenaline"
MODRINTH_DEFAULT_VERSION_TYPE: "alpha"
MODRINTH_DOWNLOAD_DEPENDENCIES: "required"
# AUTOPAUSE
ENABLE_AUTOPAUSE: "TRUE" # let the JVM pause when idle (saves CPU/network)
MAX_TICK_TIME: "-1" # turn off the vanilla watchdog so pause doesn’t kill it
AUTOPAUSE_TIMEOUT_EST: "1"
AUTOPAUSE_TIMEOUT_INIT: "1"
AUTOPAUSE_TIMEOUT_KN: "1"
# RCON
RCON_ENABLE: "true"
RCON_PASSWORD: ""
# Basic settings for the server
MOTD: "a"
SEED: "-1224392421609163985"
MEMORY: "12288M"
DIFFICULTY: "3"
ALLOW_FLIGHT: "true"
VIEW_DISTANCE: "8"
SNOOPER_ENABLED: "false"
SPAWN_PROTECTION: "0"
SIMULATION_DISTANCE: "5"
USE_AIKAR_FLAGS: "true"
SYNC_CHUNK_WRITES: "false"
INITIAL_ENABLED_PACKS: vanilla,minecart_improvements
# Set myself as op and whitelist from the start
OPS: |-
***
# ENABLE_WHITELIST: "true"
# WHITELIST: |-
# ***
# These are all the mods
MODRINTH_PROJECTS: |-
geyser
floodgate
spark
chunky
terralith
hearths
mes-moogs-end-structures
unwrecked-ships
dungeons-and-taverns-woodland-mansion-replacement
dungeons-and-taverns-swamp-hut-overhaul
dungeons-and-taverns-pillager-outpost-overhaul
revamped-shipwrecks
dungeons+
dungeons-and-taverns-jungle-temple-overhaul
dungeons-and-taverns-desert-temple-overhaul
dungeons-and-taverns-stronghold-overhaul
dungeons-and-taverns
hopo-better-mineshaft
hopo-better-ruined-portals
towns-and-towers
structory-towers
structory
explorify
dynamic-torches
void-totem
death-backup
scaffolding-drops-nearby
mastercutter
netherportalfix
anvil-restoration
better-beacon-placement
better-conduit-placement
better-spawner-control
bigger-sponge-absorption-radius
conduits-prevent-drowned
crying-portals
double-doors
easy-elytra-takeoff
extended-bone-meal
fixed-anvil-repair-cost
move-minecarts
move-boats
no-hostiles-around-campfire
no-animal-tempt-delay
respawning-shulkers
MODRINTH_ALLOWED_VERSION_TYPE: "alpha"
# This includes:
# - Fast Leaf Decay
# - More Effective Tools
# - Multiplayer Sleep
# - Armored Elytra
# - XP Bottling
# - Silk touch Budding Amethyst
# - Graves
# - AFK Display
# - Nether Portal Coords
# - Homes, Spawn, TPA
VANILLATWEAKS_SHARECODE: "QSn8f2"
volumes:
- "./data:/data"
backups:
image: itzg/mc-backup
depends_on:
mc:
condition: service_healthy
pre_stop:
- command: ["backup","now"] # run final backup before stopping container
environment:
# ── Backup timing ──
BACKUP_INTERVAL: "12h" # twice per day
INITIAL_DELAY: "0" # no extra wait once mc is healthy
BACKUP_ON_STARTUP: "true" # immediate backup on first start
# ── Retention ──
PRUNE_BACKUPS_DAYS: 7 # keep last week
# ── Rclone → Google Drive ──
BACKUP_METHOD: rclone
RCLONE_REMOTE: gdrive # name of your Drive remote
RCLONE_DEST_DIR: mc-backups # folder in Drive (created if needed)
DEST_DIR: /backups
RCLONE_COMPRESS_METHOD: gzip
# ── RCON settings ──
RCON_HOST: mc
RCON_PORT: 25575
RCON_PASSWORD: "***"
volumes:
- "./data:/data:ro" # read-only world data
- "./mc-backups:/backups" # temp staging for .tgz files
# Copy your rclone config here (INI format):
# cp ~/.config/rclone/rclone.conf ./rclone.conf
- "./rclone.conf:/config/rclone/rclone.conf:ro"
playit:
image: ghcr.io/playit-cloud/playit-agent:0.15
network_mode: host
environment:
- SECRET_KEY=***
#!/bin/sh
set -e
SRC_DIR="/data"
DEST_DIR="/mc-backups"
# Check if data directory is empty
if [ -z "$(ls -A "$SRC_DIR" 2>/dev/null)" ]; then
echo "Data directory is empty. Checking for backups..."
# Try to find the latest backup in Google Drive
latest=$(rclone lsf gdrive:mc-backups \
--config /config/rclone/rclone.conf \
| grep '\.tgz$' \
| sort \
| tail -n1)
if [ -n "$latest" ]; then
echo "Found backup $latest, downloading..."
rclone copy "gdrive:mc-backups/$latest" "$DEST_DIR" \
--config /config/rclone/rclone.conf
else
echo "No .tgz backups found in Google Drive."
fi
echo "Attempting restore using restore-tar-backup..."
exec restore-tar-backup
else
echo "Data directory is not empty. Skipping restore."
fi
logging the issue
here's a snippet for the output for the docker log
here's a snippet for the output of tcpdump
More infoHere are all the complete logs, if you want to indulge: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I turned off the healthcheck for the minecraft container, issue persists, guess it was not that. |
Beta Was this translation helpful? Give feedback.
-
Something might be scanning for open ports especially public Minecraft servers. |
Beta Was this translation helpful? Give feedback.
Something might be scanning for open ports especially public Minecraft servers.