Read the statement by Michael Teeuw here.
pm2 doesn't start after mm update
-
Hi forum members
this is what I get after updating the mirror, also after rebooting and restarting.
Before I upgraded and updated the rpi sucessfully.
Thank you for your help in advance
kurtpi@raspberrypi:~ $ pm2 start mm [PM2] Applying action restartProcessId on app [mm](ids: 0) [PM2] [mm](0) ✓ [PM2] Process successfully started ┌──────┬──────┬────────┬────┬─────┬──────────┐ │ Name │ mode │ status │ ↺ │ cpu │ memory │ ├──────┼──────┼────────┼────┼─────┼──────────┤ │ mm │ fork │ online │ 29 │ 0% │ 2.3 MB │ └──────┴──────┴────────┴────┴─────┴──────────┘ Use `pm2 show ` to get more details about an app pi@raspberrypi:~ $ -
@kurt
trypm2 log mm
andcd ~/MagicMirror npm start devWhat can you see in terminal and browser (and additional dev console window)?
-
@Sean
hi Sean thank you for your quick response
this is what I get0|mm | Please include the following file with any support request: 0|mm | npm ERR! /home/pi/MagicMirror/npm-debug.lognpm ERR! Linux 4.9.53-v7+ npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start" "dev" npm ERR! node v6.11.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! magicmirror@2.1.3 start: `sh run-start.sh "dev"` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.1.3 start script 'sh run-start.sh "dev"'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the magicmirror package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! sh run-start.sh "dev" npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs magicmirror npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls magicmirror npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/pi/MagicMirror/npm-debug.log pi@raspberrypi:~/MagicMirror $ -
https://forum.magicmirror.builders/topic/636/npm-start-dev?page=1
I think this could be help. -
@Sean
well thank you for the link, but I could’t find a simple solution for my problem. The mirror doesn’t start also if I do theDISPLAY=:0 npm startby VNC
-
This post is deleted! -
@kurt
Hi memebers
anyone else has an idea to get my mirror back on the screen again?
It’s frustrating for me, because the mirror with all the modules was running like a charm, but after that update …
Thank you -
@kurt said in pm2 doesn’t start after mm update:
anyone else has an idea to get my mirror back on the screen again?
Until you can fix your updated installation, you can rename your MagicMirror folder and manually install the version of MM that was working for you. At least you’ll have your mirror back
-
@Mykle1
thank you Mykle1, sounds for me as it is a weekend job.
To get things right: first thing is to rename the MagicMirror folder.
Second step is to go thru the install routine https://forum.magicmirror.builders/topic/236/complete-setup-tutorial
Is it than possible to copy/paste the modul-folders from the renamed (old)MMfolder into the new one and and the old config.file?
I read your help in https://forum.magicmirror.builders/topic/5081/mm-wont-start-after-install/2
but I guess this is a different problem.
Thank you -
Hi Kurt,
if I understand correctly your mirror doesn’t show up despite your pm2 “starting” it successfully!?
the run-start.sh shell script seems to be the problem.
This is the content:if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty export DISPLAY=:0 # Set by defaul display fi electron js/electron.js $1I would assume electron has some problem starting…
-
@lavolp3
Hi lavolp3
Bevor the update, pm2 startet the mirror, by now nothing happens at all, even no black screen etc.
do you know a way to heal the mirror?
Thanks -
@kurt said in pm2 doesn’t start after mm update:
To get things right: first thing is to rename the MagicMirror folder.
Yes, but then I suggest you do a manual installation. If you run the automatic installer script you may run into trouble again.
Rename your MagicMirror folder. Go to https://github.com/MichMich/MagicMirror and click on the green Clone or download button on the right
side of the window, then click on Download ZIP. Now you have a MagicMirror-master.zip file. Double Click the file. Inside is the MagicMirror-master folder. Move that file to your /home/pi folder. Rename that folder to MagicMirror. Then in your terminal, cd into the MagicMirror directory and run npm install. When that finishes, run npm start, also in the MagicMirror directory.At this point the mirror should run but you’ll likely get a “Create a config” message displayed. At which point you should do this.
https://forum.magicmirror.builders/topic/4528/how-to-create-a-working-config-for-absolute-beginnersThen back to your terminal, in the MagicMirror directory, run npm start. That should get your mirror running.
Then you can copy your modules, 1 by 1 into the new MagicMirror/modules folder and the entries into your new config.js file.
That should do it.
-
@Mykle1
Hi Mykle1 and Thank you for your help so much!
After I followed your help step by step the mirror appeared again, but I was suprised when I put all my modul folder into the “new mm”, that together with the old config. file everything worked out fine. Could’t believe that it was that easy.
But still I have two more things where I could’t get a for me clear solution in the forum:DeprecationWarning: sys is deprecated. Use util instead.and the second thing is, that I can`t find the Remote control funktion on my mobile phone, as I found it bevor. Here is the part of my config.
Is there the “0.0.0.0” in ipWhitelist missing, and if yes, where to put it?
Kurtvar config = { electronOptions: { }, ipWhitelist: [ "::fff:0.0.0.0/1", "::fff:128.0.0.0/2", "::fff:192.0.0.0/3", "::fff:224.0.0.0/4", "127.0.0.1", "::ffff:127.0.0.1", "::1" ], -
@kurt said in pm2 doesn’t start after mm update:
After I followed your help step by step the mirror appeared again, but I was suprised when I put all my modul folder into the “new mm”, that together with the old config. file everything worked out fine.
You got lucky. The step by step says one at a time. I’m just saying. :^)
DeprecationWarning: sys is deprecated. Use util instead.
Probably, one of the modules you are using has a dependency that is outdated or no longer supported. It has nothing to do with the MM software. You can ignore that warning.
and the second thing is, that I can`t find the Remote control funktion on my mobile phone, as I found it bevor. Here is the part of my config.
Is there the “0.0.0.0” in ipWhitelist missing, and if yes, where to put it?This has been discussed lately on the forum. Do a search by clicking the little magnifying glass, top right of the forum window. If you can’t find an answer, come back here and tell me.
:^)
-
@Mykle1
I tried several changes to my ipWhitelist after I read the posts in https://forum.magicmirror.builders/topic/5015/after-update-to-mirror-to-2-1-3-no-working-whitlist
but I couldn’t get it right. So I hope you can.
Thank you in advance
Kurt -
@kurt said in pm2 doesn’t start after mm update:
but I couldn’t get it right. So I hope you can.
That’s a lot of pressure. :^)
Try this at the very beginning of your config.js file, so it looks like this:
var config = { port: 8080, address: "0.0.0.0", ipWhitelist: [], // Set [] to allow all IP addresses. -
@Mykle1
Sorry for feeling presure, but you made it again! Works like a charm!
Once again Thank you!
Kurt -
@kurt said in pm2 doesn’t start after mm update:
Sorry for feeling presure, but you made it again! Works like a charm!
Once again Thank you!No worries mate. I’m glad you’re up and running again!
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