Unsolved After Installing Gateway, few other modules malfunction
-
Hello bugsounet!
I added to my modules:
EXT-Alert
MMM-GoogleAssistant
Gateway.Atfer adding ‘Gateway’, few other modules relying on APIs started to malfunction:
Calendar module, MMM-NewsApi and MMM-MyCommuttee shows no information anymore.
I can’t figure out myself what could have been wrong.
If I comment out ‘Gateway’ from config and leave everything else , everything works again.I have default config, except changed password:
{ module: 'Gateway', classes: 'always', config: { debug: false, username: 'userName', password: 'password', CLIENT_ID: null } },
Log:
Gateway v3.6.4 (231105.lv) [06.11.2023 18:37.19.107] [LOG] [GATEWAY] [LIB] All libraries loaded! [06.11.2023 18:37.19.110] [LOG] [GATEWAY] Detected: MMM-GoogleAssistant [06.11.2023 18:37.19.362] [LOG] [GATEWAY] MagicMirror address: localhost [06.11.2023 18:37.19.406] [LOG] [GATEWAY] [TRANSLATION] [HOME] Use: default.home [06.11.2023 18:37.19.929] [LOG] [GA] [SECURE] Happy use ! [06.11.2023 18:37.19.931] [INFO] Checking git for module: MMM-NewsAPI [06.11.2023 18:37.20.911] [ERROR] Calendar Error. Could not fetch calendar: https://calendar.google.com/calendar/ical/s432noin9eincnj1p6jchqmstc%40group.calendar.google.com/private-0faf2b8505b6145af6237a442e52b880/basic.ics TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11457:11) { cause: SocketError: other side closed at TLSSocket.onSocketEnd (node:internal/deps/undici/undici:9689:26) at TLSSocket.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1359:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'UND_ERR_SOCKET', socket: { localAddress: '192.168.101.4', localPort: 36908, remoteAddress: undefined, remotePort: undefined, remoteFamily: undefined, timeout: undefined, bytesWritten: 339, bytesRead: 0 } } } [06.11.2023 18:37.20.921] [ERROR] Calendar Error. Could not fetch calendar: https://calendar.google.com/calendar/ical/lv.latvian%23holiday%40group.v.calendar.google.com/public/basic.ics TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11457:11) { cause: SocketError: other side closed at TLSSocket.onSocketEnd (node:internal/deps/undici/undici:9689:26) at TLSSocket.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1359:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'UND_ERR_SOCKET', socket: { localAddress: '192.168.101.4', localPort: 36910, remoteAddress: undefined, remotePort: undefined, remoteFamily: undefined, timeout: undefined, bytesWritten: 301, bytesRead: 0 } } } [06.11.2023 18:37.21.256] [ERROR] (node:12559) UnhandledPromiseRejectionWarning: FetchError: request to https://newsapi.org/v2/everything?domains=cnn.com%2Ceuronews.com%2Cbaltictimes.com%2Ceuropeantimes.news&language=en&pageSize=10&apiKey=819c52cd034d4e0e978a10a0ad526b5f failed, reason: Client network socket disconnected before secure TLS connection was established at ClientRequest.<anonymous> (/home/pi/MagicMirror/modules/MMM-NewsAPI/node_modules/node-fetch/lib/index.js:1501:11) at ClientRequest.emit (node:events:513:28) at TLSSocket.socketErrorListener (node:_http_client:502:9) at TLSSocket.emit (node:events:513:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) (Use `electron --trace-warnings ...` to show where the warning was created) [06.11.2023 18:37.21.260] [ERROR] (node:12559) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) [06.11.2023 18:37.21.264] [ERROR] [SPOTIFY - kicifans] Failed to request API: /v1/me/player [06.11.2023 18:37.21.266] [ERROR] [SPOTIFY - kicifans] Invalid request [06.11.2023 18:37.21.272] [ERROR] (node:12559) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'headers') at /home/pi/MagicMirror/modules/MMM-Spotify/Spotify.js:154:39 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [06.11.2023 18:37.21.274] [ERROR] (node:12559) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3) [06.11.2023 18:37.21.349] [LOG] [GATEWAY] [PM2] checking PM2 using... [06.11.2023 18:37.23.072] [INFO] Checking git for module: MMM-3Day-Forecast [06.11.2023 18:37.23.315] [INFO] Checking git for module: MMM-EyeCandy [06.11.2023 18:37.23.638] [INFO] Checking git for module: MMM-Spotify [06.11.2023 18:37.24.007] [INFO] Checking git for module: MMM-SystemStats [06.11.2023 18:37.24.472] [INFO] Checking git for module: MMM-MyCommute [06.11.2023 18:37.24.836] [INFO] Checking git for module: MMM-DHT-Sensor [06.11.2023 18:37.25.306] [INFO] Checking git for module: MMM-WeeklySchedule [06.11.2023 18:37.25.630] [INFO] Checking git for module: MMM-GoogleAssistant [06.11.2023 18:37.26.048] [INFO] Checking git for module: EXT-Detector [06.11.2023 18:37.26.474] [INFO] Checking git for module: Gateway [06.11.2023 18:37.26.959] [INFO] Checking git for module: EXT-Alert [06.11.2023 18:37.27.430] [INFO] Checking git for module: MagicMirror [06.11.2023 18:37.29.246] [LOG] [MMM-Face-Reco-DNN] loading encodings + face detector... [06.11.2023 18:37.30.391] [LOG] [MMM-Face-Reco-DNN] starting video stream... [06.11.2023 18:37.30.407] [LOG] [MMM-Face-Reco-DNN] 1280,960 [06.11.2023 18:37.30.409] [LOG] [MMM-Face-Reco-DNN] 500 [06.11.2023 18:37.35.545] [LOG] [GATEWAY] [PM2] You don't use PM2 [06.11.2023 18:37.49.344] [LOG] [GATEWAY] [SYSTEMINFO] Read Uptimed [06.11.2023 18:37.49.346] [LOG] [GATEWAY] [SYSTEMINFO] Initialized [06.11.2023 18:37.49.349] [LOG] [GATEWAY] no CLIENT_ID found in your config! [06.11.2023 18:37.49.352] [WARN] [GATEWAY] SmartHome functionality is disabled [06.11.2023 18:37.49.365] [WARN] [GATEWAY] WARN: You are using default username or default password [06.11.2023 18:37.49.367] [WARN] [GATEWAY] WARN: Don't forget to change it! [06.11.2023 18:37.51.414] [LOG] [GATEWAY] [HyperWatch] Logger is enabled [06.11.2023 18:37.51.433] [LOG] [GATEWAY] Start listening on port 8081 [06.11.2023 18:37.51.434] [LOG] [GATEWAY] Available locally at http://192.168.101.4:8081 [06.11.2023 18:37.51.436] [LOG] [GATEWAY] Gateway Ready! [06.11.2023 18:37.51.439] [LOG] [GATEWAY] Detected: Gateway [06.11.2023 18:37.51.676] [LOG] [GATEWAY] Detected: EXT-Alert [06.11.2023 18:37.51.829] [LOG] [DETECTOR] EXT-Detector Version: 2.3.6 rev: 231103 [06.11.2023 18:37.51.832] [LOG] [ALERT] EXT-Alert Version: 1.3.0 rev: 231001 [06.11.2023 18:37.54.010] [LOG] [DETECTOR] [LIB] All libraries loaded! [06.11.2023 18:37.54.013] [LOG] [DETECTOR] [DATA] Platform: 'raspberry-pi'; attempting to use 'arecord' to access microphone ... [06.11.2023 18:37.54.025] [LOG] [DETECTOR] [DATA] Snowboy is initialized with 1 Models: jarvis [06.11.2023 18:37.54.027] [LOG] [DETECTOR] [DATA] Initialized [06.11.2023 18:37.54.444] [LOG] [GATEWAY] Detected: EXT-Detector [06.11.2023 18:37.54.908] [LOG] [DETECTOR] [RULES] Start listening. 1 Models [06.11.2023 18:38.00.080] [LOG] [GATEWAY] [192.168.101.2] Welcome krists, happy to serve you!
Everything is up-to-date, latest version.
Thank you in advance, and appreciate any input!
-
Hi, +/- similar like this
I think you use an rpi3b+
-
You are right, I have rpi3b+.
I already had GoogleAssistant and Gateway at the end of the config. Commented out all other modules except GA, Gateway and calendar. It worked fine.So it probably is some kinda issue with pi being too overloaded. Will try to see how I can free up some resources.
Thank you!