[node.js fs] readdir with filetypes failed with error: [Error: EACCES: permission denied, scandir '/home/coder/project']
See original GitHub issueOS/Web Information
- Web Browser: Opera
- Local OS: Windows 10
- Remote OS: Synology
- Remote Architecture: Docker
code-server --version
: 3.10.2 387b12ef4ca404ffd39d84834e1f0776e9e3c005
Steps to Reproduce
- Create code server
- Create some file in coder/project
- See error in logs
Expected
Files should show up
Actual
Nothing show up but there is file in the file explorer
Logs
[node.js fs] readdir with filetypes failed with error: [Error: EACCES: permission denied, scandir ‘/home/coder/project’] { errno: -13, code: ‘EACCES’, syscall: ‘scandir’, path: ‘/home/coder/project’ }
Screenshot
Issue Analytics
- State:
- Created 2 years ago
- Comments:30 (15 by maintainers)
Top Results From Across the Web
[node.js fs] readdir with filetypes failed with error ... - GitHub
[node.js fs] readdir with filetypes failed with error: [Error: EACCES: permission denied, scandir '/home/coder/project'] #4058.
Read more >NPM / Error: EACCES: permission denied, scandir [duplicate]
This is understandably a confusing error; you run npm as root, and yet it says you do not have access to the files?...
Read more >How to fix EACCES errors with NPM on MacOS - WILL & SKILL
There are times when You get an ugly EACCES error message from NPM when You try to install an NPM package ... Error:...
Read more >Node.js fs.promise.readdir() Method - GeeksforGeeks
The promise is resolved with the list of the names of files and folders if a directory is successfully read otherwise rejected with...
Read more >File processing in Node.js: A comprehensive guide
In this guide, walk through file processing in Node.js, from handling files and editing metadata to working with links and directories.
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
Alright guys, the same command works perfectly fine on Ubuntu 20.04, but it just won’t work on DSM. I have no idea what the heck is happening…
Yes, thank for your help!