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

pm2 dosn`t start mm.sh after reboot

Scheduled Pinned Locked Moved Unsolved Troubleshooting
29 Posts 3 Posters 7.4k Views 3 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
    Skorpionbird
    last edited by Nov 5, 2019, 12:52 PM

    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?

    S 1 Reply Last reply Nov 5, 2019, 12:58 PM Reply Quote 0
    • S Offline
      sdetweil @Skorpionbird
      last edited by Nov 5, 2019, 12:58 PM

      @Skorpionbird

      see here for my script to update/fix pm2

      https://forum.magicmirror.builders/topic/10907/new-script-to-install-fix-pm2-config-for-start-on-boot

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        Skorpionbird
        last edited by Nov 5, 2019, 2:44 PM

        thx for the fast reason.

        S 1 Reply Last reply Nov 5, 2019, 2:45 PM Reply Quote 0
        • S Offline
          sdetweil @Skorpionbird
          last edited by Nov 5, 2019, 2:45 PM

          @Skorpionbird did it fix it?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            Skorpionbird
            last edited by Nov 5, 2019, 2:52 PM

            no dosn`t work with your reason

            S 1 Reply Last reply Nov 5, 2019, 2:54 PM Reply Quote 0
            • S Offline
              sdetweil @Skorpionbird
              last edited by Nov 5, 2019, 2:54 PM

              @Skorpionbird can u show me

              ~/MagicMirror/installers/pm2_setup.log
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                Skorpionbird
                last edited by Skorpionbird Nov 5, 2019, 3:06 PM Nov 5, 2019, 2:59 PM

                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

                S 1 Reply Last reply Nov 5, 2019, 3:17 PM Reply Quote 0
                • S Offline
                  sdetweil @Skorpionbird
                  last edited by Nov 5, 2019, 3:17 PM

                  @Skorpionbird what is the output of pm2 logs?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 2 Replies Last reply Nov 5, 2019, 4:06 PM Reply Quote 0
                  • S Offline
                    Skorpionbird @sdetweil
                    last edited by Nov 5, 2019, 4:06 PM

                    @sdetweil already postet

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      Skorpionbird @sdetweil
                      last edited by Skorpionbird Nov 5, 2019, 4:12 PM Nov 5, 2019, 4:11 PM

                      @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:~ $

                      S 1 Reply Last reply Nov 5, 2019, 4:16 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        8/29
                        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