• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MM does not start - Cannot find module 'html-to-text'

Scheduled Pinned Locked Moved Solved Troubleshooting
14 Posts 2 Posters 1.3k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sdetweil @Klinge
    last edited by Oct 4, 2023, 4:09 PM

    @Klinge pm2 logs --lines=50

    show the output

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    K 1 Reply Last reply Oct 4, 2023, 4:19 PM Reply Quote 0
    • K Offline
      Klinge @sdetweil
      last edited by Oct 4, 2023, 4:19 PM

      @sdetweil Ok, here it is

      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: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-04T18:15:52: PM2 log: App [mm:0] online
      PM2        | 2023-10-04T18:17:17: PM2 log: pm2 has been killed by signal, dumping process list before exit...
      PM2        | 2023-10-04T18:17:17: PM2 log: Deleting process 0
      PM2        | 2023-10-04T18:17:17: PM2 log: Stopping app:mm id:0
      PM2        | 2023-10-04T18:17:17: PM2 log: App [mm:0] exited with code [0] via signal [SIGTERM]
      PM2        | 2023-10-04T18:17:17: PM2 log: pid=8252 msg=process killed
      PM2        | 2023-10-04T18:17:17: PM2 log: Exited peacefully
      PM2        | 2023-10-04T18:17:22: 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 (8523)
      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-04T18:17:23: PM2 log: ===============================================================================
      PM2        | 2023-10-04T18:17:23: PM2 log: --- New PM2 Daemon started ----------------------------------------------------
      PM2        | 2023-10-04T18:17:23: PM2 log: Time                 : Wed Oct 04 2023 18:17:23 GMT+0200 (Mitteleuropäische Sommerzeit)
      PM2        | 2023-10-04T18:17:23: PM2 log: PM2 version          : 4.1.2
      PM2        | 2023-10-04T18:17:23: PM2 log: Node.js version      : 18.18.0
      PM2        | 2023-10-04T18:17:23: PM2 log: Current arch         : arm
      PM2        | 2023-10-04T18:17:23: PM2 log: PM2 home             : /home/pi/.pm2
      PM2        | 2023-10-04T18:17:23: PM2 log: PM2 PID file         : /home/pi/.pm2/pm2.pid
      PM2        | 2023-10-04T18:17:23: PM2 log: RPC socket file      : /home/pi/.pm2/rpc.sock
      PM2        | 2023-10-04T18:17:23: PM2 log: BUS socket file      : /home/pi/.pm2/pub.sock
      PM2        | 2023-10-04T18:17:23: PM2 log: Application log path : /home/pi/.pm2/logs
      PM2        | 2023-10-04T18:17:23: PM2 log: Process dump file    : /home/pi/.pm2/dump.pm2
      PM2        | 2023-10-04T18:17:23: PM2 log: Concurrent actions   : 2
      PM2        | 2023-10-04T18:17:23: PM2 log: SIGTERM timeout      : 1600
      PM2        | 2023-10-04T18:17:23: PM2 log: ===============================================================================
      PM2        | 2023-10-04T18:17:23: PM2 log: App [mm:0] starting in -fork mode-
      PM2        | 2023-10-04T18:17:23: 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 (8534)
      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-04T18:17:23: PM2 log: App [mm:0] online
      
      /home/pi/.pm2/logs/mm-error.log last 50 lines:
      0|mm       | [5855:1004/175718.120837:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [5861:1004/175718.510133:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 17:58.46.910] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [6032:1004/175847.776473: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|mm       | [6065:1004/175848.920978:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [6071:1004/175849.241379:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 18:00.17.672] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [6267:1004/180018.583887: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|mm       | [6300:1004/180019.572846:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [6306:1004/180019.869359:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 18:01.55.338] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [6484:1004/180156.182863: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|mm       | [6517:1004/180157.230654:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [6523:1004/180157.517864:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 18:03.41.690] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [6748:1004/180342.596450: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|mm       | [6782:1004/180343.590529:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [6789:1004/180343.906253:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 18:05.13.048] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [6958:1004/180513.984383: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|mm       | [6992:1004/180514.960583:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [6998:1004/180515.244798:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 18:07.56.767] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [7179:1004/180757.724734: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|mm       | [7235:1004/180758.509746:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [7247:1004/180758.777018:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 18:09.34.194] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [7416:1004/180935.131361: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|mm       | [7448:1004/180936.160496:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [7455:1004/180936.436592:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 18:11.05.471] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [7625:1004/181106.474886: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|mm       | [7656:1004/181107.269802:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [7670:1004/181107.574314:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 18:12.40.548] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [7843:1004/181241.470196: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|mm       | [7876:1004/181242.409833:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [7883:1004/181242.738127:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 18:14.11.405] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [8059:1004/181412.295277: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|mm       | [8092:1004/181413.340008:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [8098:1004/181413.652866:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 18:16.04.369] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [8276:1004/181605.210320: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|mm       | [8309:1004/181606.250563:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [8315:1004/181606.535078:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      0|mm       | [04.10.2023 18:17.36.219] [WARN]  You're using a full whitelist configuration to allow for all IPs
      0|mm       | [8561:1004/181737.160188: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|mm       | [8596:1004/181738.109901:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      0|mm       | [8602:1004/181738.404887:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      
      /home/pi/.pm2/logs/mm-out.log last 50 lines:
      0|mm       | [04.10.2023 18:17.30.568] [LOG]   Module helper loaded: MMM-OpenWeatherMapForecast
      0|mm       | [04.10.2023 18:17.30.933] [LOG]   Initializing new module helper ...
      0|mm       | [04.10.2023 18:17.30.935] [LOG]   Module helper loaded: calendar
      0|mm       | [04.10.2023 18:17.34.910] [LOG]   Initializing new module helper ...
      0|mm       | [04.10.2023 18:17.34.912] [LOG]   Module helper loaded: MMM-OnThisDay
      0|mm       | [04.10.2023 18:17.35.609] [LOG]   Initializing new module helper ...
      0|mm       | [04.10.2023 18:17.35.610] [LOG]   Module helper loaded: MMM-DWD-Pollen
      0|mm       | [04.10.2023 18:17.35.805] [LOG]   Initializing new module helper ...
      0|mm       | [04.10.2023 18:17.35.805] [LOG]   Module helper loaded: MMM-NINA
      0|mm       | [04.10.2023 18:17.35.898] [LOG]   Initializing new module helper ...
      0|mm       | [04.10.2023 18:17.35.899] [LOG]   Module helper loaded: MMM-DWD-WarnWeather
      0|mm       | [04.10.2023 18:17.36.182] [LOG]   Initializing new module helper ...
      0|mm       | [04.10.2023 18:17.36.183] [LOG]   Module helper loaded: newsfeed
      0|mm       | [04.10.2023 18:17.36.184] [LOG]   All module helpers loaded.
      0|mm       | [04.10.2023 18:17.36.208] [LOG]   Starting server on port 8080 ...
      0|mm       | [04.10.2023 18:17.36.247] [LOG]   Server started ...
      0|mm       | [04.10.2023 18:17.36.251] [LOG]   Connecting socket for: updatenotification
      0|mm       | [04.10.2023 18:17.36.254] [LOG]   Starting module helper: updatenotification
      0|mm       | [04.10.2023 18:17.36.257] [LOG]   Connecting socket for: MMM-OpenWeatherMapForecast
      0|mm       | [04.10.2023 18:17.36.260] [LOG]   ====================== Starting node_helper for module [MMM-OpenWeatherMapForecast]
      0|mm       | [04.10.2023 18:17.36.262] [LOG]   Connecting socket for: calendar
      0|mm       | [04.10.2023 18:17.36.265] [LOG]   Starting node helper for: calendar
      0|mm       | [04.10.2023 18:17.36.267] [LOG]   Connecting socket for: MMM-OnThisDay
      0|mm       | [04.10.2023 18:17.36.269] [LOG]   Starting module helper: MMM-OnThisDay
      0|mm       | [04.10.2023 18:17.36.271] [LOG]   Connecting socket for: MMM-DWD-Pollen
      0|mm       | [04.10.2023 18:17.36.272] [LOG]   MMM-DWD-Pollen helper started ...
      0|mm       | [04.10.2023 18:17.36.273] [LOG]   Connecting socket for: MMM-NINA
      0|mm       | [04.10.2023 18:17.36.274] [LOG]   MMM-NINA helper method started...
      0|mm       | [04.10.2023 18:17.36.275] [LOG]   Connecting socket for: MMM-DWD-WarnWeather
      0|mm       | [04.10.2023 18:17.36.276] [LOG]   MMM-DWD-WarnWeather helper started...
      0|mm       | [04.10.2023 18:17.36.277] [LOG]   Connecting socket for: newsfeed
      0|mm       | [04.10.2023 18:17.36.278] [LOG]   Starting node helper for: newsfeed
      0|mm       | [04.10.2023 18:17.36.280] [LOG]   Sockets connected & modules started ...
      0|mm       | [04.10.2023 18:17.36.828] [LOG]   Launching application.
      0|mm       | [04.10.2023 18:17.42.028] [LOG]   Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/lars.klingeberg%40gmail.com/private-8cbcc08f4b0fa124985428c70478a278/basic.ics - Interval: 3600000
      0|mm       | [04.10.2023 18:17.42.369] [LOG]   Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/daniela.silbernagel%40gmail.com/private-88e7d28377f0b505f184b5413a231bb7/basic.ics - Interval: 3600000
      0|mm       | [04.10.2023 18:17.42.500] [LOG]   requesting:https://opendata.dwd.de/climate_environment/health/alerts/s31fg.json
      0|mm       | [04.10.2023 18:17.42.557] [LOG]   Create new newsfetcher for url: http://www.tagesschau.de/xml/rss2 - Interval: 300000
      0|mm       | [04.10.2023 18:17.42.584] [LOG]   MMM-OnThisDay: Received socket notification LOAD_EVENTS.
      0|mm       | [04.10.2023 18:17.42.587] [LOG]   MMM-OnThisDay: Load events ...
      0|mm       | [04.10.2023 18:17.42.610] [INFO]  Checking git for module: MMM-OpenWeatherMapForecast
      0|mm       | [04.10.2023 18:17.42.704] [INFO]  Checking git for module: MMM-OnThisDay
      0|mm       | [04.10.2023 18:17.42.769] [INFO]  Checking git for module: MMM-DWD-Pollen
      0|mm       | [04.10.2023 18:17.43.047] [INFO]  Checking git for module: MMM-NINA
      0|mm       | [04.10.2023 18:17.43.124] [LOG]   MMM-DWD-Pollen: Success loading
      0|mm       | [04.10.2023 18:17.43.205] [INFO]  Checking git for module: MMM-DWD-WarnWeather
      0|mm       | [04.10.2023 18:17.43.275] [INFO]  Checking git for module: MagicMirror
      0|mm       | [04.10.2023 18:17.43.568] [LOG]   MMM-OnThisDay: Parse HTML data ...
      0|mm       | [04.10.2023 18:17.46.721] [INFO]  Newsfeed-Fetcher: reloadInterval set to ttl=5400000 for url http://www.tagesschau.de/xml/rss2
      0|mm       | [04.10.2023 18:17.47.876] [INFO]  Newsfeed-Fetcher: Broadcasting 40 items.
      
      
      S 1 Reply Last reply Oct 4, 2023, 4:30 PM Reply Quote 0
      • S Offline
        sdetweil @Klinge
        last edited by Oct 4, 2023, 4:30 PM

        @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)"
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Oct 4, 2023, 5:16 PM Reply Quote 0
        • K Offline
          Klinge @sdetweil
          last edited by Klinge Oct 4, 2023, 5:16 PM Oct 4, 2023, 5:16 PM

          @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
          
          S 1 Reply Last reply Oct 4, 2023, 6:26 PM Reply Quote 0
          • S Offline
            sdetweil @Klinge
            last edited by Oct 4, 2023, 6:26 PM

            @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 do

            sudo npm uninstall pm2 -g
            

            then run my fixuppm2 script again to reinstall and reactivate pm2

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Oct 5, 2023, 6:57 AM Reply Quote 0
            • K Offline
              Klinge @sdetweil
              last edited by Klinge Oct 5, 2023, 6:57 AM Oct 5, 2023, 6:57 AM

              @sdetweil Ok, now it seems that my MM is running.

              Thanks again for your help

              1 Reply Last reply Reply Quote 1
              • 1
              • 2
              • 2 / 2
              2 / 2
              • First post
                13/14
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy