• 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.

pm2 no longer launching MM

Scheduled Pinned Locked Moved Unsolved Troubleshooting
38 Posts 3 Posters 8.4k 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.
  • S Offline
    sdetweil @JMac
    last edited by Apr 16, 2023, 11:45 AM

    @JMac and u erased the node_modules folder ( the rm -rf)

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    J 2 Replies Last reply Apr 16, 2023, 12:43 PM Reply Quote 0
    • J Offline
      JMac @sdetweil
      last edited by Apr 16, 2023, 12:43 PM

      @sdetweil yes ran all three lines you posted.

      1 Reply Last reply Reply Quote 0
      • J Offline
        JMac @sdetweil
        last edited by Apr 16, 2023, 12:50 PM

        @sdetweil Sorry to double reply, I ran the last 2 again and they worked ok, right up until the very end of the npm install when I got an ERR_SOCKET_TIMEOUT.
        I’m assuming this is a wifi strength issue as the position of this mirror means it struggles at times.

        S 1 Reply Last reply Apr 16, 2023, 12:54 PM Reply Quote 0
        • S Offline
          sdetweil @JMac
          last edited by Apr 16, 2023, 12:54 PM

          @JMac yeh, everything is very network dependent…

          I ended up installing a mesh wifi system to be able to put an access point near where my hall mirror is

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          J 1 Reply Last reply Apr 16, 2023, 2:36 PM Reply Quote 0
          • J Offline
            JMac @sdetweil
            last edited by Apr 16, 2023, 2:36 PM

            @sdetweil Managed to run it a second time and everything seems happy, however, the pm2 start mm.sh still isn’t launching the MM itself.
            Is there any other way to launch the mirror, or a way to check why it’s suddenly lost function (it was always happy launching and stopping the MM) ?

            S 1 Reply Last reply Apr 16, 2023, 2:38 PM Reply Quote 0
            • S Offline
              sdetweil @JMac
              last edited by Apr 16, 2023, 2:38 PM

              @JMac so, I would do this

              pm2 stop all

              cd ~/MagicMirror
              npm start

              does it run correctly?

              you MAY have to update pm2, its just an app too…
              depending on how old it was

              see the pm2 --help
              for the command to do its update

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              J 1 Reply Last reply Apr 16, 2023, 3:01 PM Reply Quote 0
              • J Offline
                JMac @sdetweil
                last edited by Apr 16, 2023, 3:01 PM

                @sdetweil when I run npm start from the MM folder I get:

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

                sh: 1: ./node_modules/.bin/electron: not found

                S 1 Reply Last reply Apr 16, 2023, 3:45 PM Reply Quote 0
                • S Offline
                  sdetweil @JMac
                  last edited by Apr 16, 2023, 3:45 PM

                  @JMac ok, do this

                  what device is this on? pi3?

                  cd ~/MagicMirror
                  rm -rf node_modules/electron
                  npm install electron@22.3.4
                  npm start
                  

                  please advise

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J 1 Reply Last reply Apr 16, 2023, 4:11 PM Reply Quote 0
                  • J Offline
                    JMac @sdetweil
                    last edited by Apr 16, 2023, 4:11 PM

                    @sdetweil this is on a 3b+.
                    when running npm install I’m now back to an error for ENOTEMPTY for node_modules/ansi-escapes.
                    it says directory not empty.
                    I think it wants it renamed no_modules/.ansi-escapes-TiTd7xs1

                    S 1 Reply Last reply Apr 16, 2023, 4:15 PM Reply Quote 0
                    • S Offline
                      sdetweil @JMac
                      last edited by Apr 16, 2023, 4:15 PM

                      @JMac ok, try this

                      rm -rf node_modules/electron
                      rm package-lock.json 
                      npm install electron@22.3.4
                      npm start
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      J 1 Reply Last reply Apr 16, 2023, 7:07 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 1 / 4
                      1 / 4
                      • First post
                        8/38
                        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