• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

After update 2.23.0 crash

Scheduled Pinned Locked Moved Bug Hunt
56 Posts 9 Posters 15.7k Views 8 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.
  • W Offline
    Wenike @sdetweil
    last edited by Apr 5, 2023, 1:11 PM

    @sdetweil By chance, do you know of a command I can run to kill any running Node processes? I’m trying to run your upgrade script and its unable to upgrade Node because a process is already running. Googling gives me code to use within an application but that doesn’t seem like it’ll work from the CLI.

    doing test run = false
    update log will be in /home/pi/MagicMirror/installers/upgrade.log
    Check current Node installation ...
    Node currently installed. Checking version number.
    Minimum Node version: v16.13.1
    Installed Node version: v10.24.1
    Node should be upgraded.
    A Node process is currently running. Can't upgrade.
    Please quit all Node processes and restart the update.
    running process(s) are
    pi 881 879 0 09:05 ? 00:00:00 node ./node_modules/.bin/electron js/electron.js
    
    S 1 Reply Last reply Apr 5, 2023, 3:19 PM Reply Quote 0
    • M Offline
      mumblebaj Module Developer @JerryP
      last edited by Apr 5, 2023, 2:53 PM

      @JerryP Always use Sam’s update script. I used it last night and updated from 2.21.0 to 2.23.0 no issues. Often modules with a package.json requires an npm install in that folder and the upgrade script takes care of all of that.

      Check out my modules at: https://github.com/mumblebaj?tab=repositories

      1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @Wenike
        last edited by Apr 5, 2023, 3:19 PM

        @Wenike do this

        from a terminal window

        ps -ef | grep node
        

        this will show you the node processes running and parms to what they are running (file path)

        if all looks understandable and u can’t terminate them thru app shutdown (pm2 stop all will stop all.managed apps, mm included), do

        ps -ef | grep node | awk '{ print $2 }' | xargs kill -9
        

        this will hard kill all the node processes

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        W 1 Reply Last reply Apr 5, 2023, 11:20 PM Reply Quote 0
        • S Away
          sdetweil @JoeFranz
          last edited by sdetweil Apr 5, 2023, 3:34 PM Apr 5, 2023, 3:34 PM

          @JoeFranz

          the script does a new npm install in modules that have a package.json

          but I know the post install process is wrong for this module

          my fork fixes that
          https://github.com/sdetweil/MMM-PIR-Sensor

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • W Offline
            Wenike @sdetweil
            last edited by Apr 5, 2023, 11:20 PM

            @sdetweil Perfect, fixed it. Thanks!

            1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @JerryP
              last edited by Apr 6, 2023, 9:42 PM

              @JerryP said in After update 2.23.0 crash:

              sudo git pull

              just one more thing

              NEVER use sudo with MM no need for it.
              all it does is lead to trouble

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • H Offline
                hrjmsh @sdetweil
                last edited by hrjmsh Apr 8, 2023, 10:19 PM Apr 8, 2023, 10:16 PM

                @sdetweil Thank you very much. Had the same error (cannot find module envsub) on updating the MagicMirror to the new version and this step (rm -rf node_modules and then npm install again) solved the issue for me.

                S T 2 Replies Last reply Apr 8, 2023, 11:30 PM Reply Quote 0
                • S Away
                  sdetweil @hrjmsh
                  last edited by Apr 8, 2023, 11:30 PM

                  @hrjmsh you should use my upgrade script

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  H 1 Reply Last reply Apr 9, 2023, 3:26 PM Reply Quote 0
                  • H Offline
                    hrjmsh @sdetweil
                    last edited by Apr 9, 2023, 3:26 PM

                    @sdetweil I did, both with and without changes applied. Unfortunately, it didn’t work for me. The only thing that worked was the solution you provided by removing the node_modules and then reinstalling npm.

                    S 1 Reply Last reply Apr 9, 2023, 3:30 PM Reply Quote 0
                    • S Away
                      sdetweil @hrjmsh
                      last edited by Apr 9, 2023, 3:30 PM

                      @hrjmsh can u send me the MagicMirror/installers/upgrade.log

                      same userid at gmail

                      never seen this problem

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 5 / 6
                      5 / 6
                      • First post
                        45/56
                        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