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

Error starting after upgrade

Scheduled Pinned Locked Moved Solved Troubleshooting
41 Posts 5 Posters 7.9k Views 5 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.
  • C Offline
    chris_d
    last edited by Oct 4, 2023, 4:26 PM

    Having applied the latest update I am having an issue starting.
    Output as below.

    Any pointers as to what might be going wrong?

    > magicmirror@2.25.0 start /home/pi/MagicMirror
    > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    
    [04.10.2023 17:23.09.921] [LOG]   Starting MagicMirror: v2.25.0
    [04.10.2023 17:23.09.938] [LOG]   Loading config ...
    [04.10.2023 17:23.09.944] [DEBUG] config template file not exists, no envsubst
    [04.10.2023 17:23.09.954] [LOG]   Loading module helpers ...
    [04.10.2023 17:23.09.956] [LOG]   No helper found for module: alert.
    [04.10.2023 17:23.09.989] [LOG]   Initializing new module helper ...
    [04.10.2023 17:23.09.991] [LOG]   Module helper loaded: updatenotification
    [04.10.2023 17:23.09.992] [LOG]   No helper found for module: clock.
    [04.10.2023 17:23.10.576] [LOG]   Initializing new module helper ...
    [04.10.2023 17:23.10.577] [LOG]   Module helper loaded: MMM-Todoist
    [04.10.2023 17:23.10.844] [LOG]   Initializing new module helper ...
    [04.10.2023 17:23.10.844] [LOG]   Module helper loaded: calendar
    [04.10.2023 17:23.10.846] [LOG]   No helper found for module: MMM-Test.
    [04.10.2023 17:23.10.847] [LOG]   No helper found for module: MMM-DogAge.
    [04.10.2023 17:23.10.848] [LOG]   No helper found for module: MMM-CalendarExt3.
    [04.10.2023 17:23.10.906] [ERROR] (node:1324) UnhandledPromiseRejectionWarning: Error: Cannot find module 'html-to-text'
    Require stack:
    - /home/pi/MagicMirror/modules/default/newsfeed/newsfeedfetcher.js
    - /home/pi/MagicMirror/modules/default/newsfeed/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 (node:internal/modules/cjs/loader:1082:15)
        at n._resolveFilename (node:electron/js2c/browser_init:2:117457)
        at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Module._load (node:internal/modules/cjs/loader:927:27)
        at f._load (node:electron/js2c/asar_bundle:2:13330)
        at Module.require (node:internal/modules/cjs/loader:1148:19)
        at require (node:internal/modules/cjs/helpers:110:18)
        at Object.<anonymous> (/home/pi/MagicMirror/modules/default/newsfeed/newsfeedfetcher.js:11:24)
        at Module._compile (node:internal/modules/cjs/loader:1269:14)
        at Module._extensions..js (node:internal/modules/cjs/loader:1324:10)
        at Module.load (node:internal/modules/cjs/loader:1124:32)
        at Module._load (node:internal/modules/cjs/loader:965:12)
        at f._load (node:electron/js2c/asar_bundle:2:13330)
        at Module.require (node:internal/modules/cjs/loader:1148:19)
        at require (node:internal/modules/cjs/helpers:110:18)
        at Object.<anonymous> (/home/pi/MagicMirror/modules/default/newsfeed/node_helper.js:10:25)
    (Use `electron --trace-warnings ...` to show where the warning was created)
    [04.10.2023 17:23.10.907] [ERROR] (node:1324) 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)
    [1357:1004/172312.042226:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
    
    S 1 Reply Last reply Oct 4, 2023, 4:33 PM Reply Quote 0
    • S Away
      sdetweil @wwats
      last edited by Oct 9, 2023, 3:22 PM

      @wwats try this from the n info

      Remove the installed Node.js (does not affect the cached versions). This can be useful to revert to the system version of node (if in a different location)

      sudo n prune
      sudo n uninstall
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      W 1 Reply Last reply Oct 9, 2023, 3:25 PM Reply Quote 1
      • S Away
        sdetweil @chris_d
        last edited by Oct 4, 2023, 4:33 PM

        @chris_d looks like the npm install did not execute

        how did u upgrade? manual or my script?

        do

        node -v

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 1 Reply Last reply Oct 4, 2023, 4:48 PM Reply Quote 0
        • C Offline
          chris_d @sdetweil
          last edited by Oct 4, 2023, 4:48 PM

          @sdetweil
          v10.24.0

          I used manual upgrade running: git pull && npm run install-mm

          S 1 Reply Last reply Oct 4, 2023, 8:44 PM Reply Quote 0
          • S Away
            sdetweil @chris_d
            last edited by Oct 4, 2023, 8:44 PM

            @chris_d you must upgrade node to at least node 18…

            use my upgrade script, it will do all the work

            https://github.com/sdetweil/MagicMirror_scripts

            because u already have 2.25, use force instead of apply on the actual upgrade step

            bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply <-------- change this to force
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • A Offline
              aiprompts
              last edited by Oct 5, 2023, 8:23 AM

              I am facing the same problem.

              S 1 Reply Last reply Oct 5, 2023, 11:32 AM Reply Quote 0
              • S Away
                sdetweil @aiprompts
                last edited by Oct 5, 2023, 11:32 AM

                @aiprompts see the post above yours

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • W Offline
                  wwats
                  last edited by Oct 9, 2023, 3:07 PM

                  I also have problems updating to Node 20. I ran the script above, apparently successfully. But version 16.13.1 is still installed
                  -> Do I have to start the installation additionally? in which directory?
                  Thank you very much

                  S 1 Reply Last reply Oct 9, 2023, 3:08 PM Reply Quote 0
                  • S Away
                    sdetweil @wwats
                    last edited by Oct 9, 2023, 3:08 PM

                    @wwats can you do

                    n
                    or
                    nvm

                    and see if either respond?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    W 1 Reply Last reply Oct 9, 2023, 3:13 PM Reply Quote 0
                    • W Offline
                      wwats @sdetweil
                      last edited by wwats Oct 9, 2023, 3:14 PM Oct 9, 2023, 3:13 PM

                      @sdetweil
                      n = Use up/down arrow keys to select a version, return key to install, d to delete, q to quit

                      -> but i can’t select a version, the screen ist black

                      -> nvm doesn’t work (-bash: nvm: Kommando nicht gefunden.)

                      S 1 Reply Last reply Oct 9, 2023, 3:15 PM Reply Quote 0
                      • S Away
                        sdetweil @wwats
                        last edited by Oct 9, 2023, 3:15 PM

                        @wwats there are no versions shown?
                        I see this on my dev machine
                        Screenshot at 2023-10-09 10-14-43.png

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        W 1 Reply Last reply Oct 9, 2023, 3:16 PM Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 1 / 5
                        1 / 5
                        • First post
                          3/41
                          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