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.

"Insufficient permission" error on save

See original GitHub issue
  • code-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

  1. 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
  2. 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..

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
cstonehamcommented, Apr 19, 2019

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:

ERROR { Error: EACCES: permission denied, mkdir '/.cache'
  [stack]: 'Error: EACCES: permission denied, mkdir \'/.cache\'',
  [message]: 'EACCES: permission denied, mkdir \'/.cache\'',
  errno: -13,
  code: 'EACCES',
  syscall: 'mkdir',
  path: '/.cache' }
free(): invalid pointer
2reactions
Leoperecommented, Oct 5, 2019
services:
  visual:
    image: codercom/code-server:latest
    restart: always
    user: "0:0"

It’s not pretty but it solves the issue.

Read more comments on GitHub >

github_iconTop 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 >

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