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

Setting up Magic Mirror remotely?

Scheduled Pinned Locked Moved Solved General Discussion
16 Posts 5 Posters 5.2k Views 5 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.
  • Y Offline
    yawns Moderator
    last edited by Oct 26, 2017, 8:13 AM

    Did you access your PI via ssh (putty for example)? Or did you use vnc to actually see the screen?
    Both ways should be fine for installation, only running the MagicMirror via ssh is a bit tricky as you have to tell MagicMirror which display to use.

    N 1 Reply Last reply Oct 26, 2017, 8:20 AM Reply Quote 0
    • N Offline
      navyvette87 @yawns
      last edited by Oct 26, 2017, 8:20 AM

      @yawns Via VNC, It froze when it did the two warnings. the pi prompt never returned. I just shut it down. Had to leave. Will try again when I have time, next time via the hdmi screen.

      1 Reply Last reply Reply Quote 0
      • N Offline
        navyvette87
        last edited by Oct 27, 2017, 12:00 AM

        tried again today with the hdmi screen, it got to where it said something about it was loading a file that had 715 at the end and froze. so restarted removed the folder, and restarted installing remotely. it got to loading depandencies and gave me this :

        Installing dependencies …
        npm WARN prefer global coffee-script@1.10.0 should be installed with -g
        npm WARN prefer global jsonlint@1.6.2 should be installed with -g

        uws@0.14.5 install /home/pi/MagicMirror/node_modules/uws
        node-gyp rebuild > build_log.txt 2>&1 || exit 0
        Unable to install dependencies!

        tried starting npm remotely got this:

        pi@raspberrypi:~ $ npm start
        npm ERR! Linux 4.9.35-v7+
        npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
        npm ERR! node v6.11.5
        npm ERR! npm v3.10.10
        npm ERR! path /home/pi/package.json
        npm ERR! code ENOENT
        npm ERR! errno -2
        npm ERR! syscall open
        npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
        npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
        npm ERR! enoent This is most likely not a problem with npm itself
        npm ERR! enoent and is related to npm not being able to find a file.
        npm ERR! enoent
        npm ERR! Please include the following file with any support request:
        npm ERR! /home/pi/npm-debug.log

        tried starting from the hdmi screen same thing.

        tried starting from with the magicmirror folder, got this:

        pi@raspberrypi:~/MagicMirror $ npm start

        magicmirror@2.1.3 start /home/pi/MagicMirror
        sh run-start.sh
        /home/pi/MagicMirror/node_modules/electron/index.js:9
        throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
        ^
        Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
        at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
        at Module._compile (module.js:570:32)
        at Object.Module._extensions…js (module.js:579:10)
        at Module.load (module.js:487:32)
        at tryModuleLoad (module.js:446:12)
        at Function.Module._load (module.js:438:3)
        at Module.require (module.js:497:17)
        at require (internal/module.js:20:19)
        at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
        at Module._compile (module.js:570:32)
        npm ERR! Linux 4.9.35-v7+
        npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
        npm ERR! node v6.11.5
        npm ERR! npm v3.10.10
        npm ERR! code ELIFECYCLE
        npm ERR! magicmirror@2.1.3 start: sh run-start.sh
        npm ERR! Exit status 1
        npm ERR!
        npm ERR! Failed at the magicmirror@2.1.3 start script ‘sh run-start.sh’.
        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! sh run-start.sh
        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.
        npm ERR! Please include the following file with any support request:
        npm ERR! /home/pi/MagicMirror/npm-debug.log
        pi@raspberrypi:~/MagicMirror $
        Can anyone point me in the direction to correct? I have already upgraded Node.js so i know it cant be that.

        npm-bug.log:
        0 info it worked if it ends with ok
        1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’ ]
        2 info using npm@3.10.10
        3 info using node@v6.11.5
        4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
        5 info lifecycle magicmirror@2.1.3~prestart: magicmirror@2.1.3
        6 silly lifecycle magicmirror@2.1.3~prestart: no script for prestart, continuing
        7 info lifecycle magicmirror@2.1.3~start: magicmirror@2.1.3
        8 verbose lifecycle magicmirror@2.1.3~start: unsafe-perm in lifecycle true
        9 verbose lifecycle magicmirror@2.1.3~start: PATH: /usr/lib/node_modules/npm/bi$
        10 verbose lifecycle magicmirror@2.1.3~start: CWD: /home/pi/MagicMirror
        11 silly lifecycle magicmirror@2.1.3~start: Args: [ ‘-c’, ‘sh run-start.sh’ ]
        12 silly lifecycle magicmirror@2.1.3~start: Returned: code: 1 signal: null
        13 info lifecycle magicmirror@2.1.3~start: Failed to exec start script
        14 verbose stack Error: magicmirror@2.1.3 start: sh run-start.sh
        14 verbose stack Exit status 1
        14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib$
        14 verbose stack at emitTwo (events.js:106:13)
        14 verbose stack at EventEmitter.emit (events.js:191:7)
        [ Read 45 lines ]

        M 1 Reply Last reply Oct 27, 2017, 12:08 AM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @navyvette87
          last edited by Oct 27, 2017, 12:08 AM

          @navyvette87 said in Setting up Magic Mirror remotely?:

          tried starting npm remotely got this:
          pi@raspberrypi:~ $ npm start

          You would need to cd MagicMirror to change into your MagicMirror directory first, then run npm start

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • N Offline
            navyvette87
            last edited by Oct 27, 2017, 12:23 AM

            Went back to the website and read, and found something about npm install, so ran that, it looked like it installed something, then ran npm start again and got:

            magicmirror@2.1.3 start /home/pi/MagicMirror
            sh run-start.sh
            /home/pi/MagicMirror/node_modules/electron/index.js:9
            throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
            ^
            Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
            at Object. (/home/pi/MagicMirror/node_modules/electron/index.js:9:9)
            at Module._compile (module.js:570:32)
            at Object.Module._extensions…js (module.js:579:10)
            at Module.load (module.js:487:32)
            at tryModuleLoad (module.js:446:12)
            at Function.Module._load (module.js:438:3)
            at Module.require (module.js:497:17)
            at require (internal/module.js:20:19)
            at Object. (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
            at Module._compile (module.js:570:32)
            npm ERR! Linux 4.9.35-v7+
            npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
            npm ERR! node v6.11.5
            npm ERR! npm v3.10.10
            npm ERR! code ELIFECYCLE
            npm ERR! magicmirror@2.1.3 start: sh run-start.sh
            npm ERR! Exit status 1
            npm ERR!
            npm ERR! Failed at the magicmirror@2.1.3 start script ‘sh run-start.sh’.
            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! sh run-start.sh
            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.
            npm ERR! Please include the following file with any support request:
            npm ERR! /home/pi/MagicMirror/npm-debug.log
            pi@raspberrypi:~/MagicMirror $

            npm-debug.log
            0 info it worked if it ends with ok
            1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’, ‘dev’ ]
            2 info using npm@3.10.10
            3 info using node@v6.11.5
            4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
            5 info lifecycle magicmirror@2.1.3~prestart: magicmirror@2.1.3
            6 silly lifecycle magicmirror@2.1.3~prestart: no script for prestart, continuing
            7 info lifecycle magicmirror@2.1.3~start: magicmirror@2.1.3
            8 verbose lifecycle magicmirror@2.1.3~start: unsafe-perm in lifecycle true
            9 verbose lifecycle magicmirror@2.1.3~start: PATH: /usr/lib/node_modules/npm/bi$
            10 verbose lifecycle magicmirror@2.1.3~start: CWD: /home/pi/MagicMirror
            11 silly lifecycle magicmirror@2.1.3~start: Args: [ ‘-c’, 'sh run-start.sh "dev$
            12 silly lifecycle magicmirror@2.1.3~start: Returned: code: 1 signal: null
            13 info lifecycle magicmirror@2.1.3~start: Failed to exec start script
            14 verbose stack Error: magicmirror@2.1.3 start: sh run-start.sh "dev"
            14 verbose stack Exit status 1
            14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib$
            14 verbose stack at emitTwo (events.js:106:13)
            14 verbose stack at EventEmitter.emit (events.js:191:7)
            [ Read 45 lines ]

            M 1 Reply Last reply Oct 27, 2017, 12:34 AM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @navyvette87
              last edited by Mykle1 Oct 27, 2017, 12:38 AM Oct 27, 2017, 12:34 AM

              @navyvette87 said in Setting up Magic Mirror remotely?:

              throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)

              Terminal is telling what happened and you what to do here.

              Go into your MagicMirror folder, then into the node_modules folder, then DELETE the electron folder.

              Then run npm install again in the MagicMirror directory

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • N Offline
                navyvette87
                last edited by Oct 27, 2017, 1:00 AM

                ok read some on the repository, was able to run the serveronly and got this
                Magic Mirror2
                Please create a config file.
                See README for more information.
                If you get this message while your config file is already
                created, your config file probably contains an error.
                Use a JavaScript linter to validate your file.

                what next?

                M 1 Reply Last reply Oct 27, 2017, 1:03 AM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @navyvette87
                  last edited by Oct 27, 2017, 1:03 AM

                  @navyvette87

                  Look at the bottom left of my post. Click on Create a working config

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    navyvette87
                    last edited by Oct 27, 2017, 2:16 AM

                    I got it to work, but then I went through the pi setup stuff to turn on the screensaver and wifi sleep, now when i tried to reboot, it says

                    [FAILED] Failed to start Light Display Manager
                    SSH is enabled and the default password for the ‘pi’ user has not been changed. This is a security risk - please login as the ‘pi’ user and type passwd to set a new password.
                    pi@raspberrypi: $

                    How do i get it to continue to the desktop screen?

                    M 1 Reply Last reply Oct 27, 2017, 2:22 AM Reply Quote 0
                    • M Offline
                      Mykle1 Project Sponsor Module Developer @navyvette87
                      last edited by Oct 27, 2017, 2:22 AM

                      @navyvette87

                      I’ve never encountered that before. Maybe, revert the changes you just made, get your mirror running, then try them again, 1 at a time

                      Create a working config
                      How to add modules

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