Read the statement by Michael Teeuw here.
pm2 Error auto starting
-
I’ve followed all the instructions mentioned here
This is the error that I’m facing
pi@raspberrypi:~ $ pm2 start mm.sh [PM2] Applying action restartProcessId on app [mm](ids: 0) [PM2] [mm](0) ✓ [PM2] Process successfully started ┌──────┬────┬──────┬─────────┬─────┬─────┬────────┐ │ Name │ id │ mode │ status │ ↺ │ cpu │ memory │ ├──────┼────┼──────┼─────────┼─────┼─────┼────────┤ │ mm │ 0 │ fork │ stopped │ 136 │ 0% │ 0 B │ └──────┴────┴──────┴─────────┴─────┴─────┴────────┘ Use `pm2 show <id|name>` to get more details about an app pi@raspberrypi:~ $ pm2 logs mm [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option) /home/pi/.pm2/logs/mm-out.log last 15 lines: /home/pi/.pm2/logs/mm-error.log last 15 lines: 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied 0|mm | bash: /home/pi/mm.sh: Permission denied ^C pi@raspberrypi:~ $ -
-
@sdetweil said in pm2 Error auto starting:
@qqqqqqqq
mm.sh is not marked executable at all or for the user trying to execute it…to make it executable for the user… but not any other user
use the commandchmod 766 /home/pi/mm.shto make it executable by ANY user (root/pi/…)
dochmod +x /home/pi/mm.shThanks! Worked perfectly.
But I wonder why it didn’t give mm.sh the permission when i used the command.chmod +x mm.sh -
@qqqqqqqq said in pm2 Error auto starting:
But I wonder why it didn’t give mm.sh the permission when i used the command.
what folder where u in at the time you issued the chmod +x mm.sh?
if MagicMirror , then it would have failed… should have given and error
-
I would say is more ‘sure’ when you are in the right folder to do :
sudo chmod +x ./mm.sh
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login