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

Just updated to newest MagicMirror and now it won't load.

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 3 Posters 784 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.
  • A Offline
    aunrea
    last edited by Nov 5, 2021, 7:56 PM

    I just updated to the newest MagicMirror. I get a black screen and the following error in my error log:

    Gdk-Message: 15:16:59.854: electron: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
    
    python3: can't open file 'stats.py': [Errno 2] No such file or directory
    [05.11.2021 15:18.22.355] [ERROR] WARNING! Could not find config file. Please create one. Starting with default configuration.
    Gdk-Message: 15:44:39.377: electron: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
    
    python3: can't open file 'stats.py': [Errno 2] No such file or directory
    [05.11.2021 15:45.58.895] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js
    - /home/pi/MagicMirror/js/app.js
    - /home/pi/MagicMirror/js/electron.js
    - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    - 
    [05.11.2021 15:45.58.920] [ERROR] App threw an error during load
    [05.11.2021 15:45.58.926] [ERROR] Error: Cannot find module 'request'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js
    - /home/pi/MagicMirror/js/app.js
    - /home/pi/MagicMirror/js/electron.js
    - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    - 
        at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
        at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Module._load (internal/modules/cjs/loader.js:732:27)
        at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
        at Module.require (internal/modules/cjs/loader.js:959:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js:4:17)
        at Module._compile (internal/modules/cjs/loader.js:1078:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
    [05.11.2021 15:45.58.932] [ERROR] Whoops! There was an uncaught exception...
    [05.11.2021 15:45.58.944] [ERROR] Error: Cannot find module 'request'
    Require stack:
    - /home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js
    - /home/pi/MagicMirror/js/app.js
    - /home/pi/MagicMirror/js/electron.js
    - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    - 
        at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
        at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Module._load (internal/modules/cjs/loader.js:732:27)
        at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
        at Module.require (internal/modules/cjs/loader.js:959:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js:4:17)
        at Module._compile (internal/modules/cjs/loader.js:1078:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) {
      code: 'MODULE_NOT_FOUND',
      requireStack: [
        '/home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js',
        '/home/pi/MagicMirror/js/app.js',
        '/home/pi/MagicMirror/js/electron.js',
        '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
        undefined
      ]
    }
    [05.11.2021 15:45.58.946] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [05.11.2021 15:45.58.947] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    
    

    I don’t know what the stats.py file is or where it should be. I also do have a config file, which has all my code in it exactly as before I updated. I don’t know why I am getting all these errors or what many of them mean.

    S 1 Reply Last reply Nov 5, 2021, 7:57 PM Reply Quote 0
    • S Away
      sdetweil @aunrea
      last edited by Nov 5, 2021, 7:57 PM

      @aunrea https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 1 Reply Last reply Nov 5, 2021, 8:07 PM Reply Quote 0
      • A Offline
        aunrea @sdetweil
        last edited by Nov 5, 2021, 8:07 PM

        @sdetweil Sorry I did look at that but didn’t understand it or my logs so didn’t realize they were related. Reading it again I realized I needed install request and that fixed the issue. Thank you and sorry for posting when the question was already answered.

        S 1 Reply Last reply Nov 5, 2021, 8:13 PM Reply Quote 0
        • S Away
          sdetweil @aunrea
          last edited by Nov 5, 2021, 8:13 PM

          @aunrea your logs shows

          Cannot find module 'request'
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • B Offline
            bjoern
            last edited by Nov 8, 2021, 6:39 PM

            open another module directory and look for a “node_modules” folder and see if there is a “request” folder there. then copy this to your module where it is missing. that also helped and worked for me. Maybe more are missing. I searched my node_modules folder until I had everything together.

            S 1 Reply Last reply Nov 8, 2021, 8:58 PM Reply Quote 0
            • S Away
              sdetweil @bjoern
              last edited by Nov 8, 2021, 8:58 PM

              @bjoern said in Just updated to newest MagicMirror and now it won't load.:

              open another module directory and look for a “node_modules” folder and see if there is a “request” folder there. then copy this to your module

              NOOOOOOOOOO

              use npm thats what it is for

              follow the instructions in the linked pinned topic in troubleshooting…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                5/6
                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