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

Errors after Update

Scheduled Pinned Locked Moved Unsolved Troubleshooting
16 Posts 2 Posters 2.1k Views 2 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.
  • J Offline
    JoeFranz
    last edited by Oct 2, 2023, 3:20 PM

    Re: Upgrade errors?

    Hello,
    Nothing has worked for me since the update.
    I updated the mirror with the update script from sdetweil.
    Can someone help?

    Joe

    pi@raspberrypi:~/MagicMirror $ pm2 logs MagicMirror
    [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
    /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
    0|MagicMir | [02.10.2023 17:12.44.449] [ERROR] TypeError: Cannot read properties of undefined (reading ‘on’)
    0|MagicMir | at Object. (/home/pi/MagicMirror/js/electron.js:139:5)
    0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1241:14)
    0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1295:10)
    0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1091:32)
    0|MagicMir | at Module._load (node:internal/modules/cjs/loader:938:12)
    0|MagicMir | at Object. (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
    0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1241:14)
    0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1295:10)
    0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1091:32)
    0|MagicMir | at Module._load (node:internal/modules/cjs/loader:938:12)
    0|MagicMir | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    0|MagicMir | at node:internal/main/run_main_module:23:47
    0|MagicMir | [02.10.2023 17:12.44.452] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    0|MagicMir | [02.10.2023 17:12.44.454] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

    S 2 Replies Last reply Oct 2, 2023, 3:22 PM Reply Quote 0
    • S Offline
      sdetweil @JoeFranz
      last edited by Oct 2, 2023, 3:22 PM

      @JoeFranz note that the script tries to install node 20… which seems to have changed the process…

      see the script at the top of the scripts page and see if that helps…
      https://github.com/sdetweil/MagicMirror_scripts

      we know that rpi buster has a problem… not yet solved … I am working on it…

      lsb_release -a
      

      will tell you what OS release u are on

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      J 1 Reply Last reply Oct 2, 2023, 3:26 PM Reply Quote 0
      • J Offline
        JoeFranz @sdetweil
        last edited by JoeFranz Oct 2, 2023, 3:32 PM Oct 2, 2023, 3:26 PM

        @sdetweil said in Errors after Update:

        lsb_release -a

        Distributor ID: Raspbian
        Description: Raspbian GNU/Linux 11 (bullseye)
        Release: 11
        Codename: bullseye

        I ran the script, the error remains.

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @JoeFranz
          last edited by Oct 2, 2023, 3:34 PM

          @JoeFranz can you do

          pm2 logs --lines=50
          

          the logs is short above the error

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          J 1 Reply Last reply Oct 2, 2023, 3:37 PM Reply Quote 0
          • J Offline
            JoeFranz @sdetweil
            last edited by Oct 2, 2023, 3:37 PM

            @sdetweil
            /home/pi/.pm2/logs/MagicMirror-error.log last 50 lines:
            0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1295:10)
            0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1091:32)
            0|MagicMir | at Module._load (node:internal/modules/cjs/loader:938:12)
            0|MagicMir | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
            0|MagicMir | at node:internal/main/run_main_module:23:47
            0|MagicMir | [02.10.2023 17:27.58.805] [ERROR] Whoops! There was an uncaught exception…
            0|MagicMir | [02.10.2023 17:27.58.807] [ERROR] TypeError: Cannot read properties of undefined (reading ‘on’)
            0|MagicMir | at Object. (/home/pi/MagicMirror/js/electron.js:139:5)
            0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1241:14)
            0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1295:10)
            0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1091:32)
            0|MagicMir | at Module._load (node:internal/modules/cjs/loader:938:12)
            0|MagicMir | at Object. (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
            0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1241:14)
            0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1295:10)
            0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1091:32)
            0|MagicMir | at Module._load (node:internal/modules/cjs/loader:938:12)
            0|MagicMir | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
            0|MagicMir | at node:internal/main/run_main_module:23:47
            0|MagicMir | [02.10.2023 17:27.58.810] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
            0|MagicMir | [02.10.2023 17:27.58.812] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
            0|MagicMir | [02.10.2023 17:28.02.795] [ERROR] TypeError: Cannot read properties of undefined (reading ‘on’)
            0|MagicMir | at Object. (/home/pi/MagicMirror/js/electron.js:139:5)
            0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1241:14)
            0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1295:10)
            0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1091:32)
            0|MagicMir | at Module._load (node:internal/modules/cjs/loader:938:12)
            0|MagicMir | at Object. (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
            0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1241:14)
            0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1295:10)
            0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1091:32)
            0|MagicMir | at Module._load (node:internal/modules/cjs/loader:938:12)
            0|MagicMir | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
            0|MagicMir | at node:internal/main/run_main_module:23:47
            0|MagicMir | [02.10.2023 17:28.02.811] [ERROR] Whoops! There was an uncaught exception…
            0|MagicMir | [02.10.2023 17:28.02.814] [ERROR] TypeError: Cannot read properties of undefined (reading ‘on’)
            0|MagicMir | at Object. (/home/pi/MagicMirror/js/electron.js:139:5)
            0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1241:14)
            0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1295:10)
            0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1091:32)
            0|MagicMir | at Module._load (node:internal/modules/cjs/loader:938:12)
            0|MagicMir | at Object. (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
            0|MagicMir | at Module._compile (node:internal/modules/cjs/loader:1241:14)
            0|MagicMir | at Module._extensions…js (node:internal/modules/cjs/loader:1295:10)
            0|MagicMir | at Module.load (node:internal/modules/cjs/loader:1091:32)
            0|MagicMir | at Module._load (node:internal/modules/cjs/loader:938:12)
            0|MagicMir | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
            0|MagicMir | at node:internal/main/run_main_module:23:47
            0|MagicMir | [02.10.2023 17:28.02.819] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
            0|MagicMir | [02.10.2023 17:28.02.822] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

            S 1 Reply Last reply Oct 2, 2023, 3:47 PM Reply Quote 0
            • S Offline
              sdetweil @JoeFranz
              last edited by Oct 2, 2023, 3:47 PM

              @JoeFranz ok, do this

              pm2 stop all
              cd ~/MagicMirror
              npm start 
              

              does it still fail?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              J 1 Reply Last reply Oct 2, 2023, 3:49 PM Reply Quote 0
              • J Offline
                JoeFranz @sdetweil
                last edited by Oct 2, 2023, 3:49 PM

                @sdetweil said in Errors after Update:

                pm2 stop all
                cd ~/MagicMirror
                npm start

                magicmirror@2.25.0 start
                DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

                [02.10.2023 17:48.18.730] [LOG] Starting MagicMirror: v2.25.0
                [02.10.2023 17:48.18.752] [LOG] Loading config …
                [02.10.2023 17:48.18.762] [DEBUG] config template file not exists, no envsubst
                [02.10.2023 17:48.21.067] [ERROR] (node:8240) 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:963:15)
                  at n._resolveFilename (node:electron/js2c/browser_init:2:109751)
                  at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                  at Module._load (node:internal/modules/cjs/loader:811:27)
                  at f._load (node:electron/js2c/asar_bundle:2:13330)
                  at Module.require (node:internal/modules/cjs/loader:1035:19)
                  at require (node:internal/modules/cjs/helpers:102:18)
                  at Object. (/home/pi/MagicMirror/modules/default/newsfeed/newsfeedfetcher.js:11:24)
                  at Module._compile (node:internal/modules/cjs/loader:1141:14)
                  at Module._extensions…js (node:internal/modules/cjs/loader:1196:10)
                  at Module.load (node:internal/modules/cjs/loader:1011:32)
                  at Module._load (node:internal/modules/cjs/loader:846:12)
                  at f._load (node:electron/js2c/asar_bundle:2:13330)
                  at Module.require (node:internal/modules/cjs/loader:1035:19)
                  at require (node:internal/modules/cjs/helpers:102:18)
                  at Object. (/home/pi/MagicMirror/modules/default/newsfeed/node_helper.js:10:25)
                  (Use electron --trace-warnings ... to show where the warning was created)
                  [02.10.2023 17:48.21.071] [ERROR] (node:8240) 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)
                  [8292:1002/174823.865854:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
                  [8319:1002/174824.432604:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
                S 1 Reply Last reply Oct 2, 2023, 3:50 PM Reply Quote 0
                • S Offline
                  sdetweil @JoeFranz
                  last edited by sdetweil Oct 2, 2023, 3:54 PM Oct 2, 2023, 3:50 PM

                  @JoeFranz said in Errors after Update:

                  Cannot find module ‘html-to-text’

                  ok… in the mm folder do

                  npm install html-to-text
                  

                  then try again

                  but it sounds like the npm install of the upgrade failed…
                  which would have happened if the node 20 install failed

                  so you have to fix the node 20 install (with the other script)

                  and THEN

                  cd ~/MagicMirror
                  rm -rf node_modules
                  npm run install-mm
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J 1 Reply Last reply Oct 2, 2023, 4:07 PM Reply Quote 0
                  • J Offline
                    JoeFranz @sdetweil
                    last edited by Oct 2, 2023, 4:07 PM

                    @sdetweil

                    pi@raspberrypi:~ $ pm2 stop all
                    cd ~/MagicMirror
                    npm start 
                    [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
                    [PM2] [MagicMirror](0) ✓
                    ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
                    │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
                    ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
                    │ 0  │ MagicMirror        │ fork     │ 277  │ stopped   │ 0%       │ 0b       │
                    └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
                    
                    > magicmirror@2.25.0 start
                    > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                    
                    [02.10.2023 18:05.06.957] [LOG]   Starting MagicMirror: v2.25.0
                    [02.10.2023 18:05.06.967] [LOG]   Loading config ...
                    [02.10.2023 18:05.06.972] [DEBUG] config template file not exists, no envsubst
                    [02.10.2023 18:05.07.048] [ERROR] (node:11262) UnhandledPromiseRejectionWarning: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
                    was compiled against a different Node.js version using
                    NODE_MODULE_VERSION 110. This version of Node.js requires
                    NODE_MODULE_VERSION 116. Please try re-compiling or re-installing
                    the module (for instance, using `npm rebuild` or `npm install`).
                        at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:2131)
                        at Object.<anonymous> (node:internal/modules/cjs/loader:1356:18)
                        at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2131)
                        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:110:18)
                        at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
                        at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31
                        at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:15:3)
                        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)
                    (Use `electron --trace-warnings ...` to show where the warning was created)
                    [02.10.2023 18:05.07.050] [ERROR] (node:11262) 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)
                    [11301:1002/180508.559663:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
                    [11262:1002/180508.753264:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
                    [11329:1002/180509.789629:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
                    [11354:1002/180512.079821:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
                    
                    
                    S 2 Replies Last reply Oct 2, 2023, 4:40 PM Reply Quote 0
                    • S Offline
                      sdetweil @JoeFranz
                      last edited by Oct 2, 2023, 4:40 PM

                      @JoeFranz yeh, thats all the stuff my upgrade script takes care of…

                      but node 20 is a mess

                      node 18 on buster doesn’t install

                      apt get update

                      sets up to install node 20.5.1…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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