• 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.

Error starting after upgrade

Scheduled Pinned Locked Moved Solved Troubleshooting
41 Posts 5 Posters 7.7k 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.
  • R Offline
    rmcon @rmcon
    last edited by Oct 16, 2023, 2:10 AM

    Just got a chance to work on this again. Tried doing both upgrade scripts (again) and I’m getting the same results. I reviewed the upgrade.log file but nothing is jumping out at me (full log from today’s efforts below). The only items that seem like they didn’t go as intended are a few modules that may have been partially skipped in the upgrade process (“skipped processing for…” MMM-Wallpaper, MMM-connection-status, MMM-Remote-Control, MMM-BurinIn), but I don’t think those would be related to the problems I’m experiencing when trying to start MM. I may remove those from my config.js file to see in anything changes. Other ideas?

    (Apologies for the section of large text below, I can’t figure out why it’s doing that and how to fix it)

    Upgrade started - Sun Oct 15 18:17:56 PDT 2023
    system is Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
    the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
    doing test run = true, NO updates will be applied!
    Check current Node installation …
    Node currently installed. Checking version number.
    Minimum Node version: v20.8.0
    Installed Node version: v20.8.0
    No Node.js upgrade necessary.
    Check current NPM installation …
    NPM currently installed. Checking version number.
    Minimum npm version: V10.1.0
    Installed npm version: V10.1.0
    No npm upgrade necessary.

    saving custom.css
    remote name = origin
    upgrading from version 2.25.0 to 2.25.0
    fetching latest revisions
    git fetch rc=0
    current branch = master
    On branch master
    Your branch is up to date with ‘origin/master’.

    Changes not staged for commit:
    (use “git add/rm …” to update what will be committed)
    (use “git restore …” to discard changes in working directory)
    modified: modules/default/alert/templates/alert.njk
    modified: modules/default/alert/templates/notification.njk
    modified: modules/default/calendar/calendar.js
    modified: modules/default/calendar/calendarfetcher.js
    modified: modules/default/calendar/calendarfetcherutils.js
    modified: modules/default/compliments/compliments.js
    modified: modules/default/helloworld/helloworld.njk
    modified: modules/default/newsfeed/fullarticle.njk
    modified: modules/default/newsfeed/newsfeed.njk
    modified: modules/default/newsfeed/newsfeedfetcher.js
    modified: modules/default/newsfeed/oldconfig.njk
    modified: modules/default/updatenotification/node_helper.js
    modified: modules/default/updatenotification/updatenotification.njk
    modified: modules/default/weather/current.njk
    modified: modules/default/weather/forecast.njk
    modified: modules/default/weather/hourly.njk
    modified: modules/default/weather/providers/openweathermap.js
    deleted: modules/default/weather/providers/overrideWrapper.js
    modified: modules/default/weather/providers/weathergov.js
    modified: modules/default/weather/providers/yr.js
    modified: modules/default/weather/weather.js
    modified: modules/default/weather/weatherprovider.js
    modified: package-lock.json
    modified: package.json

    Untracked files:
    (use “git add …” to include in what will be committed)
    core
    css/save_custom.css

    no changes added to commit (use “git add” and/or “git commit -a”)
    there are 23 local files that are different than the master repo

    modules/default/alert/templates/alert.njk
    modules/default/alert/templates/notification.njk
    modules/default/calendar/calendar.js
    modules/default/calendar/calendarfetcher.js
    modules/default/calendar/calendarfetcherutils.js
    modules/default/compliments/compliments.js
    modules/default/helloworld/helloworld.njk
    modules/default/newsfeed/fullarticle.njk
    modules/default/newsfeed/newsfeed.njk
    modules/default/newsfeed/newsfeedfetcher.js
    modules/default/newsfeed/oldconfig.njk
    modules/default/updatenotification/node_helper.js
    modules/default/updatenotification/updatenotification.njk
    modules/default/weather/current.njk
    modules/default/weather/forecast.njk
    modules/default/weather/hourly.njk
    modules/default/weather/providers/openweathermap.js
    modules/default/weather/providers/weathergov.js
    modules/default/weather/providers/yr.js
    modules/default/weather/weather.js
    modules/default/weather/weatherprovider.js
    package-lock.json
    package.json

    save/restore files selection = n
    restoring modules/default/alert/templates/alert.njk from repo
    skipping restore for modules/default/alert/templates/alert.njk, doing test run
    restoring modules/default/alert/templates/notification.njk from repo
    skipping restore for modules/default/alert/templates/notification.njk, doing test run
    restoring modules/default/calendar/calendar.js from repo
    skipping restore for modules/default/calendar/calendar.js, doing test run
    restoring modules/default/calendar/calendarfetcher.js from repo
    skipping restore for modules/default/calendar/calendarfetcher.js, doing test run
    restoring modules/default/calendar/calendarfetcherutils.js from repo
    skipping restore for modules/default/calendar/calendarfetcherutils.js, doing test run
    restoring modules/default/compliments/compliments.js from repo
    skipping restore for modules/default/compliments/compliments.js, doing test run
    restoring modules/default/helloworld/helloworld.njk from repo
    skipping restore for modules/default/helloworld/helloworld.njk, doing test run
    restoring modules/default/newsfeed/fullarticle.njk from repo
    skipping restore for modules/default/newsfeed/fullarticle.njk, doing test run
    restoring modules/default/newsfeed/newsfeed.njk from repo
    skipping restore for modules/default/newsfeed/newsfeed.njk, doing test run
    restoring modules/default/newsfeed/newsfeedfetcher.js from repo
    skipping restore for modules/default/newsfeed/newsfeedfetcher.js, doing test run
    restoring modules/default/newsfeed/oldconfig.njk from repo
    skipping restore for modules/default/newsfeed/oldconfig.njk, doing test run
    restoring modules/default/updatenotification/node_helper.js from repo
    skipping restore for modules/default/updatenotification/node_helper.js, doing test run
    restoring modules/default/updatenotification/updatenotification.njk from repo
    skipping restore for modules/default/updatenotification/updatenotification.njk, doing test run
    restoring modules/default/weather/current.njk from repo
    skipping restore for modules/default/weather/current.njk, doing test run
    restoring modules/default/weather/forecast.njk from repo
    skipping restore for modules/default/weather/forecast.njk, doing test run
    restoring modules/default/weather/hourly.njk from repo
    skipping restore for modules/default/weather/hourly.njk, doing test run
    restoring modules/default/weather/providers/openweathermap.js from repo
    skipping restore for modules/default/weather/providers/openweathermap.js, doing test run
    restoring modules/default/weather/providers/weathergov.js from repo
    skipping restore for modules/default/weather/providers/weathergov.js, doing test run
    restoring modules/default/weather/providers/yr.js from repo
    skipping restore for modules/default/weather/providers/yr.js, doing test run
    restoring modules/default/weather/weather.js from repo
    skipping restore for modules/default/weather/weather.js, doing test run
    restoring modules/default/weather/weatherprovider.js from repo
    skipping restore for modules/default/weather/weatherprovider.js, doing test run
    restoring package-lock.json from repo
    skipping restore for package-lock.json, doing test run
    restoring package.json from repo
    skipping restore for package.json, doing test run
    test merge result rc=‘’ , if empty, no conflicts
    skipping merge, only test run
    Checking for modules with removed libraries
    downloading dumpactivemodules script

    **processing dependency changes for active modules with package.json files
    processing for module MMM-Wallpaper please wait

    skipped processing for MMM-Wallpaper, doing test run
    processing complete for module MMM-Wallpaper
    processing for module MMM-connection-status please wait

    skipped processing for MMM-connection-status, doing test run
    processing complete for module MMM-connection-status
    processing for module MMM-Remote-Control please wait

    skipped processing for MMM-Remote-Control, doing test run
    processing complete for module MMM-Remote-Control
    processing for module MMM-BurnIn please wait

    skipped processing for MMM-BurnIn, doing test run
    processing complete for module MMM-BurnIn**
    restoring custom.css
    removing git alias
    Upgrade ended - Sun Oct 15 18:18:11 PDT 2023

    Upgrade started - Sun Oct 15 18:19:04 PDT 2023
    system is Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
    the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
    user requested to apply changes
    doing test run = false
    Check current Node installation …
    Node currently installed. Checking version number.
    Minimum Node version: v20.8.0
    Installed Node version: v20.8.0
    No Node.js upgrade necessary.
    Check current NPM installation …
    NPM currently installed. Checking version number.
    Minimum npm version: V10.1.0
    Installed npm version: V10.1.0
    No npm upgrade necessary.

    saving custom.css
    remote name = origin
    local version 2.25.0 already same as master 2.25.0
    restoring custom.css
    removing git alias
    Upgrade ended - Sun Oct 15 18:19:08 PDT 2023

    S 1 Reply Last reply Oct 16, 2023, 2:17 AM Reply Quote 0
    • S Offline
      sdetweil @rmcon
      last edited by Oct 16, 2023, 2:17 AM

      @rmcon said in Error starting after upgrade:

      Codename: bullseye
      doing test run = true, NO updates will be applied!

      this is the test run.

      upgrade is a two.part process

      everyone puts lots of energy into building their mirrors.

      last thing my script needs to do is screw it up.
      so test run let’s you get an idea if there are any issues you need to fix BEFORE making any changes

      the second run (with the apply parameter)
      actually DOES the update.

      however, I will NOT upgrade a system already upgraded by default

      IF you need to force the upgrade process over the same version, then change the parm apply to force

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 1 Reply Last reply Oct 16, 2023, 2:54 AM Reply Quote 0
      • R Offline
        rmcon @sdetweil
        last edited by Oct 16, 2023, 2:54 AM

        @sdetweil
        I did the test upgrade then followed it with the apply parameter.

        @rmcon said in Error starting after upgrade:

        Upgrade started - Sun Oct 15 18:19:04 PDT 2023
        system is Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
        the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
        user requested to apply changes
        doing test run = false

        At this point, I think my only option is to try the force option. Worst case scenario, if I can’t revive the current version, I’ll try to remove MM and start fresh. I think I’ve got the important bits saved somewhere else to make the job a little easier.

        I really do appreciate your help with this, as it is not my forte.

        S 2 Replies Last reply Oct 16, 2023, 2:56 AM Reply Quote 0
        • S Offline
          sdetweil @rmcon
          last edited by Oct 16, 2023, 2:56 AM

          @rmcon show me the rest of the upgrade.log

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          R 1 Reply Last reply Oct 16, 2023, 3:02 AM Reply Quote 0
          • S Offline
            sdetweil @rmcon
            last edited by Oct 16, 2023, 2:58 AM

            @rmcon you can use my backup/restore scripts

            https://github.com/sdetweil/MagicMirror-backup-restore

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • R Offline
              rmcon @sdetweil
              last edited by Oct 16, 2023, 3:02 AM

              @sdetweil
              It was in the previous post, about 2/3 of the way down, just below the obnoxiously large text.

              @rmcon said in Error starting after upgrade:

              Upgrade started - Sun Oct 15 18:19:04 PDT 2023
              system is Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
              the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
              user requested to apply changes
              doing test run = false
              Check current Node installation …
              Node currently installed. Checking version number.
              Minimum Node version: v20.8.0
              Installed Node version: v20.8.0
              No Node.js upgrade necessary.
              Check current NPM installation …
              NPM currently installed. Checking version number.
              Minimum npm version: V10.1.0
              Installed npm version: V10.1.0
              No npm upgrade necessary.
              saving custom.css
              remote name = origin
              local version 2.25.0 already same as master 2.25.0
              restoring custom.css
              removing git alias
              Upgrade ended - Sun Oct 15 18:19:08 PDT 2023

              Also, I appreciate the backup and restore info, will look into that before I move ahead.

              S 1 Reply Last reply Oct 16, 2023, 3:12 AM Reply Quote 0
              • S Offline
                sdetweil @rmcon
                last edited by Oct 16, 2023, 3:12 AM

                @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 Oct 16, 2023, 4:36 AM Reply Quote 0
                • R Offline
                  rmcon @sdetweil
                  last edited by Oct 16, 2023, 4:36 AM

                  @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 Oct 16, 2023, 10:50 AM Reply Quote 0
                  • S Offline
                    sdetweil @rmcon
                    last edited by sdetweil Oct 16, 2023, 6:09 PM Oct 16, 2023, 10:50 AM

                    @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 Oct 17, 2023, 12:39 AM Reply Quote 0
                    • R Offline
                      rmcon @sdetweil
                      last edited by Oct 17, 2023, 12:39 AM

                      @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 Oct 17, 2023, 12:45 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 4 / 5
                      4 / 5
                      • First post
                        40/41
                        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