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 startup problem after update

    Scheduled Pinned Locked Moved Unsolved Requests
    42 Posts 3 Posters 5.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.
    • S Offline
      sdetweil @manu85340
      last edited by

      @manu85340 ok, we need to back up to version 2.27 and node 18

      so, first lets go back to node 18

      sudo n 18
      

      verify

      node -v
      

      should return something like this

      ~/MagicMirror$ node -v
      v18.20.3
      

      if that is successful, then on to MagicMirror

      cd ~/MagicMirror
      git fetch --tags
      git checkout -b temp v.2.27.0
      rm package-lock.json
      rm -rf node_modules
      npm run install-mm
      

      then MagicMirror should start and run

      npm start 
      

      and not for startup

      sudo reboot
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        manu85340 @sdetweil
        last edited by

        @sdetweil Sam I have an error when I pass the line

        git checkout -b temp v.2.27.0
        
        

        pi@MagicMirror:~ $ node -v
        v18.20.3
        pi@MagicMirror:~ $ cd ~/MagicMirror
        pi@MagicMirror:~/MagicMirror $ git fetch --tags
        remote: Enumerating objects: 4, done.
        remote: Counting objects: 100% (4/4), done.
        remote: Compressing objects: 100% (4/4), done.
        remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
        D▒paquetage des objets: 100% (4/4), fait.
        Depuis https://github.com/MagicMirrorOrg/MagicMirror

        • [nouvelle branche] dependabot/npm_and_yarn/develop/stylistic/eslint-plugin-2.3.0 -> origin/dependabot/npm_and_yarn/develop/stylistic/eslint-plugin-2.3.0
          ! [rejet▒] v2.17.0 -> v2.17.0 (▒craserait l’▒tiquette existante)
          pi@MagicMirror:~/MagicMirror $ git checkout -b temp v.2.27.0
          fatal: ‘v.2.27.0’ n’est pas un commit et une branche ‘temp’ ne peut pas en ▒tre cr▒▒e depuis
        
        
        

        so I’m not going any further, I’m waiting for your instructions

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

          @manu85340 said in MM startup problem after update:

          git checkout -b temp v.2.27.0

          my fault (that little dot after the v!..) sorry

          git checkout -b temp v2.27.0
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            manu85340 @sdetweil
            last edited by

            @sdetweil I have an error see below, thanks Sam

            pi@MagicMirror:~/MagicMirror $ git checkout -b temp v2.27.0
            Basculement sur la nouvelle branche ‘temp’
            pi@MagicMirror:~/MagicMirror $ rm package-lock.json
            pi@MagicMirror:~/MagicMirror $ rm -rf node_modules
            pi@MagicMirror:~/MagicMirror $ npm run install-mm

            magicmirror@2.27.0 install-mm
            npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev

            /
            <— Last few GCs —>

            [25028:0x4545870] 27358 ms: Mark-sweep (reduce) 226.0 (233.8) -> 225.8 (233.8) MB, 271.2 / 0.0 ms (average mu = 0.812, current mu = 0.296) allocation failure; scavenge might not succeed
            [25028:0x4545870] 27592 ms: Mark-sweep (reduce) 226.3 (233.8) -> 226.2 (234.3) MB, 230.3 / 0.0 ms (average mu = 0.653, current mu = 0.018) allocation failure; scavenge might not succeed

            <— JS stacktrace —>

            FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
            Aborted
            pi@MagicMirror:~/MagicMirror $

            BKeyportB 1 Reply Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer @manu85340
              last edited by

              You know, I just realized that the “blank screen” I mentioned earlier was actually just my screen setup. In fact, this is the same errors I was having with the NPM/Node being out of date…

              The "E" in "Javascript" stands for "Easy"

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                manu85340 @BKeyport
                last edited by

                @BKeyport ok thank you for your answer I’m waiting to see if @sdetweil sdetweil finds a solution

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

                  @manu85340 see this post (and the one before it) in an issue w the same problem
                  https://github.com/sdetweil/MagicMirror_scripts/issues/89#issuecomment-2176865685

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    manu85340 @sdetweil
                    last edited by

                    @sdetweil hi Sam if I understand correctly it is not possible to restart the MM with the update that I passed, that’s it,

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

                      @manu85340 I don’t understand.

                      we have restored back to 2.27

                      2.28 will not run on buster

                      you need the next at least bullseye
                      bur if you are upgrading, go to current, bookworm

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        manu85340 @sdetweil
                        last edited by

                        @sdetweil Sam a few posts above I told you that I had a problem passing this line:

                        git checkout -b temp v.2.27.0
                        
                        so I didn't pass the other command lines
                        
                        

                        rm package-lock.json
                        rm -rf node_modules
                        npm run install-mm

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 1 / 5
                        • 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