Read the statement by Michael Teeuw here.
Issues with pm2 in old mirror
-
Hello all! I’ve an old mirror setup that’s been running stably for about 3 years now, but it stopped working a little while ago. Since I last installed it via the auto-install script and isn’t an option anymore, I thought to start from scratch. I upgraded npm and node to the most current versions, but pm2 is erroring out when trying to launch:
pi@raspberrypi:~ $ pm2 status (node:10537) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) (node:10537) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency (node:10537) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency (node:10537) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
It looks to me like the node install is broken somehow, but I’ve no idea what might be broken:
pi@raspberrypi:~ $ node -v v16.17.0 pi@raspberrypi:~ $ npm -v 8.19.2
Any thoughts?
-
@rmeskill u probably need to upgrade pm2 as well
pm2 --help for the syntax, but I think it’s pm2 upgrade
-
@sdetweil said in Issues with pm2 in old mirror:
pm2 upgrade
That succeeded but didn’t fix the problem:
[PM2] Saving current process list... [PM2] Stopping PM2... [PM2][WARN] No process found [PM2] All processes have been stopped and deleted [PM2] PM2 stopped [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2 [PM2] Restoring processes located in /root/.pm2/dump.pm2 >>>>>>>>>> PM2 updated ┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────┬─────┬──────┬──────────┐ │ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │ └──────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────┴─────┴──────┴──────────┘ Use `pm2 show <id|name>` to get more details about an app pi@raspberrypi:~/MagicMirror $ pm2 status (node:5424) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) (node:5424) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency (node:5424) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency (node:5424) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency (node:5424) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
-
@rmeskill hm… so, next guess is u uninstall pm2 and reinstall
I think the command is
pm2 u startup
which will return the command to executethen to install again u can use my fixuppm2 script
see
https://github.com/sdetweil/MagicMirror_scripts