-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Error: EACCES: permission denied #403
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
Comments
It is related to docker usage actually. Did you try to change another directory? Maybe trying /tmp first? |
I take a try
&
It is okay to run hello world
|
@code-asher suggested trying to |
I was also getting the same error for certain directories. However, I manually creates a 'code-server' directory and ran the docker commands again. It now works just fine.
|
I have the seme problem and nothing help. Any progress? |
Yeah, I too still get this error. When running with
|
Same here. |
Hi Guys, i had the same issue and edited the docker run string to be a different destination... ${HOME}/.local/share/code-server:/home/code/docker/test/.local/share/code-server" The segment in bold was a seperate path I'd set up locally. Previously it was /coder/ which didn't exist. |
It seems that the container tries to create a mounting point on a host system with uid 0 (root) when such a directory not exist and causing the permission error on writing after the creation. My suggestion as a workaround is, changing owner of the problematical directory after failing to run the container, than try to run the container again.
|
Ran into this problem when I was trying out code-server. Seems to me like the typical Docker problem of mismatch between host UID/GIDs and container UID/GIDs. I solved this by running the following commands instead of the one suggested in the readme:
In my (somewhat limited) experience, using EDIT: It actually works fine for me without the |
@plevold We've identified a fix for it as well so this might get fixed really soon. |
@sr229 When I run the command suggested in https://github.com/edumgui/code-server/commit/5faddfa9bccf40296b4a43c7c7ddd4092cd1ff7b any new files created in code-server is owned by |
Looks like that's bad practice, don't worry we're working on a fix for user mode I suggest against putting everything as UID0 |
Reopening this since we haven't slated a real fix, vetoing @nhooyr's close. |
@deansheather and @code-asher said we can use fixuid to fix our problems with permissions, along with |
The solution provided by @midnightradio is the only one that worked for me on AWS EC2 ( tested on Amazon Linux 2 and Ubuntu 16 free tier instances ). |
I had the same issue, @midnightradio was the solution that worked (changing ownership). |
See #1307 |
Don't run code-server as root and don't use /root directory. Use some other user and it's home directory. If you already have stuff in root here's how to move:
|
You must give permissions to the group: coder
|
It seems that the root cause of this issue is that For instance, when I changed the name in a perfectly working container of the all-important env var
Inspecting
|
Similar hard-coded env var is used for web access credentials: |
The text was updated successfully, but these errors were encountered: