A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
MM does not start - Cannot find module 'html-to-text'
-
@Klinge looks like pm2 is having some trouble
try this
pm2 stop all pm2 delete 0 bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
-
@sdetweil No, nothing changes. The MM start every one to two minutes.
This is the pm2 log
pi@raspberrypi:~ $ pm2 logs --lines=50 [TAILING] Tailing last 50 lines for [all] processes (change the value with --lines option) /home/pi/.pm2/pm2.log last 50 lines: PM2 | at WriteStream.emit (node:domain:552:15) PM2 | at node:internal/fs/streams:75:16 PM2 | at FSReqCallback.oncomplete (node:fs:200:23) PM2 | 2023-10-04T19:11:21: PM2 log: App [MagicMirror:0] online PM2 | 2023-10-04T19:12:46: PM2 log: pm2 has been killed by signal, dumping process list before exit... PM2 | 2023-10-04T19:12:47: PM2 log: Deleting process 0 PM2 | 2023-10-04T19:12:47: PM2 log: Stopping app:MagicMirror id:0 PM2 | 2023-10-04T19:12:47: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGTERM] PM2 | 2023-10-04T19:12:47: PM2 log: pid=2895 msg=process killed PM2 | 2023-10-04T19:12:47: PM2 log: Exited peacefully PM2 | 2023-10-04T19:13:18: PM2 error: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (3126) PM2 | at Object.writeFileSync (node:fs:2314:5) PM2 | at Daemon.innerStart (/usr/lib/node_modules/pm2/lib/Daemon.js:89:8) PM2 | at Domain.<anonymous> (/usr/lib/node_modules/pm2/lib/Daemon.js:62:10) PM2 | at Domain.run (node:domain:389:15) PM2 | at Daemon.start (/usr/lib/node_modules/pm2/lib/Daemon.js:61:5) PM2 | at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/Daemon.js:453:10) PM2 | at Module._compile (node:internal/modules/cjs/loader:1256:14) PM2 | at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) PM2 | at Module.load (node:internal/modules/cjs/loader:1119:32) PM2 | at Module._load (node:internal/modules/cjs/loader:960:12) PM2 | 2023-10-04T19:13:18: PM2 log: =============================================================================== PM2 | 2023-10-04T19:13:18: PM2 log: --- New PM2 Daemon started ---------------------------------------------------- PM2 | 2023-10-04T19:13:18: PM2 log: Time : Wed Oct 04 2023 19:13:18 GMT+0200 (Mitteleuropäische Sommerzeit) PM2 | 2023-10-04T19:13:18: PM2 log: PM2 version : 4.1.2 PM2 | 2023-10-04T19:13:18: PM2 log: Node.js version : 18.18.0 PM2 | 2023-10-04T19:13:18: PM2 log: Current arch : arm PM2 | 2023-10-04T19:13:18: PM2 log: PM2 home : /home/pi/.pm2 PM2 | 2023-10-04T19:13:18: PM2 log: PM2 PID file : /home/pi/.pm2/pm2.pid PM2 | 2023-10-04T19:13:18: PM2 log: RPC socket file : /home/pi/.pm2/rpc.sock PM2 | 2023-10-04T19:13:18: PM2 log: BUS socket file : /home/pi/.pm2/pub.sock PM2 | 2023-10-04T19:13:18: PM2 log: Application log path : /home/pi/.pm2/logs PM2 | 2023-10-04T19:13:18: PM2 log: Process dump file : /home/pi/.pm2/dump.pm2 PM2 | 2023-10-04T19:13:18: PM2 log: Concurrent actions : 2 PM2 | 2023-10-04T19:13:18: PM2 log: SIGTERM timeout : 1600 PM2 | 2023-10-04T19:13:18: PM2 log: =============================================================================== PM2 | 2023-10-04T19:13:18: PM2 log: [Watch] Start watching MagicMirror PM2 | 2023-10-04T19:13:18: PM2 log: App [MagicMirror:0] starting in -fork mode- PM2 | 2023-10-04T19:13:18: PM2 error: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (3138) PM2 | at Object.writeFileSync (node:fs:2314:5) PM2 | at /usr/lib/node_modules/pm2/lib/God/ForkMode.js:258:12 PM2 | at wrapper (/usr/lib/node_modules/pm2/node_modules/async/internal/once.js:12:16) PM2 | at next (/usr/lib/node_modules/pm2/node_modules/async/waterfall.js:96:20) PM2 | at /usr/lib/node_modules/pm2/node_modules/async/internal/onlyOnce.js:12:16 PM2 | at WriteStream.<anonymous> (/usr/lib/node_modules/pm2/lib/Utility.js:186:13) PM2 | at WriteStream.emit (node:events:517:28) PM2 | at WriteStream.emit (node:domain:552:15) PM2 | at node:internal/fs/streams:75:16 PM2 | at FSReqCallback.oncomplete (node:fs:200:23) PM2 | 2023-10-04T19:13:18: PM2 log: App [MagicMirror:0] online /home/pi/.pm2/logs/MagicMirror-error.log last 50 lines: 0|MagicMir | 0|MagicMir | [04.10.2023 18:59.37.259] [ERROR] Failed to retrieve repo info for MagicMirror: Error: Command failed: cd /home/pi/MagicMirror/ && git fetch -n --dry-run 0|MagicMir | fatal: unable to access 'https://github.com/MichMich/MagicMirror/': Could not resolve host: github.com 0|MagicMir | 0|MagicMir | [04.10.2023 18:59.42.967] [ERROR] Whoops! There was an uncaught exception... 0|MagicMir | [04.10.2023 18:59.42.985] [ERROR] Error: getaddrinfo EAI_AGAIN de.wikipedia.org 0|MagicMir | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26) { 0|MagicMir | errno: -3001, 0|MagicMir | code: 'EAI_AGAIN', 0|MagicMir | syscall: 'getaddrinfo', 0|MagicMir | hostname: 'de.wikipedia.org' 0|MagicMir | } 0|MagicMir | [04.10.2023 18:59.42.987] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMir | [04.10.2023 18:59.42.989] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|MagicMir | [04.10.2023 19:00.36.497] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | [1368:1004/190037.390496:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files 0|MagicMir | [1402:1004/190038.418478:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [1408:1004/190038.707389:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. 0|MagicMir | [04.10.2023 19:02.30.100] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | [1586:1004/190230.991427:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files 0|MagicMir | [1618:1004/190231.867492:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [1625:1004/190232.164310:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. 0|MagicMir | [04.10.2023 19:04.01.396] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | [1846:1004/190402.324609:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files 0|MagicMir | [1881:1004/190403.297619:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [1887:1004/190403.585748:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. 0|MagicMir | [04.10.2023 19:05.32.230] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | [2062:1004/190533.694144:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files 0|MagicMir | [2096:1004/190534.078919:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [2102:1004/190534.389169:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. 0|MagicMir | [04.10.2023 19:07.04.869] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | [2280:1004/190705.739184:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files 0|MagicMir | [2311:1004/190706.708371:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [2319:1004/190706.990307:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. 0|MagicMir | [04.10.2023 19:08.33.769] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | [2494:1004/190834.629802:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files 0|MagicMir | [2527:1004/190835.803167:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [2533:1004/190836.118560:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. 0|MagicMir | [04.10.2023 19:10.04.949] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | [2708:1004/191005.874878:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files 0|MagicMir | [2742:1004/191006.908739:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [2748:1004/191007.240281:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. 0|MagicMir | [04.10.2023 19:11.35.785] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | [2923:1004/191136.688674:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files 0|MagicMir | [2981:1004/191137.787746:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [2987:1004/191138.169522:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. 0|MagicMir | [04.10.2023 19:13.31.440] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | [3166:1004/191332.276711:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files 0|MagicMir | [3197:1004/191333.445082:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization 0|MagicMir | [3206:1004/191333.753392:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. /home/pi/.pm2/logs/MagicMirror-out.log last 50 lines: 0|MagicMir | [04.10.2023 19:13.26.072] [LOG] Module helper loaded: MMM-OpenWeatherMapForecast 0|MagicMir | [04.10.2023 19:13.26.424] [LOG] Initializing new module helper ... 0|MagicMir | [04.10.2023 19:13.26.425] [LOG] Module helper loaded: calendar 0|MagicMir | [04.10.2023 19:13.30.187] [LOG] Initializing new module helper ... 0|MagicMir | [04.10.2023 19:13.30.188] [LOG] Module helper loaded: MMM-OnThisDay 0|MagicMir | [04.10.2023 19:13.30.817] [LOG] Initializing new module helper ... 0|MagicMir | [04.10.2023 19:13.30.818] [LOG] Module helper loaded: MMM-DWD-Pollen 0|MagicMir | [04.10.2023 19:13.31.004] [LOG] Initializing new module helper ... 0|MagicMir | [04.10.2023 19:13.31.005] [LOG] Module helper loaded: MMM-NINA 0|MagicMir | [04.10.2023 19:13.31.121] [LOG] Initializing new module helper ... 0|MagicMir | [04.10.2023 19:13.31.122] [LOG] Module helper loaded: MMM-DWD-WarnWeather 0|MagicMir | [04.10.2023 19:13.31.404] [LOG] Initializing new module helper ... 0|MagicMir | [04.10.2023 19:13.31.405] [LOG] Module helper loaded: newsfeed 0|MagicMir | [04.10.2023 19:13.31.406] [LOG] All module helpers loaded. 0|MagicMir | [04.10.2023 19:13.31.425] [LOG] Starting server on port 8080 ... 0|MagicMir | [04.10.2023 19:13.31.470] [LOG] Server started ... 0|MagicMir | [04.10.2023 19:13.31.474] [LOG] Connecting socket for: updatenotification 0|MagicMir | [04.10.2023 19:13.31.477] [LOG] Starting module helper: updatenotification 0|MagicMir | [04.10.2023 19:13.31.478] [LOG] Connecting socket for: MMM-OpenWeatherMapForecast 0|MagicMir | [04.10.2023 19:13.31.480] [LOG] ====================== Starting node_helper for module [MMM-OpenWeatherMapForecast] 0|MagicMir | [04.10.2023 19:13.31.481] [LOG] Connecting socket for: calendar 0|MagicMir | [04.10.2023 19:13.31.481] [LOG] Starting node helper for: calendar 0|MagicMir | [04.10.2023 19:13.31.482] [LOG] Connecting socket for: MMM-OnThisDay 0|MagicMir | [04.10.2023 19:13.31.483] [LOG] Starting module helper: MMM-OnThisDay 0|MagicMir | [04.10.2023 19:13.31.484] [LOG] Connecting socket for: MMM-DWD-Pollen 0|MagicMir | [04.10.2023 19:13.31.485] [LOG] MMM-DWD-Pollen helper started ... 0|MagicMir | [04.10.2023 19:13.31.486] [LOG] Connecting socket for: MMM-NINA 0|MagicMir | [04.10.2023 19:13.31.487] [LOG] MMM-NINA helper method started... 0|MagicMir | [04.10.2023 19:13.31.488] [LOG] Connecting socket for: MMM-DWD-WarnWeather 0|MagicMir | [04.10.2023 19:13.31.488] [LOG] MMM-DWD-WarnWeather helper started... 0|MagicMir | [04.10.2023 19:13.31.489] [LOG] Connecting socket for: newsfeed 0|MagicMir | [04.10.2023 19:13.31.490] [LOG] Starting node helper for: newsfeed 0|MagicMir | [04.10.2023 19:13.31.492] [LOG] Sockets connected & modules started ... 0|MagicMir | [04.10.2023 19:13.31.996] [LOG] Launching application. 0|MagicMir | [04.10.2023 19:13.37.603] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/...g%40gmail.com/.../basic.ics - Interval: 3600000 0|MagicMir | [04.10.2023 19:13.37.900] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/....%40gmail.com/.../basic.ics - Interval: 3600000 0|MagicMir | [04.10.2023 19:13.37.917] [LOG] requesting:https://opendata.dwd.de/climate_environment/health/alerts/s31fg.json 0|MagicMir | [04.10.2023 19:13.37.981] [LOG] Create new newsfetcher for url: http://www.tagesschau.de/xml/rss2 - Interval: 300000 0|MagicMir | [04.10.2023 19:13.38.049] [LOG] MMM-OnThisDay: Received socket notification LOAD_EVENTS. 0|MagicMir | [04.10.2023 19:13.38.050] [LOG] MMM-OnThisDay: Load events ... 0|MagicMir | [04.10.2023 19:13.38.073] [INFO] Checking git for module: MMM-OpenWeatherMapForecast 0|MagicMir | [04.10.2023 19:13.38.156] [INFO] Checking git for module: MMM-OnThisDay 0|MagicMir | [04.10.2023 19:13.38.441] [INFO] Checking git for module: MMM-DWD-Pollen 0|MagicMir | [04.10.2023 19:13.38.625] [INFO] Checking git for module: MMM-NINA 0|MagicMir | [04.10.2023 19:13.38.734] [INFO] Checking git for module: MMM-DWD-WarnWeather 0|MagicMir | [04.10.2023 19:13.38.843] [INFO] Checking git for module: MagicMirror 0|MagicMir | [04.10.2023 19:13.38.954] [LOG] MMM-OnThisDay: Parse HTML data ... 0|MagicMir | [04.10.2023 19:13.42.384] [INFO] Newsfeed-Fetcher: reloadInterval set to ttl=5400000 for url http://www.tagesschau.de/xml/rss2 0|MagicMir | [04.10.2023 19:13.44.341] [INFO] Newsfeed-Fetcher: Broadcasting 40 items. 0|MagicMir | [04.10.2023 19:13.44.705] [LOG] MMM-DWD-Pollen: Success loading
-
@Klinge ok have to get a little forceful here
do
pm2 stop all pm2 unstartup
the last command should give you another command to execute
execute that command
when it ends
then dosudo npm uninstall pm2 -g
then run my fixuppm2 script again to reinstall and reactivate pm2
-
@sdetweil Ok, now it seems that my MM is running.
Thanks again for your help