goharbor / harbor-helm

The helm chart to deploy Harbor
Apache License 2.0
1.15k stars 746 forks source link

Harbor Chart has wrong ownership #1785

Closed daniele9233 closed 2 weeks ago

daniele9233 commented 3 weeks ago

Surely it is not a problem with the Harbor chart, But I hope someone can help me. I am using Rancher RKE2. When I install the Harbor chart, I only modify the storage class value, and it works if I use an Ubuntu 22.04 system.

If I try to do the same on a Rocky 9.4 system, it gives me this error:

"/var/lib/postgresql/data/pgdata/pg15" has wrong ownership 2024-07-06T07:39:30.385020760Z 2024-07-06 07:39:30.384 UTC [57] HINT: The server must be started by the user that owns the data directory. 2024-07-06T07:39:30.483537901Z child process exited with exit code 1 2024-07-06T07:39:30.483559735Z initdb: removing data directory "/var/lib/postgresql/data/pgdata/pg15

The storage class is a GlusterFS with NFS-Ganesha export.

wy65701436 commented 2 weeks ago

is it an fresh installation?

zyyw commented 2 weeks ago

It seems that this is about the compatibility between the NFS underlying os filesystem and container runtime.

The following references shared some user experience of using NFS with different os filesystem, please check it out: