Read the statement by Michael Teeuw here.
Mirror starts not correct
-
That’s… well, that’s a new one.
I hate to say it, but I would recommend a reinstall of the MagicMirror framework. This isn’t pleasant but it can be accomplished in about 30 minutes.
First step: back up your
config.js
file. Copy it to your /home/pi directory or wherever. Verify that it copied properly.
Second step: write down a list of all of your installed modules.
3rd step: Stop the magic mirror framework. Usually this ispm2 stop all
.
4th step: Delete the magic mirror folder.rm -rf /home/pi/MagicMirror
5th re-clone Magic Mirror manually.git clone https://github.com/MichMich/MagicMirror.git
6th step: install Magic Mirror (this will take a few minutes):cd /home/pi/MagicMirror npm install
7th step - Install modules: Change to the modules folder:
cd /home/pi/MagicMirror/modules
. For each module in yourconfig.js
file, find them on GitHub and clone the module.git clone [module url]
. Be sure to follow the installation instructions for each module. Some will be easy, some will involve thenpm install
command, and some will be complex (MMM-FitBit).
8th Step - copy yourconfig.js
from backup to the original location in/home/pi/MagicMirror/config
.
9th step: run the MagicMirror process and see how she rolls:pm2 start MagicMirror
. -
@bhepler rename the magic mirror folder. Do not delete til u are happily running again
-
A reinstall wouldnt be the Problem. It is not the first time i have to do this ^^
But i really dont unterstand why he wont start anymore. I also had this before the update, forgot to write. From one to the other the Mirror doesnt starts just with the first start of the day. When i reboot or just unplug the Pi, the mirror starts correct
-
@thedk said in Mirror starts not correct:
When i reboot or just unplug the Pi
I hope you’re shutting down correctly before pulling the plug on the Pi. Your SD card will likely become corrupted. Just something you should think about.
-
@Mykle1 one of my sd cards suddenly became read only… no fix…
had to buy new sd card
-
@Mykle1
I just unplug the Pi sometimes since he is not starting anymore
I know thats not the best way, it’s my 4th Pi ;) -
@thedk said in Mirror starts not correct:
I just unplug the Pi sometimes since he is not starting anymore
You can’t choose “Shut Down” from the desktop? Once the shut down is complete, THEN pull the plug to power down the Pi
-
@sdetweil said in Mirror starts not correct:
one of my sd cards suddenly became read only… no fix…
had to buy new sd cardSux! :-(
-
@Mykle1
No i cant. I just can reboot or shutdown the Pi by Terminal.
I know i shouldnt unplug the Pi ^^ -
Jusat am month ago, it starts again, but with an other fault
0|mm | > magicmirror@2.8.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | /home/pi/MagicMirror/node_modules/electron/dist/electron: relocation error: /home/pi/MagicMirror/node_modules/electron/dist/libffmpeg.so: symbol cnprantf, version GLIBC_2.4 not defined in file libc.so.6 with link time reference 0|mm | npm 0|mm | ERR! file sh 0|mm | npm ERR! code ELIFECYCLE 0|mm | npm ERR! errno ENOENT 0|mm | npm ERR! syscall spawn 0|mm | npm 0|mm | ERR! magicmirror@2.8.0 start: `sh run-start.sh` 0|mm | npm ERR! spawn ENOENT 0|mm | npm 0|mm | ERR! 0|mm | npm ERR! Failed at the magicmirror@2.8.0 start script. 0|mm | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|mm | npm ERR! A complete log of this run can be found in: 0|mm | npm ERR! /home/pi/.npm/_logs/2019-08-12T05_54_45_996Z-debug.log
I didnt changed anything, the error came from one day to the other an i just see the startscreen and the mirror wont start.
Could somebody help?