MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. Skorpionbird
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 24
    • Best 1
    • Controversial 0
    • Groups 0

    Skorpionbird

    @Skorpionbird

    1
    Reputation
    462
    Profile views
    24
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Skorpionbird Unfollow Follow

    Best posts made by Skorpionbird

    • RE: MagicMirror is hanging over night

      Edit:

      I found a solution for me. I have generated a daily task with crontab (https://www.raspberrypi.org/documentation/linux/usage/cron.md), which restarts the MagicMirror with pm2 restart MagicMirror.sh every morning at 5 o’clock.

      open crontab with crontab -e add 0 5 * * * pm2 restart MagicMirror.sh to the end off the file.

      posted in Troubleshooting
      S
      Skorpionbird

    Latest posts made by Skorpionbird

    • RE: pm2 dosn`t start mm.sh after reboot

      @sdetweil said in pm2 dosn`t start mm.sh after reboot:

      sudo env PATH=$PATH:/usr/local/bin pm2 startup systemd -u pi --hp /home/pi

      thx with this it works fine

      posted in Troubleshooting
      S
      Skorpionbird
    • RE: pm2 dosn`t start mm.sh after reboot

      @sdetweil its a Rpi 2 with Noobs Rasbian GNU Linux 10

      posted in Troubleshooting
      S
      Skorpionbird
    • RE: pm2 dosn`t start mm.sh after reboot

      any news?

      posted in Troubleshooting
      S
      Skorpionbird
    • RE: pm2 dosn`t start mm.sh after reboot

      @sdetweil oh sry here is it
      pm2 logs
      [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
      [PM2] PM2 Successfully daemonized
      [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
      /home/pi/.pm2/pm2.log last 15 lines:
      PM2        | 2019-11-05T19:12:24: PM2 log: ===============================================================================
      PM2        | 2019-11-05T19:12:24: PM2 log: — New PM2 Daemon started ----------------------------------------------------
      PM2        | 2019-11-05T19:12:24: PM2 log: Time                 : Tue Nov 05 2019 19:12:24 GMT+0100 (GMT+01:00)
      PM2        | 2019-11-05T19:12:24: PM2 log: PM2 version          : 4.1.2
      PM2        | 2019-11-05T19:12:24: PM2 log: Node.js version      : 10.17.0
      PM2        | 2019-11-05T19:12:24: PM2 log: Current arch         : arm
      PM2        | 2019-11-05T19:12:24: PM2 log: PM2 home             : /home/pi/.pm2
      PM2        | 2019-11-05T19:12:24: PM2 log: PM2 PID file         : /home/pi/.pm2/pm2.pid
      PM2        | 2019-11-05T19:12:24: PM2 log: RPC socket file      : /home/pi/.pm2/rpc.sock
      PM2        | 2019-11-05T19:12:24: PM2 log: BUS socket file      : /home/pi/.pm2/pub.sock
      PM2        | 2019-11-05T19:12:24: PM2 log: Application log path : /home/pi/.pm2/logs
      PM2        | 2019-11-05T19:12:24: PM2 log: Process dump file    : /home/pi/.pm2/dump.pm2
      PM2        | 2019-11-05T19:12:24: PM2 log: Concurrent actions   : 2
      PM2        | 2019-11-05T19:12:24: PM2 log: SIGTERM timeout      : 1600
      PM2        | 2019-11-05T19:12:24: PM2 log: ===============================================================================

      posted in Troubleshooting
      S
      Skorpionbird
    • RE: pm2 dosn`t start mm.sh after reboot

      @sdetweil when i copy paste ~/MagicMirror/installers/pm2_setup.log

      Then i recive

      Connecting to 192.168.1.174 port 22, please wait…
      login as: 
      pi@192.168.1.174’s password: 
      Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l

      The programs included with the Debian GNU/Linux system are free software;
      the exact distribution terms for each program are described in the
      individual files in /usr/share/doc/*/copyright.

      Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
      permitted by applicable law.
      Last login: Sun Nov  3 20:42:57 2019 from 192.168.1.9

      pi@raspberrypi:~ $ ~/MagicMirror/installers/pm2_setup.log
      -bash: /home/pi/MagicMirror/installers/pm2_setup.log: Keine Berechtigung access denied
      pi@raspberrypi:~ $

      posted in Troubleshooting
      S
      Skorpionbird
    • RE: pm2 dosn`t start mm.sh after reboot

      @sdetweil already postet

      posted in Troubleshooting
      S
      Skorpionbird
    • RE: pm2 dosn`t start mm.sh after reboot

      pm2 setup starting - Di Nov 5 15:55:05 CET 2019
      node version v10.17.0
      force installing latest npm version via npm
      npm version 6.11.3
      pm2 installed
      pm2 installed, but does not work, uninstalling
      pm2 not installed, installing
      get the pm2 platform specific startup command
      command = sudo env PATH=$PATH:/usr/bin:/bin /usr/lib/node_modules/pm2/bin/pm2 startup sys$
      [PM2] Init System found: systemd
      Platform systemd
      Template
      [Unit]
      Description=PM2 process manager
      Documentation=https://pm2.keymetrics.io/
      After=network.target

      [Service]
      Type=forking
      User=pi
      LimitNOFILE=infinity
      LimitNPROC=infinity
      LimitCORE=infinity
      Environment=PATH=$PATH:/usr/bin:/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/b$
      Environment=PM2_HOME=/home/pi/.pm2
      PIDFile=/home/pi/.pm2/pm2.pid
      Restart=on-failure

      ExecStart=/usr/lib/node_modules/pm2/bin/pm2 resurrect
      ExecReload=/usr/lib/node_modules/pm2/bin/pm2 reload all
      ExecStop=/usr/lib/node_modules/pm2/bin/pm2 kill

      [Install]
      WantedBy=multi-user.target

      Target path
      /etc/systemd/system/pm2-pi.service
      Command list
      [ ‘systemctl enable pm2-pi’ ]
      [PM2] Writing init configuration in /etc/systemd/system/pm2-pi.service
      [PM2] Making script booting at startup…

      Executing: systemctl enable pm2-pi…

      [PM2] [v] Command successfully executed.
      ±--------------------------------------+
      [PM2] Freeze a process list on reboot via:
      $ pm2 save

      [PM2] Remove init script via:
      $ pm2 unstartup systemd
      pm2 startup done
      configure the pm2 config file for MagicMirror
      start MagicMirror via pm2 now
      save MagicMirror pm2 config now
      pm2 setup completed - Di Nov 5 15:56:55 CET 2019

      posted in Troubleshooting
      S
      Skorpionbird
    • RE: pm2 dosn`t start mm.sh after reboot

      no dosn`t work with your reason

      posted in Troubleshooting
      S
      Skorpionbird
    • RE: pm2 dosn`t start mm.sh after reboot

      thx for the fast reason.

      posted in Troubleshooting
      S
      Skorpionbird
    • pm2 dosn`t start mm.sh after reboot

      Hello

      i have the problem that pm2 dosn`t start mm.sh after reboot. it was working with the MM2 Version 2.8.0 but after the update to 2.9.0 its no longer working.
      Any Idea?

      posted in Troubleshooting
      S
      Skorpionbird