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.

[node.js fs] readdir with filetypes failed with error: [Error: EACCES: permission denied, scandir '/home/coder/project']

See original GitHub issue

OS/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

  1. Create code server
  2. Create some file in coder/project
  3. 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

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:30 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
ItzMiracleOwOcommented, Oct 30, 2021

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…

1reaction
ItzMiracleOwOcommented, Nov 4, 2021

Yes, thank for your help!

Read more comments on GitHub >

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

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