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.

    Mirror broken after v2.22.0 upgrade

    Scheduled Pinned Locked Moved Solved Troubleshooting
    29 Posts 4 Posters 10.7k 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.
    • P Offline
      Peter @sdetweil
      last edited by Peter

      @sdetweil said in Mirror broken after v2.22.0 upgrade:

      @ecirpnaes ok, do this

      cd ~/MagicMirror
      rm -rf node_modules
      npm install --omit=dev --no-audit --no-fund
      

      i just did this on my pi4 after upgrading from 2.21

      Great!
      Solved my problem too!
      Thanks.
      Peter

      S K 2 Replies Last reply Reply Quote 1
      • S Offline
        sdetweil @Peter
        last edited by

        @Peter awesome!

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • K Offline
          Knight @Peter
          last edited by

          @Peter I have done same but in my case only server is running

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

            @Knight are u only running server mode on purpose?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Reply Quote 0
            • K Offline
              Knight
              last edited by

              no, I want to run directly, but it is giving the same error
              /home/pi/MagicMirror/node_modules/electron/dist/electron: symbol lookup error: /home/pi/MagicMirror/node_modules/electron/dist/electron: undefined symbol: gbm_bo_get_modifier .
              So I run server mode

              1 Reply Last reply Reply Quote 0
              • K Offline
                Knight @sdetweil
                last edited by

                @sdetweil
                I’m getting an Electron error on startup.

                Specifically… .node_modules/[…]/dist/electron: symbol lookup error: undefined symbol: gbm_bo_get_modifier
                So I run in server mode

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

                  @Knight can you show output of

                  lsb_release -a

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  K 1 Reply Last reply Reply Quote 0
                  • K Offline
                    Knight @sdetweil
                    last edited by

                    @sdetweil g1.PNG g2.PNG

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

                      @sdetweil
                      My problem is resolved. I upgraded to bullseye and reinstalled the mirror. I used your alternative install script vs cloning manually. It worked flawlessly setting up the mirror and the pm2 autostart. So many thanks for that.

                      I think I spent more time getting the mirror to rotate properly than anything else. File locations have changed for bullseye vs some of the older versions so it took a little hunting around to get things configured.
                      But all good now. Thanks again!

                      1 Reply Last reply Reply Quote 1
                      • E Offline
                        ecirpnaes @Knight
                        last edited by

                        @Knight Your problem is the exact same as what I had.
                        Same error message.
                        Same outdated OS.

                        The fix is to back up your config file(s), update your OS to the latest (bullseye), reinstall the mirror software and any custom modules.

                        Sam has a bunch on scripts in git repo that make this a very simple operation. Took me less than an hour, with the vast majority of that waiting for package files to download.

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

                          @Knight yes sadly the latest electron will not run on 3 year old stretch…

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          K 1 Reply Last reply Reply Quote 0
                          • P Offline
                            Peter
                            last edited by

                            @ecirpnaes said in Mirror broken after v2.22.0 upgrade:

                            @sdetweil
                            My problem is resolved. I upgraded to bullseye and reinstalled the mirror. I used your alternative install script vs cloning manually. It worked flawlessly setting up the mirror and the pm2 autostart. So many thanks for that.

                            I think I spent more time getting the mirror to rotate properly than anything else. File locations have changed for bullseye vs some of the older versions so it took a little hunting around to get things configured.
                            But all good now. Thanks again!

                            Here everything works fine now except rotation of the screen …
                            Somebody have an idea?
                            I tried display_rotate=1 in config.txt; it looks good but as soon as MM starts the screen rotates back to the left.
                            Peter

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

                              @Peter use the preferences, top left on desktop, display rotation

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              P 1 Reply Last reply Reply Quote 0
                              • P Offline
                                Peter @sdetweil
                                last edited by

                                @sdetweil preferences gives the same problem: screens turns back to normal after restarting MM.
                                I am trying custom CSS now (saw it somewhere).
                                Keep you informed.
                                Peter

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

                                  @Peter take your stuff out of config.txt

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  P 1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    Peter @sdetweil
                                    last edited by

                                    @sdetweil did that.
                                    Custom CSS did not do the job!
                                    The search goes on.
                                    Peter

                                    P 1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      Peter @Peter
                                      last edited by

                                      I think it is a problem with V2.22.0
                                      Before updating to this version everything worked fine.
                                      I made a fresh OS and MM install a few weeks ago.
                                      It was running fine until updating to 2.22.0
                                      I hope somebody finds a solution for the screen rotation.
                                      Peter

                                      E 1 Reply Last reply Reply Quote 0
                                      • E Offline
                                        ecirpnaes @Peter
                                        last edited by

                                        @Peter
                                        I followed the instructions on this page.
                                        https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi#enable-the-open-gl-driver-to-decrease-electrons-cpu-usage

                                        They’re a little outdated because they deal with older versions also but the basic information is there.

                                        Essentially, it seems that the Open GL driver is enabled by default now, so I had to:

                                        sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
                                        and added the following line.

                                        @xrandr --output HDMI-1 --rotate right

                                        P 1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          Peter @ecirpnaes
                                          last edited by

                                          @ecirpnaes thanks, will try it tomorrow.
                                          Peter

                                          1 Reply Last reply Reply Quote 0
                                          • K Offline
                                            Knight @sdetweil
                                            last edited by

                                            @sdetweil Thanks, it worked after pi os update

                                            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