itzg / itzg/docker-mc-backup

Restore backup container leaves zombie process

Open
#184 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
538
Forks
69
Avg merge
3h 28m
Merged PRs (30d)
2

Description

After implementing with docker compose as specified in the documentation, a zombie process is always left behind after running `docker compose up -d`. I believe this to be caused by the `restore-backup` service that immediately exits.

Here is my `compose.yml`:
```yml
services:
# TerraFirmaCraft server
mc:
image: itzg/minecraft-server
ports:
- "25565:25565"
environment:
UID: 1002
MEMORY: 6G
EULA: "TRUE"

# server settings
LEVEL_TYPE: tfc:overworld
SPAWN_PROTECTION: 0
ICON: /icon.png
DIFFICULTY: normal
MAX_PLAYERS: 5
ENABLE_WHITELIST: true

# mod settings
MOD_PLATFORM: AUTO_CURSEFORGE
CF_API_KEY: ${CF_API_KEY}
CF_SLUG: "terrafirmacraft-worlds-apart"
CF_FORCE_SYNCHRONIZE: true

depends_on:
restore-backup:
condition: service_completed_successfully
volumes:
- ./server-data/tfc/data:/data
- ./server-data/tfc/icon.png:/icon.png:ro
- ./server-data/tfc/datapacks:/datapacks:ro
# Backup restore service
restore-backup:
image: itzg/mc-backup
restart: "no"
entrypoint: restore-tar-backup
volumes:
- ./server-data/tfc/data:/data
- ./server-data/tfc/backups:/backups:ro
# Backup service
backups:
image: itzg/mc-backup
depends_on:
mc:
condition: service_healthy
environment:
BACKUP_INTERVAL: "8h"
RCON_HOST: mc
INITIAL_DELAY: 0
volumes:
- ./server-data/tfc/data:/data:ro
- ./server-data/tfc/backups:/backups
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the compose.yml configuration in the issue, especially the restore-backup service and its restore-tar-backup entrypoint, then reproduce docker compose up -d. Determine why the immediately exiting restore-backup service leaves a zombie process; done means the restore completes without leaving that process behind.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.