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

Upgrade errors?

Scheduled Pinned Locked Moved Solved Troubleshooting
35 Posts 9 Posters 6.8k 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.
  • B Offline
    BKeyport Module Developer
    last edited by Oct 1, 2023, 11:24 PM

    @sdetweil – Apparently, script upgrade broke node on my system - can you help me figure how how to fix?

    Thanks!

    On run:

    node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
    

    upgrade output:

    doing test run = false
    update log will be in /home/bkey1970/MagicMirror/installers/upgrade.log
    Check current Node installation ...
    Node currently installed. Checking version number.
    Minimum Node version: v20.8.0
    Installed Node version: v16.20.2
    Node should be upgraded.
    Installing Node.js ...
    gpg: WARNING: unsafe ownership on homedir '/home/bkey1970/.gnupg'
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be upgraded:
      nodejs
    1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 27.0 MB of archives.
    After this operation, 63.7 MB of additional disk space will be used.
    Get:1 https://deb.nodesource.com/node_20.x buster/main armhf nodejs armhf 20.5.1-deb-1nodesource1 [27.0 MB]
    Fetched 27.0 MB in 7s (4,153 kB/s)                                                                                                                                                                       
    apt-listchanges: Reading changelogs...
    (Reading database ... 103684 files and directories currently installed.)
    Preparing to unpack .../nodejs_20.5.1-deb-1nodesource1_armhf.deb ...
    Unpacking nodejs (20.5.1-deb-1nodesource1) over (16.20.2-deb-1nodesource1) ...
    Setting up nodejs (20.5.1-deb-1nodesource1) ...
    Processing triggers for man-db (2.8.5-2) ...
    node version is node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
    node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
    Node.js installation Done! version=
    node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
    node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
    node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
    Check current NPM installation ...
    NPM currently installed. Checking version number.
    node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
    Minimum npm version: V10.1.0
    Installed npm version: V
    npm should be upgraded.
    Installing npm ...
    E: Unable to correct problems, you have held broken packages.
    node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
    node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
    npm installation Done! version=V
    
    apply: line 318: [: -ge: unary operator expected
    saving custom.css
    upgrading from version 2.24.0 to 2.25.0
    fetching latest revisions
    updating MagicMirror runtime, please wait
    apply: line 558: [: -ge: unary operator expected
    node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
    Checking for modules with removed libraries
    node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
    no modules found needing npm refresh
    restoring custom.css
    

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

    B 1 Reply Last reply Oct 2, 2023, 2:51 AM Reply Quote 0
    • K Offline
      kai @BKeyport
      last edited by Oct 4, 2023, 4:45 AM

      @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
      • B Offline
        BKeyport Module Developer @BKeyport
        last edited by Oct 2, 2023, 2:51 AM

        Nevermind. It appears required dependencies aren’t being updated to previous OSes. Time to switch away from Raspbian.

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

        S 1 Reply Last reply Oct 2, 2023, 3:06 AM Reply Quote 0
        • S Away
          sdetweil @BKeyport
          last edited by Oct 2, 2023, 3:06 AM

          @BKeyport thanks, I’ll have to check this in the morning, and see how to do the c++ runtime upgrade too

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B 1 Reply Last reply Oct 2, 2023, 4:47 AM Reply Quote 0
          • B Offline
            BKeyport Module Developer @sdetweil
            last edited by Oct 2, 2023, 4:47 AM

            @sdetweil It appears node and/or NPM is the problem - some of their newer dependencies aren’t compatible with older Raspbian installs, which will make it impossible for me to run what I want on the mirror.

            Losing OMXPlayer murders my setup - so I’m working on something else.

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

            S 2 Replies Last reply Oct 2, 2023, 12:37 PM Reply Quote 0
            • S Away
              sdetweil @BKeyport
              last edited by Oct 2, 2023, 12:37 PM

              @BKeyport yeh, looks like buster/legacy is too down level for node 20. let’s try 18

              sudo npm  i n
              sudo n i 18
              

              node -v should show node 18

              then

              cd ~/MagicMirror
              rm -rf node_modules
              npm  run install-mm
              

              please advise

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 1 Reply Last reply Oct 2, 2023, 12:56 PM Reply Quote 0
              • C Offline
                croc_dad72 @sdetweil
                last edited by Oct 2, 2023, 12:56 PM

                @sdetweil said in Upgrade errors?:

                cd ~/MagicMirror
                rm -rf node_modules
                npm run install-mm

                The update seem to have crashed my Mirror, I applied these fixes but nothing will run here is my start up logs, what am I missing? Any help would be much appreciated! Thanks.

                macserver@EDITHs-MacBook-Pro MagicMirror % npm run server
                
                > magicmirror@2.25.0 server
                > node ./serveronly
                
                [02.10.2023 07:51.49.432] [LOG]   Starting MagicMirror: v2.25.0
                [02.10.2023 07:51.49.436] [LOG]   Loading config ...
                [02.10.2023 07:51.49.438] [DEBUG] config template file not exists, no envsubst
                [02.10.2023 07:51.49.442] [LOG]   Loading module helpers ...
                [02.10.2023 07:51.49.443] [LOG]   No helper found for module: alert.
                [02.10.2023 07:51.49.449] [LOG]   Initializing new module helper ...
                [02.10.2023 07:51.49.450] [LOG]   Module helper loaded: updatenotification
                [02.10.2023 07:51.49.451] [LOG]   No helper found for module: clock.
                [02.10.2023 07:51.49.676] [LOG]   Initializing new module helper ...
                [02.10.2023 07:51.49.676] [LOG]   Module helper loaded: MMM-quote-of-the-day
                [02.10.2023 07:51.49.765] [ERROR] Whoops! There was an uncaught exception...
                [02.10.2023 07:51.49.770] [ERROR] Error: Cannot find module 'fetch'
                Require stack:
                - /Users/macserver/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js
                - /Users/macserver/MagicMirror/modules/MMM-MyCalendar/node_helper.js
                - /Users/macserver/MagicMirror/js/app.js
                - /Users/macserver/MagicMirror/serveronly/index.js
                    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
                    at Module._resolveFilename (/Users/macserver/MagicMirror/node_modules/module-alias/index.js:49:29)
                    at Module._load (node:internal/modules/cjs/loader:920:27)
                    at Module.require (node:internal/modules/cjs/loader:1141:19)
                    at require (node:internal/modules/cjs/helpers:110:18)
                    at Object.<anonymous> (/Users/macserver/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js:11:15)
                    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> (/Users/macserver/MagicMirror/modules/MMM-MyCalendar/node_helper.js:8:25)
                    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) {
                  code: 'MODULE_NOT_FOUND',
                  requireStack: [
                    '/Users/macserver/MagicMirror/modules/MMM-MyCalendar/calendarfetcher.js',
                    '/Users/macserver/MagicMirror/modules/MMM-MyCalendar/node_helper.js',
                    '/Users/macserver/MagicMirror/js/app.js',
                    '/Users/macserver/MagicMirror/serveronly/index.js'
                  ]
                }
                [02.10.2023 07:51.49.771] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                [02.10.2023 07:51.49.771] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                macserver@EDITHs-MacBook-Pro MagicMirror % 
                
                
                S K 2 Replies Last reply Oct 2, 2023, 1:59 PM Reply Quote 0
                • S Away
                  sdetweil @croc_dad72
                  last edited by Oct 2, 2023, 1:59 PM

                  @croc_dad72 said in Upgrade errors?:

                  Error: Cannot find module ‘fetch’

                  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

                  C 1 Reply Last reply Oct 2, 2023, 11:46 PM Reply Quote 0
                  • S Away
                    sdetweil @BKeyport
                    last edited by Oct 2, 2023, 2:05 PM

                    @BKeyport also try the new temp node20 install script, listed at the top of my scripts page

                    https://github.com/sdetweil/MagicMirror_scripts

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      karsten13 @croc_dad72
                      last edited by Oct 2, 2023, 3:06 PM

                      @croc_dad72

                      looks like you are on deprecated node version, run node -v which must be >= v18

                      M 1 Reply Last reply Oct 2, 2023, 4:19 PM Reply Quote 0
                      • M Offline
                        mumblebaj Module Developer @karsten13
                        last edited by Oct 2, 2023, 4:19 PM

                        @karsten13 Upgrade just broke my dev machine. :-) Guess I am not upgrading my mirror. Had to wipe my whole WSL Ubuntu install. Have to start from scratch with my dev machine. Not a great upgrade. My prod mirror is still a PI 3B running buster. :confounded_face:

                        Check out my modules at: https://github.com/mumblebaj?tab=repositories

                        S 1 Reply Last reply Oct 2, 2023, 4:38 PM Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 1 / 4
                        1 / 4
                        • First post
                          9/35
                          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