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.

    Mirror not starting after update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    33 Posts 4 Posters 4.4k 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.
    • S Offline
      sdetweil @xIExodusIx
      last edited by

      @xIExodusIx

      https://kristjanesperanto.github.io/MagicMirror-3rd-Party-Modules/

      @xIExodusIx said in Mirror not starting after update:

      you are on node 20.9.

      there are 2 local files that are different than the master repo

      package-lock.json
      package.json

      save/restore files selection = y

      sorry, you cannot save/restore those two files…
      they are the KEY files for each release

      so, do

      cd ~/MagicMirror
      git diff package.json >somefile.txt
      git checkout package.json
      git checkout package-lock.json
      rm -rf node_modules
      npm run install-mm
      

      any changes you made to package.json are shown in the
      somefile.txt if you need to re-apply them to the new package.json file

      generally first rule, NEVER edit any files we ship.
      1 it breaks upgrades
      2 YOU are RESPONSIBLE for remembering WHAT and WHY you did it and how to fix it for next time.

      this is why my upgrade script is TWO passes… to detect changes to critical files and warn you … help you remember (before we whack them)

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      X 1 Reply Last reply Reply Quote 0
      • X Offline
        xIExodusIx @sdetweil
        last edited by

        @sdetweil
        Sorry I didn’t know that, I thought that it were better to save/restore these files. Next time i will answer that question with no.

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

          @xIExodusIx BUT their presence in the list SHOULD have made you think…

          what did I change? and is it still important…

          that is why I recommend running the test pass to find those things…

          my hope is to never break a running mirror…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          X 1 Reply Last reply Reply Quote 0
          • X Offline
            xIExodusIx @sdetweil
            last edited by

            @sdetweil
            Sorry, I thougt they were important so thought it were better to save/restore them.
            I never changed anything in them, I can not code, I’m too stupid for coding!
            The question will you save tells me they are important otherwise they were maybe orverwritten so it is better to save them.
            I did not know that they were KEY-files for each new versions of MM and had (must) to be replaced by new ones.
            I never will answer that quesion with yes again.
            Now I will start to install my MM from scratch again for get it work. This will be my last attemp. When this does not work this time I will give up my MagicMirror project.

            Thanks for helping.

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

              @xIExodusIx you do not need to start over…

              jut use the command I gave to restore the 2 files and do the npm install again

              all will be well…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              X 2 Replies Last reply Reply Quote 0
              • X Offline
                xIExodusIx @sdetweil
                last edited by

                @sdetweil
                I did that, but my MM won’t show up!
                And now it’s to late I already killed my USB-Boot-Stick by writing the working MM-Image from yesterday to it.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  chrisfr1976 @sdetweil
                  last edited by

                  @sdetweil

                  Mirror is running now. I used

                  cd ~/MagicMirror
                  git checkout package.json
                  git checkout package-lock.json
                  rm -rf node_modules
                  npm run install-mm
                  

                  I didn‘t change anything there but this fixed my main problem.

                  But I still have this error message when I use pm2 start whatever. But it may be cosmetics…

                  Thanks for your help one again!

                  Chris

                  Regards, Chris.

                  1 Reply Last reply Reply Quote 0
                  • X Offline
                    xIExodusIx @sdetweil
                    last edited by

                    @sdetweil

                    So it’s up and running with MM 2.29.
                    I think I will never touch it again, only make OS updates/upgrades and nothing else.

                    1 Reply Last reply Reply Quote 0
                    • S sdetweil has marked this topic as solved on
                    • 1
                    • 2
                    • 3
                    • 4
                    • 1 / 4
                    • 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