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.

    MM won't start after upgrading to 2.29.0

    Scheduled Pinned Locked Moved Solved Troubleshooting
    15 Posts 2 Posters 2.9k Views 3 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.
    • J Offline
      JohnGalt
      last edited by

      @sdetweil and others – I ran Sam Detweil’s update script. Trial mode didn’t show anything worrying, so I re-ran it and applied the changes. I was running pm2 logs in another terminal window and saw it stall…

      I’ve rebooted the machine, and it is stuck in a loop now. What looks like the relevant section of the logs is pasted below. This repeats over and over…

      @sdetweil - I sent you the upgrade log by email.

      0|MagicMirror  | [2024-10-29 15:16:06.807] [LOG]   Starting node helper for: newsfeed
      0|MagicMirror  | [2024-10-29 15:16:06.807] [LOG]   Connecting socket for: MMM-DynamicWeather
      0|MagicMirror  | [2024-10-29 15:16:06.808] [LOG]   Sockets connected & modules started ...
      0|MagicMirror  | Authorization required, but no authorization protocol specified
      0|MagicMirror  | [123146:1029/151606.810294:ERROR:ozone_platform_x11.cc(245)] Missing X server or $DISPLAY
      0|MagicMirror  | [123146:1029/151606.810429:ERROR:env.cc(258)] The platform failed to initialize.  Exiting.
      0|MagicMirror  | /home/al/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      PM2            | App [MagicMirror:0] exited with code [1] via signal [SIGINT]
      PM2            | App [MagicMirror:0] starting in -fork mode-
      PM2            | App [MagicMirror:0] online
      0|MagicMirror  | > magicmirror@2.29.0 start
      0|MagicMirror  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMirror  | [2024-10-29 15:16:13.638] [LOG]   Starting MagicMirror: v2.29.0
      0|MagicMirror  | [2024-10-29 15:16:13.664] [LOG]   Loading config ...
      0|MagicMirror  | [2024-10-29 15:16:13.666] [LOG]   config template file not exists, no envsubst
      0|MagicMirror  | [2024-10-29 15:16:14.116] [INFO]  Checking config file /home/al/MagicMirror/config/config.js ...
      0|MagicMirror  | [2024-10-29 15:16:14.230] [INFO]  Your configuration file doesn't contain syntax errors :)
      0|MagicMirror  | [2024-10-29 15:16:14.231] [INFO]  Checking modules structure configuration ...
      0|MagicMirror  | [2024-10-29 15:16:14.329] [INFO]  Your modules structure configuration doesn't contain errors :)
      0|MagicMirror  | [2024-10-29 15:16:14.331] [LOG]   Loading module helpers ...
      0|MagicMirro
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @JohnGalt
        last edited by sdetweil

        @JohnGalt can you show me more of the output? after starting Application,
        there is a dump of system data
        like this

        2024-10-29 17:55:20.819] [INFO]  System information:
        ### SYSTEM:   manufacturer: ; model: ; virtual: false
        ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.51+rpt-rpi-v8
        ### VERSIONS: electron: 31.7.3; used node: 20.18.0; installed node: 20.9.0; npm: 10.1.0; pm2: 5.4.2
        ### OTHER:    timeZone: America/Chicago; ELECTRON_ENABLE_GPU: undefined 
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S J 3 Replies Last reply Reply Quote 0
        • S Offline
          sdetweil @sdetweil
          last edited by sdetweil

          @JohnGalt this is a pm2 problem…

          SOMEtimes we can fix it like this

          pm2 stop all
          pm2 delete MagicMirror
          pm2 save -f
          sudo npm remove pm2 -g                     # I edited a typo here
          

          then run my fixuppm2.sh script
          (same place as my install script, near the bottom of the page

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil – I can do that. Would you want it here or email?

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

              @sdetweil – I sent you an email with extended pm2 logs output.

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

                @JohnGalt did you do this

                https://forum.magicmirror.builders/topic/19089/mm-won-t-start-after-upgrading-to-2-29-0

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                J 1 Reply Last reply Reply Quote 0
                • S sdetweil referenced this topic on
                • J Offline
                  JohnGalt @sdetweil
                  last edited by

                  @sdetweil – I wasn’t sure you [still] wanted me to do that before you had a chance to see the extended pm2 logs outputs. I will do it now and get back to you.

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

                    @JohnGalt the log show me the wayland/pm2 confusion

                    i opened a pm2 issue about this back in the early spring

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil – I did the pm2 work you asked for, and still have the same results.

                      As this is a dev instance it’s not as critical as it might be for the regular [production] instance we use to get actual information. Am I better off just re-installing Magic Mirror from scratch on this machine?

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

                        @JohnGalt its not MagicMirror its pm2 talking to the display manager

                        you could use raspi-config to set the display manager back to x11

                        without doing anything else

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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

                          @sdetweil – Humm, I see what you mean. unfortunately this isn’t running on an actual Raspberry Pi so I don’t have that utility available to me.

                          It’s a VM running Ubuntu 23.10. If you can point me in the right direction, I’d be willing to give it a shot.

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

                            @JohnGalt ok, dont know how to fix that

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            J 2 Replies Last reply Reply Quote 0
                            • J Offline
                              JohnGalt @sdetweil
                              last edited by

                              @sdetweil – OK, thanks for the effort!

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

                                @sdetweil – I was able to search out a fix.

                                For the benefit of anyone else running Wayland and wanting or needing to switch back to x11, see: https://linuxconfig.org/how-to-use-x-instead-of-wayland-on-ubuntu-22-04 where you are asked to edit one line in a file, then reboot.

                                sudo nano /etc/gdm3/custom.conf
                                

                                I will mark this as solved now.

                                S 1 Reply Last reply Reply Quote 1
                                • J JohnGalt has marked this topic as solved on
                                • S Offline
                                  sdetweil @JohnGalt
                                  last edited by

                                  @JohnGalt fabulous!!

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