• 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.

Blank screen with error in terminal upon start.

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 3 Posters 1.4k 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.
  • D Offline
    dcarls91
    last edited by Oct 2, 2019, 9:52 PM

    Hello, I recently lost wifi on my pi and the magic mirror went down. I restarted and reconnected the pi to internet and went to start the magic mirror. I received a bunch of error messages in the command terminal something possibly to do with a module not found. I am unable to access logs for this. I have so far began with a fresh install of magic mirror which works flawlessly with the stock config.js file and default modules. I then added my old config file after running npm config:check with no errors found as well as added back all of my modules after updating and fixing anything found after running an audit. After doing this it is back to the error messages and blank black screen. Does anyone have any suggestions on where to start looking to attempt to fix this.
    -thanks in advance

    S 1 Reply Last reply Oct 2, 2019, 10:22 PM Reply Quote 0
    • S Offline
      sdetweil @dcarls91
      last edited by Oct 2, 2019, 10:22 PM

      @dcarls91 start the mirror with the developers window open

      npm start dev
      

      then use the mouse to select the tab labeled ‘console’ and scroll up…

      some piece of code (module_name.js) is having a fatal error, and the UI has died…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • D Offline
        dcarls91
        last edited by Nov 12, 2019, 6:31 PM

        So I tired this and it tells me that the dev tools was disconnected from the page. I have also gone in and ran an audit and updated all packages. This is with a fresh install of Magic Mirror as well as all modules

        S L 2 Replies Last reply Nov 12, 2019, 6:34 PM Reply Quote 0
        • S Offline
          sdetweil @dcarls91
          last edited by Nov 12, 2019, 6:34 PM

          @dcarls91 if u added back modules, did u check and run npm install in the module folders where they had a package.json file?

          if you do npm start from a terminal window, you might get some error messages…

          I would go back to the base config.js and start adding one module at a time…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Nov 12, 2019, 7:03 PM Reply Quote 0
          • D Offline
            dcarls91 @sdetweil
            last edited by Nov 12, 2019, 7:03 PM

            @sdetweil I will do that. I went into all of my modules and and ran npm install as well

            S 1 Reply Last reply Nov 12, 2019, 9:47 PM Reply Quote 0
            • D Offline
              dcarls91
              last edited by Nov 12, 2019, 7:08 PM

              It may also be an electron issue

              1 Reply Last reply Reply Quote 0
              • L Offline
                lavolp3 Module Developer @dcarls91
                last edited by lavolp3 Nov 12, 2019, 8:25 PM Nov 12, 2019, 8:24 PM

                @dcarls91 I’m not sure if what you did was right.

                For me the best way and proven a hundred times is:

                • sit at an external device (laptop/PC)
                • SSH into the mirror
                • npm start dev
                • open the mirror’s page on a browser on the laptop/PC (http://IP.OF.THE.MIRROR:8080)
                • check the shell console (where you did the npm start dev) as well as the developer’s console of the browser for errors.

                There will be something that will help you find the error

                How to troubleshoot modules
                MMM-soccer v2, MMM-AVStock

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @dcarls91
                  last edited by Nov 12, 2019, 9:47 PM

                  @dcarls91 said in Blank screen with error in terminal upon start.:

                  I went into all of my modules and and ran npm install as well

                  IF they do NOT have a package.json file as part of a module, then there is a bad side effect or a required file beging deleted

                  you can check

                  cd ~/MagicMirror
                  ls modules/node_modules/node_helper/index.js
                  

                  if the file is there, all good,
                  if not do this

                  cd ~/MagicMirror
                  git checkout modules/node_modules/node_helper/index.js
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 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