itzg / itzg/minecraft-server-charts

Backup container fails to start

Open
#94 4 comments 0 reactions 1 assignee Claimed by @itzg View on GitHub
status/ready to test
Dominant language
Mustache
Stars
406
Forks
164
Avg merge
1h 34m
Merged PRs (30d)
1

Description

When using mcbackup, the backup container fails to start with:

`level=fatal msg="Failed to run sub-command" error="fork/exec /usr/bin/backup: operation not permitted".`

My Helm values:
```
mcbackup:
enabled: true
persistence:
annotations:
nfs.io/storage-path: minecraft-backups
storageClass: deimos-nfs

backupDir:
enabled: true
Size: 5Gi
```

I checked and I have the following permissions set for the backups directory:
`drwxrwxrwx 1 1000 2000 6 Jan 12 05:55 backups`

I have not been able to get the backup container to run unless I make the runAsUser root:
```
securityContext:
runAsUser: 0
```
Is there perhaps another way? Or should the Helm chart allow us to set the run as user as root?

I assume the issue is in entrypoint-demoter that tries to change the user which runs the backup command.

`setCredentials(uid, gid, command)`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.