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 dependencyIt 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.2Any 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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login