Read the statement by Michael Teeuw here.
Error on new installation
-
Hi,
I just reinstalled my Pi from scratch (Raspbian Buster) and installed MM current version through @sdetweil 's installation script.
Everything worked at once, MM started up on boot.Then I startet installing my modules, just git cloning them and doing npm install in the modules directories. No edit of config.js, I intend to use my old config.js.
At some point I noticed that MM would not display - it is running, but electron throws an error:
$ pm2 logs MagicMirror --lines=50 [TAILING] Tailing last 50 lines for [MagicMirror] process (change the value with --lines option) /home/pi/.pm2/logs/MagicMirror-out.log last 50 lines: 0|MagicMir | 0|MagicMir | 0|MagicMir | > magicmirror@2.22.0 start 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | 0|MagicMir | > magicmirror@2.22.0 start 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | 0|MagicMir | > magicmirror@2.22.0 start 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | 0|MagicMir | > magicmirror@2.22.0 start 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | [05.01.2023 21:54.19.799] [LOG] Starting MagicMirror: v2.22.0 0|MagicMir | [05.01.2023 21:54.19.819] [LOG] Loading config ... 0|MagicMir | [05.01.2023 21:54.19.830] [LOG] Loading module helpers ... 0|MagicMir | [05.01.2023 21:54.19.835] [LOG] No helper found for module: alert. 0|MagicMir | [05.01.2023 21:54.19.866] [LOG] Initializing new module helper ... 0|MagicMir | [05.01.2023 21:54.19.867] [LOG] Module helper loaded: updatenotification 0|MagicMir | [05.01.2023 21:54.19.869] [LOG] No helper found for module: clock. 0|MagicMir | [05.01.2023 21:54.20.499] [LOG] Initializing new module helper ... 0|MagicMir | [05.01.2023 21:54.20.504] [LOG] Module helper loaded: calendar 0|MagicMir | [05.01.2023 21:54.20.508] [LOG] No helper found for module: compliments. 0|MagicMir | [05.01.2023 21:54.20.512] [LOG] No helper found for module: weather. 0|MagicMir | [05.01.2023 21:54.20.584] [LOG] Initializing new module helper ... 0|MagicMir | [05.01.2023 21:54.20.586] [LOG] Module helper loaded: newsfeed 0|MagicMir | [05.01.2023 21:54.20.587] [LOG] All module helpers loaded. 0|MagicMir | [05.01.2023 21:54.20.876] [LOG] Starting server on port 8080 ... 0|MagicMir | [05.01.2023 21:54.21.957] [LOG] Server started ... 0|MagicMir | [05.01.2023 21:54.21.964] [LOG] Connecting socket for: updatenotification 0|MagicMir | [05.01.2023 21:54.21.967] [LOG] Starting module helper: updatenotification 0|MagicMir | [05.01.2023 21:54.21.968] [LOG] Connecting socket for: calendar 0|MagicMir | [05.01.2023 21:54.21.970] [LOG] Starting node helper for: calendar 0|MagicMir | [05.01.2023 21:54.21.972] [LOG] Connecting socket for: newsfeed 0|MagicMir | [05.01.2023 21:54.21.976] [LOG] Starting node helper for: newsfeed 0|MagicMir | [05.01.2023 21:54.21.978] [LOG] Sockets connected & modules started ... 0|MagicMir | [05.01.2023 21:54.22.107] [LOG] Launching application. 0|MagicMir | [05.01.2023 21:54.29.651] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 0|MagicMir | [05.01.2023 21:54.29.678] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 0|MagicMir | [05.01.2023 21:54.29.745] [INFO] Checking git for module: default 0|MagicMir | [05.01.2023 21:54.30.830] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. 0|MagicMir | [05.01.2023 21:54.31.214] [INFO] Calendar-Fetcher: Broadcasting 15 events. 0|MagicMir | 0|MagicMir | > magicmirror@2.22.0 start 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | /home/pi/.pm2/logs/MagicMirror-error.log last 50 lines: 0|MagicMir | at f._load (node:electron/js2c/asar_bundle:2:13328) 0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1035:19) 0|MagicMir | at require (node:internal/modules/cjs/helpers:102:18) 0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:16:24) 0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1141:14) 0|MagicMir | at Module._extensions..js (node:internal/modules/cjs/loader:1196:10) 0|MagicMir | [2805:0105/214507.331437:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [2825:0105/214507.549549:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported. 0|MagicMir | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT 0|MagicMir | [3628:0105/215425.860928:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [3670:0105/215426.220444:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported. 0|MagicMir | [3641:0105/215426.273319:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. 0|MagicMir | [05.01.2023 21:56.59.668] [ERROR] App threw an error during load 0|MagicMir | [05.01.2023 21:56.59.690] [ERROR] Error: Cannot find module '/home/pi/MagicMirror/js/../modules/default/defaultmodules' 0|MagicMir | Require stack: 0|MagicMir | - /home/pi/MagicMirror/js/app.js 0|MagicMir | - /home/pi/MagicMirror/js/electron.js 0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|MagicMir | - 0|MagicMir | at Module._resolveFilename (node:internal/modules/cjs/loader:963:15) 0|MagicMir | at n._resolveFilename (node:electron/js2c/browser_init:2:109416) 0|MagicMir | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|MagicMir | at Module._load (node:internal/modules/cjs/loader:811:27) 0|MagicMir | at f._load (node:electron/js2c/asar_bundle:2:13328) 0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1035:19) 0|MagicMir | at require (node:internal/modules/cjs/helpers:102:18) 0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:16:24) 0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1141:14) 0|MagicMir | at Module._extensions..js (node:internal/modules/cjs/loader:1196:10) 0|MagicMir | A JavaScript error occurred in the main process 0|MagicMir | Uncaught Exception: 0|MagicMir | Error: Cannot find module '/home/pi/MagicMirror/js/../modules/default/defaultmodules' 0|MagicMir | Require stack: 0|MagicMir | - /home/pi/MagicMirror/js/app.js 0|MagicMir | - /home/pi/MagicMirror/js/electron.js 0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 0|MagicMir | - 0|MagicMir | at Module._resolveFilename (node:internal/modules/cjs/loader:963:15) 0|MagicMir | at n._resolveFilename (node:electron/js2c/browser_init:2:109416) 0|MagicMir | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|MagicMir | at Module._load (node:internal/modules/cjs/loader:811:27) 0|MagicMir | at f._load (node:electron/js2c/asar_bundle:2:13328) 0|MagicMir | at Module.require (node:internal/modules/cjs/loader:1035:19) 0|MagicMir | at require (node:internal/modules/cjs/helpers:102:18) 0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:16:24) 0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1141:14) 0|MagicMir | at Module._extensions..js (node:internal/modules/cjs/loader:1196:10) 0|MagicMir | [1780:0105/215705.238610:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [1804:0105/215706.349139:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [1830:0105/215706.819295:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
I renamed the MM directory and installed again. MM was running fine. Then I copied back the modules folder - and got this error back.
Can anyone point out what is going wrong here? -
@requiemmg it looks like something got erased
when u are installing the other modules what do you do,?
-
@sdetweil I just go into the MagicMirror/modules folder, git clone https://repository.of.module, enter the modules directory and npm install. Thats it…
-
Well, redone everything, now working. No idea what went wrong in first place…
-
@requiemmg only npm install if the module has a package.json file, right?
not always -
@sdetweil Yes, only if indicated in the installation instructions to do so.
-
@requiemmg ok. just thinking of what would have caused the issue…