Read the statement by Michael Teeuw here.
MMM-GoogleAssistant Gateway big update = big error = big trouble = ):
-
Hey everybody gotta sleep so if this is rushed then I’m sorry Il clarify tomorrow after school.
I would post this on bugsonets forum but I can’t seem to find it anymore maybe he took it down??
This whole journey started when my google assistant modules stopped responding this morning. It just sat there pondering loading at anything I said (including triggering recipes) and then gave an internal server error. I can’t give all of the error codes today as I need too sleep for school tomorrow but will be sure to reply with them after school tomorrow. Anyways so then I figured it’s probobally got something to do with me not updating anything related too magic mirror for maybe a year or so. So I started with upgrading my node and npm too the newest supported versions and then updated magic mirror successfully. After this I updated MMM-GoogleAssistant and all of the external modules as well. One problem. When I try too update the gateway external module it gives me an error and tells me I need too authenticate with my GitHub username and password (doesn’t work). When I launch magic mirror and examine the logs I get a whole bunch of errors relating too gateway module (such a big error code I can’t even fit it all in this text so some parts may be cut) here it is:0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.700] [ERROR] [GATEWAY] [LIB] passport Loading error! Error: Cannot find module 'passport' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.729] [ERROR] [GATEWAY] [LIB] actions-on-google Loading error! Error: Cannot find module 'actions-on-google' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.734] [ERROR] [GATEWAY] [LIB] googleapis Loading error! Error: Cannot find module 'googleapis' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.737] [ERROR] [GATEWAY] [LIB] google-auth-library Loading error! Error: Cannot find module 'google-auth-library' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.738] [LOG] [GATEWAY] [LIB] Loaded: lodash -> this.lib._ 0|mm | [2024-11-04 22:43:25.771] [LOG] [GATEWAY] [LIB] Loaded: moment -> this.lib.moment 0|mm | [2024-11-04 22:43:25.782] [LOG] [GATEWAY] [LIB] Loaded: mkdirp -> this.lib.mkdirp 0|mm | [2024-11-04 22:43:25.784] [LOG] [GATEWAY] [LIB] Loaded: https -> this.lib.https 0|mm | [2024-11-04 22:43:25.786] [ERROR] [GATEWAY] [LIB] decompress Loading error! Error: Cannot find module 'decompress' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.790] [ERROR] [GATEWAY] [LIB] decompress-tar Loading error! Error: Cannot find module 'decompress-tar' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.793] [ERROR] [GATEWAY] [LIB] decompress-tarbz2 Loading error! Error: Cannot find module 'decompress-tarbz2' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.795] [ERROR] [GATEWAY] [LIB] decompress-targz Loading error! Error: Cannot find module 'decompress-targz' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.798] [ERROR] [GATEWAY] [LIB] decompress-unzip Loading error! Error: Cannot find module 'decompress-unzip' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.802] [ERROR] [GATEWAY] [LIB] @felipecrs/decompress-tarxz Loading error! Error: Cannot find module '@felipecrs/decompress-tarxz' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.822] [ERROR] [GATEWAY] [LIB] tree-kill Loading error! Error: Cannot find module 'tree-kill' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.825] [ERROR] [GATEWAY] [LIB] sha256-file Loading error! Error: Cannot find module 'sha256-file' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/components/parseData.js 0|mm | - /home/pi/MagicMirror/modules/Gateway/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15) 0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:121498) 0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 0|mm | at Module._load (node:internal/modules/cjs/loader:1058:27) 0|mm | at c._load (node:electron/js2c/node_init:2:17025) 0|mm | at Module.require (node:internal/modules/cjs/loader:1318:19) 0|mm | at require (node:internal/modules/helpers:179:18) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:64:37 0|mm | at Array.forEach (<anonymous>) 0|mm | at /home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:57:15 0|mm | at new Promise (<anonymous>) 0|mm | at Object.libraries (/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js:56:10) 0|mm | at Object.parse (/home/pi/MagicMirror/modules/Gateway/components/parseData.js:56:31) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/Gateway/node_helper.js:28:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:91:10) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26) { 0|mm | code: 'MODULE_NOT_FOUND', 0|mm | requireStack: [ 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/loadLibraries.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/components/parseData.js', 0|mm | '/home/pi/MagicMirror/modules/Gateway/node_helper.js', 0|mm | '/home/pi/MagicMirror/js/app.js', 0|mm | '/home/pi/MagicMirror/js/electron.js' 0|mm | ] 0|mm | } 0|mm | [2024-11-04 22:43:25.858] [ERROR] [GATEWAY] Warning: 17 needed library not loaded ! 0|mm | [2024-11-04 22:43:25.860] [ERROR] [GATEWAY] Try to solve it with `npm run rebuild` in Gateway directory
welcome back from that reading session. In the end here it says that fixing these problems are as easy as running npm run rebuild. But as before when I try running this command in the gateway directory it tells me to give authentication or politely F off. So right now the mirror still starts but I’m stuck loading when asking it things and I get these errors. Tomorrow I will get the full internal server error message and send here. Is there maybe some new update that removes the need for this gateway module and should I then maybe just remove gateway from my config.js? But this would explain why I get internal server error
Sorry for this long text. Help would be greatly appreciated and also if anyone knows what happened too bugsonet forum please let me know. Goodnight (:
-
@sillen i don’t know…
maybe try my MM upgrade script with parameter force instead of apply
I wait til the end when I see the GA components and only do one update for the base which does the rest …
see
https://github.com/sdetweil/MagicMirror_scripts
the upgrade script -
https://www.bugsounet.fr/ This is Bugsounet forum
-
@sdetweil ok, I tried your upgrading script but never with force option. Will try after school. But when I tried the script yesterday it seemed extremely fast but that just might be your coding skills at play lol. I come back with this after school
-
@Kazzer but it’s seems very unfamiliar when you enter this website. Can’t find where to view or make posts
-
Hi, Gateway is not needed since 1 year 1/2 now.
Can you read againNew wiki of MMM-GoogleAssistant v7.x ?
Happy use,
@bugsounet -
@sdetweil I tried with the option force but I still get authentication error when it comes to Gateway module. And also now because the script was forced too cancel my script it also removed electron. It didn’t let me download electron again with npm install electron so I used sudo even tho I wasn’t supposed to. And that’s gave me a whole bunch more errors:
mm A JavaScript error occurred in the main process Uncaught Exception: 0 mm on has a valid 0 mm Error: Cannot find module '/home/pi/MagicMirror/node_modules/finalhandler/node_modules/debug/src/index.js'. Please verify that the package.js "main" entry mm at tryPackage (node: internal/modules/cjs/loader:494:19) mm at Module. _findPath (node:internal/modules/cjs/loader: 778:18) at Module._resolveFilename (node: internal/modules/cjs/loader: 1218:27) at s._resolveFilename (node: electron/js2c/browser_init:2:120689) mm mm 0 mm 0 mm 0 mm mm mm mm 0 mm 0mm 0 mm mm at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module. _load (node: internal/modules/cjs/loader: 1058:27) at c._load (node: electron/js2c/node_init: 2:16955) at Module.require (node: internal/modules/cjs/loader:1318:19) at require (node: internal/modules/helpers:179:18) at Object. <anonymous> (/home/pi/MagicMirror/node_modules/finalhandler/index.js:14:13) at Module._compile (node: internal/modules/cjs/loader: 1484:14) at Module._ _extensions..js (node: internal/modules/cjs/loader: 1564:10) at Module. load (node:internal/modules/cjs/loader:1295:32) at Module._load (node: internal/modules/cjs/loader: 1111:12) at c._load (node: electron/js2c/node_init: 2:16955) at Module.require (node: internal/modules/cjs/loader:1318:19)
What should I do too completely reinstall magic mirror again but keep my config and modules the same. Preferably also reinstall google assistant.
-
@sillen note the author posted that the gateway component is no longer used
-
Hey evryone I fixed the problem with alot of reinstalling and then removing the gateway module
-