dify-helm icon indicating copy to clipboard operation
dify-helm copied to clipboard

question help

Open hx2023222576 opened this issue 1 year ago • 4 comments

mkdir: cannot create directory ‘/bitnami/postgresql/data’: Permission denied

Because it's my first time using it, I don't quite understand. After deployment, the log shows this. Can you help me solve it

hx2023222576 avatar May 12 '24 17:05 hx2023222576

Please follow our issue template, otherwise we couldn't figure out what the problem is given what you've provided so far.

BorisPolonsky avatar May 13 '24 10:05 BorisPolonsky

微信图片_20240513213931 The container PostgreSQL installed by Helm does not have permission

hx2023222576 avatar May 13 '24 13:05 hx2023222576

This is what would happen under the hood according to bitnami

chown {{ .Values.primary.containerSecurityContext.runAsUser }}:{{ .Values.primary.podSecurityContext.fsGroup }} {{ .Values.primary.persistence.mountPath }}
mkdir -p {{ .Values.primary.persistence.mountPath }}/data {{- if (include "postgresql.v1.mountConfigurationCM" .) }} {{ .Values.primary.persistence.mountPath }}/conf {{- end }}
chmod 700 {{ .Values.primary.persistence.mountPath }}/data {{- if (include "postgresql.v1.mountConfigurationCM" .) }} {{ .Values.primary.persistence.mountPath }}/conf {{- end }}

So you have a container that allows chown, chmod but rejects chmod afterwards. Which kubernetes cloud service were used in your case?

The log level suggests warning instead of error. Did you rule out other causes as well. What does the event dashboard suggests?

BorisPolonsky avatar May 19 '24 02:05 BorisPolonsky