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

cp: can't create directory '/data/frontend': Permission denied #79

Closed
jangrewe opened this issue Jul 29, 2023 · 3 comments
Closed

cp: can't create directory '/data/frontend': Permission denied #79

jangrewe opened this issue Jul 29, 2023 · 3 comments

Comments

@jangrewe
Copy link

jangrewe commented Jul 29, 2023

Hi, i think you broke the Docker image a bit, as i get this error when trying to start it:

docker run --rm docker.io/luzifer/nginx-sso:v0.27.0
cp: can't create directory '/data/frontend': Permission denied

I also noticed that you're using -d in docker-start.sh to check if the file /data/frontend/index.html exists - shouldn't that be -f then?

And lastly, i'm using my own frontend, so when mounting /etc/nginx-sso to /data, i get this:

cp: can't create '/data/frontend/index.html': File exists

Everything works as expected with 0.26.0, though!

@Luzifer
Copy link
Owner

Luzifer commented Jul 29, 2023

Good catch… That should indeed be -f, not -d… Interesting it didn't appear until now - that line was last touched December 2022… 😅

The permission error (cp: can't create directory '/data/frontend': Permission denied) is caused by the user change… Didn't happen for me as I'm mounting a K8s Secret there… :/

@jangrewe
Copy link
Author

Confirmed working! Thanks for the quick response and fix. <3

@Luzifer
Copy link
Owner

Luzifer commented Jul 29, 2023

Thanks for the report and quick adoption! Great to see there are users aside of my own systems… :D

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