You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm receiving a "Cannot open: Permission denied" error when trying to run a tar backup.
Here are the contents of my docker-compose file. Do I have something wrong?
services:
mc:
image: itzg/minecraft-servertty: truestdin_open: trueports:
- "25565:25565"environment:
EULA: "TRUE"TYPE: FABRICVERSION: 1.20.1INIT_MEMORY: 1024MMAX_MEMORY: 5120MMOTD: A Drewbuntu ServerDIFFICULTY: NormalSERVER_NAME: Tuxcraft FabricPLAYER_IDLE_TIMEOUT: 0PLUGINS: | https://cdn.modrinth.com/data/L695BdOy/versions/EjNpDfo3/SetSpawn-3.1.jarICON: https://icons.iconarchive.com/icons/papirus-team/papirus-apps/72/tux-icon.pngdepends_on:
restore-backup:
condition: service_completed_successfullyvolumes:
- ./minecraft-data:/data
- ./mods.txt:/extras/mods.txt:rorestore-backup:
# Same image as mc, but any base image with bash and tar will work image: itzg/mc-backupuser: "1000"restart: noentrypoint: restore-tar-backupvolumes:
# Must be same mount as mc service, needs to be writable
- ./minecraft-data:/data# Must be same mount as backups service, but can be read-only
- ./minecraft-backups:/backups:robackups:
image: itzg/mc-backupuser: "1000"depends_on:
mc:
condition: service_healthyenvironment:
BACKUP_INTERVAL: "4h"RCON_HOST: mc# since this service waits for mc to be healthy, no initial delay is neededINITIAL_DELAY: 0# As an example, to backup only the world data:# INCLUDES: world,world_nether,world_the_endPRUNE_BACKUPS_DAYS: 7volumes:
- ./minecraft-data:/data:ro
- ./minecraft-backups:/backups
The text was updated successfully, but these errors were encountered:
Double check the ownership and/or permissions on your host directory ./minecraft-data. The containers are accessing that as user ID 1000. If you're running root-less containers such as with podman, I believe you'll also need to lookup the UID mapping.
I thought I had already changed permissions to grant other users read and write. When looking at ownership, however, I noticed that my minecraft-backups folder was owned by root:root.
I changed it to drew:drew like all of the others....
I'm receiving a "Cannot open: Permission denied" error when trying to run a tar backup.
Here are the contents of my docker-compose file. Do I have something wrong?
The text was updated successfully, but these errors were encountered: