You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you configure/install PM2 as a root user, and then attempt to run any commands (help, version) as a non-root user, you get a cryptic error message:
$ pm2 --version
events.js:141
throw er; // Unhandled 'error' event
^
Error: connect EACCES /home/ubuntu/.pm2/rpc.sock
at Object.exports._errnoException (util.js:870:11)
at exports._exceptionWithHostPort (util.js:893:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)
This is confusing. It would be better if pm2 could catch the error and report something like "Permission denied, double check you have not installed pm2 as root" or something.
The text was updated successfully, but these errors were encountered:
If you configure/install PM2 as a root user, and then attempt to run any commands (help, version) as a non-root user, you get a cryptic error message:
This is confusing. It would be better if pm2 could catch the error and report something like "Permission denied, double check you have not installed pm2 as root" or something.
The text was updated successfully, but these errors were encountered: