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 while loading shared libraries on new PI install

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 668 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.
    • I Offline
      ivow
      last edited by

      Hello all,
      I’m new around the PI and linux overall so please be patient with my noobness. I’ve done some simple projects with the PI and am currently working on a MM.

      From e clean raspberry I’ve followed the manual installation. All was installed but when starting MM I get a bunch of errors and the process is aborted.
      I’ve done the install twice with the same result.

      Can anyone point me to the right direction?

      pi@PI-SERVER02:~/MagicMirror $ npm run start

      magicmirror@2.17.1 start /home/pi/MagicMirror
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory
      npm ERR! code ELIFECYCLE
      npm ERR! syscall spawn
      npm ERR! file sh
      npm ERR! errno ENOENT
      npm ERR! magicmirror@2.17.1 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      npm ERR! spawn ENOENT
      npm ERR!
      npm ERR! Failed at the magicmirror@2.17.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/2021-10-05T10_20_39_597Z-debug.log

      My log file looks like this

      pi@PI-SERVER02:~/MagicMirror $ cat /home/pi/.npm/_logs/2021-10-05T10_20_39_597Z-debug.log
      0 info it worked if it ends with ok
      1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘run’, ‘start’ ]
      2 info using npm@6.14.15
      3 info using node@v14.18.0
      4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
      5 info lifecycle magicmirror@2.17.1~prestart: magicmirror@2.17.1
      6 info lifecycle magicmirror@2.17.1~start: magicmirror@2.17.1
      7 verbose lifecycle magicmirror@2.17.1~start: unsafe-perm in lifecycle true
      8 verbose lifecycle magicmirror@2.17.1~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
      9 verbose lifecycle magicmirror@2.17.1~start: CWD: /home/pi/MagicMirror
      10 silly lifecycle magicmirror@2.17.1~start: Args: [
      10 silly lifecycle ‘-c’,
      10 silly lifecycle ‘DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js’
      10 silly lifecycle ]
      11 info lifecycle magicmirror@2.17.1~start: Failed to exec start script
      12 verbose stack Error: magicmirror@2.17.1 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      12 verbose stack spawn ENOENT
      12 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
      12 verbose stack at ChildProcess.emit (events.js:400:28)
      12 verbose stack at maybeClose (internal/child_process.js:1058:16)
      12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
      13 verbose pkgid magicmirror@2.17.1
      14 verbose cwd /home/pi/MagicMirror
      15 verbose Linux 5.10.17-v7l+
      16 verbose argv “/usr/bin/node” “/usr/bin/npm” “run” “start”
      17 verbose node v14.18.0
      18 verbose npm v6.14.15
      19 error code ELIFECYCLE
      20 error syscall spawn
      21 error file sh
      22 error errno ENOENT
      23 error magicmirror@2.17.1 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      23 error spawn ENOENT
      24 error Failed at the magicmirror@2.17.1 start script.
      24 error This is probably not a problem with npm. There is likely additional logging output above.
      25 verbose exit [ 1, true ]

      Appreciate the help.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @ivow
        last edited by

        @ivow sounds like u have the text/console mode pi os, not the desktop version

        because the browser (electron) displays graphics, we need the desktop version

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • I Offline
          ivow
          last edited by

          Yes I did install the lite OS . Wanted to run Raspberry Pi OS Lite to avoid all the overhead that comes with a Desktop version. I’ll install the desktop version and give it a try.

          Thanks for your quick reply!

          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