TrueNAS Nextcloud started crashing, not sure what this log means

nextcloud– Created

postgres– Created

postgres_upgrade– Crashed

redis– Running

permissions- Exited

2026-06-27 13:19:59.102914-04:00[ix-postgres-main] - [2026-06-27 13:19:59] - Starting entrypoint with migration and upgrade handling

2026-06-27 13:19:59.110686-04:00[ix-postgres-main] - [2026-06-27 13:19:59] - ERROR: Base directory owner [568] does not match container user [999]

2026-06-27 13:19:59.462120-04:00[ix-postgres-main] - [2026-06-27 13:19:59] - Starting entrypoint with migration and upgrade handling

2026-06-27 13:19:59.465620-04:00[ix-postgres-main] - [2026-06-27 13:19:59] - ERROR: Base directory owner [568] does not match container user [999]

It looks like a permissions issue. Postgres needs permission for user 999 which in truenas is the netdata user. Does that user have ownership of the dataset you set for the postgres DB?

I made that change and it seems ok now.

Its odd cause Nextcloud has been running for months with no issues.

No clue how that got changed…