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 won't start up after upgrading to 2.27

    Scheduled Pinned Locked Moved Solved Troubleshooting
    11 Posts 2 Posters 810 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.
    • N Offline
      nobbie35
      last edited by

      I have updated all of my custom changes back into this after the update ie config, css, modules

      I did an npm start and here is my output

      :~/Dashboard/MagicMirror $ npm start
      
      > magicmirror@2.27.0 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [2024-04-26 15:59:34.482] [LOG]   Starting MagicMirror: v2.27.0
      [2024-04-26 15:59:34.534] [LOG]   Loading config ...
      [2024-04-26 15:59:34.539] [LOG]   config template file not exists, no envsubst
      [2024-04-26 15:59:34.545] [LOG]   Loading module helpers ...
      [2024-04-26 15:59:34.644] [LOG]   Initializing new module helper ...
      [2024-04-26 15:59:34.646] [LOG]   Module helper loaded: MMM-OpenWeatherForecast
      [2024-04-26 15:59:34.902] [LOG]   Initializing new module helper ...
      [2024-04-26 15:59:34.902] [LOG]   Module helper loaded: MMM-Wallpaper
      [2024-04-26 15:59:34.903] [LOG]   No helper found for module: clock.
      [2024-04-26 15:59:35.099] [LOG]   Initializing new module helper ...
      [2024-04-26 15:59:35.100] [LOG]   Module helper loaded: calendar
      [2024-04-26 15:59:35.101] [LOG]   No helper found for module: MMM-CalendarExt3.
      [2024-04-26 15:59:37.975] [LOG]   Initializing new module helper ...
      [2024-04-26 15:59:37.980] [LOG]   Module helper loaded: MMM-GoogleCalendar
      [2024-04-26 15:59:37.982] [LOG]   Initializing new module helper ...
      [2024-04-26 15:59:37.983] [LOG]   Module helper loaded: MMM-CustomMessage
      [2024-04-26 15:59:38.665] [ERROR] (node:2997) UnhandledPromiseRejectionWarning: Error: Cannot find module 'googleapis'
      Require stack:
      - /home/k/Dashboard/MagicMirror/modules/MMM-GoogleTasks/node_helper.js
      - /home/k/Dashboard/MagicMirror/js/app.js
      - /home/k/Dashboard/MagicMirror/js/electron.js
          at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
          at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
          at Module._resolveFilename (/home/k/Dashboard/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Module._load (node:internal/modules/cjs/loader:908:27)
          at c._load (node:electron/js2c/node_init:2:13672)
          at Module.require (node:internal/modules/cjs/loader:1122:19)
          at require (node:internal/modules/helpers:130:18)
          at Object.<anonymous> (/home/k/Dashboard/MagicMirror/modules/MMM-GoogleTasks/node_helper.js:2:18)
          at Module._compile (node:internal/modules/cjs/loader:1256:14)
          at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
          at Module.load (node:internal/modules/cjs/loader:1098:32)
          at Module._load (node:internal/modules/cjs/loader:945:12)
          at c._load (node:electron/js2c/node_init:2:13672)
          at Module.require (node:internal/modules/cjs/loader:1122:19)
          at require (node:internal/modules/helpers:130:18)
          at loadModule (/home/k/Dashboard/MagicMirror/js/app.js:183:19)
      (Use `electron --trace-warnings ...` to show where the warning was created)
      [2024-04-26 15:59:38.667] [ERROR] (node:2997) 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)
      [3112:0426/155940.054621:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [3112:0426/155940.055560:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      
      1 Reply Last reply Reply Quote 0
      • N nobbie35 has marked this topic as unsolved on
      • N Offline
        nobbie35 @sdetweil
        last edited by

        @sdetweil Just for extra context I have updated my config css and modules from my backup

        I also have rebooted and completed your steps above… here is the output

        :~/Dashboard/MagicMirror $ npm start
        
        > magicmirror@2.27.0 start
        > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
        
        [2024-04-26 15:59:34.482] [LOG]   Starting MagicMirror: v2.27.0
        [2024-04-26 15:59:34.534] [LOG]   Loading config ...
        [2024-04-26 15:59:34.539] [LOG]   config template file not exists, no envsubst
        [2024-04-26 15:59:34.545] [LOG]   Loading module helpers ...
        [2024-04-26 15:59:34.644] [LOG]   Initializing new module helper ...
        [2024-04-26 15:59:34.646] [LOG]   Module helper loaded: MMM-OpenWeatherForecast
        [2024-04-26 15:59:34.902] [LOG]   Initializing new module helper ...
        [2024-04-26 15:59:34.902] [LOG]   Module helper loaded: MMM-Wallpaper
        [2024-04-26 15:59:34.903] [LOG]   No helper found for module: clock.
        [2024-04-26 15:59:35.099] [LOG]   Initializing new module helper ...
        [2024-04-26 15:59:35.100] [LOG]   Module helper loaded: calendar
        [2024-04-26 15:59:35.101] [LOG]   No helper found for module: MMM-CalendarExt3.
        [2024-04-26 15:59:37.975] [LOG]   Initializing new module helper ...
        [2024-04-26 15:59:37.980] [LOG]   Module helper loaded: MMM-GoogleCalendar
        [2024-04-26 15:59:37.982] [LOG]   Initializing new module helper ...
        [2024-04-26 15:59:37.983] [LOG]   Module helper loaded: MMM-CustomMessage
        [2024-04-26 15:59:38.665] [ERROR] (node:2997) UnhandledPromiseRejectionWarning: Error: Cannot find module 'googleapis'
        Require stack:
        - /home/k/Dashboard/MagicMirror/modules/MMM-GoogleTasks/node_helper.js
        - /home/k/Dashboard/MagicMirror/js/app.js
        - /home/k/Dashboard/MagicMirror/js/electron.js
            at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
            at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
            at Module._resolveFilename (/home/k/Dashboard/MagicMirror/node_modules/module-alias/index.js:49:29)
            at Module._load (node:internal/modules/cjs/loader:908:27)
            at c._load (node:electron/js2c/node_init:2:13672)
            at Module.require (node:internal/modules/cjs/loader:1122:19)
            at require (node:internal/modules/helpers:130:18)
            at Object.<anonymous> (/home/k/Dashboard/MagicMirror/modules/MMM-GoogleTasks/node_helper.js:2:18)
            at Module._compile (node:internal/modules/cjs/loader:1256:14)
            at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
            at Module.load (node:internal/modules/cjs/loader:1098:32)
            at Module._load (node:internal/modules/cjs/loader:945:12)
            at c._load (node:electron/js2c/node_init:2:13672)
            at Module.require (node:internal/modules/cjs/loader:1122:19)
            at require (node:internal/modules/helpers:130:18)
            at loadModule (/home/k/Dashboard/MagicMirror/js/app.js:183:19)
        (Use `electron --trace-warnings ...` to show where the warning was created)
        [2024-04-26 15:59:38.667] [ERROR] (node:2997) 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)
        [3112:0426/155940.054621:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
        [3112:0426/155940.055560:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
        
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @nobbie35
          last edited by sdetweil

          @nobbie35 yes looks like you forgot to do npm install in one module folder
          1000025788.jpg

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            nobbie35 @sdetweil
            last edited by

            @sdetweil I didn’t realize that you have to reinstall all of the modules after an install I’ve been running MM for over a year and have upgraded before like this and never had to npm install each of the modules again… I’ll go back and reinstall all of them just incase and report back

            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @nobbie35
              last edited by

              @nobbie35 if you use my upgrade script I handle this for you

              see
              https://github.com/sdetweil/MagicMirror_scripts

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @nobbie35 yes, but what happens is always subject to change…

                so looking at the messages tells you a module had trouble finding a library

                which should lead you back to npm install for that module

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                N 1 Reply Last reply Reply Quote 0
                • N Offline
                  nobbie35 @sdetweil
                  last edited by

                  @sdetweil I npm installed the Google Tasks module and its still throwing the same error

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

                    @nobbie35 where did you do the npm install, what folder were you in?

                    I see the problem

                    the module doesn’t have a package.json file, so the loaded module is considered a security risk and is removed

                    do
                    npm init -y
                    then
                    npm install googleapis

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    N 1 Reply Last reply Reply Quote 0
                    • N Offline
                      nobbie35 @sdetweil
                      last edited by

                      @sdetweil Thank you… that was the issue

                      1 Reply Last reply Reply Quote 0
                      • N nobbie35 has marked this topic as solved on
                      • 1
                      • 2
                      • 2 / 2
                      • First post
                        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