Read the statement by Michael Teeuw here.
MM will not start
-
I have been having issues updating my MM and modules. I was getting the error below
“Please, commit your changes or stash them before you can merge.
Aborting” I could not get anything to work. si I tried this and was able to update everythinggit reset --hard
git pull
npm installNow my mirror will not stat. I also seem to have 2 instances.

any ideas, thanks -
@bworch if you used my script then
the instance is labeled MagicMirrorthe other instance , mm is not running and could be deleted
pm2 delete xx pm2 savexx is name or number
now
let’s fix the mm start problem
pm2 stop all pm2 flush pm2 start MagicMirrorwait 15 seconds
pm2 stop allshow the results of
pm2 logs --lines=50 -
@sdetweil thanks for the info. I will try it and let you know. again thanks
-
@sdetweil once I delete the mm instance; can I rename the MagicMirror instance to mm. thanks
-
@bworch i do not know
but you could edit the installers/pm2_MagicMirror.json
(this is how I give the pretty name, not the script name)
file and change the name to mm (check the paths as well){ "apps" : [{ "name" : "MagicMirror", "script" : "/home/pi/MagicMirror/installers/mm.sh", "watch" : ["/home/pi/MagicMirror/config/config.js"] }] }and then do (delete old, add new)
pm2 delete MagicMirror pm2 save pm2 start ~/MagicMirror/installers/pm2_MagicMirror.json pm2 save -
@sdetweil thanks for all your help.
-
I followed your instructions, and it still will not start. I also restart the pi. this is what I have now.

thanks
-
I did a pm2 show and this is what I got.


thanks
-
-
@bworch do
pm2 logs --lines=100may be better without pm2 for debug
pm2 stop all
cd ~/MagicMirror
npm start >somefile.txt 2>&1wait 15 seconds
ctrl-cedit the somefile.txt
-
@sdetweil couldn’t get the txt file to show. how would I edit it.
-
@bworch nano somefile.txt
or whatever text editor you like
-
-
@bworch fun times…
cd ~/MagicMirror npm install electron@19.0.15 -
-
@bworch ok, I suggest you run my upgrade script
see https://github.com/sdetweil/MagicMirror_scripts
the upgrade script second pass with
force
instead of apply
-
@sdetweil which line
-
@sdetweil I accidently ran it as is, I then couldn’t find where to make the change. Sorry
-
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force -
@sdetweil My VNC terminal when Black, is that normal.
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



