jessety / pm2-installer

Install PM2 offline as a service on Windows or Linux. Mostly designed for Windows.
MIT License
492 stars 49 forks source link

pm2 start issue #80

Open Ravi-exe opened 1 year ago

Ravi-exe commented 1 year ago

OS => windows server 2019 ( any windows OS will give this same problem)

Step 1 => Formatted my computer. installed new OS. Step 2 => Downloaded pm2-installer file. extract it and run the command. everything working fine.

but when try to repeat this step on virtual box or vmware (any virtual machine ) pm2 start script failed (same OS used )

might be because of =>

pm2-service: 4/21/2023, 2:16:29 PM service\index.js Uncaught Exception connect EPERM //./pipe/pub.sock Error: connect EPERM //./pipe/pub.sock at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) pm2-service: exit code 1

here are the whole error list =>

ERROR: 2023-04-21T14:11:41: PM2 error: Error: spawn node ENOENT at ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) ERROR: 2023-04-21T14:11:41: PM2 error: Error caught while calling pidusage ERROR: 2023-04-21T14:11:41: PM2 error: TypeError: One of the pids provided is invalid 4/21/2023, 2:11:41 PM: default/index@N/A - start - MANUAL 4/21/2023, 2:11:41 PM: default/index@N/A - online - AUTOMATED ERROR: 2023-04-21T14:11:44: PM2 error: Error caught while calling pidusage ERROR: 2023-04-21T14:11:44: PM2 error: TypeError: One of the pids provided is invalid ERROR: 2023-04-21T14:11:45: PM2 error: Error caught while calling pidusage ERROR: 2023-04-21T14:11:45: PM2 error: TypeError: One of the pids provided is invalid ERROR: 2023-04-21T14:12:06: PM2 error: Error caught while calling pidusage ERROR: 2023-04-21T14:12:06: PM2 error: TypeError: One of the pids provided is invalid ERROR: 2023-04-21T14:12:15: PM2 error: Error caught while calling pidusage ERROR: 2023-04-21T14:12:15: PM2 error: TypeError: One of the pids provided is invalid ERROR: 2023-04-21T14:12:36: PM2 error: Error caught while calling pidusage ERROR: 2023-04-21T14:12:36: PM2 error: TypeError: One of the pids provided is invalid ERROR: 2023-04-21T14:12:45: PM2 error: Error caught while calling pidusage ERROR: 2023-04-21T14:12:45: PM2 error: TypeError: One of the pids provided is invalid ERROR: 2023-04-21T14:12:52: PM2 error: Error caught while calling pidusage ERROR: 2023-04-21T14:12:52: PM2 error: TypeError: One of the pids provided is invalid

pm2-service-log.lo [pm2.err.log](https://github.com/jessety/pm2-installer/files/11294161/pm2.err.log) [pm2.out.log](https://github.com/jessety/pm2-installer/files/11294162/pm2.out.log) [pm2.wrapper.log](https://github.com/jessety/pm2-installer/files/11294163/pm2.wrapper.log) g

Ravi-exe commented 1 year ago

I want to know if same offline setup bundle can be work on two different window os ( like window 10 to windows server 2019 ). let me know if you want some addition info about this error

Choppel commented 1 year ago

@ShuklaRavi22 I had the same error. Please see https://github.com/jessety/pm2-installer/issues/76#issuecomment-1462172498 Maybe it helps.

dlscott12 commented 1 year ago

@ShuklaRavi22

I had the same problem today. See my comment on #76

Hope this helps.

;-)