Closed petgus-lyko closed 2 years ago
Description When trying to start the service I get the following error in C:\ProgramData\pm2\service\service.log
C:\ProgramData\pm2\service\service.log
Starting: 2022-04-22 08:13:44 2022-04-22 08:13:44: PM2_HOME: C:\ProgramData\pm2\home 2022-04-22 08:13:44: PM2_SERVICE_DIRECTORY: C:\ProgramData\pm2\service 2022-04-22 08:13:44: PM2_INSTALL_DIRECTORY: C:\ProgramData\npm\npm\node_modules\pm2 2022-04-22 08:13:44: Working directory: C:\ProgramData\pm2\service 2022-04-22 08:13:44: Running as user: LOCAL SERVICE 2022-04-22 08:13:45: Starting pm2.. 2022-04-22 08:13:45: 2022-04-22 08:13:45 service\index.js Uncaught Exception connect EPERM //./pipe/pub.sock Error: connect EPERM //./pipe/pub.sock at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) 2022-04-22 08:13:45: exit code 1
pm2 log
2022-04-22T08:09:59: PM2 log: =============================================================================== 2022-04-22T08:09:59: PM2 log: --- New PM2 Daemon started ---------------------------------------------------- 2022-04-22T08:09:59: PM2 log: Time : Fri Apr 22 2022 08:09:59 GMT+0200 (centraleuropeisk sommartid) 2022-04-22T08:09:59: PM2 log: PM2 version : 5.2.0 2022-04-22T08:09:59: PM2 log: Node.js version : 16.14.2 2022-04-22T08:09:59: PM2 log: Current arch : x64 2022-04-22T08:09:59: PM2 log: PM2 home : C:\ProgramData\pm2\home 2022-04-22T08:09:59: PM2 log: PM2 PID file : C:\ProgramData\pm2\home\pm2.pid 2022-04-22T08:09:59: PM2 log: RPC socket file : \\.\pipe\rpc.sock 2022-04-22T08:09:59: PM2 log: BUS socket file : \\.\pipe\pub.sock 2022-04-22T08:09:59: PM2 log: Application log path : C:\ProgramData\pm2\home\logs 2022-04-22T08:09:59: PM2 log: Worker Interval : 30000 2022-04-22T08:09:59: PM2 log: Process dump file : C:\ProgramData\pm2\home\dump.pm2 2022-04-22T08:09:59: PM2 log: Concurrent actions : 2 2022-04-22T08:09:59: PM2 log: SIGTERM timeout : 1600 2022-04-22T08:09:59: PM2 log: ===============================================================================
Environment Running on: 2022-04-22, pm2-installer 3.3.2 with node v16.14.2 and npm 8.5.0 on win32-10.0.17763.
Error was due to me having another instance of the pm2 deamon running already, started by my account. Solved by signing out from server then in again and starting the service.
Description When trying to start the service I get the following error in
C:\ProgramData\pm2\service\service.log
pm2 log
Environment Running on: 2022-04-22, pm2-installer 3.3.2 with node v16.14.2 and npm 8.5.0 on win32-10.0.17763.