this post was submitted on 10 Feb 2025
5 points (100.0% liked)

PieFed help

284 readers
1 users here now

It's seems right that we should have a local community to help us all with PieFed

founded 1 year ago
 

Hey there, thanks a lot for pyfedi it's a really nice addition to the network !

I tried to run the docker install and hit some issues with the database:

db-1            | initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted  
db-1            | fixing permissions on existing directory /var/lib/postgresql/data ... 

The problem is that for some reason after cloning the pg folder is owned by root, so it can't change permissions. I had to change owner to 1000 and then the rest of the install procedure went flawlessly !

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 3 days ago (1 children)

What exactly did you do to solve this? I am seeing something similar.

[–] [email protected] 2 points 3 days ago

In the host I had to change the owner to 1000. It was set to root somehow.

[–] [email protected] 3 points 1 week ago

Thanks for reporting your fix, I had the same issue!

I suspect that adding

      PUID: 1000  
      PGID: 1000  

to the environment section of compose.yaml would stop this from occurring but I haven't tried it.