-
Notifications
You must be signed in to change notification settings - Fork 761
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
Permission denied on internal db #1811
Comments
I'm also getting an error updating from 1.14.3 to 1.15.0 (or straigh to 1.15.1) database, core, jobservice, redis and registry in crashloopbackoff database
core
jobserver also like the core pod, runtime errors on same asm_amd64 redis
registry even start for a while, then goes on the same error as core and jobservice
anyhow its now impossible to upgrade from version 1.14.3 to whatever new 1.15 version (I'm using rancher btw) |
How do you upgrade your helm harbor? I cannot reproduce this issue at my side. May need more contexts here. e.g. any configurations apply to your database settings? |
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days. |
Is it possible to put an init container on pg to set permissions? |
getting the same error here with the assembly code in the core, and redis during upgrade, have been it fixed ? |
same problem here with chart version |
@MinerYang this might be caused by having the PV on the node being an NFS mounted directory. |
I was able to fix this issue for postgres, redis and trivy like this.. might not be pretty, but at least Harbor starts now. postgres: extrInitContainers:
- name: db-permission-fix
securityContext:
runAsUser: 0 # Run as root user
image: busybox
command: [ 'sh', '-c', 'mkdir -p /var/lib/postgresql/data/; chown -R 999:999 /var/lib/postgresql/data/; chmod -R 700 /var/lib/postgresql/data/' ]
volumeMounts:
- name: database-data
mountPath: /var/lib/postgresql/data trivy: initContainers:
- name: trivy-permission-fix
securityContext:
runAsUser: 0 # Run as root user
image: busybox
command: [ 'sh', '-c', 'chown -R 10000:10000 /home/scanner' ]
volumeMounts:
- name: data
mountPath: /home/scanner redis: initContainers:
- name: redis-permission-fix
securityContext:
runAsUser: 0 # Run as root user
image: busybox
command: [ 'sh', '-c', 'chown -R 999:999 /var/lib/redis' ]
volumeMounts:
- name: data
mountPath: /var/lib/redis |
So in my case, currently the harbor only runs on a NFS mounted PVC by netapp, There is no official workaround ? It was fine on every version except this... I don't think that my CTO would br okay to change our current setup on harbor |
Where to apply these? |
@DaanSelen in the values.yaml of the Harbor HELM Chart |
Thanks! But I am now unsure my issue is the same: #1889 |
Helm version:
Harbor version:
Logs:
Pod description:
The text was updated successfully, but these errors were encountered: