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

MM on Ubuntu

Scheduled Pinned Locked Moved Solved Troubleshooting
90 Posts 4 Posters 34.5k 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 @dwburger
    last edited by Apr 24, 2020, 6:20 PM

    @dwburger said in MM on Ubuntu:

    (CRON) info (No MTA installed, discarding output)

    see the last answer here
    https://superuser.com/questions/445347/why-is-my-crontab-not-running

    but that doesn’t some why pm2 was not executed
    note that you saved the pm2 config as user pi, and cron will run as root

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • D Offline
      dwburger
      last edited by Apr 24, 2020, 6:53 PM

      Hmmm…installed the default MTA for Ubuntu 18 which fixed the error message in the logfile, but pm2 still didn’t restart the MM2. I’m afraid I don’t really understand your note about pi versus root cron running. I can “sudo crontab -e” if that’s a better idea. I will add, my Ubuntu is starting up with its GUI and then I’m opening a terminal window to start MM2 using “pm2 start mm.sh”.

      S 1 Reply Last reply Apr 24, 2020, 7:02 PM Reply Quote 0
      • S Offline
        sdetweil @dwburger
        last edited by Apr 24, 2020, 7:02 PM

        @dwburger ok, but you don’t have to do ANY of this… if you used my install script, it set pm2 to autostart on boot

        to fix if you DIDN’T use my install script, use my fixuppm2 script
        see
        https://github.com/sdetweil/MagicMirror_scripts

        read the readme.

        if MM crashes, pm2 auto restarts

        YOU don’t have to have any additional commands any where

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • D Offline
          dwburger
          last edited by Apr 24, 2020, 9:46 PM

          I may have given you the wrong impression…I really don’t know my way around Linux/Ubuntu. However, I was able to run your fixuppm2 script and I now see what you mean about not having to do anything else. I’m getting the behavior I want. When I reboot my machine MM2 starts right up. I’m getting ready to make another MM2 on a mini PC running Ubuntu. This time, I’m going to use your install script!

          1 Reply Last reply Reply Quote 2
          • D Offline
            dwburger
            last edited by Apr 25, 2020, 3:42 AM

            OK…your script did a great job in getting a new MM installed onto another Ubuntu machine. There’s one odd behavior I’m noticing. When the MM2 first comes up after power-on or reboot, not all the modules get started. I have to press the key and the File -> Close. When the MM2 comes up again all is well. I’m wondering why that is??? Is it possible to place a delay in the config.js (or somewhere else) so each module has plenty of time to get started. Maybe there’s another solution to this behavior???
            BTW…thanks for all your work on the installation scripts and the help you’ve provided!

            S 1 Reply Last reply Apr 25, 2020, 3:44 AM Reply Quote 0
            • S Offline
              sdetweil @dwburger
              last edited by Apr 25, 2020, 3:44 AM

              @dwburger i have never seen that behavior…

              do you have two entries in pm2??
              show the results of

              pm2 status
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • D Offline
                dwburger
                last edited by Apr 27, 2020, 5:59 AM

                No, just 1…MagicMirror.

                S 1 Reply Last reply Apr 27, 2020, 11:28 AM Reply Quote 0
                • S Offline
                  sdetweil @dwburger
                  last edited by sdetweil Apr 27, 2020, 12:12 PM Apr 27, 2020, 11:28 AM

                  @dwburger hm… what system is this on? I have 9 instances running… never seen it behave that way… MM controls all the modules

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dwburger
                    last edited by Apr 27, 2020, 5:32 PM

                    This is on a MiniPC running Ubuntu 18.04.4.

                    S 1 Reply Last reply Apr 27, 2020, 5:52 PM Reply Quote 0
                    • S Offline
                      sdetweil @dwburger
                      last edited by Apr 27, 2020, 5:52 PM

                      @dwburger hm… my desktop is ubuntu 18.04, w MM running… on second display

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      D 1 Reply Last reply Apr 27, 2020, 5:58 PM Reply Quote 0
                      • 1
                      • 2
                      • 5
                      • 6
                      • 7
                      • 8
                      • 9
                      • 8 / 9
                      8 / 9
                      • First post
                        80/90
                        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