-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
EPERM: operation not permitted, scandir #284
Comments
Also seems to happen using the current latest official node docker images (Node 6.4, both regular and slim), but not when using the latest NodeSource docker image (Node 6.3 on Wheezy). |
Well, this is weird. Glob can't very well give you a list of files if it can't list the files in a directory. I'm not sure how I'd even go about addressing that. |
@oyvindeh have you managed to work around the issue? I have the same problem and I'm quite clueless. |
i also am having the problem... in my case there seems to be a locked TMP file in a directory under the scan that is inaccessible... perhaps it is being treated like a directory? my pattern is */ so it is recursive |
since EPERM means the operation is "not permitted" why not just say "oh, well" and skip to the next item? why fail? |
@Luftzig I think I found some image that solved my initial problem and where this was not an issue. |
i created a fork and modified the sync.js to treat EPERM errors the same as ENOENT and was able to continue successfully... this would seem to be the same situation (in my case) a trying to do a recursive list of files where you don't have permission for some nested subdirectories... perhaps one could argue that handling for this could be based on an option, but i'm not sure that's really necessary... is this an active project that i could submit a pull request to? it unfortunately looks pretty stale... |
It's not ideal, but apparently this repository is no longer being maintained, so i have published another NPM module |
@spemmons thanks! |
Is there a "continue on error"? |
No longer an issue on v9 |
Hi,
Trying to run a Node app in a Docker image based on mhart/alpine-node:6.4.0, I get the following stack trace which points to Glob:
Is this a bug, and/or is there any known workaround? It occurs also when run as root. Thanks!
The text was updated successfully, but these errors were encountered: