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 starts not correct

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    18 Posts 5 Posters 8.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.
    • T Offline
      thedk
      last edited by thedk

      Could somebody help with this fault?

      [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
      /home/pi/.pm2/logs/mm-out.log last 15 lines:
      0|mm       | Initializing new module helper ...
      0|mm       | Module helper loaded: MMM-Remote-Control
      0|mm       | Initializing new module helper ...
      0|mm       | Module helper loaded: MMM-Remote-Control-Repository
      0|mm       | Initializing new module helper ...
      0|mm       | Module helper loaded: MMM-ModuleScheduler
      0|mm       | Initializing new module helper ...
      0|mm       | Module helper loaded: MMM-PIR-Sensor
      0|mm       | No helper found for module: MMM-EyeCandy.
      0|mm       | Whoops! There was an uncaught exception...
      0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|mm       | Whoops! There was an uncaught exception...
      0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      
      /home/pi/.pm2/logs/mm-error.log last 15 lines:
      0|mm       |     at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
      0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:551:3)
      0|mm       |     at Module.require (internal/modules/cjs/loader.js:658:17)
      0|mm       |     at require (internal/modules/cjs/helpers.js:20:18)
      0|mm       | XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
      0|mm       | TypeError: Invalid item
      0|mm       |     at Menu.insert (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu.js:109:11)
      0|mm       |     at Menu.append (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu.js:104:15)
      0|mm       |     at sorted.forEach (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu.js:171:10)
      0|mm       |     at Array.forEach (<anonymous>)
      0|mm       |     at Function.Menu.buildFromTemplate (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu.js:167:10)
      0|mm       |     at App.app.once (/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js:240:21)
      0|mm       |     at Object.onceWrapper (events.js:273:13)
      0|mm       |     at App.emit (events.js:187:15)
      0|mm       | ATTENTION: default value of option force_s3tc_enable overridden by environment.
      
      

      Yesterday i made the update to 2.8.0 and now the mirror starts but i cant see it. I just see the startscreen.
      The Log doesnt make sence to me.

      1 Reply Last reply Reply Quote 0
      • bheplerB Offline
        bhepler Module Developer
        last edited by

        That’s… well, that’s a new one.

        I hate to say it, but I would recommend a reinstall of the MagicMirror framework. This isn’t pleasant but it can be accomplished in about 30 minutes.

        First step: back up your config.js file. Copy it to your /home/pi directory or wherever. Verify that it copied properly.
        Second step: write down a list of all of your installed modules.
        3rd step: Stop the magic mirror framework. Usually this is pm2 stop all.
        4th step: Delete the magic mirror folder. rm -rf /home/pi/MagicMirror
        5th re-clone Magic Mirror manually. git clone https://github.com/MichMich/MagicMirror.git
        6th step: install Magic Mirror (this will take a few minutes):

        cd /home/pi/MagicMirror
        npm install
        

        7th step - Install modules: Change to the modules folder: cd /home/pi/MagicMirror/modules. For each module in your config.js file, find them on GitHub and clone the module. git clone [module url]. Be sure to follow the installation instructions for each module. Some will be easy, some will involve the npm install command, and some will be complex (MMM-FitBit).
        8th Step - copy your config.js from backup to the original location in /home/pi/MagicMirror/config.
        9th step: run the MagicMirror process and see how she rolls: pm2 start MagicMirror.

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

          @bhepler rename the magic mirror folder. Do not delete til u are happily running again

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • T Offline
            thedk
            last edited by

            A reinstall wouldnt be the Problem. It is not the first time i have to do this ^^

            But i really dont unterstand why he wont start anymore. I also had this before the update, forgot to write. From one to the other the Mirror doesnt starts just with the first start of the day. When i reboot or just unplug the Pi, the mirror starts correct

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @thedk
              last edited by

              @thedk said in Mirror starts not correct:

              When i reboot or just unplug the Pi

              I hope you’re shutting down correctly before pulling the plug on the Pi. Your SD card will likely become corrupted. Just something you should think about.

              Create a working config
              How to add modules

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

                @Mykle1 one of my sd cards suddenly became read only… no fix…

                had to buy new sd card

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                Mykle1M 1 Reply Last reply Reply Quote 0
                • T Offline
                  thedk @Mykle1
                  last edited by

                  @Mykle1
                  I just unplug the Pi sometimes since he is not starting anymore
                  I know thats not the best way, it’s my 4th Pi ;)

                  Mykle1M 1 Reply Last reply Reply Quote 0
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @thedk
                    last edited by

                    @thedk said in Mirror starts not correct:

                    I just unplug the Pi sometimes since he is not starting anymore

                    You can’t choose “Shut Down” from the desktop? Once the shut down is complete, THEN pull the plug to power down the Pi

                    Create a working config
                    How to add modules

                    T 1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @sdetweil
                      last edited by

                      @sdetweil said in Mirror starts not correct:

                      one of my sd cards suddenly became read only… no fix…
                      had to buy new sd card

                      Sux! :-(

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        thedk @Mykle1
                        last edited by

                        @Mykle1
                        No i cant. I just can reboot or shutdown the Pi by Terminal.
                        I know i shouldnt unplug the Pi ^^

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          thedk
                          last edited by

                          Jusat am month ago, it starts again, but with an other fault

                          0|mm  | > magicmirror@2.8.0 start /home/pi/MagicMirror
                          0|mm  | > sh run-start.sh
                          0|mm  | /home/pi/MagicMirror/node_modules/electron/dist/electron: relocation error: /home/pi/MagicMirror/node_modules/electron/dist/libffmpeg.so: symbol cnprantf, version GLIBC_2.4 not defined in file libc.so.6 with link time reference
                          0|mm  | npm
                          0|mm  |  ERR! file sh
                          0|mm  | npm ERR! code ELIFECYCLE
                          0|mm  | npm ERR! errno ENOENT
                          0|mm  | npm ERR! syscall spawn
                          0|mm  | npm
                          0|mm  |  ERR! magicmirror@2.8.0 start: `sh run-start.sh`
                          0|mm  | npm ERR! spawn ENOENT
                          0|mm  | npm
                          0|mm  |  ERR!
                          0|mm  | npm ERR! Failed at the magicmirror@2.8.0 start script.
                          0|mm  | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                          0|mm  | npm ERR! A complete log of this run can be found in:
                          0|mm  | npm ERR!     /home/pi/.npm/_logs/2019-08-12T05_54_45_996Z-debug.log
                          

                          I didnt changed anything, the error came from one day to the other an i just see the startscreen and the mirror wont start.

                          Could somebody help?

                          mumblebajM T 2 Replies Last reply Reply Quote 0
                          • mumblebajM Offline
                            mumblebaj Module Developer @thedk
                            last edited by

                            @thedk Have you upgraded your installation of Raspbian before updating the MM? You would also have to check every module folder that has a package.json and run npm install in the module folder. This has generally worked for most of the guys with the same issue as you have.

                            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

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              thedk
                              last edited by

                              I didnt upgrade, i made an complete new installation cause of the issue i had before.

                              Since two days the mirror has no error and everything goes fine, dont know why. I made no upgrade or similar but will do this now. Maybe the issue is gone with that.

                              Thanks for your help.

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

                                @thedk Please remember to check every module folder that has a package.json in it and run npm install in those folders as well.

                                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

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  thedk
                                  last edited by

                                  I will do this.

                                  Thanks.

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    thedk @thedk
                                    last edited by

                                    @thedk said in Mirror starts not correct:

                                    Jusat am month ago, it starts again, but with an other fault

                                    0|mm  | > magicmirror@2.8.0 start /home/pi/MagicMirror
                                    0|mm  | > sh run-start.sh
                                    0|mm  | /home/pi/MagicMirror/node_modules/electron/dist/electron: relocation error: /home/pi/MagicMirror/node_modules/electron/dist/libffmpeg.so: symbol cnprantf, version GLIBC_2.4 not defined in file libc.so.6 with link time reference
                                    0|mm  | npm
                                    0|mm  |  ERR! file sh
                                    0|mm  | npm ERR! code ELIFECYCLE
                                    0|mm  | npm ERR! errno ENOENT
                                    0|mm  | npm ERR! syscall spawn
                                    0|mm  | npm
                                    0|mm  |  ERR! magicmirror@2.8.0 start: `sh run-start.sh`
                                    0|mm  | npm ERR! spawn ENOENT
                                    0|mm  | npm
                                    0|mm  |  ERR!
                                    0|mm  | npm ERR! Failed at the magicmirror@2.8.0 start script.
                                    0|mm  | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                    0|mm  | npm ERR! A complete log of this run can be found in:
                                    0|mm  | npm ERR!     /home/pi/.npm/_logs/2019-08-12T05_54_45_996Z-debug.log
                                    

                                    I didnt changed anything, the error came from one day to the other an i just see the startscreen and the mirror wont start.

                                    Could somebody help?

                                    About a month ago and now again…
                                    Everything is up to date but the issue is still there. Each day when the Mirror starts, the error comes second for second. A reboot solves the problem the mirror is runinng without problems.

                                    Are there people where the Mirror is working für ober two months without issues? ^^

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

                                      @thedk said in Mirror starts not correct:

                                      About a month ago and now again…
                                      Everything is up to date but the issue is still there. Each day when the Mirror starts, the error comes second for second. A reboot solves the problem the mirror is runinng without problems

                                      sorry, I am not quite sure I am understanding…

                                      you start the mirror (with pm2? or manually?), and it fails, with the above message

                                      and then you reboot

                                      and it runs ok…

                                      and runs ok for how long?

                                      i have 5 mirror instances, and all have been running for months without issues like this

                                      did u put updates onto your operating system, or were some applied automatically?
                                      libc.so.6 is a system library

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        thedk
                                        last edited by

                                        The mirror starts every day automatically with pm2 throw a smart plug and the raspberry shuts down throw corn every day.
                                        At the first start, he wont run with the log above, when i reboot the pi he is working without any problems till he shuts down at the end of the day.

                                        All updates were made by me, none automatically.

                                        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