-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pm2 Log Errors - How can i solve these errors ? Screen goes black after a while #2765
Comments
what mm version? grep version ~/MagicMirror/package.json what node and npm version node -v what os? how did u get here? install today, or upgrade in either case how did u do it? manual or automated? |
what mm version? what node and npm version node -v how did u get here? install today, or upgrade |
thanks.. can u give results of lsb_release -a |
also, could you post ~/install.log I just redid install on bullseye and it worked fine.. same node/npm/pm2
|
No LSB modules are available. |
install starting - Di Dez 28 12:51:23 CET 2021
[Service] ExecStart=/usr/lib/node_modules/pm2/bin/pm2 resurrect [Install] Target path [PM2] Remove init script via: |
how did u get node 16 installed? my script (before Saturday) only installed node 14 |
also, output of uname -a |
i had a previous installation before but i deleted it because there were the same issue with the blackscreen after a while and i want to give it a try with a fresh installation |
Linux raspberrypi 5.10.63-v7l+ #1496 SMP Wed Dec 1 15:58:56 GMT 2021 armv7l GNU/Linux |
did u accidentally close? the answer for how you got node 16 didn't help me.. did u install node manually before starting my install??? |
yes can i open it again
could be that i installed it with the previous installation manually |
yes i reopen it
could be that i installed it with the previous installation manually |
hm.. i can't reproduce it.. what pi is this? free -m might tell me..
|
so, i suggest u reflash the sd card and after boot, use my script to install again.. (it does all the work) this will get you 2.18, and node 16 |
sry but im not willing to reflash the sd card. This will delete all my other changes. Is there a way to do it without reflashing the sd card ? |
Yes its a 4gb pi 4
Mem: 3838 2177 419 234 1241 1505 |
i do not know.. something is messed up. I don't know what. |
Are there any guideline how i delete Magic Mirror and necessary stuff ? |
sure, just delete the folder.. rm -rf ~/MagicMirror to remove pm2 pm2 unstartup systemd after doing this reboot then u can run the MM installer script again |
doing it right now. how can i check if it works ? |
it will start MM if u say yes to pm2. otherwise (if u say no to use pm2)
|
your recommandation is to use pm2 ? |
yes, if u want it to start on boot, and keep running if it crashes, and record the output in case of problems.. all things u have to develop solutions for yourself otherwise.. |
the remote module defaults to the pm2 process name is 'mm'.. my setup script does 'MagicMirror' so u have to set it in remote module config |
did it but nothing change.. With clicking twice or more i get the same issue. |
so that is in the module config section, right?
the module doesn't put out any debug info.. sorry, thats all I know about that module (from looking at the code) |
/*************** AUTO GENERATED BY REMOTE CONTROL MODULE ***************/ var config = /*************** DO NOT EDIT THE LINE BELOW ***************/ |
You mean i have to put it into the config.js file. like i post above. |
thanks for the info ... please edit your post and remove any api keys, or other personal info you can use XXXXXXX to take their place.. |
Done.. Where i have to place it ? |
but we are past the original error.. system is running now |
u did it correctly. (many users don't understand config:{} is parms TO the module..) i don't know what the module problem is.. as I said, there is no debug info produced I have a module that restarts MM via pm2, but uses my own code, and not the library he uses.. here is about MagicMirror, not any modules. |
is there any way to check the hole system in futher ? where i have an eye on it ? |
Thats what i found in the error log of pm2 /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT what does it mean ? |
did u stop and restart magicmirror? it has to kill electron to restart it (in linux that is a signal) |
in the console with pm2 restart MagicMirror |
yes, so it has to kill the prior to start another... so it sends an interrupt signal (SIGINT) |
means this isn't an issue, right ? |
correct, this is normal |
Hi again, after a while working. Screen turns into blackscreen and i have to start the magic mirror via remote control to get back the view. @sdetweil maybe you can help me Here is the log: PM2 | 2022-01-07T21:57:33: PM2 log: pid=32343 msg=process killed /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines: /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines: |
you need to clear the logs or print more of them the issues at the top are from Jan 7, and the stuff from below from Jan 10 do
then when it fails. pm2 stop all pm2 logs --lines=100 >somefile.txt ctrl-c then examine somefile.txt |
PM2 | 2022-01-04T23:00:57: PM2 log: PM2 home : /home/pi/.pm2 /home/pi/.pm2/logs/MagicMirror-error.log last 100 lines: /home/pi/.pm2/logs/MagicMirror-out.log last 100 lines: |
googling
So you have problems with your internet connection, nothing we can do here. |
Ok can we increase the timeout maybe ? i don't know how i can solve this problem better... |
no, its WAY down in the system layer, way outside MagicMirror.. the whole system (raspberry pi) DEPENDS on reliable network connectivity, and name lookup is how it works. I have seen this error a lot when the user is running a system, like pihole, to block advertisements |
Hi, The pi connects wirelessly to my router. A Ctrl_R forces a MM reread and restarts everything but it doesn't address the issue. Any help / advise would be appreciated |
EAI_AGAIN is a networking error, nothing we can do. I have seen this many times when users are using an advertisement filter like pihole. others have rebooted their routers. nothing consistent. mm assumes a working network. the error is reported way below any code mm provides |
Thanks |
@sdetweil I always wondered what was causing my black screen! I have to keep a keyboard attached to the pi and hit CTRL+W about once every few days. Is there a domain or URL I can add to my pihole's allow list? |
@dieseltravis no idea, you would have to look at the logs to see whats going on |
no update since May, can this be closed @Fredi009sg @MichMich ? |
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 13:46.51.216] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
Tue, 28 Dec 2021 12:46:51 GMT express deprecated res.send(status): Use res.sendStatus(status) instead at modules/MMM-Remote-Control/node_helper.js:138:25
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 13:48.37.248] [ERROR] �[31mWARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:90�[39m
�[31m {�[39m
�[31m ^�[39m
�[31mSyntaxError: Unexpected token '{'�[39m
�[31m at wrapSafe (internal/modules/cjs/loader.js:986:16)�[39m
�[31m at Module._compile (internal/modules/cjs/loader.js:1034:27)�[39m
�[31m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)�[39m
�[31m at Module.load (internal/modules/cjs/loader.js:935:32)�[39m
�[31m at Module._load (internal/modules/cjs/loader.js:776:14)�[39m
�[31m at Function.f._load (electron/js2c/asar_bundle.js:5:12913)�[39m
�[31m at Module.require (internal/modules/cjs/loader.js:959:19)�[39m
�[31m at require (internal/modules/cjs/helpers.js:88:18)�[39m
�[31m at loadConfig (/home/pi/MagicMirror/js/app.js:69:14)�[39m
�[31m at App.start (/home/pi/MagicMirror/js/app.js:212:3)�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 13:50.25.169] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 13:52.34.401] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 13:54.24.598] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 13:56.15.696] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 13:57.12.836] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 14:03.35.703] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
[28.12.2021 14:12.06.071] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 14:19.11.743] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 14:21.01.131] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 14:22.10.511] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 14:23.36.657] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 14:25.07.967] [ERROR] �[31mWARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:143�[39m
�[31m{�[39m
�[31m^�[39m
�[31mSyntaxError: Unexpected token '{'�[39m
�[31m at wrapSafe (internal/modules/cjs/loader.js:986:16)�[39m
�[31m at Module._compile (internal/modules/cjs/loader.js:1034:27)�[39m
�[31m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)�[39m
�[31m at Module.load (internal/modules/cjs/loader.js:935:32)�[39m
�[31m at Module._load (internal/modules/cjs/loader.js:776:14)�[39m
�[31m at Function.f._load (electron/js2c/asar_bundle.js:5:12913)�[39m
�[31m at Module.require (internal/modules/cjs/loader.js:959:19)�[39m
�[31m at require (internal/modules/cjs/helpers.js:88:18)�[39m
�[31m at loadConfig (/home/pi/MagicMirror/js/app.js:69:14)�[39m
�[31m at App.start (/home/pi/MagicMirror/js/app.js:212:3)�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 14:26.33.999] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 14:28.47.516] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 14:29.16.076] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[28.12.2021 14:31.13.222] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
Gdk-Message: 23:00:00.970: electron: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :0.
XIO: fatal IO error 62 (Der virtuelle Zeitnehmer ist abgelaufen) on X server ":0"
after 11902688 requests (11902688 known processed) with 0 events remaining.
[28.12.2021 23:02.28.676] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
[28.12.2021 23:02.36.709] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
[28.12.2021 23:02.45.547] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
[28.12.2021 23:02.52.936] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
[28.12.2021 23:03.11.406] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
[28.12.2021 23:03.21.152] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
[28.12.2021 23:03.29.015] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
[28.12.2021 23:03.38.495] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
[28.12.2021 23:03.43.583] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
Invalid MIT-MAGIC-COOKIE-1 key/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
[28.12.2021 23:04.08.158] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
[29.12.2021 06:27.59.070] [ERROR] Calendar Error. Could not fetch calendar: http://p12-caldav.icloud.com/published/2/MTk3NDg4NzIwOTE5NzQ4OJen2vZPDPO6ZjKDI5IIr79mZRTz4px5MNIbzMHGisQCPVn-bb7-rMKJRQXT-HvKaLs2H8xYBU6yq8si1DE_1Po Error: Internal Server Error
at NodeHelper.checkFetchStatus (/home/pi/MagicMirror/js/node_helper.js:121:9)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
[29.12.2021 11:49.56.931] [ERROR] Calendar Error. Could not fetch calendar: http://p12-caldav.icloud.com/published/2/MTk3NDg4NzIwOTE5NzQ4OJen2vZPDPO6ZjKDI5IIr79mZRTz4px5MNIbzMHGisQCPVn-bb7-rMKJRQXT-HvKaLs2H8xYBU6yq8si1DE_1Po Error: Bad Request
at NodeHelper.checkFetchStatus (/home/pi/MagicMirror/js/node_helper.js:121:9)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[29.12.2021 15:28.38.305] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
Gdk-Message: 16:22:09.780: electron: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :0.
[29.12.2021 16:23.10.686] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[29.12.2021 16:23.58.486] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[29.12.2021 16:24.22.567] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[29.12.2021 16:32.14.842] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
[29.12.2021 16:37.41.656] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
XIO: fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server ":0"
after 41529100 requests (41529100 known processed) with 0 events remaining.
Gdk-Message: 22:25:08.953: electron: Fatal IO error 11 (Die Ressource ist zur Zeit nicht verfügbar) on X server :0.
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[30.12.2021 22:27.46.806] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[30.12.2021 22:28.24.729] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[30.12.2021 22:28.34.006] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[30.12.2021 22:33.18.173] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
<--- Last few GCs --->
[3787:0x6103000] 101962762 ms: Mark-sweep 876.8 (983.0) -> 870.2 (982.8) MB, 3464.2 / 40.3 ms (average mu = 0.990, current mu = 0.993) allocation failure scavenge might not succeed
[3787:0x6103000] 101966444 ms: Scavenge 871.4 (982.8) -> 870.5 (982.8) MB, 26.0 / 0.1 ms (average mu = 0.990, current mu = 0.993) allocation failure
[3787:0x6103000] 101974528 ms: Scavenge 871.4 (982.8) -> 870.5 (983.8) MB, 7.5 / 0.1 ms (average mu = 0.990, current mu = 0.993) allocation failure
<--- JS stacktrace --->
/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
[01.01.2022 11:23.07.634] [WARN] �[33mYou're using a full whitelist configuration to allow for all IPs�[39m
<--- Last few GCs --->
[3302:0x75aa000] 105228928 ms: Mark-sweep 876.4 (983.5) -> 875.0 (983.5) MB, 3956.5 / 0.6 ms (average mu = 0.471, current mu = 0.450) allocation failure scavenge might not succeed
[3302:0x75aa000] 105241072 ms: Mark-sweep 876.4 (983.5) -> 875.1 (983.8) MB, 6107.0 / 0.7 ms (average mu = 0.486, current mu = 0.497) allocation failure scavenge might not succeed
<--- JS stacktrace --->
[02.01.2022 20:10.50.593] [ERROR] (node:3251) UnhandledPromiseRejectionWarning: Error: fatal: Konnte '/home/pi/MagicMirror/modules/MMM-MyGarbage/.git/index.lock' nicht erstellen: Keine Berechtigung
(Use
electron --trace-warnings ...
to show where the warning was created)[02.01.2022 20:10.50.596] [ERROR] (node:3251) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)[02.01.2022 20:10.50.601] [ERROR] (node:3251) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[02.01.2022 20:10.51.843] [ERROR] (node:3251) UnhandledPromiseRejectionWarning: Error: fatal: Konnte '/home/pi/MagicMirror/modules/MMM-MyGarbage/.git/index.lock' nicht erstellen: Keine Berechtigung
[02.01.2022 20:10.51.844] [ERROR] (node:3251) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)The text was updated successfully, but these errors were encountered: