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.

    Restart Mirror?

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 3 Posters 25.3k Views 2 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.
    • A Offline
      Achatos
      last edited by

      Hey there! I got the Mirror up and nicely running.
      Now I am playing around with the config file. However I can’t seem to figure how to either update or restart the Mirror App.
      I have it starting on boot. So I don’t want to reboot everytime I make a change in the config.js.
      When I cd to the MagicMirror directory and type

      "npm restart
      I get this:

      npm ERR! Linux 4.4.38-v7+
      npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “restart”
      npm ERR! node v6.9.4
      npm ERR! npm v3.10.10
      npm ERR! code ELIFECYCLE
      npm ERR! magicmirror@2.1.0 start: electron js/electron.js
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the magicmirror@2.1.0 start script ‘electron js/electron.js’.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the magicmirror package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR! electron js/electron.js
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR! npm bugs magicmirror
      npm ERR! Or if that isn’t available, you can get their info via:
      npm ERR! npm owner ls magicmirror
      npm ERR! There is likely additional logging output above.

      Any advice?

      1 Reply Last reply Reply Quote 0
      • brobergB Offline
        broberg Project Sponsor
        last edited by

        if you are working directly on the pi, then ctrl+R reloads the page.

        via ssh somebody else has to chime in, since I don’t use that

        1 Reply Last reply Reply Quote 0
        • A Offline
          Achatos
          last edited by

          Thanks for the reply. I am indeed using SSH…

          in_a_daysI 1 Reply Last reply Reply Quote 0
          • in_a_daysI Offline
            in_a_days @Achatos
            last edited by in_a_days

            @Achatos

            Are you running pm2? If so,

            pm2 restart mm

            will restart your mirror software. Otherwise use

            DISPLAY=:0 npm start

            from the MagicMirror folder and it will start up.

            EDIT: Just realized this last suggestion is only applicable if you don’t have the MM software already running.

            What ship would bear me ever back across so wide a Sea?

            1 Reply Last reply Reply Quote 2
            • A Offline
              Achatos
              last edited by

              “pm2 restart mm” works like a charm.
              Much obliged! :)

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                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