question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatic Update to 3.2.0 fails with EACCES: permission denied...

See original GitHub issue

I am using the try command as per the github page:

$ docker run -it -p 8080:8080 -v "$PWD:/home/coder/project" \ 
-u "$(id -u):$(id -g)" codercom/code-server:latest

However, I am then presented with an update prompt for 3.2.0…but when I click on it, I get the following error:

"EACCES: permission denied, rename '/usr/lib/code-server' -> '/usr/lib/code-server.1589216663446'"

I see the /usr/lib directory is owned by root:root but even if I manually chown it to coder:users it fails to update…

I am on Linux Docker version 18.09.8

Is there a solution for this? Many Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sboulemacommented, May 15, 2020

If you want to do this while using a docker-compose file use this:

entrypoint: ["dumb-init", "fixuid", "-q", "/usr/bin/code-server", "--bind-addr", "0.0.0.0:8080", ".", "--disable-updates"]
1reaction
code-ashercommented, May 14, 2020

You should be able to add it to the end of the command like so:

docker run -it -p 8500:8080 -v "$PWD:/home/coder/project" -u "$(id -u):$(id -g)" codercom/code-server:latest --disable-updates
Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install globally failing (Error: EACCES: permission denied ...
Describe the bug I am having trouble installing this package globally. I run the following: sudo npm i -g @aws-amplify/cli and get the ......
Read more >
Why do I get a "permission denied" error while installing a gem?
It was a permissions issue for us as well, while trying gem update —system but we had to go through the /usr/local/rvm/rubies directory...
Read more >
3.2 Release Build - Permission Denied Error on client console
it is a permission issue. Fair enough for libjansi. My assumption was that the permission error was the Error indicated on the console....
Read more >
AWX docker images build error for Kubernetes - Google Groups
I am running into following error during 'Build AWX distribution using container' step, kind of lost here since we do have npm and...
Read more >
tidyverse cannot be called because of "cli" (Permission denied)
I recently updated multiple packages but even via R i get permission denied for "cli". That just caused a problem using the tidyverse...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found