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

Problem after installing MM on Pi Zero W

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 5 Posters 5.7k 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.
  • A Offline
    abergy
    last edited by Aug 14, 2017, 4:49 PM

    Hey ,

    I have installed MM on mir Pi Zero W with this tutorial :

    MagicMirror on Pi Zero W

    after that my Pi output is :

    pi@magicmirror:~/MagicMirror $ npm start
    
    > magicmirror@2.1.2 start /home/pi/MagicMirror
    > sh run-start.sh
    
    /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
    
    npm ERR! Linux 4.9.35+
    npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
    npm ERR! node v4.2.1
    npm ERR! npm  v2.14.7
    npm ERR! file sh
    npm ERR! code ELIFECYCLE
    npm ERR! errno ENOENT
    npm ERR! syscall spawn
    npm ERR! magicmirror@2.1.2 start: `sh run-start.sh`
    npm ERR! spawn ENOENT
    npm ERR!
    npm ERR! Failed at the magicmirror@2.1.2 start script 'sh run-start.sh'.
    npm ERR! 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 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
    

    But the Midori starts and says that there is no config.js file. So it seems to be running ?!?

    If I move the config.js.sample to config.js the Midori screen ist completley black…

    Could please someone help me

    1 Reply Last reply Reply Quote 0
    • U Offline
      Ultimatum22 Module Developer
      last edited by Aug 15, 2017, 7:42 AM

      @abergy said in Problem after installing MM on Pi Zero W:
      You are missing some linux libraries. Look at this line:

      /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

      It says it is missing library libgconf-2.so.4, install it with sudo apt-get install libgconf-2-4.

      You are probably missing more libraries but it will only show 1 error at a time. So execute above command and then rerun MM. Look for the next missing library and install that. I had this error too and I was missing two libraries, I can’t remember what the other was tho.

      A 1 Reply Last reply Aug 30, 2017, 8:25 AM Reply Quote 0
      • A Offline
        abergy @Ultimatum22
        last edited by Aug 30, 2017, 8:25 AM

        Hey @Ultimatum22 ,

        thank you very much.

        I was missing two libaries as you said :

        • libgconf-2-4
        • libnss3

        no errors occur after installation.

        1 Reply Last reply Reply Quote 0
        • A Offline
          abergy
          last edited by Aug 30, 2017, 8:51 AM

          Ok I was a bit too fast.

          After installing the libaries no errors occur, but after rebooting the PiZeroW this happens:

          pi@magicmirror:~ $ npm start
          npm ERR! Linux 4.9.35+
          npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
          npm ERR! node v4.2.1
          npm ERR! npm  v2.14.7
          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 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
          
          

          I did not search for this in the forum yet, maybe you have a quick answer for this again.
          (maybe this is easy again, but I’m not good at debuging this error output)

          M 1 Reply Last reply Aug 30, 2017, 11:31 AM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @abergy
            last edited by Aug 30, 2017, 11:31 AM

            @abergy

            Are you running npm start from your MagicMirror directory?

            pi@magicmirror~/MagicMirror

            Create a working config
            How to add modules

            A 1 Reply Last reply Aug 30, 2017, 12:19 PM Reply Quote 0
            • A Offline
              abergy @Mykle1
              last edited by abergy Aug 30, 2017, 12:20 PM Aug 30, 2017, 12:19 PM

              @Mykle1 said in Problem after installing MM on Pi Zero W:

              @abergy

              Are you running npm start from your MagicMirror directory?

              pi@magicmirror~/MagicMirror

              no I didn’t , now there are no errors. Thanks.

              But now the screen is black again.
              npm start works, … hmm …is the configsample.js maybe not working with the Pi Zero ?

              Is there a way to test the MM with an other method ? ( I’m using Midori, like in the tutorial)

              S 1 Reply Last reply Aug 30, 2017, 7:06 PM Reply Quote 0
              • S Offline
                strawberry 3.141 Project Sponsor Module Developer @abergy
                last edited by Aug 30, 2017, 7:06 PM

                @abergy if there is a module using es6 features it could be a reason for the black screen. can you check the developer console in midori for errors?

                Please create a github issue if you need help, so I can keep track

                1 Reply Last reply Reply Quote 0
                • A Offline
                  abergy
                  last edited by Aug 31, 2017, 9:15 AM

                  Can I check the errorlog over the commandline somehow?

                  If I google the “Black screen” problem with the Pi zero W, there are a lot of questions but now solutions.
                  Someone said ist maybe because of the ARM6 Arch. on the Pi Zero!?

                  Should I buy a Raspi3 to save my nerves ^^?

                  M S 2 Replies Last reply Aug 31, 2017, 11:16 AM Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @abergy
                    last edited by Aug 31, 2017, 11:16 AM

                    @abergy said in Problem after installing MM on Pi Zero W:

                    Should I buy a Raspi3 to save my nerves ^^?

                    There is certainly less trouble with a Pi3. Installation is more direct and you don’t need any work-arounds. Your nerves are another matter. :^)

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      strawberry 3.141 Project Sponsor Module Developer @abergy
                      last edited by Aug 31, 2017, 5:29 PM

                      @abergy actually you can’t as the logs are related to your browser (midori)

                      Please create a github issue if you need help, so I can keep track

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