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.

    MM doesn't start after fresh install on Stretch lite

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 1.9k 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.
    • A Offline
      asaxena11
      last edited by

      Hello,

      I installed Magic Mirror on RasPi 2 with stretch Lite via SSH. I used the installer command
      bash -c “$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)”

      the installation went smooth and fast.

      but after rebooting i am seeing the console with pi logged in. THe MM doesnt start.

      I SSed into pi and from MM directory gave command DISPLAY=:0 npm start

      this give mefollowing error. could any one guide please

      Error

      pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start

      magicmirror@2.4.1 start /home/pi/MagicMirror
      sh run-start.sh

      /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
      npm ERR! file sh
      npm ERR! code ELIFECYCLE
      npm ERR! errno ENOENT
      npm ERR! syscall spawn
      npm ERR! magicmirror@2.4.1 start: sh run-start.sh
      npm ERR! spawn ENOENT
      npm ERR!
      npm ERR! Failed at the magicmirror@2.4.1 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! /home/pi/.npm/_logs/2018-09-09T12_04_18_212Z-debug.log
      pi@raspberrypi:~/MagicMirror $

      1 Reply Last reply Reply Quote 0
      • cruunnerrC Offline
        cruunnerr
        last edited by

        If you use the lite version of raspbian, u need to use this guide: https://github.com/MichMich/MagicMirror/wiki/jessie-lite-installation-guide

        The guide also works with stretch, but you probably need to install extra stuff manually, when using modules

        But i would recommend to use the full version of raspbian stretch.

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

          @cruunnerr .

          Thanks for replying. I just did it on full version on raspbian stretch. Installer went fine. I also pressed y when it asked for installing pm2

          now after i reboot the pi, MagicMirror splash screen comes but i boot into the desktop

          when i ran npm start dev , i can see modules working.

          if i try to run pm2 log, i get error
          -bash: pm2: command not found

          What am i doing wrong in here?

          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