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 errors?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    35 Posts 9 Posters 13.2k Views 10 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.
    • BKeyportB Offline
      BKeyport Module Developer @sdetweil
      last edited by

      @sdetweil

      for my buster install:

      Ran “apply” re-run did bring back PM2 and other tools - No MagicMirror though. Says it’s running, but doesn’t appear.

      Running “force” re-run same result.

      0|MagicMirror  | > magicmirror@2.25.0 start
      0|MagicMirror  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMirror  | [02.10.2023 15:49.10.094] [LOG]   Starting MagicMirror: v2.25.0
      0|MagicMirror  | [02.10.2023 15:49.10.101] [LOG]   Loading config ...
      0|MagicMirror  | [02.10.2023 15:49.10.105] [DEBUG] config template file not exists, no envsubst
      0|MagicMirror  | [02.10.2023 15:49.10.112] [LOG]   Loading module helpers ...
      0|MagicMirror  | [02.10.2023 15:49.10.114] [LOG]   No helper found for module: MMM-MagicMover.
      0|MagicMirror  | [02.10.2023 15:49.10.116] [LOG]   No helper found for module: alert.
      0|MagicMirror  | [02.10.2023 15:49.10.297] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.298] [LOG]   Module helper loaded: calendar
      0|MagicMirror  | [02.10.2023 15:49.10.319] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.320] [LOG]   Module helper loaded: MMM-CommandToNotification
      0|MagicMirror  | [02.10.2023 15:49.10.322] [LOG]   No helper found for module: clock.
      0|MagicMirror  | [02.10.2023 15:49.10.323] [LOG]   No helper found for module: MMM-Worldclock.
      0|MagicMirror  | [02.10.2023 15:49.10.326] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.327] [LOG]   Module helper loaded: MMM-ValuesByNotification
      0|MagicMirror  | [02.10.2023 15:49.10.328] [LOG]   No helper found for module: MMM-Multimonth.
      0|MagicMirror  | [02.10.2023 15:49.10.331] [LOG]   No helper found for module: MMM-CalendarExt3Agenda.
      0|MagicMirror  | [02.10.2023 15:49.10.332] [LOG]   No helper found for module: MMM-CalendarExt3.
      0|MagicMirror  | [02.10.2023 15:49.10.463] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.464] [LOG]   Module helper loaded: newsfeed
      0|MagicMirror  | [02.10.2023 15:49.10.519] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.519] [LOG]   Module helper loaded: MMM-OpenWeatherForecast
      0|MagicMirror  | [02.10.2023 15:49.10.525] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.525] [LOG]   Module helper loaded: updatenotification
      0|MagicMirror  | [02.10.2023 15:49.10.856] [ERROR] (node:7847) UnhandledPromiseRejectionWarning: Error: Cannot find module 'fetch'
      0|MagicMirror  | Require stack:
      0|MagicMirror  | - /home/bkey1970/MagicMirror/modules/MMM-Wallpaper/node_helper.js
      0|MagicMirror  | - /home/bkey1970/MagicMirror/js/app.js
      0|MagicMirror  | - /home/bkey1970/MagicMirror/js/electron.js
      0|MagicMirror  | - /home/bkey1970/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      0|MagicMirror  | - 
      0|MagicMirror  |     at node:internal/modules/cjs/loader:1084:15
      0|MagicMirror  |     at Function.<anonymous> (node:electron/js2c/browser_init:2:117419)
      0|MagicMirror  |     at Module._resolveFilename (/home/bkey1970/MagicMirror/node_modules/module-alias/index.js:49:29)
      0|MagicMirror  |     at node:internal/modules/cjs/loader:929:27
      0|MagicMirror  |     at Function._load (node:electron/js2c/asar_bundle:2:13327)
      0|MagicMirror  |     at Module.require (node:internal/modules/cjs/loader:1150:19)
      0|MagicMirror  |     at require (node:internal/modules/cjs/helpers:110:18)
      0|MagicMirror  |     at Object.<anonymous> (/home/bkey1970/MagicMirror/modules/MMM-Wallpaper/node_helper.js:11:15)
      0|MagicMirror  |     at Module._compile (node:internal/modules/cjs/loader:1271:14)
      0|MagicMirror  |     at Object..js (node:internal/modules/cjs/loader:1326:10)
      0|MagicMirror  |     at Module.load (node:internal/modules/cjs/loader:1126:32)
      0|MagicMirror  |     at node:internal/modules/cjs/loader:967:12
      0|MagicMirror  |     at Function._load (node:electron/js2c/asar_bundle:2:13327)
      0|MagicMirror  |     at Module.require (node:internal/modules/cjs/loader:1150:19)
      0|MagicMirror  |     at require (node:internal/modules/cjs/helpers:110:18)
      0|MagicMirror  |     at loadModule (/home/bkey1970/MagicMirror/js/app.js:180:19)
      0|MagicMirror  | (Use `electron --trace-warnings ...` to show where the warning was created)
      0|MagicMirror  | [02.10.2023 15:49.10.857] [ERROR] (node:7847) 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)
      0|MagicMirror  | [7847:1002/154911.190579: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|MagicMirror  | MESA-LOADER: failed to retrieve device information
      0|MagicMirror  | MESA-LOADER: failed to retrieve device information
      0|MagicMirror  | MESA-LOADER: failed to retrieve device information
      0|MagicMirror  | MESA-LOADER: failed to open kms_swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
      0|MagicMirror  | failed to load driver: kms_swrast
      0|MagicMirror  | MESA-LOADER: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
      0|MagicMirror  | failed to load swrast driver
      

      The "E" in "Javascript" stands for "Easy"

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

        @sdetweil now im getting this when I start it up? Any thoughts?

        macserver@EDITHs-MacBook-Pro magicmirror % npm run server
        evalmachine.<anonymous>:42
        } = primordials;
            ^
        
        ReferenceError: primordials is not defined
            at evalmachine.<anonymous>:42:5
            at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
            at Module._compile (node:internal/modules/cjs/loader:1254:14)
            at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
            at Module.load (node:internal/modules/cjs/loader:1117:32)
            at Module._load (node:internal/modules/cjs/loader:958:12)
            at Module.require (node:internal/modules/cjs/loader:1141:19)
            at require (node:internal/modules/cjs/helpers:110:18)
            at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:3:27)
            at Module._compile (node:internal/modules/cjs/loader:1254:14)
        
        Node.js v18.15.0
        macserver@EDITHs-MacBook-Pro magicmirror % 
        

        Tried running the node upgrade but that seem to fail too?

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

          @croc_dad72 did u run the node20_install.sh script? by itself?

          I have to go test it again

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S BerkSmash1984B 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @sdetweil
            last edited by

            @croc_dad72 @BKeyport and any others… I screwed up for the non-buster systems…

            please try my scripts again… they should FIX the problems encountered…

            I remove the current node and then install the correct… 18 for buster, 20 for bullseye

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            BKeyportB 1 Reply Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer @sdetweil
              last edited by

              @sdetweil It does seem to work again on latest.

              The "E" in "Javascript" stands for "Easy"

              1 Reply Last reply Reply Quote 0
              • S Offline
                SuperSchenk
                last edited by

                I also had this problem, using Buster on a Raspberry pi 3b.

                It started with my npm being to old, unable to upgrade because my node was to old.
                Installing the newest node gave me the `GLIBCXX_3.4.26’ not found (required by node) error.

                The solution for me was installing the LTS version of node using nvm.

                nvm install 'lts/*' --reinstall-packages-from=current
                nvm alias default 18
                

                this uses node version 18.

                after that I could upgrade npm

                nvm install-latest-npm
                

                and with all this in place the upgrade of magic mirror worked.

                Hope this helps

                1 Reply Last reply Reply Quote 0
                • BerkSmash1984B Offline
                  BerkSmash1984 @sdetweil
                  last edited by BerkSmash1984

                  @sdetweil I tried to run the upgrade script on my RPI 4B running Bullseye and it hosed my MM. During the install, I see this:

                  76423370-fda2-4559-a897-b4f743221236-image.png

                  It appears to have removed/partially remove npm altogether:

                  5e3b02c7-4a6f-443f-aeb3-055cf0851db6-image.png

                  Any thoughts?

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

                    @BKeyport said in Upgrade errors?:

                    Cannot find module ‘fetch’

                    we removed this in 2.25

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

                    or, you can comment out the require in the module node_helper.js

                    as fetch is built in in 2.18 and up

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @BerkSmash1984 I see 64bit… let me look

                      seems the process is different there… darn

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      mumblebajM 1 Reply Last reply Reply Quote 0
                      • mumblebajM Offline
                        mumblebaj Module Developer @sdetweil
                        last edited by mumblebaj

                        @sdetweil Can you help me fix my WSL? I seem to be having and issue with electron and a missing lib. I have emailed you the install.log as well.

                        d54de45a-bb9c-4c18-9751-9e4b2e73e80b-image.png

                        Check out my modules at: https://github.com/mumblebaj?tab=repositories
                        Check my blog-post: https://mumblebaj.xyz/
                        Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

                          @mumblebaj maybe
                          https://github.com/snobu/destreamer/issues/216

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          mumblebajM 1 Reply Last reply Reply Quote 0
                          • mumblebajM Offline
                            mumblebaj Module Developer @sdetweil
                            last edited by

                            @sdetweil Thanks Sam. A bunch of missing libs but all working again.

                            Now to add my modules I had running on the dev machine. The joy. :-)

                            Check out my modules at: https://github.com/mumblebaj?tab=repositories
                            Check my blog-post: https://mumblebaj.xyz/
                            Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

                              @mumblebaj always backup

                              I have one that makes a small image
                              https://github.com/sdetweil/MagicMirror-backup-restore

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              mumblebajM 1 Reply Last reply Reply Quote 0
                              • mumblebajM Offline
                                mumblebaj Module Developer @sdetweil
                                last edited by

                                @sdetweil I use your backup scripts on my main mirror. My dev machine I did not backup. Will teach me for next time. :crying_face:

                                Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                Check my blog-post: https://mumblebaj.xyz/
                                Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                                S 1 Reply Last reply Reply Quote 0
                                • BKeyportB Offline
                                  BKeyport Module Developer @sdetweil
                                  last edited by

                                  @sdetweil turns out there was an update to MMM-Wallpaper that missed due to all the bugs in upgrading. 😉

                                  The "E" in "Javascript" stands for "Easy"

                                  S kaiK 2 Replies Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @BKeyport
                                    last edited by

                                    @BKeyport yes I saw that too

                                    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 @mumblebaj
                                      last edited by

                                      @mumblebaj My scripts don’t depend on node or anything else they’re all bash scripts. So if you haven’t deleted anything you can still run the back up there and be able to restore it later

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • kaiK Offline
                                        kai @BKeyport
                                        last edited by

                                        @BKeyport said in Upgrade errors?:

                                        @sdetweil turns out there was an update to MMM-Wallpaper that missed due to all the bugs in upgrading. 😉

                                        …just in case this might be interesting for anyone: I had the same problems on my Raspberry Pi 4 Model B (Rev 1.2) with buster (armv71).

                                        • node 20 gave me the `GLIBCXX_3.4.26’ not found (required by node) error
                                        • I had the “failed to load swrast driver”

                                        I checked my modules, and the solution for my MM was (thanks to @sdetweil and @BKeyport here):

                                        • installing node 18 (I did it manually like mentioned here)
                                        • removing “DWD Warn Weather” (which caused the swrast error) from config.js

                                        Now MagicMirror v2.25.0 is up and running! :beaming_face_with_smiling_eyes:

                                        Thank you for all your effort and your tireless support!
                                        May the code be with you.
                                        -kai

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          JohnGalt
                                          last edited by

                                          @sdetweil - I’m not sure this the correct topic for my error, so if not we can move it - but I am having the issues described above, but on an initial install [as opposed to an upgrade]. This is on a freshly created VirtualBox VM using the current RaspbianOS version of Debian, using Sam’s install script.

                                          After a long series of lines indicating it was setting up various node packages, the install.log file ends with a message that node failed to install:

                                          added 1 package, and audited 2 packages in 1s
                                          
                                          found 0 vulnerabilities
                                          installing on bullseye
                                          installing correct version of node and npm, please wait
                                            installing : node-v20.8.0
                                                 mkdir : /usr/local/n/versions/node/20.8.0
                                                 fetch : https://nodejs.org/dist/v20.8.0/node-v20.8.0-linux-x64.tar.xz
                                               copying : node/20.8.0
                                             installed :  (with npm )
                                          
                                          Note: the node command changed location and the old location may be remembered in your current shell.
                                                   old : /usr/bin/node
                                                   new : /usr/local/bin/node
                                          If "node --version" shows the old version then start a new shell, or reset the location hash with:
                                          hash -r  (for bash, zsh, ash, dash, and ksh)
                                          rehash   (for csh and tcsh)
                                          node failed to install, exiting
                                          

                                          Thoughts??

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

                                            @JohnGalt can u send me the install.log file…

                                            I have a vm of raspi x86 as well…

                                            this same userid at gmail… thx

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • 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