Read the statement by Michael Teeuw here.
Something is wrong ....
-
Lets write here, so the other thread would not be filled up with this problem ;)
so u don’t know how it starts. That sound like u used the automatic installer and clicked “YES” when it asked u to start automatically.
Please type in console:
pm2 status
U will see a process name (probably “MagicMirror”)now u can use
pm2 start MagicMirror
to start MM
pm2 stop MagicMirror
to stop MM
pm2 restart MagicMirror
to restart MMor even
pm2 logs MagicMirror
to see logs and errors. Please try if i am right and then post the error log here -
@cruunnerr after typing pm2 status I see two processes:
MagicMirror online
mm. stoppedafter typing pm2 stop MagicMirror both processes are stopped.
Peter -
alright. so u used the automatic installer AND did the “how to autostart”-Tutorial from MichMich, too ^^
no problem, we will try to fix. As u can read here, ninjabreadman wrote how to remove one of the instances.
so please try:
cd
pm2 stop mm && pm2 delete mm && pm2 save
rm mm.sh
now there should just be the “MagicMirror” process even when u reboot.
Better now, to erase all logs and wait, if your problems come up again. So type:
pm2 flush
Next time u got any problems, please type:
pm2 logs MagicMirror
and post it hereHope that will help ;)
-
Thanks!
Great help!
I hope this helps.
Next time I will post my error logs here.
peter -
Lets hope there will be no “next time” ;)
-
Unfortunately the problem is not solved.
Maybe somebody can have a look at my config.js?/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. * * For more information how you can configurate this file * See https://github.com/MichMich/MagicMirror#configuration * */ var config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "", "0.0.0.0", "::" to listen on any interface // Default, when address config is left out, is "localhost" port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], language: "nl", timeFormat: 24, units: "metric", modules: [ { module: 'MMM-WatchDog', config: { // See 'Configuration options' for more information. } }, { module: 'mmm-systemtemperature', position: 'top_center', // This can be any of the regions. classes: 'xsmall dimmed', // Add your own styling. Optional. config: { // See 'Configuration options' for more information. } }, { module: 'mmm-wu-moonphase', header: '', // optionally you can add a header to this block position: 'top_center', // this can be any of the regions. config: { // See 'Configuration options' for more information. apikey: 'xxxxxxxxxxxx', country: 'Nederland', city: 'Apeldoorn', apiLang: 'NL', } }, { module: "clock", position: "top_left" }, { module: 'calendar_monthly', position: 'top_left', config: { // The config property is optional // Without a config, a default month view is shown // Please see the 'Configuration Options' section for more information } }, { module: "calendar", header: "Feestdagen en agenda", position: "top_left", config: { maximumEntries: '10', timeFormat: 'absolute', urgency: 0, getRelative: 0, dateFormat: 'D MMM', fullDayEventDateFormat: 'D MMM', fadePoint: 0.50, // Start on 1/4th of the list. calendars: [ { symbol: 'calendar-check-o ', url: 'https://www.mozilla.org/media/caldata/DutchHolidays.ics' }, { symbol: 'flag-checkered', url: 'http://localhost:8080/MMM-Formula1/schedule.ics', }, { symbol: 'university ', url: 'https://calendar.google.com/calendar/ical/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxgroup.calendar.google.com/private-5926e1a950f5588d305e66d8b0af0cfa/basic.ics' }, { url: 'https://calendar.google.com/calendar/ical/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxgroup.calendar.google.com/private-754f959bc1afb34da4f5ec42e92b1d01/basic.ics' }, { symbol: 'birthday-cake ', url: 'https://calendar.google.com/calendar/ical/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgroup.calendar.google.com/private-2f98381b817baa8eb5bce7f11ac22120/basic.ics' }, ] } }, { module: "MMM-MovieListings", position: "bottom_left", // Default module config. defaults: { apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxx', region: 'NL', language: 'en-EN', interface: 'poster', //'list', 'poster', 'detailed' includeMoviePlot: false, maxPlotLength: 198, header: 'Nu in de bioscoop', moviesPerPage: 0, refreshInterval: 1000 * 60 * 60 * 24, //Once a day baseUrl: 'https://api.themoviedb.org/3/movie/now_playing', animationSpeed: 2.5 * 1000, pageChangeInterval: 30 * 1000 } }, { disabled: false, module: 'MMM-NOAA', position: 'top_right', config: { apiKey: "xxxxxxxxxxxxxxxxxx", // https://www.wunderground.com/weather/api select the middle plan... useAir: true, // set to false if you do not want to use Air Quality Index airKey: "xxxxxxxxxxxxxx", // IF you want Air Quality Index pws: "xxxxxxxxxx", // go here to find your pws: https://www.wunderground.com/wundermap showClock: false, // Hides or shows clock dformat: false, // for M/D/YYYY format, false for D/M/YYYY format: "24", // 12 or 24 hour format.. will default to 12 hour if none selected. ampm: false, // to show AM and PM on Sunrise/Sunset time showGreet: true, // deafult is false - to show greeting under clock and above date name: "xxxxxxxx", // Your name showWind: true, showDate: false, showForecast: true, //show bottom 3 day forecast flash: true, //Today in forecast flashes halo showUV: true, //show UV index showBar: true, // show Barometer showHum: true, //show Humidity level position: 'top_right', //whatever you have in above position must also be here alert: true //show weather alerts default is true } }, { module: 'MMM-Formula1', position: 'top_right', header: 'Formule 1 Classificatie', config: { maxRows: 6, season: 'current', calendar: true, fade: false, fadePoint: 0.2, grayscale: false, // Optional configuration options - see https://github.com/ianperrin/MMM-Formula1#configuration-options } }, { module: "MMM-ImagesPhotos", position: "bottom_right", header: "Onze reizen door xxxxxxxxxxxxxx .................", config: { opacity: 1, animationSpeed: 5000, updateInterval: 50000, maxWidth: "100%", maxHeight: "100%", } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "Algemeen Dagblad", url: "http://www.ad.nl/home/rss.xml" }, { title: "Telegraaf", url: "http://www.telegraaf.nl/rss/" }, { title: "Trouw", url: "https://www.trouw.nl/home/rss.xml" }, { title: "Volkskrant", url: "https://www.volkskrant.nl/nieuws-voorpagina/rss.xml" }, { title: "Nu.nl", url: "http://www.nu.nl/rss/Algemeen" } ], showSourceTitle: true, showPublishDate: true } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
Thanks!
Peter -
Thats not what u promised ;)
You wanted to show your logs.
Your config is ok. Maybe its one of your modules. U have to try out by disabling them step by step or maybe in blocks.
Or try to run just default modules.
But first post your logs. i have been asking for it since the last 3 posts :D
-
@cruunnerr , shame on me, you are right!
This is my error log:/home/pi/.pm2/logs/MagicMirror-error-0.log last 15 lines: 0|MagicMir | npm ERR! 0|MagicMir | npm ERR! Failed at the magicmirror@2.2.2 start script 'sh run-start.sh'. 0|MagicMir | npm ERR! Make sure you have the latest version of node.js and npm installed. 0|MagicMir | npm ERR! If you do, this is most likely a problem with the magicmirror package, 0|MagicMir | npm ERR! not with npm itself. 0|MagicMir | npm ERR! Tell the author that this fails on your system: 0|MagicMir | npm ERR! sh run-start.sh 0|MagicMir | npm ERR! You can get information on how to open an issue for this project with: 0|MagicMir | npm ERR! npm bugs magicmirror 0|MagicMir | npm ERR! Or if that isn't available, you can get their info via: 0|MagicMir | npm ERR! npm owner ls magicmirror 0|MagicMir | npm ERR! There is likely additional logging output above. 0|MagicMir | 0|MagicMir | npm ERR! Please include the following file with any support request: 0|MagicMir | npm ERR! /home/pi/MagicMirror/npm-debug.log
Peter
-
no need to shame ;)
i have had this problem, too.Since i played around with new modules and deleted other modules it doesn’t comes up again.
we discussed that issue already here
I can’t help u, but maybe it really helps if you would uncomment modules step by step (maybe two at the same time) and wait if the error comes up again.
I know, that will take a while, but for me it would be the choice how to solve it.
I have no other idea, i am sorry :(
-
@cruunnerr OK, I will follow your advice.
And what to do when I find the module that is causing the ploblem?
Delete it and install it again?
I love all the modules that I use now, so it would be bad not to have them.
Peter