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 will not start

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    32 Posts 3 Posters 7.6k Views 3 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.
    • B Offline
      bworch
      last edited by

      I did a pm2 show and this is what I got.

      b196b117-fe7e-434e-bce7-9fcc6f5d4739-image.png

      f132a711-2e53-4b7f-b6ed-82e4e605d192-image.png

      thanks

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

        @sdetweil followed your instructions, still will not start. I have this now.

        bd71d5f4-924a-4f3c-b47b-58e9c5c98d9a-image.png

        did a pm2 show

        95f006b2-e291-4c92-9d2a-2c3ea40614ac-image.png

        Thanks

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

          @bworch do

          pm2 logs --lines=100
          

          may be better without pm2 for debug

          pm2 stop all
          cd ~/MagicMirror
          npm start >somefile.txt 2>&1

          wait 15 seconds
          ctrl-c

          edit the somefile.txt

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil couldn’t get the txt file to show. how would I edit it.

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

              @bworch nano somefile.txt

              or whatever text editor you like

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil
                4de124d9-ea8c-4250-9c47-d202f22058b5-image.png

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

                  @bworch fun times…

                  cd ~/MagicMirror
                  npm install electron@19.0.15
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil

                    c2506f1e-23e1-40f9-afbb-bc0b79c4dbe1-image.png

                    I thank you for sticking with me.

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

                      @bworch ok, I suggest you run my upgrade script

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

                      the upgrade script second pass with

                      force

                      instead of apply

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      B 2 Replies Last reply Reply Quote 0
                      • B Offline
                        bworch @sdetweil
                        last edited by

                        @sdetweil which line

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

                          @sdetweil I accidently ran it as is, I then couldn’t find where to make the change. Sorry

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

                            @bworch

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

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

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

                              @sdetweil My VNC terminal when Black, is that normal.

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

                                @bworch when? whouldn’t go black

                                i use SSH never VNC…

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  @sdetweil that command you gave me did a lot of stuff then went black, should I force a restart on the pi.

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

                                    @bworch it just ends and says upgrade completed

                                    I ‘guess’

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    B 2 Replies Last reply Reply Quote 0
                                    • B Offline
                                      bworch @sdetweil
                                      last edited by

                                      @sdetweil I did a force restart on the pi, and it is working on the screen, but VNC terminal isn’t picking it up, it just shows the pi splash screen. at least the display is working. Not sure why it isn’t showing on the VNC terminal.

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

                                        @sdetweil I guess it isn’t working I am getting a bunch of lines like this

                                        51c1c2da-5489-4d4c-b44f-ddd4bb4fabe2-image.png

                                        If you have any other ideas, let me know. I need to stop now. thanks very much.

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

                                          @bworch that is a pm2 error, needs to me updated

                                          see pm2 --help
                                          for update

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          B 2 Replies Last reply Reply Quote 0
                                          • B Offline
                                            bworch @bworch
                                            last edited by

                                            @bworch so I go another sm card build it again. I copied my config, modules, and CSS files over, and when I run an npm start MagicMorror I get the following. I guess we don’t use pm2 anymore. I get a black screen if it starts. I am also getting a commit or stash again. How do I commit or stash.

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

                                            [15.10.2022 15:26.51.630] [LOG] Starting MagicMirror: v2.21.0
                                            [15.10.2022 15:26.51.646] [LOG] Loading config …
                                            [15.10.2022 15:26.51.664] [LOG] Loading module helpers …
                                            [15.10.2022 15:26.51.671] [LOG] No helper found for module: alert.
                                            [15.10.2022 15:26.51.730] [LOG] Initializing new module helper …
                                            [15.10.2022 15:26.51.734] [LOG] Module helper loaded: updatenotification
                                            [15.10.2022 15:26.51.739] [LOG] No helper found for module: clock.
                                            [15.10.2022 15:26.51.743] [LOG] No helper found for module: currentweather.
                                            [15.10.2022 15:26.51.749] [LOG] No helper found for module: weatherforecast.
                                            [15.10.2022 15:26.52.581] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘async’
                                            Require stack:

                                            • /home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js
                                            • /home/bworch/MagicMirror/js/app.js
                                            • /home/bworch/MagicMirror/js/electron.js
                                            • /home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js

                                            [15.10.2022 15:26.52.605] [LOG] Loading module helpers …
                                            [15.10.2022 15:26.52.609] [LOG] No helper found for module: alert.
                                            [15.10.2022 15:26.52.612] [LOG] Initializing new module helper …
                                            [15.10.2022 15:26.52.616] [LOG] Module helper loaded: updatenotification
                                            [15.10.2022 15:26.52.619] [LOG] No helper found for module: clock.
                                            [15.10.2022 15:26.52.621] [LOG] No helper found for module: currentweather.
                                            [15.10.2022 15:26.52.624] [LOG] No helper found for module: weatherforecast.
                                            [15.10.2022 15:26.52.629] [ERROR] App threw an error during load
                                            [15.10.2022 15:26.52.634] [ERROR] Error: Cannot find module ‘async’
                                            Require stack:

                                            • /home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js
                                            • /home/bworch/MagicMirror/js/app.js
                                            • /home/bworch/MagicMirror/js/electron.js
                                            • /home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                            • at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
                                              at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
                                              at Module._resolveFilename (/home/bworch/MagicMirror/node_modules/module-alias/index.js:49:29)
                                              at Module._load (node:internal/modules/cjs/loader:785:27)
                                              at c._load (node:electron/js2c/asar_bundle:5:13343)
                                              at Module.require (node:internal/modules/cjs/loader:1012:19)
                                              at require (node:internal/modules/cjs/helpers:102:18)
                                              at Object. (/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js:3:13)
                                              at Module._compile (node:internal/modules/cjs/loader:1118:14)
                                              at Module._extensions…js (node:internal/modules/cjs/loader:1173:10)
                                              [15.10.2022 15:26.52.639] [ERROR] Whoops! There was an uncaught exception…
                                              [15.10.2022 15:26.52.663] [ERROR] Error: Cannot find module ‘async’
                                              Require stack:
                                            • /home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js
                                            • /home/bworch/MagicMirror/js/app.js
                                            • /home/bworch/MagicMirror/js/electron.js
                                            • /home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                            • at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
                                              at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
                                              at Module._resolveFilename (/home/bworch/MagicMirror/node_modules/module-alias/index.js:49:29)
                                              at Module._load (node:internal/modules/cjs/loader:785:27)
                                              at c._load (node:electron/js2c/asar_bundle:5:13343)
                                              at Module.require (node:internal/modules/cjs/loader:1012:19)
                                              at require (node:internal/modules/cjs/helpers:102:18)
                                              at Object. (/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js:3:13)
                                              at Module._compile (node:internal/modules/cjs/loader:1118:14)
                                              at Module._extensions…js (node:internal/modules/cjs/loader:1173:10) {
                                              code: ‘MODULE_NOT_FOUND’,
                                              requireStack: [
                                              ‘/home/bworch/MagicMirror/modules/MMM-Stock/node_helper.js’,
                                              ‘/home/bworch/MagicMirror/js/app.js’,
                                              ‘/home/bworch/MagicMirror/js/electron.js’,
                                              ‘/home/bworch/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
                                              undefined
                                              ]
                                              }
                                              [15.10.2022 15:26.52.673] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                              [15.10.2022 15:26.52.674] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                              [15.10.2022 15:26.53.407] [LOG] Launching application.
                                              [2177:1015/152654.435494:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
                                              [2204:1015/152654.735310:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
                                              [15.10.2022 15:27.30.480] [LOG] Shutting down server…
                                              [15.10.2022 15:27.30.487] [LOG] Stopping module helper: updatenotification
                                              [15.10.2022 15:27.30.490] [LOG] Stopping module helper: updatenotification
                                              [15.10.2022 15:27.30.492] [ERROR] Whoops! There was an uncaught exception…
                                              [15.10.2022 15:27.30.496] [ERROR] TypeError: Cannot read properties of undefined (reading ‘close’)
                                              at App.stop (/home/bworch/MagicMirror/js/app.js:257:14)
                                              at App. (/home/bworch/MagicMirror/js/electron.js:145:7)
                                              at App.emit (node:events:526:28)
                                              at appMethod (node:electron/js2c/browser_init:69:1830)
                                              at Object.execute (node:electron/js2c/browser_init:69:5966)
                                              at MenuItem.click (node:electron/js2c/browser_init:73:1862)
                                              at a._executeCommand (node:electron/js2c/browser_init:81:2453)
                                              [15.10.2022 15:27.30.499] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                              [15.10.2022 15:27.30.501] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                              bworch@raspberrypi:~/MagicMirror $

                                            not sure what to do. may have a bad config file. thanks

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 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