• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Magic Mirror Blanks Several Hours

Scheduled Pinned Locked Moved Unsolved Troubleshooting
29 Posts 12 Posters 9.8k Views 12 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 Offline
    StrIIker @MadScientist
    last edited by Oct 2, 2018, 6:08 PM

    @madscientist said in Magic Mirror Blanks Several Hours:

    @sdetweil
    That didn’t help in my case, hence the work-around with the cronjob. But it’s true that everybody should first try to disable the update module in their config.

    I was unaware of the suggestion to kill the update module. I have removed it from my config and will monitor the status. Thank you for the suggestion (and @sdetweil )! Any other best practice suggestions which I should consider? I have just done the base install and modified weather icons / details and also installed Alexapi (yet to work on that module as I am still trying to understand if I should also install either MMM-Alexa or MMM-Awesome-Alexa too as I am not clear on how these all work).

    1 Reply Last reply Reply Quote 0
    • S Offline
      StrIIker @MadScientist
      last edited by Oct 9, 2018, 2:32 PM

      @madscientist Could you please share what you use in your cronjob to reload the modules? Thanks!

      M 1 Reply Last reply Oct 9, 2018, 2:34 PM Reply Quote 0
      • M Offline
        MadScientist @StrIIker
        last edited by MadScientist Oct 9, 2018, 2:35 PM Oct 9, 2018, 2:34 PM

        @striiker 0 6 * * * pm2 reload mm
        It reloads my mm.sh script every day at 6am. Working perfectly fine for quite some time now.

        S 1 Reply Last reply Jan 10, 2019, 7:46 AM Reply Quote 0
        • S Offline
          StrIIker @sdetweil
          last edited by Oct 9, 2018, 2:35 PM

          @sdetweil said in Magic Mirror Blanks Several Hours:

          @striiker is this version 2.4.1?

          The update module was throwing an error causing the black screen.

          I would comment out that module

          I’m in the same boat as @MadScientist in that my module rotation still dies necessitating a restart of the modules. Canceling the update check did improve the situation in that it apparently does not crash out as often.

          1 Reply Last reply Reply Quote 0
          • G Offline
            Graham Rich @sdetweil
            last edited by Oct 9, 2018, 3:18 PM

            @sdetweil So I’ve updated my MagicMirror today with NPM update and NPM upgrade and my mirror is now black when I load it. My Mirror is pretty busy with NNOA3, video window from MotionEye and a few of the UK train apps. I was going to thin it down to see if that fixes it but thought Id check if anyone else found a fix yet.

            1 Reply Last reply Reply Quote 0
            • G Offline
              Graham Rich
              last edited by Oct 9, 2018, 3:31 PM

              I’m not sure if my issue isnt an update failure. Im getting this message on upgrade

              pi@pi:~/MagicMirror $ npm update

              phantomjs-prebuilt@2.1.16 install /home/pi/MagicMirror/node_modules/phantomjs-prebuilt
              node install.js

              PhantomJS not found on PATH
              Unexpected platform or architecture: linux/arm
              It seems there is no binary available for your platform/architecture
              Try to install PhantomJS globally
              npm WARN grunt-yamllint@0.3.0 requires a peer of grunt@>=1.0.1 but none is installed. You must install peer dependencies yourself.
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 (node_modules/phantomjs-prebuilt):
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 install: node install.js
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

              • moment@2.22.2
              • iconv-lite@0.4.24
              • walk@2.3.14
                added 5 packages from 11 contributors and audited 2316 packages in 40.649s
                found 5 low severity vulnerabilities
                run npm audit fix to fix them, or npm audit for details

              phantomjs-prebuilt@2.1.16 install /home/pi/MagicMirror/node_modules/phantomjs-prebuilt
              node install.js

              PhantomJS not found on PATH
              Unexpected platform or architecture: linux/arm
              It seems there is no binary available for your platform/architecture
              Try to install PhantomJS globally

              electron-chromedriver@1.8.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver
              node ./download-chromedriver.js

              successfully dowloaded and extracted!
              npm WARN grunt-yamllint@0.3.0 requires a peer of grunt@>=1.0.1 but none is installed. You must install peer dependencies yourself.
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 (node_modules/phantomjs-prebuilt):
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 install: node install.js
              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

              • spectron@3.8.0
                removed 4 packages, updated 2 packages and audited 2311 packages in 42.884s
                found 5 low severity vulnerabilities
              M 1 Reply Last reply Oct 9, 2018, 3:54 PM Reply Quote 0
              • M Offline
                MadScientist @Graham Rich
                last edited by Oct 9, 2018, 3:54 PM

                @graham-rich to update your MM installation you have to enter your MM directory and run git pull && npm install. Looks like you tried to update npm instead.

                1 Reply Last reply Reply Quote 0
                • G Offline
                  Graham Rich
                  last edited by Oct 9, 2018, 3:56 PM

                  Just run NPM install in the MagicMirror directory and seems to have fixed it. Was suggestion from NPM audit command
                  thanks for suggestion tho

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    chief
                    last edited by chief Oct 9, 2018, 4:55 PM Oct 9, 2018, 4:51 PM

                    I’m having trouble with this as well - blank screen for the past day no matter what I try to do. Now when I try to git pull && npm install, I get the following errors:

                    pi@raspberrypi:~/MagicMirror $ sudo git pull && npm install
                    Already up-to-date.
                    npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/socket.io-parser/node_modules
                    npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.

                    npm ERR! path /home/pi/MagicMirror/node_modules/socket.io-parser/node_modules
                    npm ERR! code EACCES
                    npm ERR! errno -13
                    npm ERR! syscall access
                    npm ERR! Error: EACCES: permission denied, access ‘/home/pi/MagicMirror/node_modules/socket.io-parser/node_modules’
                    npm ERR! { Error: EACCES: permission denied, access ‘/home/pi/MagicMirror/node_modules/socket.io-parser/node_modules’
                    npm ERR! stack: ‘Error: EACCES: permission denied, access '/home/pi/MagicMirror/node_modules/socket.io-parser/node_modules'’,
                    npm ERR! errno: -13,
                    npm ERR! code: ‘EACCES’,
                    npm ERR! syscall: ‘access’,
                    npm ERR! path: ‘/home/pi/MagicMirror/node_modules/socket.io-parser/node_modules’ }
                    npm ERR!
                    npm ERR! The operation was rejected by your operating system.
                    npm ERR! It is likely you do not have the permissions to access this file as the current user
                    npm ERR!
                    npm ERR! If you believe this might be a permissions issue, please double-check the
                    npm ERR! permissions of the file and its containing directories, or try running
                    npm ERR! the command again as root/Administrator (though this is not recommended).

                    npm ERR! A complete log of this run can be found in:
                    npm ERR! /home/pi/.npm/_logs/2018-10-09T16_49_46_380Z-debug.log

                    AND if I try to update npm itself, a different error appears:

                    pi@raspberrypi:~/MagicMirror $ sudo npm update
                    npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.

                    npm ERR! path /home/pi/MagicMirror/node_modules/source-map/build/suffix-utils.jsm
                    npm ERR! code Unknown system error -117
                    npm ERR! errno -117
                    npm ERR! syscall unlink
                    npm ERR! Unknown system error -117: Unknown system error -117, unlink ‘/home/pi/MagicMirror/node_modules/source-map/build/suffix-utils.jsm’

                    npm ERR! A complete log of this run can be found in:
                    npm ERR! /root/.npm/_logs/2018-10-09T16_54_00_820Z-debug.log

                    Any help??

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      MadScientist
                      last edited by Oct 9, 2018, 5:30 PM

                      Why are you running the update command with sudo?
                      Does your mirror work but it blanks the screen after some hours or is it always black?

                      C 1 Reply Last reply Oct 9, 2018, 8:36 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        11/29
                        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