• Register
    • Login
    • Search

    Unsolved Errors updating Magic Mirror

    MagicMirror installer
    4
    58
    195
    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.
    • R
      renevandenbroek Donators last edited by

      While Updating MagicMirror I see many error pasing by. In the logfile there is no error. MM does not start anymore.

      1 Reply Last reply Reply Quote 0
      • R
        renevandenbroek Donators last edited by

        20230702_125530.jpg

        1 Reply Last reply Reply Quote 0
        • R
          renevandenbroek Donators last edited by

          this is the log after starting pm2 start MagicMirror

          /home/rene/.pm2/logs/MagicMirror-error.log last 15 lines:
          0|MagicMir | /home/rene/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
          0|MagicMir | [02.07.2023 13:46.50.835] [ERROR] (node:2111) UnhandledPromiseRejectionWarning: TypeError: Module is not a constructor
          0|MagicMir | at loadModule (/home/rene/MagicMirror/js/app.js:181:12)
          0|MagicMir | at loadModules (/home/rene/MagicMirror/js/app.js:210:10)
          0|MagicMir | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
          0|MagicMir | at async App.start (/home/rene/MagicMirror/js/app.js:258:3)
          0|MagicMir | (Use electron --trace-warnings ... to show where the warning was created)
          0|MagicMir | [02.07.2023 13:46.50.835] [ERROR] (node:2111) 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)
          0|MagicMir | MESA-LOADER: failed to retrieve device information
          0|MagicMir | MESA-LOADER: failed to retrieve device information
          0|MagicMir | MESA-LOADER: failed to retrieve device information
          0|MagicMir | MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
          0|MagicMir | failed to load driver: kms_swrast
          0|MagicMir | MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
          0|MagicMir | failed to load swrast driver

          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            node version used ?

            node -v ?

            My place in France Top committers of Github:
            committers.top badge

            1 Reply Last reply Reply Quote 0
            • R
              renevandenbroek Donators last edited by

              v16.20.1

              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by

                can you try this:

                cd ~/MagicMirror
                rm -rf package-lock.json node_modules
                git reset --hard
                git pull
                

                past the result content and i will says to you if ok for installing or not

                My place in France Top committers of Github:
                committers.top badge

                1 Reply Last reply Reply Quote 0
                • R
                  renevandenbroek Donators last edited by

                  rene@raspberrypi:~ $ cd ~/MagicMirror
                  rene@raspberrypi:~/MagicMirror $ rm -rf package-lock.json node_modules
                  rene@raspberrypi:~/MagicMirror $ git reset --hard
                  HEAD is now at e87f50e Release 2.24.0 (#3141)
                  rene@raspberrypi:~/MagicMirror $ git pull
                  hint: Pulling without specifying how to reconcile divergent branches is
                  hint: discouraged. You can squelch this message by running one of the following
                  hint: commands sometime before your next pull:
                  hint:
                  hint: git config pull.rebase false # merge (the default strategy)
                  hint: git config pull.rebase true # rebase
                  hint: git config pull.ff only # fast-forward only
                  hint:
                  hint: You can replace “git config” with “git config --global” to set a default
                  hint: preference for all repositories. You can also pass --rebase, --no-rebase,
                  hint: or --ff-only on the command line to override the configured default per
                  hint: invocation.
                  Already up to date.
                  rene@raspberrypi:~/MagicMirror $

                  1 Reply Last reply Reply Quote 0
                  • bugsounet
                    bugsounet Main Coder last edited by

                    perfect !

                    let’s try npm install

                    Note: don’t use npm audit fix at the end of installation

                    when installation done, let’s launch MM²
                    Say me if ok 🙂

                    My place in France Top committers of Github:
                    committers.top badge

                    1 Reply Last reply Reply Quote 0
                    • R
                      renevandenbroek Donators last edited by

                      from MagicMirror directory?

                      1 Reply Last reply Reply Quote 0
                      • bugsounet
                        bugsounet Main Coder last edited by

                        yes, sure 🙂

                        My place in France Top committers of Github:
                        committers.top badge

                        1 Reply Last reply Reply Quote 0
                        • R
                          renevandenbroek Donators last edited by

                          rene@raspberrypi:~/MagicMirror $ pm2 log
                          [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
                          /home/rene/.pm2/pm2.log last 15 lines:
                          PM2 | 2023-07-02T16:09:04: PM2 log: App [MagicMirror:0] exited with code [127] via signal [SIGINT]
                          PM2 | 2023-07-02T16:09:04: PM2 log: App [MagicMirror:0] starting in -fork mode-
                          PM2 | 2023-07-02T16:09:04: PM2 log: App [MagicMirror:0] online
                          PM2 | 2023-07-02T16:09:06: PM2 log: App [MagicMirror:0] exited with code [127] via signal [SIGINT]
                          PM2 | 2023-07-02T16:09:06: PM2 log: App [MagicMirror:0] starting in -fork mode-
                          PM2 | 2023-07-02T16:09:06: PM2 log: App [MagicMirror:0] online
                          PM2 | 2023-07-02T16:09:06: PM2 log: Stopping app:MagicMirror id:0
                          PM2 | 2023-07-02T16:09:06: PM2 error: Cancelling versioning data parsing
                          PM2 | 2023-07-02T16:09:06: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                          PM2 | 2023-07-02T16:09:06: PM2 log: pid=3011 msg=process killed
                          PM2 | 2023-07-02T16:15:41: PM2 log: App [MagicMirror:0] starting in -fork mode-
                          PM2 | 2023-07-02T16:15:41: PM2 log: App [MagicMirror:0] online
                          PM2 | 2023-07-02T16:16:29: PM2 log: Stopping app:MagicMirror id:0
                          PM2 | 2023-07-02T16:16:29: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                          PM2 | 2023-07-02T16:16:30: PM2 log: pid=3286 msg=process killed

                          /home/rene/.pm2/logs/MagicMirror-out.log last 15 lines:
                          0|MagicMir | > DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
                          0|MagicMir |
                          0|MagicMir | [02.07.2023 16:15.44.499] [LOG] Starting MagicMirror: v2.24.0
                          0|MagicMir | [02.07.2023 16:15.44.507] [LOG] Loading config …
                          0|MagicMir | [02.07.2023 16:15.44.512] [DEBUG] config template file not exists, no envsubst
                          0|MagicMir | [02.07.2023 16:15.44.518] [LOG] Loading module helpers …
                          0|MagicMir | [02.07.2023 16:15.44.520] [LOG] No helper found for module: clock.
                          0|MagicMir | [02.07.2023 16:15.44.540] [LOG] Initializing new module helper …
                          0|MagicMir | [02.07.2023 16:15.44.541] [LOG] Module helper loaded: updatenotification
                          0|MagicMir | [02.07.2023 16:15.44.543] [LOG] Initializing new module helper …
                          0|MagicMir | [02.07.2023 16:15.44.544] [LOG] Module helper loaded: EXT-Alert
                          0|MagicMir | [02.07.2023 16:15.44.608] [LOG] Initializing new module helper …
                          0|MagicMir | [02.07.2023 16:15.44.608] [LOG] Module helper loaded: EXT-Internet
                          0|MagicMir | [02.07.2023 16:15.44.611] [LOG] Initializing new module helper …
                          0|MagicMir | [02.07.2023 16:15.44.611] [LOG] Module helper loaded: mmm-systemtemperature

                          /home/rene/.pm2/logs/MagicMirror-error.log last 15 lines:
                          0|MagicMir | [02.07.2023 16:15.44.617] [ERROR] (node:3306) UnhandledPromiseRejectionWarning: TypeError: Module is not a constructor
                          0|MagicMir | at loadModule (/home/rene/MagicMirror/js/app.js:181:12)
                          0|MagicMir | at loadModules (/home/rene/MagicMirror/js/app.js:210:10)
                          0|MagicMir | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                          0|MagicMir | at async App.start (/home/rene/MagicMirror/js/app.js:258:3)
                          0|MagicMir | (Use electron --trace-warnings ... to show where the warning was created)
                          0|MagicMir | [02.07.2023 16:15.44.618] [ERROR] (node:3306) 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)
                          0|MagicMir | MESA-LOADER: failed to retrieve device information
                          0|MagicMir | MESA-LOADER: failed to retrieve device information
                          0|MagicMir | MESA-LOADER: failed to retrieve device information
                          0|MagicMir | MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
                          0|MagicMir | failed to load driver: kms_swrast
                          0|MagicMir | MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
                          0|MagicMir | failed to load swrast driver
                          0|MagicMir | /home/rene/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT

                          1 Reply Last reply Reply Quote 0
                          • R
                            renevandenbroek Donators last edited by

                            when installation done, let’s launch MM²
                            I did “pm2 start MagicMirror”
                            I did not start.
                            Then I did “pm2 stop MagicMirror”
                            Then “pm2 log” see result above

                            1 Reply Last reply Reply Quote 0
                            • bugsounet
                              bugsounet Main Coder last edited by

                              can you try to disable all modules except clock ?

                              tell me, if MM² is works with clock only ?

                              My place in France Top committers of Github:
                              committers.top badge

                              1 Reply Last reply Reply Quote 0
                              • R
                                renevandenbroek Donators last edited by

                                Yes that works

                                1 Reply Last reply Reply Quote 0
                                • bugsounet
                                  bugsounet Main Coder last edited by

                                  ok right

                                  now enable another module
                                  restart MM², see if works

                                  if works: enable another again (and again…) and find what is the failed module

                                  My place in France Top committers of Github:
                                  committers.top badge

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    renevandenbroek Donators last edited by

                                    Gateway
                                    After enabling Gateway MM does not start anymore

                                    rene@raspberrypi:~/MagicMirror/config $ pm2 log
                                    [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
                                    /home/rene/.pm2/pm2.log last 15 lines:
                                    PM2 | 2023-07-02T16:48:08: PM2 log: App [MagicMirror:0] starting in -fork mode-
                                    PM2 | 2023-07-02T16:48:08: PM2 log: App [MagicMirror:0] online
                                    PM2 | 2023-07-02T16:49:19: PM2 log: Stopping app:MagicMirror id:0
                                    PM2 | 2023-07-02T16:49:19: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                                    PM2 | 2023-07-02T16:49:19: PM2 log: pid=4376 msg=process killed
                                    PM2 | 2023-07-02T16:50:20: PM2 log: App [MagicMirror:0] starting in -fork mode-
                                    PM2 | 2023-07-02T16:50:20: PM2 log: App [MagicMirror:0] online
                                    PM2 | 2023-07-02T16:51:02: PM2 log: Stopping app:MagicMirror id:0
                                    PM2 | 2023-07-02T16:51:03: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                                    PM2 | 2023-07-02T16:51:03: PM2 log: pid=4524 msg=process killed
                                    PM2 | 2023-07-02T16:53:21: PM2 log: App [MagicMirror:0] starting in -fork mode-
                                    PM2 | 2023-07-02T16:53:21: PM2 log: App [MagicMirror:0] online
                                    PM2 | 2023-07-02T16:53:55: PM2 log: Stopping app:MagicMirror id:0
                                    PM2 | 2023-07-02T16:53:55: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                                    PM2 | 2023-07-02T16:53:55: PM2 log: pid=4762 msg=process killed

                                    /home/rene/.pm2/logs/MagicMirror-out.log last 15 lines:
                                    0|MagicMir |
                                    0|MagicMir | > magicmirror@2.24.0 start
                                    0|MagicMir | > DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
                                    0|MagicMir |
                                    0|MagicMir | [02.07.2023 16:53.24.692] [LOG] Starting MagicMirror: v2.24.0
                                    0|MagicMir | [02.07.2023 16:53.24.700] [LOG] Loading config …
                                    0|MagicMir | [02.07.2023 16:53.24.704] [DEBUG] config template file not exists, no envsubst
                                    0|MagicMir | [02.07.2023 16:53.24.710] [LOG] Loading module helpers …
                                    0|MagicMir | [02.07.2023 16:53.24.712] [LOG] No helper found for module: clock.
                                    0|MagicMir | [02.07.2023 16:53.24.732] [LOG] Initializing new module helper …
                                    0|MagicMir | [02.07.2023 16:53.24.733] [LOG] Module helper loaded: updatenotification
                                    0|MagicMir | [02.07.2023 16:53.24.736] [LOG] Initializing new module helper …
                                    0|MagicMir | [02.07.2023 16:53.24.736] [LOG] Module helper loaded: EXT-Alert
                                    0|MagicMir | [02.07.2023 16:53.24.740] [LOG] Initializing new module helper …
                                    0|MagicMir | [02.07.2023 16:53.24.740] [LOG] Module helper loaded: mmm-systemtemperature

                                    /home/rene/.pm2/logs/MagicMirror-error.log last 15 lines:
                                    0|MagicMir | [02.07.2023 16:53.24.746] [ERROR] (node:4782) UnhandledPromiseRejectionWarning: TypeError: Module is not a constructor
                                    0|MagicMir | at loadModule (/home/rene/MagicMirror/js/app.js:181:12)
                                    0|MagicMir | at loadModules (/home/rene/MagicMirror/js/app.js:210:10)
                                    0|MagicMir | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                                    0|MagicMir | at async App.start (/home/rene/MagicMirror/js/app.js:258:3)
                                    0|MagicMir | (Use electron --trace-warnings ... to show where the warning was created)
                                    0|MagicMir | [02.07.2023 16:53.24.747] [ERROR] (node:4782) 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)
                                    0|MagicMir | MESA-LOADER: failed to retrieve device information
                                    0|MagicMir | MESA-LOADER: failed to retrieve device information
                                    0|MagicMir | MESA-LOADER: failed to retrieve device information
                                    0|MagicMir | MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
                                    0|MagicMir | failed to load driver: kms_swrast
                                    0|MagicMir | MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
                                    0|MagicMir | failed to load swrast driver
                                    0|MagicMir | /home/rene/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT

                                    1 Reply Last reply Reply Quote 0
                                    • bugsounet
                                      bugsounet Main Coder last edited by

                                      try to rebuild it. but it’s weird, no error is displayed
                                      maybe the error is before the last logs
                                      generali npm start command will help before to launch in automatic

                                      try this:

                                      cd ~/MagicMirror/modules/Gateway
                                      npm run rebuild
                                      

                                      My place in France Top committers of Github:
                                      committers.top badge

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        Raf BetaTester Translators last edited by

                                        for me the detector stopped working since the MagicMirror update, I updated the node version to V18 and everything woke back to normal

                                        1 Reply Last reply Reply Quote 0
                                        • bugsounet
                                          bugsounet Main Coder last edited by

                                          @Raf: it’s related to this

                                          We have planed to turn MM² to node v18 (mini requirement) but not done
                                          And… I have forget to delete new requirement.
                                          now node >= v16.13.0 works

                                          My place in France Top committers of Github:
                                          committers.top badge

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            Raf BetaTester Translators last edited by

                                            that’s exactly the problem i had

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB | @bugsounet ©2023