Read the statement by Michael Teeuw here.
MagicMirror restarts all the time
-
@laurids sadly no. pm2 splits output inyo two logs
errors and output. this looks like the output.
errors are printed first
send the output to a file
pm2 logs --lines=100 >somefile
then edit somfile
-
@sdetweil here are some lines of the error.log. They repeat all the time:
[17:05:32.926] [ERROR] error: cannot lock ref 'refs/tags/v2.12.0': unable to resolve reference 'refs/tags/v2.12.0': Von https://github.com/MichMich/MagicMirror ! [neues Tag] v2.12.0 -> v2.12.0 (kann lokale Referenz nicht aktualisieren) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! magicmirror@2.10.1 start: `./run-start.sh` npm ERR! Exit status 1 npm ERR!. npm ERR! Failed at the magicmirror@2.10.1 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2021-05-08T15_37_28_171Z-debug.log /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT [08.05.2021 17:39.18.396] [WARN] The module 'currentweather' is deprecated in favor of the 'weather'-module, please [08.05.2021 17:39.18.402] [WARN] The module 'weatherforecast' is deprecated in favor of the 'weather'-module, please[08.05.2021 17:40.30.779] [ERROR] Whoops! There was an uncaught exception... [08.05.2021 17:40.30.812] [ERROR] Error: connect ECONNREFUSED 192.168.178.1:1012 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) { errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '192.168.178.1', port: 1012 } [08.05.2021 17:40.30.816] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. [08.05.2021 17:40.30.819] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://githu[08.05.2021 17:40.36.632] [ERROR] Failed to fetch git data for MMM-ioBroker: Error: block timeout reached [08.05.2021 17:40.37.844] [ERROR] Failed to fetch git data for default: Error: block timeout reached [08.05.2021 17:50.40.859] [ERROR] Failed to fetch git data for default: Error: block timeout reached [08.05.2021 17:53.34.562] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [08.05.2021 17:53.34.564] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087
and
[09.05.2021 11:28.04.125] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. [09.05.2021 11:28.04.126] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://githu[09.05.2021 11:28.04.676] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:28.04.679] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:28.04.681] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:28.04.683] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:28.04.686] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:28.04.691] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:28.06.421] [ERROR] Failed to fetch git data for MMM-FRITZ-Box-Callmonitor: Error: block timeout reache[09.05.2021 11:29.04.732] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:29.04.737] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:29.04.740] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:29.04.743] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:29.04.746] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:29.04.751] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087 [09.05.2021 11:29.30.532] [WARN] The module 'currentweather' is deprecated in favor of the 'weather'-module, please [09.05.2021 11:29.30.535] [WARN] The module 'weatherforecast' is deprecated in favor of the 'weather'-module, please[09.05.2021 11:29.34.824] [ERROR] Whoops! There was an uncaught exception... [09.05.2021 11:29.34.836] [ERROR] Error: connect ECONNREFUSED 192.168.178.1:1012 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) { errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '192.168.178.1', port: 1012
-
@laurids said in MagicMirror restarts all the time:
errno: ‘ECONNREFUSED’,
code: ‘ECONNREFUSED’,
syscall: ‘connect’,
address: ‘192.168.178.1’,and
[09.05.2021 11:29.04.737] [ERROR] Got error: connect ECONNREFUSED 127.0.0.1:8087look like the indicators…
whatever is using 192.168.178.1 looks like it didn’t handle the error
this 127.0.0.1:8087 is localhost, on the same machine, some server maybe related to above…
-
@sdetweil thanks for your help. I have to admit, that I don´t have a clue how to fix the errors ;) I think I just give it another try with a new installation.
-
@laurids I’m assuming it’s some module you’ve installed, so looking at the config.js may give a clue
-
@sdetweil I really don´t know what was wrong. Now I´ve made a new installation, copied my old config.js and it works. Thanks for your help.