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.

    error when try to start mm

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 1.5k Views 1 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.
    • L Offline
      lpt2007
      last edited by

      npm info it worked if it ends with ok
      npm info using npm@5.0.3
      npm info using node@v8.1.3
      npm info lifecycle magicmirror@2.6.0~prestart: magicmirror@2.6.0
      npm info lifecycle magicmirror@2.6.0~start: magicmirror@2.6.0

      magicmirror@2.6.0 start /opt/magic_mirror
      sh run-start.sh

      npm info lifecycle magicmirror@2.6.0~start: Failed to exec start script
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! magicmirror@2.6.0 start: sh run-start.sh
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the magicmirror@2.6.0 start script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

      npm ERR! A complete log of this run can be found in:
      npm ERR! /fakehome/root/.npm/_logs/2019-02-10T00_24_58_360Z-debug.log

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        lpt2007 @lpt2007
        last edited by

        I figured out the error occured when I try to run mm from ssh if I run directly on rpi consol it works?

        But I need to find solution to run mm from ssh. How?

        1 Reply Last reply Reply Quote 0
        • A Offline
          AxLed Module Developer
          last edited by

          @lpt2007
          Have you read the readme of MagicMirror?

          Also note that:

          npm start does not work via SSH. But you can use DISPLAY=:0 nohup npm start & instead.
          This starts the mirror on the remote display.

          AxLED

          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