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

Permission denied on RHEL based OS #398

Open
atassis opened this issue Apr 29, 2024 · 2 comments
Open

Permission denied on RHEL based OS #398

atassis opened this issue Apr 29, 2024 · 2 comments

Comments

@atassis
Copy link

atassis commented Apr 29, 2024

After installing the LPP and initializing the PVC with pod, I receive an error for directory creation via helper:

mkdir: can't create directory '/data/local-path-provisioner/pvc-7a3c3fd8-6564-4bd6-a655-8a967e000a4b_default_volume-test-pvc': Permission denied

To fix it, I had to give SELinux attribute to the directory with command:

chcon -Rt container_file_t  /data/local-path-provisioner 

I have seen several issues for the same error, but none of them related to the chcon command and RHEL based distributions like Fedora.

@emilianomaccaferri
Copy link

you saved me a lot of time!

@atassis
Copy link
Author

atassis commented May 28, 2024

Tried to be as clear as possible:) nice to hear that it helped🫶

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

No branches or pull requests

2 participants