Read the statement by Michael Teeuw here.
MagicMirror no longer launches
-
Hello,
my Magic Mirror hasn’t been working for several weeks…
I updated by :git reset --hard && git pull && npm install
and since then it no longer launches I just have this screen :
what should I do ?
Thank you for your help
-
@RIKKO14 My suggestion would be to use the script from Sam. See his Github for script details. Use his upgrade script .
https://github.com/sdetweil/MagicMirror_scripts
Run the upgrade script and then run it with apply
-
@mumblebaj I do, but :
pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply update log will be in /home/pi/MagicMirror/installers/upgrade.log doing test run = false Node currently installed. Checking version number. Minimum Node version: v20.8.0 Installed Node version: v20.8.0 Check current Node installation ... Node currently installed. Checking version number. Minimum Node version: v20.8.0 Installed Node version: v20.8.0 No Node.js upgrade necessary. Check current NPM installation ... NPM currently installed. Checking version number. Minimum npm version: V10.1.0 Installed npm version: V10.1.0 No npm upgrade necessary. computing size, want /var/swap=3762MByte, restricting to config limit: 2048MBytes, checking existing: deleting wrong size file (104857600), generating swapfile ... of 2048MBytes saving custom.css local version 2.27.0 already same as master 2.27.0 restoring custom.css pi@raspberrypi:~ $
The screen stile the same…
-
@RIKKO14 I know Sam would want to have a look at the upgrade log. Can you check that for any errors? I think it is in the installers directory.
-
@RIKKO14 Also, are there any errors where you start MM? If you start it using pm2 then the pm2 logs need to be checked. If NPM then check the terminal where you run npm from.
-
@mumblebaj sorry I don’t anderstand what to do… can you give the scrip to write in my terminal ?
-
@RIKKO14 How do you start MagicMirror?
-
@mumblebaj with pm2
-
@RIKKO14 You should then be able to run
pm2 logs --lines 50
and that should return the details from the pm2 log. Hopefully it has any error details. -
@RIKKO14 because MagicMirror now uses a pm2 library inside, we have a version conflict…(I think)
do
sudo npm install pm2 -g
then reboot