Ketebece
Ketebece
RRuntipi
Created by Ketebece on 2/27/2025 in #🙋🏼・help
Can't start runtipi because of postgres volume permission issues
Hi everyone, I'm trying to install runtipi on my home server, using a fresh install of Fedora 41 but I'm facing a weird permission issue when trying to start the postgres database. I've seen multiple people having this issue online but none of the solutions I've found in those threads helped. Here' s the error I'm facing:
runtipi-db | chown: changing ownership of '/var/lib/postgresql/data': Permission denied
runtipi-db | chmod: changing permissions of '/var/lib/postgresql/data': Permission denied
runtipi-db | find: ‘/var/lib/postgresql/data’: Permission denied
runtipi-db | chown: changing ownership of '/var/lib/postgresql/data': Permission denied
runtipi-db | chown: changing ownership of '/var/lib/postgresql/data': Permission denied
runtipi-db | chmod: changing permissions of '/var/lib/postgresql/data': Permission denied
runtipi-db | find: ‘/var/lib/postgresql/data’: Permission denied
runtipi-db | chown: changing ownership of '/var/lib/postgresql/data': Permission denied
Here's an ls of my folder right after the install:
total 10664
drwxr-xr-x. 1 ketebece ketebece 200 Feb 27 13:32 .
drwx------. 1 ketebece ketebece 350 Feb 27 13:32 ..
drwxr-xr-x. 1 root root 0 Feb 27 13:32 app-data
drwxrwxrwx. 1 root root 0 Feb 27 13:32 apps
drwxr-xr-x. 1 root root 0 Feb 27 13:32 backups
drwxrwxrwx. 1 root root 16 Feb 27 13:32 data
-rw-rw-r--. 1 root root 4054 Feb 27 13:32 docker-compose.yml
-rw-rw-r--. 1 root root 503 Feb 27 13:32 .env
drwxrwxrwx. 1 root root 0 Feb 27 13:32 logs
drwxr-xr-x. 1 root root 0 Feb 27 13:32 media
drwxrwxrwx. 1 root root 0 Feb 27 13:32 repos
-rwxr-xr-x. 1 ketebece ketebece 10904288 Feb 25 15:27 runtipi-cli
drwxrwxrwx. 1 root root 34 Feb 27 13:32 state
drwxrwxrwx. 1 root root 0 Feb 27 13:32 traefik
drwxrwxrwx. 1 root root 0 Feb 27 13:32 user-config
-rw-rw-r--. 1 root root 7 Feb 27 13:32 VERSION
total 10664
drwxr-xr-x. 1 ketebece ketebece 200 Feb 27 13:32 .
drwx------. 1 ketebece ketebece 350 Feb 27 13:32 ..
drwxr-xr-x. 1 root root 0 Feb 27 13:32 app-data
drwxrwxrwx. 1 root root 0 Feb 27 13:32 apps
drwxr-xr-x. 1 root root 0 Feb 27 13:32 backups
drwxrwxrwx. 1 root root 16 Feb 27 13:32 data
-rw-rw-r--. 1 root root 4054 Feb 27 13:32 docker-compose.yml
-rw-rw-r--. 1 root root 503 Feb 27 13:32 .env
drwxrwxrwx. 1 root root 0 Feb 27 13:32 logs
drwxr-xr-x. 1 root root 0 Feb 27 13:32 media
drwxrwxrwx. 1 root root 0 Feb 27 13:32 repos
-rwxr-xr-x. 1 ketebece ketebece 10904288 Feb 25 15:27 runtipi-cli
drwxrwxrwx. 1 root root 34 Feb 27 13:32 state
drwxrwxrwx. 1 root root 0 Feb 27 13:32 traefik
drwxrwxrwx. 1 root root 0 Feb 27 13:32 user-config
-rw-rw-r--. 1 root root 7 Feb 27 13:32 VERSION
I've tried the following: - Installing again from scratch - Changing the ownership of the files to a non root user - Changing the chmod to 777 on everything - Creating a named volume for postgres, that one got me past that error but it created new one and the runtipi-cli will override the compose file on start anyways. Not sure how to reproduce it at this point, it happens all the time, right after a clean install. Happy to provide more details if needed!
42 replies