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.

    my mirror freezes!

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    98 Posts 5 Posters 36.8k 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.
    • M Offline
      Manu85
      last edited by

      Hello everyone, I am French and I use a translator to post. sorry for errors syntaxes …
      I mounted a magic mirror, thanks to all of you and I thank the developers and all the people who work for free for this success.
      on my mirror I have a few modules, calendar, time, date, weather, soccer results and news, when my mirror works after 2 or 3 hours the modules no longer react the watch stops, I changed my pi because I thought that the pi2 could not support the load I bought a pi3 I redid a complete installation on a new sd card I changed the power supply and I always have the same problem … for work around this problem I set up an automatic reboot every hour, it works but it’s not the best, I would like to know if you could help me?
      I hope I posted in the right place
      thank you all again

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

        @Manu85 can u connect to the mirror via ssh from your pc? if so, when the system doesn’t look active can u get in?
        (is the system hung, or just MM?)

        if just MM, then start my looking at the console log (in pm2 that is shown with

        pm2 logs --lines=??? (some number, default is 15)

        also, u may need to run MM with the MMM-Logging module installed to get traces from the UI components.

        I just finished about 6 months of debug on a similar problem, to discover an out of memory problem in one of my modules… MM just hung.

        pouvez-vous vous connecter au miroir via ssh depuis votre PC? si oui, quand le système ne semble pas actif, pouvez-vous entrer?
        (le système est-il bloqué, ou tout simplement MM?)

        si seulement MM, alors commencez à regarder le journal de la console (en pm2 qui est montré avec

        pm2 logs --lines = ??? (un certain nombre, la valeur par défaut est 15)

        en outre, vous devrez peut-être exécuter MM avec le module de journalisation MMM installé pour obtenir des traces des composants de l’interface utilisateur.

        Je viens de terminer environ 6 mois de débogage sur un problème similaire, pour découvrir un problème de mémoire insuffisante dans l’un de mes modules … MM vient de se bloquer.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil
          thank you for your response I just launched the command line that you recommended and the answer is as follows:

          pi@raspberrypi:~ $ pm2 logs --lines = ???
          [TAILING] Tailing last 15 lines for [???] process (change the value with --lines option)

          what should i do please?

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

            @Manu85 do

            pm2 logs --lines=100
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              I passed the command line and I have several lines, do you want me to copy them on my answer?

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

                @Manu85 you are looking for things that look like trouble

                vous cherchez des choses qui ressemblent à des ennuis

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  I have several lines that look like errors, I put you the copy of all the lines, I tried to hide the confidential data !!!

                  /home/pi/.pm2/logs/MagicMirror-error.log last 100 lines:
                  0|MagicMir | npm ERR! code ELIFECYCLE
                  0|MagicMir | npm ERR! errno 1
                  0|MagicMir | npm ERR! magicmirror@2.11.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
                  0|MagicMir | npm ERR! Exit status 1
                  0|MagicMir | npm ERR!
                  0|MagicMir | npm ERR! Failed at the magicmirror@2.11.0 start script.
                  0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                  0|MagicMir |
                  0|MagicMir | npm ERR! A complete log of this run can be found in:
                  0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2020-04-05T07_00_02_234Z-debug.log
                  0|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
                  0|MagicMir | [2020-04-05 09:00:36.357] [ERROR]  (node:954) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
                  0|MagicMir | [2020-04-05 09:57:55.156] [ERROR]  Calendar Error. Could not fetch calendar:  http://p59-calendars.icloud.com/published/2/2uR1boEvTP2Z11yC3RAkgMluEyI6FkQslrByha_3OaasENn6SQAtTWIXXXXXXXXXXXXXXXE_Pic { Error: connect ETIMEDOUT 17.248.144.201:443
                  0|MagicMir |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1161:14)
                  0|MagicMir |   errno: 'ETIMEDOUT',
                  0|MagicMir |   code: 'ETIMEDOUT',
                  0|MagicMir |   syscall: 'connect',
                  0|MagicMir |   address: '17.XXXXXXX',
                  0|MagicMir |   port: 443 }
                  0|MagicMir | npm ERR! code ELIFECYCLE
                  0|MagicMir | npm ERR! errno 1
                  0|MagicMir | npm ERR! magicmirror@2.11.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
                  0|MagicMir | npm ERR! Exit status 1
                  0|MagicMir | npm ERR!
                  0|MagicMir | npm ERR! Failed at the magicmirror@2.11.0 start script.
                  0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                  0|MagicMir |
                  0|MagicMir | npm ERR! A complete log of this run can be found in:
                  0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2020-04-05T08_00_01_545Z-debug.log
                  0|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
                  0|MagicMir | [2020-04-05 10:00:36.536] [ERROR]  (node:978) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
                  0|MagicMir | npm ERR! code ELIFECYCLE
                  0|MagicMir | npm ERR! errno 1
                  0|MagicMir | npm ERR! magicmirror@2.11.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
                  0|MagicMir | npm ERR! Exit status 1
                  0|MagicMir | npm ERR!
                  0|MagicMir | npm ERR! Failed at the magicmirror@2.11.0 start script.
                  0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                  0|MagicMir |
                  0|MagicMir | npm ERR! A complete log of this run can be found in:
                  0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2020-04-05T09_00_02_026Z-debug.log
                  0|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
                  0|MagicMir | [2020-04-05 11:00:37.769] [ERROR]  (node:1007) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
                  0|MagicMir | [2020-04-05 11:30:42.125] [ERROR]  Calendar Error. Could not fetch calendar:  http://p59-calendars.icloud.com/published/2/2uR1boEvTP2Z11yC3RAkgMluEyI6FkQslrByha_3OaasENnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_Pic { Error: connect EHOSTUNREACH 17XXXXXXXXXXX:80
                  0|MagicMir |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1161:14)
                  0|MagicMir |   errno: 'EHOSTUNREACH',
                  0|MagicMir |   code: 'EHOSTUNREACH',
                  0|MagicMir |   syscall: 'connect',
                  0|MagicMir |   address: 'XXXXXXXXXXXXX1',
                  0|MagicMir |   port: 80 }
                  0|MagicMir | npm ERR! code ELIFECYCLE
                  0|MagicMir | npm ERR! errno 1
                  0|MagicMir | npm ERR! magicmirror@2.11.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
                  0|MagicMir | npm ERR! Exit status 1
                  0|MagicMir | npm ERR!
                  0|MagicMir | npm ERR! Failed at the magicmirror@2.11.0 start script.
                  0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                  0|MagicMir |
                  0|MagicMir | npm ERR! A complete log of this run can be found in:
                  0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2020-04-05T10_00_02_273Z-debug.log
                  0|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
                  0|MagicMir | [2020-04-05 12:00:36.374] [ERROR]  (node:904) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
                  0|MagicMir | [2020-04-05 12:17:53.271] [ERROR]  Calendar Error. Could not fetch calendar:  http://p59-calendars.icloud.com/published/2/2uR1boEvTP2Z11yC3RAkgMluEyI6FkQslrByha_3OaasENn6SQAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXK6-6HzuFLzdeE_Pic { Error: connect ETIMEDOUT 17.248.144.201:80
                  0|MagicMir |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1161:14)
                  0|MagicMir |   errno: 'ETIMEDOUT',
                  0|MagicMir |   code: 'ETIMEDOUT',
                  0|MagicMir |   syscall: 'connect',
                  0|MagicMir |   address: '17.XXXXXXXXXX1',
                  0|MagicMir |   port: 80 }
                  0|MagicMir | [2020-04-05 12:27:52.308] [ERROR]  Calendar Error. Could not fetch calendar:  http://p59-calendars.icloud.com/published/2/2uR1boEvTP2Z11yC3RAkgMluEyI6FkQslrByha_3OaasENn6SQAtTWIYmfP6XXXXXXXXXXXXXXXXXXXXXXXXXXeE_Pic { Error: connect ETIMEDOUT 17.248.144.176:80
                  0|MagicMir |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1161:14)
                  0|MagicMir |   errno: 'ETIMEDOUT',
                  0|MagicMir |   code: 'ETIMEDOUT',
                  0|MagicMir |   syscall: 'connect',
                  0|MagicMir |   address: 'XXXXXXXXXXXX6',
                  0|MagicMir |   port: 80 }
                  0|MagicMir | npm ERR! code ELIFECYCLE
                  0|MagicMir | npm ERR! errno 1
                  0|MagicMir | npm ERR! magicmirror@2.11.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
                  0|MagicMir | npm ERR! Exit status 1
                  0|MagicMir | npm ERR!
                  0|MagicMir | npm ERR! Failed at the magicmirror@2.11.0 start script.
                  0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                  0|MagicMir |
                  0|MagicMir | npm ERR! A complete log of this run can be found in:
                  0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2020-04-05T11_00_02_185Z-debug.log
                  0|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
                  0|MagicMir | [2020-04-05 13:00:36.526] [ERROR]  (node:909) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
                  0|MagicMir | npm ERR! code ELIFECYCLE
                  0|MagicMir | npm ERR! errno 1
                  0|MagicMir | npm ERR! magicmirror@2.11.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
                  0|MagicMir | npm ERR! Exit status 1
                  0|MagicMir | npm ERR!
                  0|MagicMir | npm ERR! Failed at the magicmirror@2.11.0 start script.
                  0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                  0|MagicMir |
                  0|MagicMir | npm ERR! A complete log of this run can be found in:
                  0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2020-04-05T12_00_02_475Z-debug.log
                  0|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
                  0|MagicMir | [2020-04-05 14:00:36.327] [ERROR]  (node:953) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Manu85
                    last edited by

                    @Manu85 said in my mirror freezes!:

                    0|MagicMir | [2020-04-05 09:57:55.156] [ERROR] Calendar Error. Could not fetch calendar:

                    i see those on my mirror systems occasionally… usually a network problem outside my house…

                    and my systems recover

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      and what to do please?

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

                        @Manu85 open the developers window (ctrl-shift-i on keyboard), select the tab labeled console,
                        and look around (scroll up), looking for any errors, red text…

                        but if the mirror hangs this will not work… thus why I suggested installing MMM-Logging module and enable electron debugging to try to capture any error messages

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 9
                        • 10
                        • 1 / 10
                        • 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