MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED UnhandledPromiseRejectionWarning on launch

    Troubleshooting
    4
    7
    236
    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.
    • S
      selyjohns last edited by selyjohns

      Hi,
      I’m actually configure my first MM.
      Since yesterday, and i don’t know why, i’ve a message on launch the MM

      pi@MagicMirror:~/MagicMirror $ npm run start
      
      > magicmirror@2.17.1 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [29.11.2021 13:35.32.237] [LOG]   Starting MagicMirror: v2.17.1
      [29.11.2021 13:35.32.250] [LOG]   Loading config ...
      [29.11.2021 13:35.32.263] [LOG]   Loading module helpers ...
      [29.11.2021 13:35.32.267] [LOG]   No helper found for module: alert.
      [29.11.2021 13:35.32.301] [LOG]   Initializing new module helper ...
      [29.11.2021 13:35.32.303] [LOG]   Module helper loaded: updatenotification
      [29.11.2021 13:35.32.306] [LOG]   No helper found for module: clock.
      [29.11.2021 13:35.32.622] [LOG]   Initializing new module helper ...
      [29.11.2021 13:35.32.624] [LOG]   Module helper loaded: calendar
      [29.11.2021 13:35.32.626] [LOG]   No helper found for module: weather.
      [29.11.2021 13:35.32.629] [LOG]   No helper found for module: compliments.
      [29.11.2021 13:35.32.631] [LOG]   No helper found for module: MMM-Traffic.
      [29.11.2021 13:35.32.673] [LOG]   Initializing new module helper ...
      [29.11.2021 13:35.32.675] [LOG]   Module helper loaded: newsfeed
      [29.11.2021 13:35.32.679] [LOG]   Initializing new module helper ...
      [29.11.2021 13:35.32.681] [LOG]   Module helper loaded: MMM-Jeedom
      [29.11.2021 13:35.32.683] [LOG]   All module helpers loaded.
      [29.11.2021 13:35.32.846] [LOG]   Starting server on port 8080 ...
      [29.11.2021 13:35.32.872] [LOG]   Server started ...
      [29.11.2021 13:35.32.875] [LOG]   Connecting socket for: updatenotification
      [29.11.2021 13:35.32.878] [LOG]   Connecting socket for: calendar
      [29.11.2021 13:35.32.880] [LOG]   Starting node helper for: calendar
      [29.11.2021 13:35.32.881] [LOG]   Connecting socket for: newsfeed
      [29.11.2021 13:35.32.883] [LOG]   Starting node helper for: newsfeed
      [29.11.2021 13:35.32.885] [LOG]   Connecting socket for: MMM-Jeedom
      [29.11.2021 13:35.32.886] [LOG]   Sockets connected & modules started ...
      [29.11.2021 13:35.33.271] [LOG]   Launching application.
      [29.11.2021 13:35.37.108] [LOG]   Create new calendarfetcher for url: http://p28-caldav.icloud.com/published/2/XXX - Interval: 300000
      [29.11.2021 13:35.37.170] [LOG]   Create new calendarfetcher for url: http://p28-caldav.icloud.com/published/2/XXX - Interval: 300000
      [29.11.2021 13:35.37.420] [LOG]   Create new newsfetcher for url: https://www.ladepeche.fr/rss.xml - Interval: 300000
      [29.11.2021 13:35.37.438] [INFO]  Checking git for module: default
      [29.11.2021 13:35.37.481] [INFO]  Checking git for module: MMM-Traffic
      [29.11.2021 13:35.37.504] [INFO]  Checking git for module: MMM-Jeedom
      [29.11.2021 13:35.38.791] [INFO]  Calendar-Fetcher: Broadcasting 10 events.
      [29.11.2021 13:35.38.845] [INFO]  Newsfeed-Fetcher: Broadcasting 100 items.
      [29.11.2021 13:35.43.285] [INFO]  Calendar-Fetcher: Broadcasting 10 events.
      [29.11.2021 13:35.44.412] [ERROR] (node:3953) UnhandledPromiseRejectionWarning: Error: Command failed: cd /home/pi/MagicMirror/ && git fetch --dry-run
      error: droits insuffisants pour ajouter un objet à la base de données .git/objects du dépôt
      fatal: failed to write object
      fatal: échec de unpack-objects
      
          at ChildProcess.exithandler (child_process.js:317:12)
          at ChildProcess.emit (events.js:315:20)
          at maybeClose (internal/child_process.js:1048:16)
          at Socket.<anonymous> (internal/child_process.js:439:11)
          at Socket.emit (events.js:315:20)
          at Pipe.<anonymous> (net.js:673:12)
      (Use `electron --trace-warnings ...` to show where the warning was created)
      [29.11.2021 13:35.44.416] [ERROR] (node:3953) 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)
      [29.11.2021 13:35.44.418] [ERROR] (node:3953) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
      ^C/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
      

      The MM works perfectly, but i don’t know why i’ve this message.
      Could you help me ?

      Thank you 🙂 !

      S 1 Reply Last reply Reply Quote 0
      • S
        selyjohns last edited by

        Solved, please see issue on github.
        My fault 🙂

        1 Reply Last reply Reply Quote 0
        • S
          sdetweil @selyjohns last edited by sdetweil

          @selyjohns I don’t know why either.

          this is likely the updatenotification module

          edit the config.js and add

          disabled: true,

          after the line
          module: “updatenotification”
          make sure there is a comma on the end of the module line

          {
             module:"updatenotification",
              disabled: true
          },
          

          Sam

          Create a working config
          How to add modules

          S 1 Reply Last reply Reply Quote 0
          • S
            selyjohns @sdetweil last edited by

            @sdetweil
            Hi sam,

            Thank you for this quickly response.
            I confirm, move this module to disabled and i don’t have UnhandledPromiseRejectionWarning anymore…

            But i think this is not a good solution ?

            S 1 Reply Last reply Reply Quote 0
            • S
              sdetweil @selyjohns last edited by

              @selyjohns but we confirmed it is that module… I would open an issue in the github repo for MagicMirror

              Sam

              Create a working config
              How to add modules

              B 1 Reply Last reply Reply Quote 0
              • B
                bugsounet @sdetweil last edited by

                @sdetweil I think it’s an sudoers 😉


                I am not a reference in this forum
                I am not a magician
                I'm just a developer

                Please DON'T ADS ANY of My Modules There !

                Follow new support of 4th party modules on https://wiki.bugsounet.fr

                1 Reply Last reply Reply Quote 0
                • S
                  selyjohns last edited by

                  Hi,
                  Issue posted on github 🙂
                  https://github.com/MichMich/MagicMirror/issues/2717

                  I’ll keep you informed.
                  Nice day.

                  1 Reply Last reply Reply Quote 1
                  • S
                    selyjohns last edited by

                    Solved, please see issue on github.
                    My fault 🙂

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy