EACCESS error is masked with ERR_MULTIPLE_CALLBACK error
See original GitHub issueHi!
I was looking at an issue in a new deployment which was crashing on startup and the only error present in the stderr logs was ERR_MULTIPLE_CALLBACK from rotating-file-stream.
After patching the utils.js file with an error log to print out where I suspected the error was occurring, I uncovered the real error:
ERROR: { [Error: EACCES: permission denied, mkdir 'log']
[stack]: 'Error: EACCES: permission denied, mkdir \'log\'',
[message]: 'EACCES: permission denied, mkdir \'log\'',
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: 'log' }
_stream_writable.js:456
throw new ERR_MULTIPLE_CALLBACK();
^
Error [ERR_MULTIPLE_CALLBACK]: Callback called multiple times
at onwrite (_stream_writable.js:456:11)
at RotatingFileStream._rewrite (/opt/service/node_modules/rotating-file-stream/index.js:66:66)
at RotatingFileStream._write (/opt/service/node_modules/rotating-file-stream/index.js:100:7)
at doWrite (_stream_writable.js:415:12)
at clearBuffer (_stream_writable.js:545:7)
at onwrite (_stream_writable.js:470:7)
at RotatingFileStream._rewrite (/opt/service/node_modules/rotating-file-stream/index.js:66:66)
at RotatingFileStream.end (/opt/service/node_modules/rotating-file-stream/index.js:127:12)
at RotatingFileStream.<anonymous> (/opt/service/node_modules/rotating-file-stream/utils.js:216:8)
at Object.onceWrapper (events.js:286:20)
Furthermore, the error
event was not fired. This is on nodejs v10.16.0
. I will try to make a PR with a failing test to replicate this behavior.
Thanks for your module!
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Error: EACCES: permission denied, access '/usr/local/lib ...
This means you do not have permission to write to the directories npm uses to store global packages and commands. Try running commands:...
Read more >Resolving EACCES permissions errors when installing ...
If you see an EACCES error when you try to install a package globally, you can either: Reinstall npm with a node version...
Read more >EACCES, permission denied '/usr/local/lib/node_modules ...
Using sudo with a command in Linux/UNIX generally elevates your permissions to superuser levels. In Windows, the superuser account is usually called ' ......
Read more >ERROR running auth:web:login: EACCES: permission ...
When trying to Auth a Dev Hub or other org to VS Code for salesforce/sfdx, I am getting the error: ERROR running auth:web:login:...
Read more >Container permission denied: How to diagnose this error
You can also run containers without the masks by executing: $ podman run --security-opt unmask=all … Use man podman run to display the...
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
Yeah @iccicci that’s no problem, I’ll work on verifying your fix on my environment and I’ll open an issue and PR for whatever this macOS problem is.
Thank you @rooftopsparrow ,
released version 1.4.2 iCC