Minecraft — Runbook
Routine Tasks
Restart services
ssh [email protected] "systemctl restart minecraft"
ssh [email protected] "systemctl restart playit"
Logs
| Log | Contents | Location | Loki query | Format |
|---|---|---|---|---|
| Minecraft server | Player connections, world events, errors, crashes | LXC 109 journald | {job="minecraft", unit="minecraft.service"} |
Plain text |
| Playit tunnel | Tunnel status, connection events | LXC 109 journald | {job="minecraft", unit="playit.service"} |
Plain text |
Notes:
- All systemd units on LXC 109 are shipped via Alloy journal tailing
- SSH fallback: ssh [email protected] "journalctl -u minecraft -f" / journalctl -u playit -f
Troubleshooting
Players can't connect from outside
- Check playit service is running:
systemctl status playit - Check playit logs for tunnel errors:
journalctl -u playit -n 50 - If the tunnel agent lost its claim, the secret key stored in Vault may be stale — redo the playit.gg first-time setup to reclaim
Server not starting
- Check Minecraft service logs:
journalctl -u minecraft -n 100 - Common cause: Java memory settings — check
ExecStartin the systemd unit for-Xmx/-Xmsvalues vs available RAM on LXC 109