Skip to content
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

Error: EACCES: permission denied, scandir '/etc/cups/ssl' #38544

Closed
carlitorweb opened this issue May 5, 2021 · 2 comments
Closed

Error: EACCES: permission denied, scandir '/etc/cups/ssl' #38544

carlitorweb opened this issue May 5, 2021 · 2 comments

Comments

@carlitorweb
Copy link

What steps will reproduce the bug?

I have a node/express api, and when try run Mochajs for run tests, a error related with node show up.

How often does it reproduce? Is there a required condition?

Each time I run mocha or npm run test script

What is the expected behavior?

A successful running process

What do you see instead?

Error: EACCES: permission denied, scandir '/etc/cups/ssl'
    at Object.readdirSync (fs.js:1021:3)
    at GlobSync._readdir (/node_modules/glob/sync.js:288:41)
    at GlobSync._readdirInGlobStar (/node_modules/glob/sync.js:267:20)
    at GlobSync._readdir (/node_modules/glob/sync.js:276:17)
    at GlobSync._processReaddir (/node_modules/glob/sync.js:137:22)
    at GlobSync._process (/node_modules/glob/sync.js:132:10)
    at GlobSync._processGlobStar (/node_modules/glob/sync.js:380:10)
    at GlobSync._process (/node_modules/glob/sync.js:130:10)
    at GlobSync._processGlobStar (/node_modules/glob/sync.js:383:10)
    at GlobSync._process (/node_modules/glob/sync.js:130:10)
    at GlobSync._processGlobStar (/node_modules/glob/sync.js:383:10)
    at GlobSync._process (/node_modules/glob/sync.js:130:10)
    at new GlobSync (/node_modules/glob/sync.js:48:10)
    at Function.globSync [as sync] (/node_modules/glob/sync.js:26:10)
    at lookupFiles (/node_modules/mocha/lib/cli/lookup-files.js:91:24)
    at /node_modules/mocha/lib/cli/collect-files.js:36:39
    at Array.reduce (<anonymous>)
    at module.exports (/node_modules/mocha/lib/cli/collect-files.js:34:26)
    at beforeRun (/node_modules/mocha/lib/cli/watch-run.js:123:24)
    at Object.run (/node_modules/mocha/lib/cli/watch-run.js:264:25)
    at FSWatcher.<anonymous> (/node_modules/mocha/lib/cli/watch-run.js:184:14)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
@pd4d10
Copy link
Contributor

pd4d10 commented May 5, 2021

It means that the current user has no permission to access this directory.

Perhaps the test case you are running require sudo

@carlitorweb
Copy link
Author

@pd4d10 that is correct sudo chown -R $USER /etc/cups/ssl fixed the problem. After that, show a couple of more directories where I needed do the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants