Read the statement by Michael Teeuw here.
After update WARNING! Could not load config file.
-
I use sdetweil pi0 script and i upgrade with his script. but after i update mm i got error here is my log and config file.
Log0|MagicMir | [2020-07-12 23:06:47.162] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node' 0|MagicMir | was compiled against a different Node.js version using 0|MagicMir | NODE_MODULE_VERSION 73. This version of Node.js requires 0|MagicMir | NODE_MODULE_VERSION 64. Please try re-compiling or re-installing 0|MagicMir | the module (for instance, using `npm rebuild` or `npm install`). 0|MagicMir | [2020-07-12 23:06:47.332] [ERROR] Whoops! There was an uncaught exception... 0|MagicMir | [2020-07-12 23:06:47.340] [ERROR] Error: The module '/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node' 0|MagicMir | was compiled against a different Node.js version using 0|MagicMir | NODE_MODULE_VERSION 73. This version of Node.js requires 0|MagicMir | NODE_MODULE_VERSION 64. Please try re-compiling or re-installing 0|MagicMir | the module (for instance, using `npm rebuild` or `npm install`). 0|MagicMir | at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18) 0|MagicMir | at Module.load (internal/modules/cjs/loader.js:653:32) 0|MagicMir | at tryModuleLoad (internal/modules/cjs/loader.js:593:12) 0|MagicMir | at Function.Module._load (internal/modules/cjs/loader.js:585:3) 0|MagicMir | at Module.require (internal/modules/cjs/loader.js:692:17) 0|MagicMir | at require (internal/modules/cjs/helpers.js:25:18) 0|MagicMir | at bindings (/home/pi/MagicMirror/modules/MMM-PIR/node_modules/bindings/bindings.js:112:48) 0|MagicMir | at module.exports (/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/epoll.js:7:31) 0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/epoll.js:15:3) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:778:30) 0|MagicMir | [2020-07-12 23:06:47.381] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | [2020-07-12 23:06:47.383] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|MagicMir | [2020-07-12 23:09:02.052] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node' 0|MagicMir | was compiled against a different Node.js version using 0|MagicMir | NODE_MODULE_VERSION 73. This version of Node.js requires 0|MagicMir | NODE_MODULE_VERSION 64. Please try re-compiling or re-installing 0|MagicMir | the module (for instance, using `npm rebuild` or `npm install`). 0|MagicMir | [2020-07-12 23:09:02.222] [ERROR] Whoops! There was an uncaught exception... 0|MagicMir | [2020-07-12 23:09:02.229] [ERROR] Error: The module '/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node' 0|MagicMir | was compiled against a different Node.js version using 0|MagicMir | NODE_MODULE_VERSION 73. This version of Node.js requires 0|MagicMir | NODE_MODULE_VERSION 64. Please try re-compiling or re-installing 0|MagicMir | the module (for instance, using `npm rebuild` or `npm install`). 0|MagicMir | at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18) 0|MagicMir | at Module.load (internal/modules/cjs/loader.js:653:32) 0|MagicMir | at tryModuleLoad (internal/modules/cjs/loader.js:593:12) 0|MagicMir | at Function.Module._load (internal/modules/cjs/loader.js:585:3) 0|MagicMir | at Module.require (internal/modules/cjs/loader.js:692:17) 0|MagicMir | at require (internal/modules/cjs/helpers.js:25:18) 0|MagicMir | at bindings (/home/pi/MagicMirror/modules/MMM-PIR/node_modules/bindings/bindings.js:112:48) 0|MagicMir | at module.exports (/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/epoll.js:7:31) 0|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/epoll.js:15:3) 0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:778:30) 0|MagicMir | [2020-07-12 23:09:02.288] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | [2020-07-12 23:09:02.293] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues /home/pi/.pm2/logs/MagicMirror-out.log last 100 lines: 0|MagicMir | [2020-07-12 23:06:46.926] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:06:46.936] [LOG] Module helper loaded: MMM-MyPrayerTimes 0|MagicMir | [2020-07-12 23:06:47.172] [LOG] Loading module helpers ... 0|MagicMir | [2020-07-12 23:06:47.181] [LOG] No helper found for module: alert. 0|MagicMir | [2020-07-12 23:06:47.194] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:06:47.203] [LOG] Module helper loaded: updatenotification 0|MagicMir | [2020-07-12 23:06:47.211] [LOG] No helper found for module: clock. 0|MagicMir | [2020-07-12 23:06:47.220] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:06:47.227] [LOG] Module helper loaded: calendar 0|MagicMir | [2020-07-12 23:06:47.237] [LOG] No helper found for module: currentweather. 0|MagicMir | [2020-07-12 23:06:47.249] [LOG] No helper found for module: weatherforecast. 0|MagicMir | [2020-07-12 23:06:47.256] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:06:47.262] [LOG] Module helper loaded: newsfeed 0|MagicMir | [2020-07-12 23:06:47.271] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:06:47.280] [LOG] Module helper loaded: MMM-MyPrayerTimes 0|MagicMir | Starting chromium browser now, have patience, it takes a minute 0|MagicMir | 0|MagicMir | > magicmirror@2.12.0 start /home/pi/MagicMirror 0|MagicMir | > ./run-start.sh $1 0|MagicMir | 0|MagicMir | [2020-07-12 23:08:56.716] [LOG] Starting MagicMirror: v2.12.0 0|MagicMir | [2020-07-12 23:08:56.843] [LOG] Loading config ... 0|MagicMir | [2020-07-12 23:08:56.888] [LOG] Loading module helpers ... 0|MagicMir | [2020-07-12 23:08:56.909] [LOG] No helper found for module: alert. 0|MagicMir | [2020-07-12 23:08:57.343] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:08:57.353] [LOG] Module helper loaded: updatenotification 0|MagicMir | [2020-07-12 23:08:57.365] [LOG] No helper found for module: clock. 0|MagicMir | [2020-07-12 23:09:01.433] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:09:01.441] [LOG] Module helper loaded: calendar 0|MagicMir | [2020-07-12 23:09:01.454] [LOG] No helper found for module: currentweather. 0|MagicMir | [2020-07-12 23:09:01.462] [LOG] No helper found for module: weatherforecast. 0|MagicMir | [2020-07-12 23:09:01.776] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:09:01.785] [LOG] Module helper loaded: newsfeed 0|MagicMir | [2020-07-12 23:09:01.815] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:09:01.824] [LOG] Module helper loaded: MMM-MyPrayerTimes 0|MagicMir | [2020-07-12 23:09:02.060] [LOG] Loading module helpers ... 0|MagicMir | [2020-07-12 23:09:02.074] [LOG] No helper found for module: alert. 0|MagicMir | [2020-07-12 23:09:02.083] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:09:02.092] [LOG] Module helper loaded: updatenotification 0|MagicMir | [2020-07-12 23:09:02.101] [LOG] No helper found for module: clock. 0|MagicMir | [2020-07-12 23:09:02.110] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:09:02.117] [LOG] Module helper loaded: calendar 0|MagicMir | [2020-07-12 23:09:02.127] [LOG] No helper found for module: currentweather. 0|MagicMir | [2020-07-12 23:09:02.136] [LOG] No helper found for module: weatherforecast. 0|MagicMir | [2020-07-12 23:09:02.149] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:09:02.156] [LOG] Module helper loaded: newsfeed 0|MagicMir | [2020-07-12 23:09:02.162] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:09:02.170] [LOG] Module helper loaded: MMM-MyPrayerTimes 0|MagicMir | Starting chromium browser now, have patience, it takes a minute 0|MagicMir | 0|MagicMir | > magicmirror@2.12.0 start /home/pi/MagicMirror 0|MagicMir | > ./run-start.sh $1 0|MagicMir | 0|MagicMir | [2020-07-12 23:11:30.385] [LOG] Starting MagicMirror: v2.12.0 0|MagicMir | [2020-07-12 23:11:30.529] [LOG] Loading config ... 0|MagicMir | [2020-07-12 23:11:30.577] [LOG] Loading module helpers ... 0|MagicMir | [2020-07-12 23:11:30.596] [LOG] No helper found for module: alert. 0|MagicMir | [2020-07-12 23:11:31.031] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:11:31.041] [LOG] Module helper loaded: updatenotification 0|MagicMir | [2020-07-12 23:11:31.052] [LOG] No helper found for module: clock. 0|MagicMir | [2020-07-12 23:11:35.076] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:11:35.085] [LOG] Module helper loaded: calendar 0|MagicMir | [2020-07-12 23:11:35.095] [LOG] No helper found for module: currentweather. 0|MagicMir | [2020-07-12 23:11:35.105] [LOG] No helper found for module: weatherforecast. 0|MagicMir | [2020-07-12 23:11:35.423] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:11:35.431] [LOG] Module helper loaded: newsfeed 0|MagicMir | [2020-07-12 23:11:35.461] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:11:35.471] [LOG] Module helper loaded: MMM-MyPrayerTimes 0|MagicMir | [2020-07-12 23:11:35.494] [LOG] Initializing new module helper ... 0|MagicMir | [2020-07-12 23:11:35.516] [LOG] All module helpers loaded. 0|MagicMir | [2020-07-12 23:11:36.464] [LOG] Starting server on port 8080 ... 0|MagicMir | [2020-07-12 23:11:36.583] [LOG] Server started ... 0|MagicMir | [2020-07-12 23:11:36.598] [LOG] Connecting socket for: updatenotification 0|MagicMir | [2020-07-12 23:11:36.610] [LOG] Connecting socket for: calendar 0|MagicMir | [2020-07-12 23:11:36.621] [LOG] Starting node helper for: calendar 0|MagicMir | [2020-07-12 23:11:36.634] [LOG] Connecting socket for: newsfeed 0|MagicMir | [2020-07-12 23:11:36.645] [LOG] Starting node helper for: newsfeed 0|MagicMir | [2020-07-12 23:11:36.655] [LOG] Connecting socket for: MMM-MyPrayerTimes 0|MagicMir | [2020-07-12 23:11:36.663] [LOG] Starting node_helper for: MMM-MyPrayerTimes 0|MagicMir | [2020-07-12 23:11:36.694] [LOG] Sockets connected & modules started ... 0|MagicMir | [2020-07-12 23:11:36.703] [LOG] 0|MagicMir | Ready to go! Please point your browser to: http://0.0.0.0:8080 0|MagicMir | Starting chromium browser now, have patience, it takes a minute 0|MagicMir | [2020-07-12 23:12:53.342] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/10s0ee0h3tb1ko7fqhpf71sfgs%40group.calendar.google.com/private-d3794e10c136ecfea3ad72fe63078acd/basic.ics - Interval: 300000 0|MagicMir | [2020-07-12 23:13:00.472] [INFO] Calendar-Fetcher: Broadcasting 19 events. 0|MagicMir | [2020-07-12 23:13:01.012] [LOG] Create new news fetcher for url: https://www.cnnturk.com/feed/rss/turkiye/news - Interval: 300000 0|MagicMir | [2020-07-12 23:13:02.017] [LOG] Create new news fetcher for url: https://www.birgun.net/xml/rss.xml - Interval: 300000 0|MagicMir | [2020-07-12 23:13:11.411] [INFO] Newsfeed-Fetcher: Broadcasting 35 items. 0|MagicMir | [2020-07-12 23:13:21.911] [INFO] Newsfeed-Fetcher: Broadcasting 200 items. 0|MagicMir | [2020-07-12 23:13:22.391] [INFO] Checking git for module: MMM-MyPrayerTimes 0|MagicMir | [2020-07-12 23:13:23.143] [INFO] Checking git for module: MMM-LICE 0|MagicMir | [2020-07-12 23:13:24.001] [LOG] 200[object Object] 0|MagicMir | [2020-07-12 23:17:48.646] [LOG] Use existing calendar fetcher for url: x 0|MagicMir | [2020-07-12 23:17:48.653] [INFO] Calendar-Fetcher: Broadcasting 19 events. 0|MagicMir | [2020-07-12 23:17:49.895] [INFO] Calendar-Fetcher: Broadcasting 19 events. 0|MagicMir | [2020-07-12 23:18:15.530] [INFO] Newsfeed-Fetcher: Broadcasting 35 items. 0|MagicMir | [2020-07-12 23:18:27.760] [INFO] Newsfeed-Fetcher: Broadcasting 200 items.
My config:
/* 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: "0.0.0.0", // 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", "::ffff:192.168.1.1/255"], // 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: "tr", timeFormat: 24, units: "metric", modules: [ { module: "alert", disabled: false, }, { module: "updatenotification", disabled: false, position: "top_bar" }, { module: "clock", disabled: false, position: "top_left" }, { module: "calendar", disabled: false, header: "Takvimim Ve Ozel Gunler", position: "top_left", config: { calendars: [ { symbol: "calendar-plus-o", url: "x" } ] } }, { module: "currentweather", disabled: false, position: "top_right", config: { location: "Konya", locationID: "306569", appid: "x" } }, { module: "weatherforecast", disabled: false, position: "top_right", header: "Hava Durumu", config: { location: "Konya", locationID: "306569", appid: "x" } }, { module: "newsfeed", disabled: false, position: "bottom_center", config: { feeds: [ { title: "CNN Türk", url: "https://www.cnnturk.com/feed/rss/turkiye/news" }, { title: "BirGun", url: "https://www.birgun.net/xml/rss.xml" }, ], showSourceTitle: true, showPublishDate: true } }, { module: 'MMM-MyPrayerTimes', position: 'top_center', header: 'Namaz Vakitleri', config: { } }, { module: "MMM-PIR", position: "bottom_center", config: { sensorPin: 24, delay: 300000, turnOffDisplay: true, showCountdown: false, callbackScripts: [] } }, }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
-
@sdetweil waiting for your help. :)
-
@uok825 thanks for posting… another troublesome module
0|MagicMir | [2020-07-12 23:06:47.162] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node' 0|MagicMir | was compiled against a different Node.js version using 0|MagicMir | NODE_MODULE_VERSION 73. This version of Node.js requires 0|MagicMir | NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
do
cd ~/MagicMirror npm install electron-rebuild cd modules/MMM-PIR ~/MagicMirror/node_modules/.bin/electron-rebuild pm2 flush
then restart your MM
let me know
-
@sdetweil Sure i will do, now i middle of reinstalling module. When its install i try your solution and let you know :) sorry for bad English.
-
@uok825 no problem… didn’t need to reinstall module
-
@sdetweil I was trying out of desperation
-
@sdetweil said in After update WARNING! Could not load config file.:
@uok825 thanks for posting… another troublesome module
0|MagicMir | [2020-07-12 23:06:47.162] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node' 0|MagicMir | was compiled against a different Node.js version using 0|MagicMir | NODE_MODULE_VERSION 73. This version of Node.js requires 0|MagicMir | NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
do
cd ~/MagicMirror npm install electron-rebuild cd modules/MMM-PIR ~/MagicMirror/node_modules/.bin/electron-rebuild pm2 flush
then restart your MM
let me know
i got error but i cant share my log cause of “Post content was flagged as spam by Akismet.com” error in npm install electron-rebuild
-
@sdetweil said in After update WARNING! Could not load config file.:
@uok825 thanks for posting… another troublesome module
0|MagicMir | [2020-07-12 23:06:47.162] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node' 0|MagicMir | was compiled against a different Node.js version using 0|MagicMir | NODE_MODULE_VERSION 73. This version of Node.js requires 0|MagicMir | NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
do
cd ~/MagicMirror npm install electron-rebuild cd modules/MMM-PIR ~/MagicMirror/node_modules/.bin/electron-rebuild pm2 flush
then restart your MM
let me know
-
@uok825 sorry, dumb of me to take u down the electron path when u don’t have electron.
cd ~/MagicMirror/modules/MMM-PIR npm rebuild
-
@uok825 any progress?