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.

    NPM start, starts but with blank screen

    Scheduled Pinned Locked Moved Troubleshooting
    21 Posts 2 Posters 7.1k 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.
    • S Offline
      sdetweil @natebrown
      last edited by

      @natebrown when did you install 2.13?

      did u do the required npm install to update the dependencies?

      node-ical is new in 2.13

      cd ~/MagicMirror
      npm install

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      N 1 Reply Last reply Reply Quote 0
      • N Offline
        natebrown
        last edited by

        @sdetweil said in NPM start, starts but with blank screen:

        cd ~/MagicMirror
        npm install

        I updated 2 weeks ago i think, i’ve just updated it again.
        i did

        git pull && npm install

        1 Reply Last reply Reply Quote 0
        • N Offline
          natebrown @sdetweil
          last edited by

          @sdetweil

          So its just finnished updating and ive done npm start and everything seems to show up but it keeps producing the same error over and over again in the log:

          npm start

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

          [2020-10-18 12:12:18.265] [LOG] Starting MagicMirror: v2.13.0
          [2020-10-18 12:12:18.344] [LOG] Loading config …
          [2020-10-18 12:12:18.373] [LOG] Loading module helpers …
          [2020-10-18 12:12:18.381] [LOG] No helper found for module: alert.
          [2020-10-18 12:12:18.581] [LOG] Initializing new module helper …
          [2020-10-18 12:12:18.585] [LOG] Module helper loaded: updatenotification
          [2020-10-18 12:12:19.726] [LOG] Initializing new module helper …
          [2020-10-18 12:12:19.730] [LOG] Module helper loaded: MMM-Dad-Jokes
          [2020-10-18 12:12:21.332] [LOG] Initializing new module helper …
          [2020-10-18 12:12:21.334] [LOG] Module helper loaded: MMM-Screencast
          [2020-10-18 12:12:21.337] [LOG] No helper found for module: on-this-day.
          [2020-10-18 12:12:22.106] [LOG] Initializing new module helper …
          [2020-10-18 12:12:22.108] [LOG] Module helper loaded: MMM-Remote-Control
          [2020-10-18 12:12:22.182] [LOG] Initializing new module helper …
          [2020-10-18 12:12:22.185] [LOG] Module helper loaded: MMM-learnlanguage
          [2020-10-18 12:12:24.066] [LOG] Initializing new module helper …
          [2020-10-18 12:12:24.068] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify
          [2020-10-18 12:12:24.071] [LOG] No helper found for module: clock.
          [2020-10-18 12:12:24.360] [LOG] Initializing new module helper …
          [2020-10-18 12:12:24.363] [LOG] Module helper loaded: calendar
          [2020-10-18 12:12:24.368] [LOG] No helper found for module: compliments.
          [2020-10-18 12:12:24.371] [LOG] No helper found for module: currentweather.
          [2020-10-18 12:12:24.931] [LOG] Initializing new module helper …
          [2020-10-18 12:12:24.934] [LOG] Module helper loaded: email
          [2020-10-18 12:12:24.936] [LOG] No helper found for module: weatherforecast.
          [2020-10-18 12:12:25.039] [LOG] Initializing new module helper …
          [2020-10-18 12:12:25.040] [LOG] Module helper loaded: newsfeed
          [2020-10-18 12:12:25.041] [LOG] All module helpers loaded.
          [2020-10-18 12:12:25.574] [LOG] Starting server on port 8080 …
          [2020-10-18 12:12:25.622] [INFO] You’re using a full whitelist configuration to allow for all IPs
          [2020-10-18 12:12:25.646] [LOG] Server started …
          [2020-10-18 12:12:25.651] [LOG] Connecting socket for: updatenotification
          [2020-10-18 12:12:25.656] [LOG] Connecting socket for: MMM-Dad-Jokes
          [2020-10-18 12:12:25.659] [LOG] MMM-Dad-Jokes helper started
          [2020-10-18 12:12:25.662] [LOG] Connecting socket for: MMM-Screencast
          [2020-10-18 12:12:25.666] [LOG] Connecting socket for: MMM-Remote-Control
          [2020-10-18 12:12:25.668] [LOG] Starting node helper for: MMM-Remote-Control
          [2020-10-18 12:12:25.694] [LOG] Connecting socket for: MMM-learnlanguage
          [2020-10-18 12:12:25.698] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify
          [2020-10-18 12:12:25.701] [LOG] Connecting socket for: calendar
          [2020-10-18 12:12:25.702] [LOG] Starting node helper for: calendar
          [2020-10-18 12:12:25.704] [LOG] Connecting socket for: email
          [2020-10-18 12:12:25.705] [LOG] email helper started …
          [2020-10-18 12:12:25.706] [LOG] Connecting socket for: newsfeed
          [2020-10-18 12:12:25.708] [LOG] Starting node helper for: newsfeed
          [2020-10-18 12:12:25.709] [LOG] Sockets connected & modules started …
          [2020-10-18 12:12:27.372] [LOG] Launching application.
          [2020-10-18 12:12:30.530] [ERROR] ERROR! Could not find main module js file for MMM-GoogleAssistant
          [2020-10-18 12:12:43.003] [ERROR] (node:25630) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
          [2020-10-18 12:12:43.004] [ERROR] (node:25630) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
          [2020-10-18 12:12:43.033] [LOG] Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
          [2020-10-18 12:12:43.069] [LOG] listening for emails…
          [2020-10-18 12:12:43.144] [LOG] Create new news fetcher for url: http://rss.nzherald.co.nz/rss/xml/nzhtsrsscid_000000698.xml - Interval: 300000
          [2020-10-18 12:12:43.479] [INFO] Checking git for module: MMM-Dad-Jokes
          [2020-10-18 12:12:43.574] [INFO] Checking git for module: MMM-Screencast
          [2020-10-18 12:12:43.669] [INFO] Checking git for module: on-this-day
          [2020-10-18 12:12:43.738] [INFO] Checking git for module: MMM-Remote-Control
          [2020-10-18 12:12:43.834] [INFO] Checking git for module: MMM-learnlanguage
          [2020-10-18 12:12:43.932] [INFO] Checking git for module: MMM-NowPlayingOnSpotify
          [2020-10-18 12:12:44.047] [INFO] Checking git for module: email
          [2020-10-18 12:12:44.270] [LOG] Refreshed access token because it has expired. Expired at: 12:12:42 now is: 12:12:44
          [2020-10-18 12:12:44.455] [LOG] Email notifier error: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
          at doWrite (_stream_writable.js:413:19)
          at clearBuffer (_stream_writable.js:543:7)
          at Socket.Writable.uncork (_stream_writable.js:321:7)
          at JSStreamSocket.doWrite (internal/js_stream_socket.js:162:17)
          at JSStream.onwrite (internal/js_stream_socket.js:20:57)
          at Socket.ondata (internal/js_stream_socket.js:64:22)
          at Socket.emit (events.js:200:13)
          at addChunk (_stream_readable.js:294:12)
          at readableAddChunk (_stream_readable.js:275:11)
          at Socket.Readable.push (_stream_readable.js:210:10) {
          source: ‘socket’
          }
          [2020-10-18 12:12:44.509] [ERROR] Whoops! There was an uncaught exception…
          [2020-10-18 12:12:44.516] [ERROR] Error: self signed certificate
          at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34)
          at TLSSocket.emit (events.js:200:13)
          at TLSSocket._finishInit (_tls_wrap.js:792:8)
          at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12)
          at Socket.ondata (internal/js_stream_socket.js:64:22)
          at Socket.emit (events.js:200:13)
          at addChunk (_stream_readable.js:294:12)
          at readableAddChunk (_stream_readable.js:275:11)
          at Socket.Readable.push (_stream_readable.js:210:10)
          at TCP.onStreamRead (internal/stream_base_commons.js:166:17) {
          code: ‘DEPTH_ZERO_SELF_SIGNED_CERT’,
          source: ‘socket’
          }
          [2020-10-18 12:12:44.535] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
          [2020-10-18 12:12:44.538] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
          [2020-10-18 12:12:44.564] [LOG] Email notifier error: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
          at doWrite (_stream_writable.js:413:19)
          at clearBuffer (_stream_writable.js:543:7)
          at Socket.Writable.uncork (_stream_writable.js:321:7)
          at JSStreamSocket.doWrite (internal/js_stream_socket.js:162:17)
          at JSStream.onwrite (internal/js_stream_socket.js:20:57)
          at Socket.ondata (internal/js_stream_socket.js:64:22)
          at Socket.emit (events.js:200:13)
          at addChunk (_stream_readable.js:294:12)
          at readableAddChunk (_stream_readable.js:275:11)
          at Socket.Readable.push (_stream_readable.js:210:10) {
          source: ‘socket’
          }
          [2020-10-18 12:12:44.588] [ERROR] Whoops! There was an uncaught exception…
          [2020-10-18 12:12:44.596] [ERROR] Error: self signed certificate
          at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34)
          at TLSSocket.emit (events.js:200:13)
          at TLSSocket._finishInit (_tls_wrap.js:792:8)
          at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12)
          at Socket.ondata (internal/js_stream_socket.js:64:22)
          at Socket.emit (events.js:200:13)
          at addChunk (_stream_readable.js:294:12)
          at readableAddChunk (_stream_readable.js:275:11)
          at Socket.Readable.push (_stream_readable.js:210:10)
          at TCP.onStreamRead (internal/stream_base_commons.js:166:17) {
          code: ‘DEPTH_ZERO_SELF_SIGNED_CERT’,
          source: ‘socket’
          }

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

            @natebrown

            looks like there are two problems

            [2020-10-18 12:12:30.530] [ERROR] ERROR! Could not find main module js file for MMM-GoogleAssistant
            

            MMM-GooogleAssistant.js is not in MagicMirror/modules/MMM-GoogleAssistant folder

            [2020-10-18 12:12:44.270] [LOG] Refreshed access token because it has expired. Expired at: 12:12:42 now is: 12:12:44
            [2020-10-18 12:12:44.455] [LOG] Email notifier error: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
            

            something wrong with your email module

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              natebrown @sdetweil
              last edited by

              @sdetweil

              What about this part:

              [2020-10-18 12:12:44.535] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
              [2020-10-18 12:12:44.538] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
              [2020-10-18 12:12:44.564] [LOG] Email notifier error: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
              at doWrite (_stream_writable.js:413:19)
              at clearBuffer (_stream_writable.js:543:7)
              at Socket.Writable.uncork (_stream_writable.js:321:7)
              at JSStreamSocket.doWrite (internal/js_stream_socket.js:162:17)
              at JSStream.onwrite (internal/js_stream_socket.js:20:57)
              at Socket.ondata (internal/js_stream_socket.js:64:22)
              at Socket.emit (events.js:200:13)
              at addChunk (_stream_readable.js:294:12)
              at readableAddChunk (_stream_readable.js:275:11)
              at Socket.Readable.push (_stream_readable.js:210:10) {
              source: ‘socket’
              }

              N 1 Reply Last reply Reply Quote 0
              • N Offline
                natebrown @natebrown
                last edited by

                @natebrown and this one:

                [2020-10-18 12:12:43.003] [ERROR] (node:25630) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

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

                  @natebrown said in NPM start, starts but with blank screen:

                  DeprecationWarning:

                  just a warning that some code (not ours) is using a library call that is going away sometime in the future

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    natebrown @sdetweil
                    last edited by

                    @sdetweil Thanks, also when i start up my Pi, it shows the “Raspberry Pi OS” Screen and I want it to be just black and how do I speed up autostart (I use sh).

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

                      @natebrown if u had used the scripted install, it would have asked if u want to use the node process manager, pm to start at boot

                      u can add it, see command for fixuppm2 here

                      https://github.com/sdetweil/MagicMirror_scripts

                      speed up? no idea

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      N 1 Reply Last reply Reply Quote 0
                      • N Offline
                        natebrown @sdetweil
                        last edited by

                        @sdetweil 1st: Do i execute it in the MagicMirror folder and once its installed what do I do? And will it effect anything on MagicMirror?

                        S 3 Replies Last reply Reply Quote 0
                        • S Offline
                          sdetweil @natebrown
                          last edited by sdetweil

                          @natebrown the scripts don’t care, they adjust.

                          this script changes the installers/mm.sh

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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

                            @natebrown once it is installed. on next boot mm will start. if it fails pm2 will restart it. if you ctrl-q, pm2 will restart it.

                            minimize and use the pm2 command to stop, start, restart, view logs…

                            see pm2 --help

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

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

                              @natebrown and turn off your sh script, else u will have two starting

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              N 1 Reply Last reply Reply Quote 0
                              • N Offline
                                natebrown @sdetweil
                                last edited by

                                @sdetweil how do i turn it off? ive just statted up my pi and magicmirror hasnt started.

                                S 2 Replies Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @natebrown
                                  last edited by

                                  @natebrown pm2 stop 0
                                  pm2 delete 0
                                  pm2 save

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

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

                                    @natebrown pm2 logs --lines=50

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • N Offline
                                      natebrown
                                      last edited by

                                      @sdetweil said in NPM start, starts but with blank screen:

                                      pm2 stop 0
                                      pm2 delete 0
                                      pm2 save

                                      oh ok thanks. im also still getting the splashscreen on boot

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

                                        @natebrown there is a step during scripted install to add the mm splash screen.

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        N 1 Reply Last reply Reply Quote 0
                                        • N Offline
                                          natebrown @sdetweil
                                          last edited by

                                          @sdetweil oh.now ive installed your scripts but now the autostart is not working, I’ve deleted all the pm2 things and it is still not working.

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

                                            @natebrown u don’t install my scripts. u use the scripts to do the different tasks

                                            each command is a cut and paste to execute.

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

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