Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/var/run/postgresql/.s.PGSQL.5432.lock: Read-only file system #602

Open
Y0ngg4n opened this issue Oct 4, 2024 · 3 comments
Open

/var/run/postgresql/.s.PGSQL.5432.lock: Read-only file system #602

Y0ngg4n opened this issue Oct 4, 2024 · 3 comments

Comments

@Y0ngg4n
Copy link

Y0ngg4n commented Oct 4, 2024

It seems like you already tried to mitigate this problem with the chmod but maybe a chown postgres:postgres is missing

chmod: changing permissions of '/var/run/postgresql': Read-only file system

PostgreSQL Database directory appears to contain a database; Skipping initialization

2024-10-04 06:53:19.047 UTC [1] LOG:  starting PostgreSQL 16.1 (Debian 16.1-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-10-04 06:53:19.047 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-10-04 06:53:19.047 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2024-10-04 06:53:19.069 UTC [1] FATAL:  could not create lock file "/var/run/postgresql/.s.PGSQL.5432.lock": Read-only file system
2024-10-04 06:53:19.070 UTC [1] LOG:  database system is shut down
@bo0tzz
Copy link
Member

bo0tzz commented Oct 18, 2024

Are you running this with the bitnami helm chart? That changed in a recent release to set readOnlyRootFilesystem: true.

@Y0ngg4n
Copy link
Author

Y0ngg4n commented Oct 19, 2024

@bo0tzz no the immich helm chart

@bo0tzz
Copy link
Member

bo0tzz commented Oct 19, 2024

Right, the Immich helm chart uses bitnami's chart for postgres.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants