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.

    upgrade 2.24 to 2.25 on arch linux - broken

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 3 Posters 825 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.
    • V Offline
      voodoo-magic
      last edited by

      Hello everyone,

      after updating to Version 2.25, MM no longer starts.

      Thank you in advance for any help.

      uname -a

      Linux archpi4 6.1.54-2-rpi-ARCH #1 SMP Fri Sep 29 12:55:29 MDT 2023 armv7l GNU/Linux
      

      lsb_release -a

      LSB Version:    n/a
      Distributor ID: Arch
      Description:    Arch Linux
      Release:        rolling
      Codename:       n/a
      

      pm2 stop all

      [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
      [PM2] [mm](0) ✓
      ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
      │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
      ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
      │ 0  │ mm                 │ fork     │ 0    │ stopped   │ 0%       │ 0b       │
      └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
      
      

      npm start

      > magicmirror@2.25.0 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [03.10.2023 13:38.22.431] [LOG]   Starting MagicMirror: v2.25.0
      [03.10.2023 13:38.22.437] [LOG]   Loading config ...
      [03.10.2023 13:38.22.439] [DEBUG] config template file not exists, no envsubst
      [03.10.2023 13:38.22.443] [LOG]   Loading module helpers ...
      [03.10.2023 13:38.22.445] [LOG]   No helper found for module: alert.
      [03.10.2023 13:38.22.470] [LOG]   Initializing new module helper ...
      [03.10.2023 13:38.22.470] [LOG]   Module helper loaded: updatenotification
      [03.10.2023 13:38.22.471] [LOG]   No helper found for module: clock.
      [03.10.2023 13:38.22.472] [LOG]   No helper found for module: calendar_monthly.
      [03.10.2023 13:38.22.473] [LOG]   No helper found for module: compliments.
      [03.10.2023 13:38.22.474] [LOG]   No helper found for module: weather.
      [03.10.2023 13:38.22.478] [ERROR] (node:916) UnhandledPromiseRejectionWarning: Error: Cannot find module 'node-fetch'
      Require stack:
      - /home/michael/MagicMirror/modules/MMM-DWD-WarnWeather/node_helper.js
      - /home/michael/MagicMirror/js/app.js
      - /home/michael/MagicMirror/js/electron.js
      - /home/michael/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      -
          at node:internal/modules/cjs/loader:1084:15
          at Function.<anonymous> (node:electron/js2c/browser_init:2:117419)
          at Module._resolveFilename (/home/michael/MagicMirror/node_modules/module-alias/index.js:49:29)
          at node:internal/modules/cjs/loader:929:27
          at Function._load (node:electron/js2c/asar_bundle:2:13327)
          at Module.require (node:internal/modules/cjs/loader:1150:19)
          at require (node:internal/modules/cjs/helpers:110:18)
          at Object.<anonymous> (/home/michael/MagicMirror/modules/MMM-DWD-WarnWeather/node_helper.js:12:15)
          at Module._compile (node:internal/modules/cjs/loader:1271:14)
          at Object..js (node:internal/modules/cjs/loader:1326:10)
          at Module.load (node:internal/modules/cjs/loader:1126:32)
          at node:internal/modules/cjs/loader:967:12
          at Function._load (node:electron/js2c/asar_bundle:2:13327)
          at Module.require (node:internal/modules/cjs/loader:1150:19)
          at require (node:internal/modules/cjs/helpers:110:18)
          at loadModule (/home/michael/MagicMirror/js/app.js:180:19)
      (Use `electron --trace-warnings ...` to show where the warning was created)
      [03.10.2023 13:38.22.479] [ERROR] (node:916) 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)
      
      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @voodoo-magic
        last edited by

        @voodoo-magic did u upgrade node to at least v18?

        it is required

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @voodoo-magic
          last edited by sdetweil

          @voodoo-magic said in upgrade 2.24 to 2.25 on arch linux - broken:

          Cannot find module ‘node-fetch’

          this was removed from the base on this release as we use the builtin fetch in v18 and above

          see
          https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • V Offline
            voodoo-magic
            last edited by

            @sdetweil
            $ node -v
            v20.8.0
            $ npm -v
            10.1.0

            Thank you very much for the answer, but what I have to do in the module MMM-DWD-WarnWeather?

            npm init -y?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @voodoo-magic
              last edited by

              @voodoo-magic read the instructions… there are only 4 steps…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • R Offline
                rabbit83ka
                last edited by

                MMM-DWD-WarnWeather is now fixed.

                V 1 Reply Last reply Reply Quote 0
                • V Offline
                  voodoo-magic @rabbit83ka
                  last edited by

                  Thank you! @rabbit83ka @sdetweil

                  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