-
Notifications
You must be signed in to change notification settings - Fork 830
Closed as not planned
Labels
Description
Hello team, I have noticed that the database sets a permission for itself which it rejects.
I set this up while the container was in a error backoff
Then I delete the pod to let it be recreated by the SS.
KUB-MAST-01:~$ k logs -f harbor-database-0
Defaulted container "database" out of: database, data-permissions-ensurer (init)
init DB, DB version:15
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with this locale configuration:
provider: libc
LC_COLLATE: en_US.UTF-8
LC_CTYPE: en_US.UTF-8
LC_MESSAGES: C
LC_MONETARY: C
LC_NUMERIC: C
LC_TIME: C
The default text search configuration will be set to "english".
Data page checksums are disabled.
creating directory /var/lib/postgresql/data/pgdata/pg15 ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 20
selecting default shared_buffers ... 400kB
selecting default time zone ... UTC
creating configuration files ... ok
running bootstrap script ... 2024-12-12 22:05:47.354 UTC [64] FATAL: data directory "/var/lib/postgresql/data/pgdata/pg15" has wrong ownership
2024-12-12 22:05:47.354 UTC [64] HINT: The server must be started by the user that owns the data directory.
child process exited with exit code 1
initdb: removing data directory "/var/lib/postgresql/data/pgdata/pg15"
Then I look at the permissions again.
It now it nobody: docker! Why?

