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 not starting after update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    20 Posts 3 Posters 6.2k Views 4 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
      jani.karna
      last edited by

      I updated my MagicMirror to latest version, and now it does not start.

      pm2 logs mm
      

      shows this:

      0|mm  | A JavaScript error occurred in the main process
      0|mm  | Uncaught Exception:
      0|mm  | Error: Cannot find module 'module-alias/register'
      0|mm  |     at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
      0|mm  |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
      0|mm  |     at Function.Module._load (internal/modules/cjs/loader.js:528:25)
      0|mm  |     at Module.require (internal/modules/cjs/loader.js:658:17)
      0|mm  |     at require (internal/modules/cjs/helpers.js:20:18)
      0|mm  |     at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:15:1)
      0|mm  |     at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:283:3)
      0|mm  |     at Module._compile (internal/modules/cjs/loader.js:711:30)
      0|mm  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
      0|mm  |     at Module.load (internal/modules/cjs/loader.js:620:32)
      
      

      I had a feeling I shouldn’t do this, but I did anyway. How to fix it?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @jani.karna
        last edited by

        @jani-karna how did u update?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • D Offline
          dicker182
          last edited by

          same here, I just did an

          git stash
          git pull

          in the Magicmirrir directory

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

            @dicker182 also need npm install

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              dicker182 @sdetweil
              last edited by

              @sdetweil thats it. Thank you!

              1 Reply Last reply Reply Quote 0
              • J Offline
                jani.karna
                last edited by

                npm install helped me also. Thank you!

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @jani.karna
                  last edited by

                  @jani-karna thanks, can u tell me where u got the update instructions?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    jani.karna @sdetweil
                    last edited by

                    @sdetweil
                    from here:

                    https://github.com/MichMich/MagicMirror#updating-you-magicmirror
                    

                    and followed the instructions in “updating”-section. I first did the “test” update and then after no problems used the “apply” as instructed there.
                    It didn’t mention “npm install” there.

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @jani.karna
                      last edited by

                      @jani-karna ok, the script WOULD have done the update, but it failed…

                      can u send me the MagicMirror/installers/upgrade.log?

                      same id as here on gmail…

                      thanks

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      J 2 Replies Last reply Reply Quote 0
                      • J Offline
                        jani.karna @sdetweil
                        last edited by

                        @sdetweil should be on its way now.

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          jani.karna @sdetweil
                          last edited by

                          @sdetweil is there any easy way of backing up any modified files, configs or .css files. The upgrade messed up a lot and even when I thought I had everything backed up as files there were a lot of changes I had to manually fix afterwards.

                          The upgrade process mentioned custom.css to be saved and restored after but it didn’t.

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @jani.karna
                            last edited by

                            @jani-karna hm… there is only one file saved/restored, cause all the other files aren’t touched…

                            were u on 2.9 before? the log says 2.10, so there was a git put or something before

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              jani.karna @sdetweil
                              last edited by jani.karna

                              @sdetweil no that I remember, I actually used instruction from this forum before and used “git pull” in MagicMirror directory first. After that I found the instructions I told you in the earlier post when my MM wouldn’t start. Then I tried that and when it still didn’t start I posted here.

                              S 2 Replies Last reply Reply Quote 0
                              • S Offline
                                sdetweil @jani.karna
                                last edited by

                                @jani-karna ok, git pull yanked u up to 2.10.0 i expect

                                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 @jani.karna
                                  last edited by

                                  @jani-karna said in MM not starting after update:

                                  and used “git pull” in MagicMirror directory first.

                                  there were two parts to the command

                                  git pull & npm install

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  J 1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jani.karna @sdetweil
                                    last edited by

                                    @sdetweil well actually 3 parts, as apparently I didn’t know what I was doing.

                                    1. git pull
                                    2. bash -c “$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/upgrade-script.sh)” apply
                                    3. npm install (after finding out it is needed)
                                    S 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      sdetweil @jani.karna
                                      last edited by sdetweil

                                      @jani-karna yeh, the initial instructions should have been either of these, but not both

                                      1. git pull & npm install

                                      2. use the update_script (which does all of 1 plus more)

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      J 1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        jani.karna @sdetweil
                                        last edited by

                                        @sdetweil yeah… the instructions should be updated so that others won’t make same mistake as I did.

                                        S 2 Replies Last reply Reply Quote 0
                                        • S Offline
                                          sdetweil @jani.karna
                                          last edited by

                                          @jani-karna thanks for your info…

                                          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 @jani.karna
                                            last edited by

                                            @jani-karna Mich has released new doc now
                                            see
                                            https://forum.magicmirror.builders/topic/11987/dedicated-documentation-site

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            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 / 1
                                            • 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