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 47.6k 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 @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 Do not disturb
          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 Do not disturb
              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 Do not disturb
                  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 Do not disturb
                      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
                      • M Offline
                        Manu85
                        last edited by

                        this one :
                        MMM-Logging ?

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

                          @Manu85 yes,

                          make sure to do this

                          Note: You can find more detailed information on debugging your MagicMirror here: Module Debugging. If you also want the Electron rederer (web browser) console logs to be printed to the standard console (or PM2 logs), change the following line to the very top of ~/MagicMirror/run-start.sh

                          export ELECTRON_ENABLE_LOGGING=true

                          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 answer i will follow your advice, but it exceeds my skills, can you tell me exactly what to do please?

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

                              @Manu85 install the module(note that it wants to be first in the module list in config.js), and add this to the batch file starting the mirror

                              export ELECTRON_ENABLE_LOGGING=true

                              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

                                The you lost me :-), "and add this to the batch file starting the mirror
                                export ELECTRON_ENABLE_LOGGING = true "

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

                                  @Manu85 how does MM get started? pm2?

                                  if so, it usually uses a batch file (script)

                                  ~/MagicMirror/installers/mm.sh
                                  make it look like this

                                  cd ~/MagicMirror
                                  export ELECTRON_ENABLE_LOGGING = true       
                                  DISPLAY=:0 npm start
                                  

                                  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 have this error message:
                                    pi@raspberrypi:~/MagicMirror $ export ELECTRON_ENABLE_LOGGING = true
                                    -bash: export: « = » : identifiant non valable

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

                                      -bash: export: “=”: invalid identifier

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

                                        @Manu85 sorry, hate that…

                                        no spaces

                                        export ELECTRON_ENABLE_LOGGING=true
                                        

                                        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

                                          ok perfect the line has passed,
                                          pi@raspberrypi:~/MagicMirror $ export ELECTRON_ENABLE_LOGGING=true
                                          pi@raspberrypi:~/MagicMirror $
                                          i downloaded the module, now i set it in config.js?

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

                                            This post is deleted!
                                            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
                                            • 3
                                            • 4
                                            • 5
                                            • 1 / 5
                                            • 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