Solved Gateway Stop working and MM Stop loading after last update
-
Hello,
Exactly as the title says, somehow, I run the last update on Gateway and all a sudden Gateway and MM stopped working,Now If I run : npm restart, I got this erroer
[19.07.2023 11:11.13.919] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [19.07.2023 11:11.13.921] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load driver: kms_swrast MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load swrast driver ^C/home/mir/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
And
@raspberrypi:~/MagicMirror $ pm2 status ââââââ¬âââââââââââââââââââââ¬âââââââââââ¬âââââââ¬ââââââââââââ¬âââââââââââ¬âââââââââââ â id â name â mode â ⺠â status â cpu â memory â ââââââ¼âââââââââââââââââââââ¼âââââââââââ¼âââââââ¼ââââââââââââ¼âââââââââââ¼ââââââââââ⤠â 0 â MagicMirror â fork â 9 â stopped â 0% â 0b â â 1 â librespot â fork â 331⦠â stopped â 0% â 0b â ââââââ´âââââââââââââââââââââ´âââââââââââ´âââââââ´ââââââââââââ´âââââââââââ´âââââââââââ [PM2][WARN] Current process list is not synchronized with saved list. Type 'pm2 save' to synchronize.
and
@raspberrypi:~/MagicMirror $ pm2 start [PM2][ERROR] File ecosystem.config.js not found and
@raspberrypi:~/MagicMirror $ ps aux |grep electron mir 3767 0.0 0.4 175500 35332 ? S Jul17 0:00 /home/mir/MagicMirror/node_modules/electron/dist/electron --type=zygote --no-zygote-sandbox mir 3768 0.0 0.4 175496 33592 ? S Jul17 0:00 /home/mir/MagicMirror/node_modules/electron/dist/electron --type=zygote mir 3770 0.0 0.1 175520 9724 ? S Jul17 0:00 /home/mir/MagicMirror/node_modules/electron/dist/electron --type=zygote mir 4314 0.0 0.7 276388 63916 ? Sl Jul17 0:00 /home/mir/MagicMirror/node_modules/electron/dist/electron --type=renderer --enable-crash-reporter=2c601121-d553-4d81-b5bc-8633bee19da7,no_channel --user-data-dir=/home/mir/.config/Electron --app-path=/home/mir/MagicMirror/js --enable-sandbox --autoplay-policy=no-user-gesture-required --lang=en-GB --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=7 --time-ticks-at-unix-epoch=-1688248783908448 --launch-time-ticks=1340725429872 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,8532163251713410723,8260086368372008297,262144 --disable-features=SpareRendererForSitePerProcess mir 4368 0.0 0.0 0 0 ? Z Jul17 1:18 [electron] <defunct> mir 4430 0.0 0.0 1980 424 ? S Jul17 0:00 sh -c -- DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js mir 4431 0.0 0.3 121168 31060 ? Sl Jul17 0:00 node ./node_modules/.bin/electron js/electron.js mir 4438 98.1 3.8 703652 307940 ? Rl Jul17 2906:34 /home/mir/MagicMirror/node_modules/electron/dist/electron js/electron.js mir 4441 0.0 0.4 175504 35140 ? S Jul17 0:00 /home/mir/MagicMirror/node_modules/electron/dist/electron --type=zygote --no-zygote-sandbox mir 4442 0.0 0.4 175500 33616 ? S Jul17 0:00 /home/mir/MagicMirror/node_modules/electron/dist/electron --type=zygote mir 4444 0.0 0.1 175520 9728 ? S Jul17 0:00 /home/mir/MagicMirror/node_modules/electron/dist/electron --type=zygote mir 4477 3.1 1.0 380360 86956 ? Sl Jul17 92:57 /home/mir/MagicMirror/node_modules/electron/dist/electron --type=gpu-process --enable-crash-reporter=2c601121-d553-4d81-b5bc-8633bee19da7,no_channel --user-data-dir=/home/mir/.config/Electron --gpu-preferences=WAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAGAAAAAAAAAAYAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --shared-files --field-trial-handle=0,i,8532163251713410723,8260086368372008297,262144 --disable-features=SpareRendererForSitePerProcess mir 4479 0.0 0.6 260324 54528 ? Sl Jul17 1:50 /home/mir/MagicMirror/node_modules/electron/dist/electron --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-GB --service-sandbox-type=none --enable-crash-reporter=2c601121-d553-4d81-b5bc-8633bee19da7,no_channel --user-data-dir=/home/mir/.config/Electron --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,8532163251713410723,8260086368372008297,262144 --disable-features=SpareRendererForSitePerProcess mir 4498 0.0 0.2 309544 16432 ? S Jul17 0:00 /home/mir/MagicMirror/node_modules/electron/dist/electron --type=broker mir 4803 0.0 0.5 490940 41356 ? Sl Jul17 0:20 /home/mir/MagicMirror/node_modules/electron/dist/electron --type=utility --utility-sub-type=audio.mojom.AudioService --lang=en-GB --service-sandbox-type=none --enable-crash-reporter=2c601121-d553-4d81-b5bc-8633bee19da7,no_channel --user-data-dir=/home/mir/.config/Electron --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,8532163251713410723,8260086368372008297,262144 --disable-features=SpareRendererForSitePerProcess mir 8578 0.0 0.0 3360 1632 pts/1 S+ 11:19 0:00 grep --color=auto electron
Could you please help me restore it
Many thanks
-
Hi,
-
Can I have logs from start -> this error
thx -
and 3. missing process id or process name
sample :
pm2 start 0
orpm2 start MagicMirror
in all case: (I need this all the time for debug )
try this:# Stop all process of pm2 pm2 start all # Go to MagicMirrror directory cd ~/MagicMirror # Launch MagicMirror app manually npm start
Paste the logs from the launch of MM² up to the error BUT not just the error as you have pasted.
-
-
Hello,
~/MagicMirror $ npm run config:check > magicmirror@2.24.0 config:check > node js/check_config.js [19.07.2023 18:54.09.143] [INFO] Checking file... /home/mir/MagicMirror/config/config.js [19.07.2023 18:54.09.479] [INFO] Your configuration file doesn't contain syntax errors :)
Then
~/MagicMirror $ pm2 start all [PM2] Applying action restartProcessId on app [all](ids: [ 0, 1 ]) [PM2] [MagicMirror](0) â [PM2] [librespot](1) â [PM2] Process successfully started ââââââ¬âââââââââââââââââââââ¬âââââââââââ¬âââââââ¬ââââââââââââ¬âââââââââââ¬âââââââââââ â id â name â mode â ⺠â status â cpu â memory â ââââââ¼âââââââââââââââââââââ¼âââââââââââ¼âââââââ¼ââââââââââââ¼âââââââââââ¼ââââââââââ⤠â 0 â MagicMirror â fork â 9 â online â 0% â 2.3mb â â 1 â librespot â fork â 331⦠â online â 0% â 1.1mb â ââââââ´âââââââââââââââââââââ´âââââââââââ´âââââââ´ââââââââââââ´âââââââââââ´âââââââââââ [PM2][WARN] Current process list is not synchronized with saved list. Type 'pm2 save' to synchronize.
Than
@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.24.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [19.07.2023 18:55.53.407] [LOG] Starting MagicMirror: v2.24.0 [19.07.2023 18:55.53.428] [LOG] Loading config ... [19.07.2023 18:55.53.438] [DEBUG] config template file not exists, no envsubst [19.07.2023 18:55.53.456] [LOG] Loading module helpers ... [19.07.2023 18:55.53.460] [LOG] No helper found for module: clock. [19.07.2023 18:55.53.523] [LOG] Initializing new module helper ... [19.07.2023 18:55.53.526] [LOG] Module helper loaded: updatenotification [19.07.2023 18:55.53.536] [LOG] Initializing new module helper ... [19.07.2023 18:55.53.539] [LOG] Module helper loaded: EXT-Alert [19.07.2023 18:55.53.557] [LOG] Initializing new module helper ... [19.07.2023 18:55.53.559] [LOG] Module helper loaded: Gateway [19.07.2023 18:55.54.407] [LOG] Initializing new module helper ... [19.07.2023 18:55.54.409] [LOG] Module helper loaded: calendar [19.07.2023 18:55.54.412] [LOG] No helper found for module: compliments. [19.07.2023 18:55.54.415] [LOG] No helper found for module: weather. [19.07.2023 18:55.54.427] [LOG] Initializing new module helper ... [19.07.2023 18:55.54.429] [LOG] Module helper loaded: EXT-Governor [19.07.2023 18:55.54.443] [LOG] Initializing new module helper ... [19.07.2023 18:55.54.444] [LOG] Module helper loaded: MMM-GoogleAssistant [19.07.2023 18:55.54.454] [LOG] Initializing new module helper ... [19.07.2023 18:55.54.455] [LOG] Module helper loaded: EXT-Browser [19.07.2023 18:55.54.487] [LOG] Initializing new module helper ... [19.07.2023 18:55.54.489] [LOG] Module helper loaded: EXT-Detector [19.07.2023 18:55.55.479] [LOG] Initializing new module helper ... [19.07.2023 18:55.55.480] [LOG] Module helper loaded: EXT-Librespot [19.07.2023 18:55.56.227] [LOG] Initializing new module helper ... [19.07.2023 18:55.56.228] [LOG] Module helper loaded: EXT-Spotify [19.07.2023 18:55.57.475] [LOG] Initializing new module helper ... [19.07.2023 18:55.57.476] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [19.07.2023 18:55.57.482] [LOG] Initializing new module helper ... [19.07.2023 18:55.57.483] [LOG] Module helper loaded: EXT-RadioPlayer [19.07.2023 18:55.57.488] [LOG] Initializing new module helper ... [19.07.2023 18:55.57.490] [LOG] Module helper loaded: EXT-Volume [19.07.2023 18:55.58.245] [LOG] Initializing new module helper ... [19.07.2023 18:55.58.246] [LOG] Module helper loaded: MMM-AnyList [19.07.2023 18:55.58.248] [LOG] No helper found for module: MMM-EyeCandy. [19.07.2023 18:55.59.129] [LOG] Initializing new module helper ... [19.07.2023 18:55.59.130] [LOG] Check MagicMirror² version for node helper 'MMM-CoinMarketCap' - Minimum version: 2.2.1 - Current version: 2.24.0 [19.07.2023 18:55.59.132] [LOG] Version is ok! [19.07.2023 18:55.59.133] [LOG] Module helper loaded: MMM-CoinMarketCap [19.07.2023 18:55.59.201] [LOG] Initializing new module helper ... [19.07.2023 18:55.59.203] [LOG] Module helper loaded: newsfeed [19.07.2023 18:55.59.210] [LOG] Initializing new module helper ... [19.07.2023 18:55.59.211] [LOG] Module helper loaded: EXT-YouTube [19.07.2023 18:55.59.580] [LOG] Initializing new module helper ... [19.07.2023 18:55.59.581] [LOG] Module helper loaded: EXT-YouTubeCast [19.07.2023 18:55.59.583] [LOG] No helper found for module: MMM-IronManGIF. [19.07.2023 18:55.59.584] [LOG] No helper found for module: MMM-WiFiPassword. [19.07.2023 18:55.59.624] [LOG] Initializing module helper ... [19.07.2023 18:55.59.626] [LOG] Module helper loaded: MMM-Random-local-image [19.07.2023 18:55.59.627] [LOG] All module helpers loaded. [19.07.2023 18:55.59.667] [LOG] Starting server on port 8080 ... [19.07.2023 18:56.00.557] [ERROR] Whoops! There was an uncaught exception... [19.07.2023 18:56.00.603] [ERROR] Error: listen EADDRINUSE: address already in use ::1:8080 at Server.setupListenHandle [as _listen2] (node:net:1740:16) at listenInCluster (node:net:1788:12) at GetAddrInfoReqWrap.doListen [as callback] (node:net:1937:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8) { code: 'EADDRINUSE', errno: -98, syscall: 'listen', address: '::1', port: 8080 } [19.07.2023 18:56.00.609] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [19.07.2023 18:56.00.611] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load driver: kms_swrast MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load swrast driver
There,
Thank you man -
Sorry I’m so stupid…
-
in all case: (I need this all the time for debug )
try this:
# Stop all process of pm2 pm2 stop all # Go to MagicMirrror directory cd ~/MagicMirror # Launch MagicMirror app manually npm start
I don’t know I have written
start
for pm2 -
Thank you for your help, Please find the results, unfortunately, same results,
mir@raspberrypi:~ $ pm2 stop all [PM2] Applying action stopProcessId on app [all](ids: [ 0, 1 ]) [PM2] [MagicMirror](0) â [PM2] [librespot](1) â ââââââ¬âââââââââââââââââââââ¬âââââââââââ¬âââââââ¬ââââââââââââ¬âââââââââââ¬âââââââââââ â id â name â mode â ⺠â status â cpu â memory â ââââââ¼âââââââââââââââââââââ¼âââââââââââ¼âââââââ¼ââââââââââââ¼âââââââââââ¼ââââââââââ⤠â 0 â MagicMirror â fork â 10 â stopped â 0% â 0b â â 1 â librespot â fork â 427⦠â stopped â 0% â 0b â ââââââ´âââââââââââââââââââââ´âââââââââââ´âââââââ´ââââââââââââ´âââââââââââ´âââââââââââ [PM2][WARN] Current process list is not synchronized with saved list. Type 'pm2 save' to synchronize. mir@raspberrypi:~ $ cd MagicMirror/ mir@raspberrypi:~/MagicMirror $ npm start
~/MagicMirror $ npm start > magicmirror@2.24.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [23.07.2023 19:00.04.403] [LOG] Starting MagicMirror: v2.24.0 [23.07.2023 19:00.04.432] [LOG] Loading config ... [23.07.2023 19:00.04.445] [DEBUG] config template file not exists, no envsubst [23.07.2023 19:00.04.476] [LOG] Loading module helpers ... [23.07.2023 19:00.04.483] [LOG] No helper found for module: clock. [23.07.2023 19:00.04.565] [LOG] Initializing new module helper ... [23.07.2023 19:00.04.567] [LOG] Module helper loaded: updatenotification [23.07.2023 19:00.04.611] [LOG] Initializing new module helper ... [23.07.2023 19:00.04.627] [LOG] Module helper loaded: EXT-Alert [23.07.2023 19:00.04.685] [LOG] Initializing new module helper ... [23.07.2023 19:00.04.688] [LOG] Module helper loaded: Gateway [23.07.2023 19:00.05.932] [LOG] Initializing new module helper ... [23.07.2023 19:00.05.934] [LOG] Module helper loaded: calendar [23.07.2023 19:00.05.944] [LOG] No helper found for module: compliments. [23.07.2023 19:00.05.947] [LOG] No helper found for module: weather. [23.07.2023 19:00.05.966] [LOG] Initializing new module helper ... [23.07.2023 19:00.05.967] [LOG] Module helper loaded: EXT-Governor [23.07.2023 19:00.05.989] [LOG] Initializing new module helper ... [23.07.2023 19:00.05.990] [LOG] Module helper loaded: MMM-GoogleAssistant [23.07.2023 19:00.06.011] [LOG] Initializing new module helper ... [23.07.2023 19:00.06.012] [LOG] Module helper loaded: EXT-Browser [23.07.2023 19:00.06.043] [LOG] Initializing new module helper ... [23.07.2023 19:00.06.044] [LOG] Module helper loaded: EXT-Detector [23.07.2023 19:00.07.125] [LOG] Initializing new module helper ... [23.07.2023 19:00.07.126] [LOG] Module helper loaded: EXT-Librespot [23.07.2023 19:00.07.987] [LOG] Initializing new module helper ... [23.07.2023 19:00.07.989] [LOG] Module helper loaded: EXT-Spotify [23.07.2023 19:00.09.353] [LOG] Initializing new module helper ... [23.07.2023 19:00.09.355] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [23.07.2023 19:00.09.391] [LOG] Initializing new module helper ... [23.07.2023 19:00.09.393] [LOG] Module helper loaded: EXT-RadioPlayer [23.07.2023 19:00.09.414] [LOG] Initializing new module helper ... [23.07.2023 19:00.09.417] [LOG] Module helper loaded: EXT-Volume [23.07.2023 19:00.10.420] [LOG] Initializing new module helper ... [23.07.2023 19:00.10.422] [LOG] Module helper loaded: MMM-AnyList [23.07.2023 19:00.10.425] [LOG] No helper found for module: MMM-EyeCandy. [23.07.2023 19:00.11.472] [LOG] Initializing new module helper ... [23.07.2023 19:00.11.474] [LOG] Check MagicMirror² version for node helper 'MMM-CoinMarketCap' - Minimum version: 2.2.1 - Current version: 2.24.0 [23.07.2023 19:00.11.476] [LOG] Version is ok! [23.07.2023 19:00.11.477] [LOG] Module helper loaded: MMM-CoinMarketCap [23.07.2023 19:00.11.606] [LOG] Initializing new module helper ... [23.07.2023 19:00.11.607] [LOG] Module helper loaded: newsfeed [23.07.2023 19:00.11.621] [LOG] Initializing new module helper ... [23.07.2023 19:00.11.622] [LOG] Module helper loaded: EXT-YouTube [23.07.2023 19:00.12.027] [LOG] Initializing new module helper ... [23.07.2023 19:00.12.029] [LOG] Module helper loaded: EXT-YouTubeCast [23.07.2023 19:00.12.038] [LOG] No helper found for module: MMM-IronManGIF. [23.07.2023 19:00.12.045] [LOG] No helper found for module: MMM-WiFiPassword. [23.07.2023 19:00.12.127] [LOG] Initializing module helper ... [23.07.2023 19:00.12.129] [LOG] Module helper loaded: MMM-Random-local-image [23.07.2023 19:00.12.130] [LOG] All module helpers loaded. [23.07.2023 19:00.12.172] [LOG] Starting server on port 8080 ... [23.07.2023 19:00.13.015] [ERROR] Whoops! There was an uncaught exception... [23.07.2023 19:00.13.033] [ERROR] Error: listen EADDRINUSE: address already in use ::1:8080 at Server.setupListenHandle [as _listen2] (node:net:1740:16) at listenInCluster (node:net:1788:12) at GetAddrInfoReqWrap.doListen [as callback] (node:net:1937:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8) { code: 'EADDRINUSE', errno: -98, syscall: 'listen', address: '::1', port: 8080 } [23.07.2023 19:00.13.034] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [23.07.2023 19:00.13.035] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load driver: kms_swrast MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load swrast driver
-
so kill the process:
ps aux | grep "dist/electron js/electron.js"
you will have 2 lines, sample:
bugsoun+ 86692 35.7 2.8 1177539012 226992 pts/4 Sl+ 19:08 0:04 /home/bugsounet/MagicMirror/node_modules/electron/dist/electron js/electron.js bugsoun+ 87181 0.0 0.0 9224 2304 pts/3 S+ 19:08 0:00 grep --color=auto dist/electron js/electron.js
read the first line, you will have your account name and a number
mine is : 86692kill the process with
kill -INT <number>
in my case,kill -INT 86692
and retry
# Stop all process of pm2 pm2 stop all # Go to MagicMirrror directory cd ~/MagicMirror # Launch MagicMirror app manually npm start
and past again logs from start
-
Thank you so much Man, unfortunately, same results,
mir@raspberrypi:~/MagicMirror $ ps aux | grep "dist/electron js/electron.js" mir 4438 99.7 4.9 803748 404328 ? Rl Jul17 9174:22 /home/mir/MagicMirror/node_modules/electron/dist/electron js/electron.js mir 13380 0.0 0.0 3492 1560 pts/1 S+ 19:18 0:00 grep --color=auto dist/electron js/electron.js mir@raspberrypi:~/MagicMirror $ kill -INT 4438 mir@raspberrypi:~/MagicMirror $ kill -INT 13380 bash: kill: (13380) - No such process mir@raspberrypi:~/MagicMirror $ pm2 stop all [PM2] Applying action stopProcessId on app [all](ids: [ 0, 1 ]) [PM2] [MagicMirror](0) â [PM2] [librespot](1) â ââââââ¬âââââââââââââââââââââ¬âââââââââââ¬âââââââ¬ââââââââââââ¬âââââââââââ¬âââââââââââ â id â name â mode â ⺠â status â cpu â memory â ââââââ¼âââââââââââââââââââââ¼âââââââââââ¼âââââââ¼ââââââââââââ¼âââââââââââ¼ââââââââââ⤠â 0 â MagicMirror â fork â 10 â stopped â 0% â 0b â â 1 â librespot â fork â 427⦠â stopped â 0% â 0b â ââââââ´âââââââââââââââââââââ´âââââââââââ´âââââââ´ââââââââââââ´âââââââââââ´âââââââââââ [PM2][WARN] Current process list is not synchronized with saved list. Type 'pm2 save' to synchronize. mir@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.24.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [23.07.2023 19:20.12.036] [LOG] Starting MagicMirror: v2.24.0 [23.07.2023 19:20.12.055] [LOG] Loading config ... [23.07.2023 19:20.12.068] [DEBUG] config template file not exists, no envsubst [23.07.2023 19:20.12.095] [LOG] Loading module helpers ... [23.07.2023 19:20.12.107] [LOG] No helper found for module: clock. [23.07.2023 19:20.12.171] [LOG] Initializing new module helper ... [23.07.2023 19:20.12.174] [LOG] Module helper loaded: updatenotification [23.07.2023 19:20.12.202] [LOG] Initializing new module helper ... [23.07.2023 19:20.12.204] [LOG] Module helper loaded: EXT-Alert [23.07.2023 19:20.12.232] [LOG] Initializing new module helper ... [23.07.2023 19:20.12.234] [LOG] Module helper loaded: Gateway [23.07.2023 19:20.13.083] [LOG] Initializing new module helper ... [23.07.2023 19:20.13.084] [LOG] Module helper loaded: calendar [23.07.2023 19:20.13.093] [LOG] No helper found for module: compliments. [23.07.2023 19:20.13.097] [LOG] No helper found for module: weather. [23.07.2023 19:20.13.116] [LOG] Initializing new module helper ... [23.07.2023 19:20.13.117] [LOG] Module helper loaded: EXT-Governor [23.07.2023 19:20.13.142] [LOG] Initializing new module helper ... [23.07.2023 19:20.13.143] [LOG] Module helper loaded: MMM-GoogleAssistant [23.07.2023 19:20.13.162] [LOG] Initializing new module helper ... [23.07.2023 19:20.13.164] [LOG] Module helper loaded: EXT-Browser [23.07.2023 19:20.13.196] [LOG] Initializing new module helper ... [23.07.2023 19:20.13.197] [LOG] Module helper loaded: EXT-Detector [23.07.2023 19:20.14.264] [LOG] Initializing new module helper ... [23.07.2023 19:20.14.265] [LOG] Module helper loaded: EXT-Librespot [23.07.2023 19:20.15.042] [LOG] Initializing new module helper ... [23.07.2023 19:20.15.043] [LOG] Module helper loaded: EXT-Spotify [23.07.2023 19:20.16.382] [LOG] Initializing new module helper ... [23.07.2023 19:20.16.383] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [23.07.2023 19:20.16.402] [LOG] Initializing new module helper ... [23.07.2023 19:20.16.403] [LOG] Module helper loaded: EXT-RadioPlayer [23.07.2023 19:20.16.419] [LOG] Initializing new module helper ... [23.07.2023 19:20.16.421] [LOG] Module helper loaded: EXT-Volume [23.07.2023 19:20.17.431] [LOG] Initializing new module helper ... [23.07.2023 19:20.17.432] [LOG] Module helper loaded: MMM-AnyList [23.07.2023 19:20.17.441] [LOG] No helper found for module: MMM-EyeCandy. [23.07.2023 19:20.18.452] [LOG] Initializing new module helper ... [23.07.2023 19:20.18.453] [LOG] Check MagicMirror² version for node helper 'MMM-CoinMarketCap' - Minimum version: 2.2.1 - Current version: 2.24.0 [23.07.2023 19:20.18.455] [LOG] Version is ok! [23.07.2023 19:20.18.456] [LOG] Module helper loaded: MMM-CoinMarketCap [23.07.2023 19:20.18.551] [LOG] Initializing new module helper ... [23.07.2023 19:20.18.552] [LOG] Module helper loaded: newsfeed [23.07.2023 19:20.18.565] [LOG] Initializing new module helper ... [23.07.2023 19:20.18.566] [LOG] Module helper loaded: EXT-YouTube [23.07.2023 19:20.18.948] [LOG] Initializing new module helper ... [23.07.2023 19:20.18.949] [LOG] Module helper loaded: EXT-YouTubeCast [23.07.2023 19:20.18.954] [LOG] No helper found for module: MMM-IronManGIF. [23.07.2023 19:20.18.961] [LOG] No helper found for module: MMM-WiFiPassword. [23.07.2023 19:20.19.030] [LOG] Initializing module helper ... [23.07.2023 19:20.19.032] [LOG] Module helper loaded: MMM-Random-local-image [23.07.2023 19:20.19.033] [LOG] All module helpers loaded. [23.07.2023 19:20.19.064] [LOG] Starting server on port 8080 ... [23.07.2023 19:20.19.879] [ERROR] Whoops! There was an uncaught exception... [23.07.2023 19:20.19.914] [ERROR] Error: listen EADDRINUSE: address already in use ::1:8080 at Server.setupListenHandle [as _listen2] (node:net:1740:16) at listenInCluster (node:net:1788:12) at GetAddrInfoReqWrap.doListen [as callback] (node:net:1937:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8) { code: 'EADDRINUSE', errno: -98, syscall: 'listen', address: '::1', port: 8080 } [23.07.2023 19:20.19.929] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [23.07.2023 19:20.19.930] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load driver: kms_swrast MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load swrast driver
-
can I have the result of this:
sudo ss -tulpn | grep 8080
-
mir@raspberrypi:~/MagicMirror $ sudo ss -tulpn | grep 8080 tcp LISTEN 0 511 [::1]:8080 [::]:* users:(("electron",pid=4438,fd=48)) mir@raspberrypi:~/MagicMirror $
Thank you
-
pm2 stop all sudo ss -tulpn | grep 8080
note the pid number (4438 in your case with last command)
kill the process with the pid (reaplce with your pid number
kill -INT 4438
relaunch maigicmirror
cd ~/MagicMirror npm start
past all logs
-
Still the same error, I think I have two mirrors, and one is overwriting another, but both don’t work,
> magicmirror@2.24.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [23.07.2023 20:30.33.147] [LOG] Starting MagicMirror: v2.24.0 [23.07.2023 20:30.33.174] [LOG] Loading config ... [23.07.2023 20:30.33.188] [DEBUG] config template file not exists, no envsubst [23.07.2023 20:30.33.215] [LOG] Loading module helpers ... [23.07.2023 20:30.33.219] [LOG] No helper found for module: clock. [23.07.2023 20:30.33.287] [LOG] Initializing new module helper ... [23.07.2023 20:30.33.291] [LOG] Module helper loaded: updatenotification [23.07.2023 20:30.33.310] [LOG] Initializing new module helper ... [23.07.2023 20:30.33.314] [LOG] Module helper loaded: EXT-Alert [23.07.2023 20:30.33.346] [LOG] Initializing new module helper ... [23.07.2023 20:30.33.349] [LOG] Module helper loaded: Gateway [23.07.2023 20:30.34.399] [LOG] Initializing new module helper ... [23.07.2023 20:30.34.400] [LOG] Module helper loaded: calendar [23.07.2023 20:30.34.403] [LOG] No helper found for module: compliments. [23.07.2023 20:30.34.405] [LOG] No helper found for module: weather. [23.07.2023 20:30.34.425] [LOG] Initializing new module helper ... [23.07.2023 20:30.34.426] [LOG] Module helper loaded: EXT-Governor [23.07.2023 20:30.34.457] [LOG] Initializing new module helper ... [23.07.2023 20:30.34.458] [LOG] Module helper loaded: MMM-GoogleAssistant [23.07.2023 20:30.34.468] [LOG] Initializing new module helper ... [23.07.2023 20:30.34.470] [LOG] Module helper loaded: EXT-Browser [23.07.2023 20:30.34.487] [LOG] Initializing new module helper ... [23.07.2023 20:30.34.488] [LOG] Module helper loaded: EXT-Detector [23.07.2023 20:30.35.674] [LOG] Initializing new module helper ... [23.07.2023 20:30.35.676] [LOG] Module helper loaded: EXT-Librespot [23.07.2023 20:30.36.695] [LOG] Initializing new module helper ... [23.07.2023 20:30.36.698] [LOG] Module helper loaded: EXT-Spotify [23.07.2023 20:30.38.500] [LOG] Initializing new module helper ... [23.07.2023 20:30.38.501] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [23.07.2023 20:30.38.516] [LOG] Initializing new module helper ... [23.07.2023 20:30.38.517] [LOG] Module helper loaded: EXT-RadioPlayer [23.07.2023 20:30.38.537] [LOG] Initializing new module helper ... [23.07.2023 20:30.38.540] [LOG] Module helper loaded: EXT-Volume [23.07.2023 20:30.39.720] [LOG] Initializing new module helper ... [23.07.2023 20:30.39.721] [LOG] Module helper loaded: MMM-AnyList [23.07.2023 20:30.39.724] [LOG] No helper found for module: MMM-EyeCandy. [23.07.2023 20:30.41.641] [LOG] Initializing new module helper ... [23.07.2023 20:30.41.643] [LOG] Check MagicMirror² version for node helper 'MMM-CoinMarketCap' - Minimum version: 2.2.1 - Current version: 2.24.0 [23.07.2023 20:30.41.656] [LOG] Version is ok! [23.07.2023 20:30.41.658] [LOG] Module helper loaded: MMM-CoinMarketCap [23.07.2023 20:30.41.789] [LOG] Initializing new module helper ... [23.07.2023 20:30.41.790] [LOG] Module helper loaded: newsfeed [23.07.2023 20:30.41.805] [LOG] Initializing new module helper ... [23.07.2023 20:30.41.807] [LOG] Module helper loaded: EXT-YouTube [23.07.2023 20:30.42.499] [LOG] Initializing new module helper ... [23.07.2023 20:30.42.501] [LOG] Module helper loaded: EXT-YouTubeCast [23.07.2023 20:30.42.506] [LOG] No helper found for module: MMM-IronManGIF. [23.07.2023 20:30.42.508] [LOG] No helper found for module: MMM-WiFiPassword. [23.07.2023 20:30.42.591] [LOG] Initializing module helper ... [23.07.2023 20:30.42.593] [LOG] Module helper loaded: MMM-Random-local-image [23.07.2023 20:30.42.594] [LOG] All module helpers loaded. [23.07.2023 20:30.42.629] [LOG] Starting server on port 8080 ... [23.07.2023 20:30.43.799] [ERROR] Whoops! There was an uncaught exception... [23.07.2023 20:30.43.818] [ERROR] Error: listen EADDRINUSE: address already in use ::1:8080 at Server.setupListenHandle [as _listen2] (node:net:1740:16) at listenInCluster (node:net:1788:12) at GetAddrInfoReqWrap.doListen [as callback] (node:net:1937:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8) { code: 'EADDRINUSE', errno: -98, syscall: 'listen', address: '::1', port: 8080 } [23.07.2023 20:30.43.820] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [23.07.2023 20:30.43.821] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load driver: kms_swrast MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load swrast driver
this is the log
-
that why i try to kill it with
kill -INT xxx
-
Maybe I will delete everything and start a new mirror project,
-
I do not see the interest
pm2 stop all pm2 save reboot
when reboot done
MM² will not launch automaticaly
try to launch it manually with npm start and past logs -
Same,
mir@raspberrypi:~ $ pm2 save [PM2] Saving current process list... [PM2] Successfully saved in /home/mir/.pm2/dump.pm2 mir@raspberrypi:~ $ cd MagicMirror/ mir@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.24.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [23.07.2023 20:48.16.582] [LOG] Starting MagicMirror: v2.24.0 [23.07.2023 20:48.16.601] [LOG] Loading config ... [23.07.2023 20:48.16.614] [DEBUG] config template file not exists, no envsubst [23.07.2023 20:48.16.641] [LOG] Loading module helpers ... [23.07.2023 20:48.16.648] [LOG] No helper found for module: clock. [23.07.2023 20:48.16.714] [LOG] Initializing new module helper ... [23.07.2023 20:48.16.717] [LOG] Module helper loaded: updatenotification [23.07.2023 20:48.16.744] [LOG] Initializing new module helper ... [23.07.2023 20:48.16.748] [LOG] Module helper loaded: EXT-Alert [23.07.2023 20:48.16.788] [LOG] Initializing new module helper ... [23.07.2023 20:48.16.790] [LOG] Module helper loaded: Gateway [23.07.2023 20:48.17.694] [LOG] Initializing new module helper ... [23.07.2023 20:48.17.696] [LOG] Module helper loaded: calendar [23.07.2023 20:48.17.700] [LOG] No helper found for module: compliments. [23.07.2023 20:48.17.703] [LOG] No helper found for module: weather. [23.07.2023 20:48.17.737] [LOG] Initializing new module helper ... [23.07.2023 20:48.17.738] [LOG] Module helper loaded: EXT-Governor [23.07.2023 20:48.17.784] [LOG] Initializing new module helper ... [23.07.2023 20:48.17.785] [LOG] Module helper loaded: MMM-GoogleAssistant [23.07.2023 20:48.17.801] [LOG] Initializing new module helper ... [23.07.2023 20:48.17.802] [LOG] Module helper loaded: EXT-Browser [23.07.2023 20:48.17.835] [LOG] Initializing new module helper ... [23.07.2023 20:48.17.836] [LOG] Module helper loaded: EXT-Detector [23.07.2023 20:48.18.878] [LOG] Initializing new module helper ... [23.07.2023 20:48.18.880] [LOG] Module helper loaded: EXT-Librespot [23.07.2023 20:48.19.662] [LOG] Initializing new module helper ... [23.07.2023 20:48.19.663] [LOG] Module helper loaded: EXT-Spotify [23.07.2023 20:48.20.984] [LOG] Initializing new module helper ... [23.07.2023 20:48.20.985] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [23.07.2023 20:48.21.012] [LOG] Initializing new module helper ... [23.07.2023 20:48.21.013] [LOG] Module helper loaded: EXT-RadioPlayer [23.07.2023 20:48.21.026] [LOG] Initializing new module helper ... [23.07.2023 20:48.21.027] [LOG] Module helper loaded: EXT-Volume [23.07.2023 20:48.22.016] [LOG] Initializing new module helper ... [23.07.2023 20:48.22.017] [LOG] Module helper loaded: MMM-AnyList [23.07.2023 20:48.22.026] [LOG] No helper found for module: MMM-EyeCandy. [23.07.2023 20:48.23.050] [LOG] Initializing new module helper ... [23.07.2023 20:48.23.051] [LOG] Check MagicMirror² version for node helper 'MMM-CoinMarketCap' - Minimum version: 2.2.1 - Current version: 2.24.0 [23.07.2023 20:48.23.052] [LOG] Version is ok! [23.07.2023 20:48.23.053] [LOG] Module helper loaded: MMM-CoinMarketCap [23.07.2023 20:48.23.149] [LOG] Initializing new module helper ... [23.07.2023 20:48.23.150] [LOG] Module helper loaded: newsfeed [23.07.2023 20:48.23.163] [LOG] Initializing new module helper ... [23.07.2023 20:48.23.164] [LOG] Module helper loaded: EXT-YouTube [23.07.2023 20:48.23.543] [LOG] Initializing new module helper ... [23.07.2023 20:48.23.544] [LOG] Module helper loaded: EXT-YouTubeCast [23.07.2023 20:48.23.549] [LOG] No helper found for module: MMM-IronManGIF. [23.07.2023 20:48.23.551] [LOG] No helper found for module: MMM-WiFiPassword. [23.07.2023 20:48.23.618] [LOG] Initializing module helper ... [23.07.2023 20:48.23.619] [LOG] Module helper loaded: MMM-Random-local-image [23.07.2023 20:48.23.619] [LOG] All module helpers loaded. [23.07.2023 20:48.23.649] [LOG] Starting server on port 8080 ... [23.07.2023 20:48.24.487] [ERROR] Whoops! There was an uncaught exception... [23.07.2023 20:48.24.504] [ERROR] Error: listen EADDRINUSE: address already in use ::1:8080 at Server.setupListenHandle [as _listen2] (node:net:1740:16) at listenInCluster (node:net:1788:12) at GetAddrInfoReqWrap.doListen [as callback] (node:net:1937:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8) { code: 'EADDRINUSE', errno: -98, syscall: 'listen', address: '::1', port: 8080 } [23.07.2023 20:48.24.505] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [23.07.2023 20:48.24.505] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load driver: kms_swrast MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load swrast driver
Thank you so much
-
do you really reboot your pi ?
-
Now I reboot, Sorry I didn’t pay attention first, Now It works, and Jarvis, and gateway works as well,
thank you so much
-
bugsounet