简体   繁体   中英

pm2 commad always stuck at [PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2

I've been following this issue and till now my problem not solved, anyone can help? Any command of pm2 always returned

[PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2

Thanks

I've been following this issue and till now my problem not solved, anyone can help? Any command of pm2 always returned

[PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2

Thanks

I've been following this issue and till now my problem not solved, anyone can help? Any command of pm2 always returned

[PM2] Spawning PM2 daemon with pm2_home=/home/$USER/.pm2

Thanks

我正在更新我的节点版本

I am having this issue on window 10 but can't solve problem by uninstall and reinstall pm2.

Finally I found a solution.

Run your command prompt (or) PowerShell as an Administrator

I experienced this when my disk was full.

In my case, directory permission wasn't defined correctly for customized PM2_HOME setting

I changed pm2_home as follows:

# ~/.bashrc
export PM2_HOME="/var/www"

The problem was that the current user has no permission to write on /var/www directory. So I changed the directory permission in order to fix it.

Tips:

  • I created pub.sock and rpc.sock (eg touch pub.sock ) manually when I see the error axon:sock Got error while trying to bind Error: listen EACCES: permission denied /var/www/pub.sock from pm2.log
  • But when I run DEBUG=* pm2 ls , it makes the CPU over 100% by writting pm2.log ( axon:sock Got error while trying to bind Error: listen EACCES: permission denied /var/www/pub.sock )
  • So create pub.sock and rpc.sock manually !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM