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

mkdir: cannot create directory '/var/lib/pgsql/data/userdata': Permission denied #1813

Closed
3 tasks done
11philip22 opened this issue Apr 9, 2024 · 2 comments
Closed
3 tasks done

Comments

@11philip22
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that the AWX Operator is open source software provided for free and that I might not receive a timely response.

Bug Summary

Hi, I am trying to install the awx operator on digital ocean kubernetes.
When I run helm install -n awx --create-namespace my-awx-operator awx-operator/awx-operator my postgres container fails to start with the error mkdir: cannot create directory '/var/lib/pgsql/data/userdata': Permission denied.
When I describe the postgres container I see that PGDATA is set to /var/lib/pgsql/data/pgdata and not /var/lib/pgsql/data/userdata
image
How do i get this to work?

AWX Operator version

ansible-operator: v1.34.0

AWX version

How can I see?

Kubernetes platform

kubernetes

Kubernetes/Platform version

1.29.1-do.0

Modifications

no

Steps to reproduce

helm repo add awx-operator https://ansible.github.io/awx-operator/
helm install -n awx --create-namespace my-awx-operator awx-operator/awx-operator

Expected results

I expect my awx postgres container to be created.

Actual results

My database container throws this error
mkdir: cannot create directory '/var/lib/pgsql/data/userdata': Permission denied

Additional information

No response

Operator Logs

No response

@TheRealHaoLiu
Copy link
Member

dupe of #1770 see #1770 (comment) for workaround

in next release you can use the postgres init container to initialize the PGDATA directory see #1805

@11philip22
Copy link
Author

ah thank you

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

No branches or pull requests

2 participants