Read the statement by Michael Teeuw here.
update magic mirror
-
Hi,
yes, here is the Output you ask me:
pi@magicmirror:~ $ pm2 show 0 Describing process with id 0 - name MagicMirror ┌───────────────────┬──────────────────────────────────────────┐ │ status │ online │ │ name │ MagicMirror │ │ version │ 2.10.1 │ │ restarts │ 10 │ │ uptime │ 3s │ │ script path │ /home/pi/MagicMirror │ │ script args │ N/A │ │ error log path │ /home/pi/.pm2/logs/MagicMirror-error.log │ │ out log path │ /home/pi/.pm2/logs/MagicMirror-out.log │ │ pid path │ /home/pi/.pm2/pids/MagicMirror-0.pid │ │ interpreter │ node │ │ interpreter args │ N/A │ │ script id │ 0 │ │ exec cwd │ /home/pi │ │ exec mode │ fork_mode │ │ node.js version │ 10.18.1 │ │ node env │ N/A │ │ watch & reload │ ✘ │ │ unstable restarts │ 0 │ │ created at │ 2020-02-05T12:09:50.536Z │ └───────────────────┴──────────────────────────────────────────┘ Actions available ┌────────────────────────┐ │ km:heapdump │ │ km:cpu:profiling:start │ │ km:cpu:profiling:stop │ │ km:heap:sampling:start │ │ km:heap:sampling:stop │ └────────────────────────┘ Trigger via: pm2 trigger MagicMirror <action_name> Divergent env variables from local env Add your own code metrics: http://bit.ly/code-metrics Use `pm2 logs MagicMirror [--lines 1000]` to display logs Use `pm2 env 0` to display environement variables Use `pm2 monit` to monitor CPU and Memory usage MagicMirror
after change run-start.sh the error Message disappeared.
But start with pm2 is still not possible. -
@mastadook ok, you are starting in the wrong place with the wrong script…
in folder /home/pi start this /home/pi/MagicMirror
use my pm2 fixup script…
do this
pm2 delete 0 bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
-
@sdetweil said in update magic mirror:
bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)”
Great :)
I think you did it.pi@magicmirror:~/MagicMirror $ pm2 show 0 Describing process with id 0 - name MagicMirror ┌───────────────────┬──────────────────────────────────────────┐ │ status │ online │ │ name │ MagicMirror │ │ version │ 2.10.1 │ │ restarts │ 0 │ │ uptime │ 40s │ │ script path │ /home/pi/MagicMirror/installers/mm.sh │ │ script args │ N/A │ │ error log path │ /home/pi/.pm2/logs/MagicMirror-error.log │ │ out log path │ /home/pi/.pm2/logs/MagicMirror-out.log │ │ pid path │ /home/pi/.pm2/pids/MagicMirror-0.pid │ │ interpreter │ bash │ │ interpreter args │ N/A │ │ script id │ 0 │ │ exec cwd │ /home/pi/MagicMirror │ │ exec mode │ fork_mode │ │ node.js version │ N/A │ │ node env │ N/A │ │ watch & reload │ ✔ │ │ unstable restarts │ 0 │ │ created at │ 2020-02-05T15:00:22.116Z │ └───────────────────┴──────────────────────────────────────────┘ Revision control metadata ┌──────────────────┬────────────────────────────────────────────────────┐ │ revision control │ git │ │ remote url │ https://github.com/MichMich/MagicMirror.git │ │ repository root │ /home/pi/MagicMirror │ │ last update │ 2020-02-05T15:00:23.257Z │ │ revision │ 5bf90ae31d600e3f595ffd242b99515fa7905b1a │ │ comment │ Merge pull request #1872 from MichMich/2.10.1-docs │ │ │ │ │ │ 2.10.1 docs │ │ branch │ master │ └──────────────────┴────────────────────────────────────────────────────┘ Divergent env variables from local env ┌────────┬──────────────────────┐ │ SHLVL │ 2 │ │ OLDPWD │ /home/pi/MagicMirror │ └────────┴──────────────────────┘
No restarts. It seems to run fine now.
Will it start automatically now?
And Update now with git pull && npm install?Thank you for your help!
-
@mastadook use my upgrade script… see here
https://github.com/sdetweil/MagicMirror_scripts
while sometimes its ok to do the git pull/npm install, sometimes its not (as dependencies impact running modules)…
-
@mastadook should, reboot…
-
Thank you, all works fine now
Best Regards -
@mastadook cool. Glad you got it!