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.

    Error starting after upgrade

    Scheduled Pinned Locked Moved Solved Troubleshooting
    41 Posts 5 Posters 10.5k Views 5 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 @rmcon
      last edited by

      @rmcon said in Error starting after upgrade:

      local version 2.25.0 already same as master 2.25.0

      yes you have to use force instead of apply

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 1 Reply Last reply Reply Quote 0
      • R Offline
        rmcon @sdetweil
        last edited by

        @sdetweil

        Force update complete. MM still not working properly, but it’s something different, which I’ll call progress.

        [ERROR] (node:2061) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘fetch’
        (Full text below)

        I see some answers for ‘node-fetch’ in topic #18055, but I’m not sure if that fix will work on this problem. I’m still digging around, but not seeing this exact problem so far. Thanks.

        magicmirror@2.25.0 start
        DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

        [15.10.2023 20:57.06.757] [LOG] Starting MagicMirror: v2.25.0
        [15.10.2023 20:57.06.798] [LOG] Loading config …
        [15.10.2023 20:57.06.803] [DEBUG] config template file not exists, no envsubst
        [15.10.2023 20:57.06.851] [LOG] Loading module helpers …
        [15.10.2023 20:57.06.884] [LOG] No helper found for module: alert.
        [15.10.2023 20:57.07.124] [LOG] Initializing new module helper …
        [15.10.2023 20:57.07.126] [LOG] Module helper loaded: updatenotification
        [15.10.2023 20:57.07.145] [LOG] No helper found for module: clock.
        [15.10.2023 20:57.08.647] [LOG] Initializing new module helper …
        [15.10.2023 20:57.08.648] [LOG] Module helper loaded: calendar
        [15.10.2023 20:57.08.650] [LOG] No helper found for module: MMM-MonthlyCalendar.
        [15.10.2023 20:57.08.651] [LOG] No helper found for module: weather.
        [15.10.2023 20:57.11.743] [ERROR] (node:2061) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘fetch’
        Require stack:

        • /home/rmco01/MagicMirror/modules/MMM-Wallpaper/node_helper.js
        • /home/rmco01/MagicMirror/js/app.js
        • /home/rmco01/MagicMirror/js/electron.js
        • /home/rmco01/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
        • at node:internal/modules/cjs/loader:1084:15
          at Function. (node:electron/js2c/browser_init:2:117419)
          at Module._resolveFilename (/home/rmco01/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. (/home/rmco01/MagicMirror/modules/MMM-Wallpaper/node_helper.js:11: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/rmco01/MagicMirror/js/app.js:180:19)

        (removed remainder, same spam messages as previous)

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @rmcon
          last edited by sdetweil

          @rmcon said in Error starting after upgrade:

          Cannot find module ‘fetch’
          Require stack:

          /home/rmco01/MagicMirror/modules/MMM-Wallpaper/node_helper.js

          yes we removed some libs as fetch is built-in in node 18 up.

          that module has a fix

          go to the MMM-Wallpaper folder (check spelling)
          git pull
          to update

          then restart mm

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            rmcon @sdetweil
            last edited by

            @sdetweil
            We’re up and running! Thank you so much for your patience. I have learned a lot from this go round and I’m hoping that the next update will go much smoother. I still don’t fully understand how to check the test run for compatibility with my configuration before applying the changes, but I have a little time to get smarter before the next update. Have a great rest of your week.

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @rmcon
              last edited by

              @rmcon great that you got it working

              on the test run, mostly currently it’s looking for mm files you might have changed for some reason, and conflict w the new release.

              most of the other issues I handle, upgrade node, npm and pm2 if needed.

              and in this release on pi0, increase swap space and increase the node heap space.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 3
              • 4
              • 5
              • 5 / 5
              • 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