"Insufficient permission" error on save
See original GitHub issuecode-server
version: 1.621- OS Version: Ubuntu 18.04.2 LTS (on GCP)
Description
Files cannot be saved nor folders cannot be created from the editor. This problem only started to occur on the latest release. (I think)
Steps to Reproduce
- Start the server with
docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server:1.621 --allow-http --no-auth
- Open the editor on another page and try to make change to any file or folder. You will get this error
Failed to save 'README.md': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.
.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:18 (7 by maintainers)
Top Results From Across the Web
Google Chrome Download Error - Insufficient Permissions
If Google Chrome is failing to download any files, giving an insufficient permissions error, there's a simple fix. The error is just what...
Read more >Chrome Download Failed: Insufficient Permissions
Fix Chrome Error: Cannot save Due to Insufficient Permissions · Download the File Differently · Disable Your Extensions · Clear the Cache ·...
Read more >Download Failed - Insufficient Permissions Error in Chrome
Download Failed - Insufficient Permissions error in Google Chrome occurs due to the browser being unable to write to its default save location....
Read more >Insufficient permissions in vscode - Stack Overflow
Dear anyone, the issue is all about access permission to that directory or even file sometimes. So you need to use chmod command...
Read more >coder/code-server - "Insufficient permission" error on save
Open the editor on another page and try to make change to any file or folder. You will get this error Failed to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think @DavisAre’s solution seems like the best path forward here, typically when I’ve needed to edit files from inside a container this has been the recommended approach. The alternative seems to be changing host file permissions which isn’t great…
I will note though that in my case when I try to run it with a forwarded user I get:
It’s not pretty but it solves the issue.