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.

    MagicMirror stopped working after screensaver installed

    Scheduled Pinned Locked Moved Solved Troubleshooting
    16 Posts 2 Posters 4.7k Views 3 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.
    • S Offline
      sdetweil @demetry07
      last edited by

      @demetry07 weird…

      please do

      cd ~/MagicMirror
      npm instal
      

      advise npm start results after

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • D Offline
        demetry07
        last edited by

        That fixed it thank you.

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

          @demetry07 for the future, I have a script as part of install to disable screensaver on a lot of systems…
          its also in the installers folder with 2.10

          screensaveroff.sh
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            demetry07 @sdetweil
            last edited by

            @sdetweil When I ran the install it asked me if I wanted to disable screensaver and I said yes but my screen was still going black over night. I would have to CTRL-Q out then it would run again automatically after a few seconds. Thought installing the screensaver and disabling it would help. Will see after tonight.

            1 Reply Last reply Reply Quote 0
            • D Offline
              demetry07
              last edited by

              I spoke to soon. This morning it stopped working again.

              I ran
              npm install
              then
              sudo reboot
              then cd ~/MagicMirror
              then
              npm start
              Here are the results
              pi@raspberrypi:~/MagicMirror $ npm start

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

              [11:35:13.428] [LOG] Starting MagicMirror: v2.10.0
              [11:35:13.448] [LOG] Loading config …
              [11:35:13.463] [LOG] Loading module helpers …
              [11:35:13.466] [LOG] No helper found for module: alert.
              [11:35:13.594] [LOG] Initializing new module helper …
              [11:35:13.596] [LOG] Module helper loaded: updatenotification
              [11:35:13.597] [LOG] No helper found for module: clock.
              [11:35:13.599] [LOG] No helper found for module: currentweather.
              /home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
              npm ERR! code ELIFECYCLE
              npm ERR! syscall spawn
              npm ERR! file sh
              npm ERR! errno ENOENT
              npm ERR! magicmirror@2.10.0 start: ./run-start.sh
              npm ERR! spawn ENOENT
              npm ERR!
              npm ERR! Failed at the magicmirror@2.10.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! /home/pi/.npm/_logs/2020-01-07T17_35_13_737Z-debug.log

              I pulled the log file here is the data in the log file.

              0 info it worked if it ends with ok
              1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’ ]
              2 info using npm@6.13.4
              3 info using node@v10.18.0
              4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
              5 info lifecycle magicmirror@2.10.0~prestart: magicmirror@2.10.0
              6 info lifecycle magicmirror@2.10.0~start: magicmirror@2.10.0
              7 verbose lifecycle magicmirror@2.10.0~start: unsafe-perm in lifecycle true
              8 verbose lifecycle magicmirror@2.10.0~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.10.0~start: CWD: /home/pi/MagicMirror
              10 silly lifecycle magicmirror@2.10.0~start: Args: [ ‘-c’, ‘./run-start.sh’ ]
              11 info lifecycle magicmirror@2.10.0~start: Failed to exec start script
              12 verbose stack Error: magicmirror@2.10.0 start: ./run-start.sh
              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:198:13)
              12 verbose stack at maybeClose (internal/child_process.js:982:16)
              12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
              13 verbose pkgid magicmirror@2.10.0
              14 verbose cwd /home/pi/MagicMirror
              15 verbose Linux 4.19.75-v7+
              16 verbose argv “/usr/bin/node” “/usr/bin/npm” “start”
              17 verbose node v10.18.0
              18 verbose npm v6.13.4
              19 error code ELIFECYCLE
              20 error syscall spawn
              21 error file sh
              22 error errno ENOENT
              23 error magicmirror@2.10.0 start: ./run-start.sh
              23 error spawn ENOENT
              24 error Failed at the magicmirror@2.10.0 start script.
              24 error This is probably not a problem with npm. There is likely additional logging output above.
              25 verbose exit [ 1, true ]

              Thoughts?

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

                @demetry07 said in MagicMirror stopped working after screensaver installed:

                home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node: undefined symbol

                fun times!!

                do

                cd ~/MagicMirror
                npm install electron-rebuild
                node_modules/.bin/electron-rebuild
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • D Offline
                  demetry07
                  last edited by

                  Ran the suggested commands see below. Looks like they both ran just fine.

                  pi@raspberrypi:~/MagicMirror $ npm install electron-rebuild

                  • electron-rebuild@1.8.8
                    added 68 packages from 42 contributors and audited 3926 packages in 124.52s

                  16 packages are looking for funding
                  run npm fund for details

                  found 0 vulnerabilities

                  pi@raspberrypi:~/MagicMirror $ node_modules/.bin/electron-rebuild
                  ✔ Rebuild Complete
                  pi@raspberrypi:~/MagicMirror $ npm start

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

                  [11:51:32.453] [LOG] Starting MagicMirror: v2.10.0
                  [11:51:32.478] [LOG] Loading config …
                  [11:51:32.491] [LOG] Loading module helpers …
                  [11:51:32.494] [LOG] No helper found for module: alert.
                  [11:51:32.615] [LOG] Initializing new module helper …
                  [11:51:32.617] [LOG] Module helper loaded: updatenotification
                  [11:51:32.619] [LOG] No helper found for module: clock.
                  [11:51:32.620] [LOG] No helper found for module: currentweather.
                  /home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
                  npm ERR! code ELIFECYCLE
                  npm ERR! syscall spawn
                  npm ERR! file sh
                  npm ERR! errno ENOENT
                  npm ERR! magicmirror@2.10.0 start: ./run-start.sh
                  npm ERR! spawn ENOENT
                  npm ERR!
                  npm ERR! Failed at the magicmirror@2.10.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! /home/pi/.npm/_logs/2020-01-07T17_51_32_806Z-debug.log
                  pi@raspberrypi:~/MagicMirror $

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

                    @demetry07 ok, module is a pain in the butt…

                    cd modules/MMM-PIR
                    npm install
                    ~/MagicMirror/node_modules/.bin/electron-rebuild

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      demetry07
                      last edited by

                      Yeah I missed that in the log I see it now. Thanks for the help after updating that Module it’s starting again. Do you have a recommendation for a PIR Module that works better then something else?

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

                        @demetry07 no… sorry, none of the PIR modules play nice

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          demetry07
                          last edited by

                          Ok thank you again for helping.

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • 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