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.

    `GLIBCXX_3.4.26' not found (required by node)

    Scheduled Pinned Locked Moved Solved Troubleshooting
    24 Posts 4 Posters 27.5k Views 4 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 Do not disturb
      sdetweil @matt216
      last edited by

      @matt216 pm2 stop all

      pm2’s JOB is to KEEP the monitored apps running… you kill it, and then pm2 restarts…

      pm2 status

      will show you all the things being managed

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        matt216 @sdetweil
        last edited by

        @sdetweil Ah but any pm2 command gives me the error `GLIBCXX_3.4.26’ not found I originally mentioned.

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @matt216
          last edited by

          @matt216 reboot… pm2 will fail to launch then upgrade again …

          then pm2 should work

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            matt216 @sdetweil
            last edited by

            @sdetweil Unfortunately not. After reboot 2 electron processes preventing the upgrade-script from completing and pm2 commands fail without GLIBCXX version.

            Appreciate the support here.

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @matt216
              last edited by

              @matt216 ok, run this command string all one copy/paste and enter

              sudo apt-get purge nodejs -y &&\
              sudo rm -r /etc/apt/sources.list.d/nodesource.list &&\
              sudo rm -r /etc/apt/keyrings/nodesource.gpg
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                matt216 @sdetweil
                last edited by

                @sdetweil Progress, thank you. After purging and removing those files, I ran the install script. It completes, but during the npm install step I notice:

                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)
                

                The script completes (but doesn’t give a npm version number, interestingly). I rebooted the pi and the mirror doesn’t start and pm2 command is not found.

                S 1 Reply Last reply Reply Quote 1
                • S Do not disturb
                  sdetweil @matt216
                  last edited by

                  @matt216 can u show me the output of

                  lsb_release -a
                  uname -a

                  and you ran MY install script, correct?

                  send me ~/install.log
                  my same userid at gmail

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    matt216 @sdetweil
                    last edited by

                    @sdetweil Your upgrade-script.sh yes, with force.

                    pi@magicmirror:~ $ lsb_release -a
                    No LSB modules are available.
                    Distributor ID: Raspbian
                    Description: Raspbian GNU/Linux 10 (buster)
                    Release: 10
                    Codename: buster

                    pi@magicmirror:~ $ uname -a
                    Linux magicmirror 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux

                    No install.log in my home directory, sorry…

                    S 1 Reply Last reply Reply Quote 1
                    • S Do not disturb
                      sdetweil @matt216
                      last edited by sdetweil

                      @matt216 ok, can you copy/paste, and execute this

                      bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/node20_install.sh)”

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      M 2 Replies Last reply Reply Quote 0
                      • M Offline
                        matt216 @sdetweil
                        last edited by

                        @sdetweil Initially no such file or directory response so I removed the two sudo rm -r lines and ran again. Looked to complete successfully.
                        Rebooted.
                        Same state - mirror doesn’t start, pm2 commands not found.

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          matt216 @sdetweil
                          last edited by

                          @sdetweil I need to pick the boy up from nursery now. Will return tomorrow. Thanks loads for the support.
                          Matt

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            matt216
                            last edited by

                            Going for a full fresh install. Did some googling on GLIBCXX and it looks terrifying. Seems particular to raspberry pis. It seems quite fundamental to the OS and people don’t recommend tinkering with it at all. Only advice out there seems to be “rebuild”.

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @matt216
                              last edited by

                              @matt216 yes, it’s a tough problem .

                              backup your mm config
                              https://github.com/sdetweil/MagicMirror-backup-restore

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              M 1 Reply Last reply Reply Quote 0
                              • M Offline
                                matt216 @sdetweil
                                last edited by

                                @sdetweil config.js is backed-up regularly to an NFS mount from another machine. Will be a good recovery test :) Would be handy to figure out a way to restore all the modules.

                                Thanks for your assistance

                                S 1 Reply Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @matt216
                                  last edited by sdetweil

                                  @matt216 try my backup it saves the config the custom CSS and the URLs on GitHub of all of the modules you have installed

                                  then on restore it uses the URLs to download the modules

                                  check it out You can run them from GitHub without downloading onto your machine

                                  puts everything into a little folder MM _ backup just three files

                                  uses git tags to version the backup, and can push the GitHub if you want when you back up

                                  and will save the extra files found in any module folder like Google or Spotify token files etc

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  M 1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    matt216 @sdetweil
                                    last edited by

                                    @sdetweil beautiful!

                                    1 Reply Last reply Reply Quote 0
                                    • N Offline
                                      nnvv3344
                                      last edited by

                                      I was having this problem and could not figure it out. Here is the fix that worked right away for me…

                                      I uninstalled the version of Node that I had (which was 20) and I went back to install node js 18. It works after doing this

                                      W 1 Reply Last reply Reply Quote 1
                                      • W Offline
                                        wyovino @nnvv3344
                                        last edited by

                                        @nnvv3344 Unfortunately, the module MMM-Jast requires Node above 18, so I can do that.

                                        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
                                        • 1 / 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