FATAL: data directory "/var/lib/postgresql/13/main" has invalid permissions\n2024-11-01 17:05:06.849 UTC [584134] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx
hmokay, can you share the output of sudo namei -l /var/lib/postgresql/13/main ?
Hmmmyes because it looks like postgres is down … maybe cluster 15.x ain’t up because of the story about the migration … Can you share the output of sudo pg_lsclusters ?
Ver Cluster Port Status Owner Data directory Log file
11 main 5433 online postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log
13 main 5435 online postgres /var/lib/postgresql/13/main /var/log/postgresql/postgresql-13-main.log
15 main 5434 online postgres /var/lib/postgresql/15/main /var/log/postgresql/postgresql-15-main.log
17 main 5432 online postgres /var/lib/postgresql/17/main /var/log/postgresql/postgresql-17-main.log
Hmf okay so you also have postgresql 17 which was probably installed by some specific app which does to this (cant remember which one) but it’s using port 5432 which is the usual port for postgres and should be used by version 15 instead … I don’t know exactly where to go from there … Personally I don’t really like the fact that postgresql 17 is there, this is cyberfrankenstein to me