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

MM Starts but no screen after upgrade

Scheduled Pinned Locked Moved Solved Troubleshooting
8 Posts 3 Posters 560 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.
  • G Offline
    geekhouri @sdetweil
    last edited by Jan 8, 2024, 4:58 AM

    HI @sdetweil, Please see answers below:

    lets start at the beginning… how did you install, and how did you upgrade? manual or with my scripts? It was manual as per the instructions above

    tell me output of

    **node -v**  = v20.5.1
    
    **npm -v** = 9.8.0
    
    **lsb_release -a**
    No LSB modules are available.
    Distributor ID: Debian
    Description:    Debian GNU/Linux 11 (bullseye)
    Release:        11
    Codename:       bullseye
    
    **uname -a**
    Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
    
    
    **do you use pm2 to autostart?**  Yes i do
    > 
    **> if so do 
    > ```bash
    > pm2 stop all
    > cd ~/MagicMirror
    > npm start 
    > ```
    > ctrl-q to stop MM
    > 
    > post the error messages**
    
    @raspberrypi:~/MagicMirror $ npm start
    
    > magicmirror@2.26.0 start
    > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    
    [08.01.2024 15:54.29.488] [LOG]   Starting MagicMirror: v2.26.0
    [08.01.2024 15:54.29.500] [LOG]   Loading config ...
    [08.01.2024 15:54.29.510] [DEBUG] config template file not exists, no envsubst
    [08.01.2024 15:54.29.523] [LOG]   Loading module helpers ...
    [08.01.2024 15:54.29.526] [LOG]   No helper found for module: alert.
    [08.01.2024 15:54.29.604] [LOG]   Initializing new module helper ...
    [08.01.2024 15:54.29.606] [LOG]   Module helper loaded: updatenotification
    [08.01.2024 15:54.29.608] [LOG]   No helper found for module: clock.
    [08.01.2024 15:54.30.088] [LOG]   Initializing new module helper ...
    [08.01.2024 15:54.30.090] [LOG]   Module helper loaded: calendar
    [08.01.2024 15:54.30.093] [LOG]   No helper found for module: compliments.
    [08.01.2024 15:54.31.047] [LOG]   Initializing new module helper ...
    [08.01.2024 15:54.31.048] [LOG]   Module helper loaded: MMM-DailyBibleVerse
    [08.01.2024 15:54.31.175] [LOG]   Initializing new module helper ...
    [08.01.2024 15:54.31.176] [LOG]   Module helper loaded: MMM-OpenWeatherMapForecast
    [08.01.2024 15:54.31.178] [LOG]   No helper found for module: MMM-GoogleTrafficTimes.
    [08.01.2024 15:54.31.189] [ERROR] (node:1960) UnhandledPromiseRejectionWarning: Error: Cannot find module 'request'
    Require stack:
    - /home/gkhouri/MagicMirror/modules/MMM-WordOfTheDay/node_helper.js
    - /home/gkhouri/MagicMirror/js/app.js
    - /home/gkhouri/MagicMirror/js/electron.js
    - /home/gkhouri/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    -
       at node:internal/modules/cjs/loader:1084:15
       at Function.<anonymous> (node:electron/js2c/browser_init:2:116646)
       at Module._resolveFilename (/home/gkhouri/MagicMirror/node_modules/module-alias/index.js:49:29)
       at node:internal/modules/cjs/loader:929:27
       at Function._load (node:electron/js2c/asar_bundle:2:13327)
       at Module.require (node:internal/modules/cjs/loader:1150:19)
       at require (node:internal/modules/cjs/helpers:121:18)
       at Object.<anonymous> (/home/gkhouri/MagicMirror/modules/MMM-WordOfTheDay/node_helper.js:9:15)
       at Module._compile (node:internal/modules/cjs/loader:1271:14)
       at Object..js (node:internal/modules/cjs/loader:1326:10)
       at Module.load (node:internal/modules/cjs/loader:1126:32)
       at node:internal/modules/cjs/loader:967:12
       at Function._load (node:electron/js2c/asar_bundle:2:13327)
       at Module.require (node:internal/modules/cjs/loader:1150:19)
       at require (node:internal/modules/cjs/helpers:121:18)
       at loadModule (/home/gkhouri/MagicMirror/js/app.js:181:19)
    (Use `electron --trace-warnings ...` to show where the warning was created)
    [08.01.2024 15:54.31.191] [ERROR] (node:1960) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
    S 1 Reply Last reply Jan 8, 2024, 11:51 AM Reply Quote 0
    • S Online
      sdetweil @geekhouri
      last edited by Jan 8, 2024, 11:51 AM

      @geekhouri yep, Screenshot_20240108_054516_Chrome.jpg

      we’ve been cleaning up the mm core tubing for 2 years now. this module was using one of the libraries we supplied, but didn’t declare it.

      if you had used my upgrade script I would have handled this problem for you

      see

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

      in the module folder do

      npm install request

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      G 1 Reply Last reply Jan 8, 2024, 11:15 PM Reply Quote 1
      • G Offline
        geekhouri @sdetweil
        last edited by Jan 8, 2024, 11:15 PM

        @sdetweil really appreciate your help, that has worked. I will definitely follow your guides moving forward. Out of curiosity when i ran that command i got the following :

        pm WARN deprecated har-validator@5.1.5: this library is no longer supported
        npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older v ersions may use Math.random() in certain circumstances, which is known to be pro blematic. See https://v8.dev/blog/math-random for details.
        npm WARN deprecated request@2.88.2: request has been deprecated, see https://git hub.com/request/request/issues/3142

        added 32 packages in 18s

        196 packages are looking for funding
        run npm fund for details

        Do i need do anything here or can i ignore?

        S 1 Reply Last reply Jan 8, 2024, 11:44 PM Reply Quote 0
        • S Online
          sdetweil @geekhouri
          last edited by Jan 8, 2024, 11:44 PM

          @geekhouri nothing we/you can do. a library uses a library which uses a library which was upgraded. but we can’t make anyone upgrade, and mm is a special env. it’s not a public website doing banking. it’s just showing some info pulled into. your house .

          so, all you can go is ignore it. oh, and don’t do audit fix. it forces a bunch of changes, some of which break existing code, with no fix available.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          G K 2 Replies Last reply Jan 8, 2024, 11:51 PM Reply Quote 1
          • G Offline
            geekhouri @sdetweil
            last edited by Jan 8, 2024, 11:51 PM

            @sdetweil thank-you very much, really appreciate the support on this…

            1 Reply Last reply Reply Quote 0
            • K Offline
              KristjanESPERANTO Module Developer @sdetweil
              last edited by Jan 8, 2024, 11:56 PM

              I have sleep problems and have therefore found the time to get rid of the dependency on request for this module 😅. Let’s see when @jmwyds accepts my PR. It seems he hasn’t been active for a while.

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