Read the statement by Michael Teeuw here.
updated installer script available for testing
-
pi@raspberrypi:~ $ pm2 status ┌─────────────┬────┬───────┬────────┬─────────┬─────┬────────┬───────────┐ │ Name │ id │ mode │ status │ ↺ │ cpu │ memory │ ├─────────────┼────┼───────┼────────┼─────────┼─────┼────────┼───────────┤ │ mm │ 1 │ N/A │ fork │ stopped │ 176 │ 0% │ 0 B │ │ omx_stream1 │ 2 │ N/A │ fork │ stopped │ 61 │ 0% │ 0 B │ │ omx_stream2 │ 3 │ N/A │ fork │ stopped │ 0 │ 0% │ 0 B │ │ omx_stream3 │ 4 │ N/A │ fork │ stopped │ 0 │ 0% │ 0 B │ │ server │ 0 │ 1.6.5 │ fork │ online │ 3 │ 0.4% │ 40.0 MB │ └─────────────┴────┴───────┴────────┴─────────┴─────┴────────┴───────────┘ Use `pm2 show <id|name>` to get more details about an app pi@raspberrypi:~ $ -
@swvalenti i would guess server
pm2 stop server
-
@sdetweil Awesome that worked thanks Sam!
-
@swvalenti cool… maybe I should dump out the ps -ef list if I find that problem…
-
@sdetweil So I renamed the old magicmirror folder and updated. Now the updates stripped modules and config.js. They are not in the new magicmirror folder at all…what gives?
-
@swvalenti this is not an update, it is a NEW install…
so you have to copy from the old mm folder to the new…
if u wanted to UPDATE then u should run the UPDATE script
https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing
-
@sdetweil Well I am an idiot, so I can just delete the new MagicMirror folder and then run the update in the other?
-
@swvalenti yes… UPDATE just gets you the new MagicMirror version. currently 2.9.0
-
Thanks Sam
-
Huh. I just tried it on a fresh Buster install on a RPI 3B+ and PM2 failed to install correctly. It seems to be a permissions issue.
-
@bhepler show me the log please
~/install.log
-
It’s not terribly illuminating.
install and setup pm2 pm2 not installed, installing pm2 install result get the pm2 platform specific startup command startup command = pm2 startup command done configure the pm2 config file for MagicMirror start MagicMirror via pm2 now save MagicMirror pm2 config now disable screensaver via lxsession -
-
@sdetweil I already went through the installation procedure to get pm2 installed. That required the npm command to install pm2.
After the initial script run,
pm2 start MagicMirrorreturned a “bash: pm2: command not found” error. Once I got pm2 installed, getting the script monitored by pm2 was easy enough. At a guess, it’s a problem with using sudo to install pm2, but I’m afraid I don’t have the exact error message. -
@bhepler what did u have to do for the pm2 install?
-
@sdetweil - I pulled this from the official GitHub page:
sudo npm install -g pm2. Once I ran that, I just changed to the~/MagicMirrors/installersfolder and told pm2 to run/maintain it:pm2 start mm.sh -
@bhepler weird… that is that the script does between the two log entries
echo pm2 not installed, installing >>$logfile result=$(npm install $up -g pm2) echo pm2 install result $result >>$logfile$up is for the mac
bet it needed sudo…
-
I also added to catch the stderr output to the log too
echo pm2 not installed, installing >>$logfile result=$(sudo npm install $up -g pm2 2>&1) echo pm2 install result $result >>$logfile -
@bhepler could you retest the installer? just rename your current MagicMirror folder out of the way… thanks
course u have pm2 already … never mind
-
@sdetweil - No worries. I have a spare Pi and a SD card I can use. I’ll get it cranked out tonight. I’ll get you that info.
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