Open Drift91 opened 1 year ago
Having same issue
Running on: 2/20/2023, pm2-installer 3.4.3 with node v18.14.1 and npm 9.3.1 on win32-10.0.22621.
Hello, I had the same issue a couple of minutes ago. For me the problem was an error with the cwd parameter in the ecosystem.config.js file of a program that I wanted pm2 to start. The directory simply did not exist. Because of the error pm2 did not actually start my program. With version 3.4.2 of pm2-installer the output of "pm2 status" for my program was "online" although it was not really started. With version 3.4.0 of pm2-installer it actually showed "errored" when calling "pm2 status". So the message "One of the pids provided is invalid" is somewhat correct because there is no pid that could be used. But this seems more like an issue with pm2. I found out about the error only by opening C:\ProgramData\pm2\service\service.log. There it showed some ENOENT messages for my program.
@Drift91 I don't know what the problem with your example could be, but maybe looking at the log file mentioned above might help.
Hope this helps.
@sheldonpang @Drift91 Did my comment help you?
@Drift91 @Choppel @sheldonpang I had the same issue with "Error caught while calling pidusage" and "TypeError: One of the pids provided is invalid" during reboot. I ended up changing the "Log on as" user for the PM2 Service to a valid user (administrator) and now my PM2 apps all restart during reboot. YEAH ;-)
Hope this helps.
Spent hours tweeking with no luck, but had this nagging suspicion that it was security/permission related.
I had same issue and fixed it by changing Log on as: "Local System account"
Description
I seem to be unable to use this daemon. When I try to run my Node app with it, it never runs and
pm2 logs
gives the followingSteps to Reproduce
pm2 start npm --name SnailyCADv4 -- run start
Environment
Didn't realize it had to be run in the repo folder. Output:npm run info
for some reason throws the error,Missing script: "info"