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 don't start after update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 2 Posters 415 Views 2 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.
    • M Offline
      MajorC Project Sponsor
      last edited by

      Hi,

      I used @sdetweil update script to update my MM. This worked “fine”, but the MM did not show up after reboot.

      pm2 status says:

      │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
      ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
      │ 0  │ MagicMirror        │ fork     │ 1    │ stopped   │ 0%       │ 0b       │
      
      

      and
      npm start says

      npm start
      
      > magicmirror@2.25.0 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [20.12.2023 13:59.51.204] [LOG]   Starting MagicMirror: v2.25.0
      [20.12.2023 13:59.51.211] [LOG]   Loading config ...
      [20.12.2023 13:59.51.215] [DEBUG] config template file not exists, no envsubst
      [20.12.2023 13:59.51.222] [LOG]   Loading module helpers ...
      [20.12.2023 13:59.51.224] [LOG]   No helper found for module: alert.
      [20.12.2023 13:59.51.239] [LOG]   Initializing new module helper ...
      [20.12.2023 13:59.51.241] [LOG]   Module helper loaded: updatenotification
      [20.12.2023 13:59.51.684] [LOG]   Initializing new module helper ...
      [20.12.2023 13:59.51.685] [LOG]   Module helper loaded: MMM-BackgroundSlideshow
      [20.12.2023 13:59.51.687] [LOG]   No helper found for module: clock.
      [20.12.2023 13:59.51.785] [ERROR] (node:1886) UnhandledPromiseRejectionWarning: Error [ERR_REQUIRE_ESM]: require() of ES Module /home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_modules/node-fetch/src/index.js from /home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_helper.js not supported.
      Instead change the require of index.js in /home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_helper.js to a dynamic import() which is available in all CommonJS modules.
          at f._load (node:electron/js2c/asar_bundle:2:13330)
          at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_helper.js:12:15)
          at f._load (node:electron/js2c/asar_bundle:2:13330)
          at loadModule (/home/pi/MagicMirror/js/app.js:180:19)
          at loadModules (/home/pi/MagicMirror/js/app.js:210:10)
          at async App.start (/home/pi/MagicMirror/js/app.js:258:3)
      (Use `electron --trace-warnings ...` to show where the warning was created)
      [20.12.2023 13:59.51.786] [ERROR] (node:1886) 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)
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: Kann die Shared-Object-Datei nicht öffnen: Keine Berechtigung (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
      failed to load driver: kms_swrast
      MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: Kann die Shared-Object-Datei nicht öffnen: Keine Berechtigung (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
      failed to load swrast driver
      
      

      I don’t know what to do. Any ideas?

      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @MajorC
        last edited by

        @MajorC download the update to MMM-DWD-WarnWeather

        cd ~/MagicMirror/modules/MMM-DWD-WarnWeather
        git pull
        npm install
        

        then restart magic mirror

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          MajorC Project Sponsor @sdetweil
          last edited by

          @sdetweil Thank you, that was the correct actions.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            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