MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. Tags
    3. pm2
    Log in to post
    • All categories
    • sapblatt11

      Fixsandbox script not working, unable to run as root
      Troubleshooting • electron gpio pm2 root • • sapblatt11

      4
      0
      Votes
      4
      Posts
      294
      Views

      S

      my script turns off the need to run in sudo mode

      we should never run mm in sudo, or install w sudo

    • T

      UNSOLVED PM2 - debug module?
      Troubleshooting • pm2 error update • • traustisig

      5
      0
      Votes
      5
      Posts
      507
      Views

      S

      @traustisig also, there is a new upgrade script in next release…

      see https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing

      to use it now

    • D

      SOLVED PM2 does not start the Magic Mirror
      Troubleshooting • pm2 error enoent • • DarioCas

      15
      0
      Votes
      15
      Posts
      9818
      Views

      D

      Hey Guys!

      it works now!
      i did it as described with the mm script here: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

      thank you for all your replies!

      Regards

      Dario

    • J

      PM2: Four instances using 100 % CPU
      System • pm2 zero instances • • janth

      1
      0
      Votes
      1
      Posts
      1100
      Views

      J

      Hallo 🙂

      I know it’s not how it’s supposed to be but I use a Pi Zero running Stretch lite. I start the Mm using „node /serveronly“ in a .sh script and launch chromium afterwards.

      Typing in these commands works perfectly fine. Everything takes some time to boot, but then, it just works.

      To start it after bootup, I use Pm2. It takes some time but it works. The problem is: the Pi‘s CPU is at 100 % all the time since node /serveronly runs 4 times and each needs between 15 and 20 %.

      How can I fix that? Any idea?

    • M

      UNSOLVED Magic Mirror on the RPi1
      Troubleshooting • magic mirror rpi1 raspberry pi 1 problems newsfeed calendar boot autostart pm2 serveronly • • MMRPi1

      3
      0
      Votes
      3
      Posts
      1583
      Views

      M

      How would I do that??
      Sorry again I’m quite new at this…

    • H

      Issue with PM2 autostart...
      Troubleshooting • pm2 • • hawk13

      1
      1
      Votes
      1
      Posts
      1681
      Views

      H

      Hey I am getting an error when trying to configure the PM2 autostart. I ran the command they give:
      pi@raspberrypi:~ $ sudo env PATH=$PATH:/usr/bin / usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi

      Then it runs and I run the chmod script then when I try to run
      pm2 start mm.sh

      I get

      pi@raspberrypi:~ $ pm2 start mm.sh events.js:160 throw er; // Unhandled 'error' event ^ Error: connect EACCES /home/pi/.pm2/rpc.sock at Object.exports._errnoException (util.js:1022:11) at exports._exceptionWithHostPort (util.js:1045:20) at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)

      Any suggestions?

    • L

      cant get magicmirror to show up on screen
      Troubleshooting • pm2 troubleshoot • • lysnikolaou

      28
      0
      Votes
      28
      Posts
      15589
      Views

      yo-less

      @lysnikolaou Welcome to the world of MagicMirror² 🙂

    • D

      SOLVED Configuring autostart with pm2
      Troubleshooting • pm2 configuration • • derekhuffman

      3
      0
      Votes
      3
      Posts
      10661
      Views

      KirAsh4

      Regarding the ‘keyboard and mouse’ part in your post … I use a wireless set. So the rPi is mounted behind the monitor and only has 2 wires on it: power and HDMI. There’s a USB dongle plugged in that’s for the keyboard and mouse which I rarely use. Specially since I log in remotely. The only time I need the mouse or keyboard is if something bad happened and the rPi won’t boot up normally. But other than that, not needed.

    • 1 / 1