-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Automatic Update to 3.2.0 fails with EACCES: permission denied... #1622
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
We're going to remove the automatic updating soon. That said, the |
Actually if |
After chowning to coder and running the upgrade it craps out and exits the container... $ docker run -it -p 8500:8080 -v "$PWD:/home/coder/project" -u "$(id -u):$(id -g)" codercom/code-server:latest
info code-server 3.2.0-rc.6 19ff74650b1b001d33d5c0207e311dd7c0ff4d2f
info HTTP server listening on http://0.0.0.0:8080
info - Password is db79922ae7d87eea2453cf5b
info - To use your own password set the PASSWORD environment variable
info - To disable use `--auth none`
info - Not serving HTTPS
info Automatic updates are enabled
info Relaunching: 3.2.0-rc.6 -> 3.2.0
error Uncaught exception: spawn /usr/lib/code-server/lib/node ENOENT
error Error: spawn /usr/lib/code-server/lib/node ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) |
Ahhhh, I see. That's unfortunate. So the Docker container is actually currently a bit ahead of 3.2.0 and it changes the structure a little so automatic updates (technically downgrade in this case) don't work. |
I think for now the best thing is to launch with |
can i know how set |
You should be able to add it to the end of the command like so:
|
If you want to do this while using a docker-compose file use this:
|
We've removed automatic updates. Please install and use the latest release manually. Sorry for the troubles! |
I am using the try command as per the github page:
However, I am then presented with an update prompt for 3.2.0...but when I click on it, I get the following error:
I see the
/usr/lib
directory is owned byroot:root
but even if I manually chown it tocoder:users
it fails to update...I am on Linux Docker version 18.09.8
Is there a solution for this? Many Thanks!
The text was updated successfully, but these errors were encountered: