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

Installation issues - pm2

Scheduled Pinned Locked Moved Unsolved Troubleshooting
18 Posts 2 Posters 4.0k Views 2 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 @joebowers
    last edited by sdetweil Feb 8, 2024, 4:14 PM Feb 8, 2024, 4:13 PM

    @joebowers ok, now lets look at the pm2 log…

    pm2 logs --lines=50
    

    50 may need to be bigger… defaults to 15

    there are two different outputs… the normal messages (stdout) and the error (stderr)

    the files for the saved logs are in the .pm2/logs folder (note the . in front of pm2)

    did you install MM under root?? the permissions thing is concerning…

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    J 1 Reply Last reply Feb 8, 2024, 4:24 PM Reply Quote 0
    • J Offline
      joebowers @sdetweil
      last edited by Feb 8, 2024, 4:24 PM

      @sdetweil I tried to follow the tutorial step by step. I’m not sure if that has be installing as root.
      This is what I see when I look at the log.
      pm2_logs.jpg

      This was the most I could screen shot, this log was very long.

      S 1 Reply Last reply Feb 8, 2024, 4:27 PM Reply Quote 0
      • S Offline
        sdetweil @joebowers
        last edited by sdetweil Feb 8, 2024, 4:28 PM Feb 8, 2024, 4:27 PM

        @joebowers /home/joe/MagicMirror/mm.sh no such file

        is that where the file is?

        does it have permission to execute?

        ls -laF mm.sh
        

        so,

        chmod +x mm.sh
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Feb 8, 2024, 6:27 PM Reply Quote 0
        • J Offline
          joebowers @sdetweil
          last edited by Feb 8, 2024, 6:27 PM

          @sdetweil I was fooling around before coming to this forum for help. I believe I copied the mm.sh file into that folder, then later removed it. I put it back and saw this in the log:
          pm2_logs2.jpg

          Then I realized I have a space after DISPLAY =, and there is no space between the two in the tutorials.
          So I fix that and tried running again, I see this:
          mirror_pm2_screenshot2.jpg

          But no mirror software on the screen…

          S 1 Reply Last reply Feb 8, 2024, 6:40 PM Reply Quote 0
          • S Offline
            sdetweil @joebowers
            last edited by Feb 8, 2024, 6:40 PM

            @joebowers ok

            pm2 stop all
            pm2 flush

            then execute mm.sh

            cd ~
            MagicMirror/mm.sh
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Feb 9, 2024, 3:39 AM Reply Quote 0
            • J Offline
              joebowers @sdetweil
              last edited by Feb 9, 2024, 3:39 AM

              @sdetweil Okay I did all that and the Magic Mirror software starts.
              Should I try:

              pm2 start mm.sh
              pm2 save
              

              As stated in the tutorial?

              S 1 Reply Last reply Feb 9, 2024, 4:06 AM Reply Quote 0
              • S Offline
                sdetweil @joebowers
                last edited by sdetweil Feb 9, 2024, 4:06 AM Feb 9, 2024, 4:06 AM

                @joebowers we should clean up the other entries

                I think it

                pm2 delete row_number
                

                (you could use name if the names were unique)

                pm2 --help 
                

                will tell you the command syntax

                pm2 start mm.sh 
                

                if you are in the folder w the mm.sh

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                J 2 Replies Last reply Feb 9, 2024, 4:24 AM Reply Quote 0
                • J Offline
                  joebowers @sdetweil
                  last edited by Feb 9, 2024, 4:24 AM

                  @sdetweil Okay I deleted all the rows, there were 4 of them.
                  Then I run

                  pm2 start mm.sh
                  

                  No mirror software but I see this
                  mirror_pm2_screenshot3.jpg

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    joebowers @sdetweil
                    last edited by Feb 9, 2024, 4:26 AM

                    @sdetweil In case it helps, I’m seeing this in the pm2 logs
                    pm2_logs3.jpg

                    S 1 Reply Last reply Feb 9, 2024, 5:18 AM Reply Quote 0
                    • S Offline
                      sdetweil @joebowers
                      last edited by Feb 9, 2024, 5:18 AM

                      @joebowers why are you running at root?

                      Screenshot_20240208_221735_Chrome.jpg

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      J 1 Reply Last reply Feb 9, 2024, 5:41 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        10/18
                        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