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 4.8k 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.
    • N Offline
      natebrown
      last edited by

      Hi there,
      I just started up my Mirror and i’ve setup a sh file to automaticly start it, it started but it was a blank screen. I then went into terminal and manually started it and it produced the following error. Please help! Another thing is that my Pi keeps changing its IP address how do i fix that?

      pi@raspberrypi:~/MagicMirror $ npm start

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

      [2020-10-18 11:40:30.509] [LOG] Starting MagicMirror: v2.13.0
      [2020-10-18 11:40:30.537] [LOG] Loading config …
      [2020-10-18 11:40:30.554] [LOG] Loading module helpers …
      [2020-10-18 11:40:30.564] [LOG] No helper found for module: alert.
      [2020-10-18 11:40:30.751] [LOG] Initializing new module helper …
      [2020-10-18 11:40:30.758] [LOG] Module helper loaded: updatenotification
      [2020-10-18 11:40:31.738] [LOG] Initializing new module helper …
      [2020-10-18 11:40:31.739] [LOG] Module helper loaded: MMM-Dad-Jokes
      [2020-10-18 11:40:32.639] [LOG] Initializing new module helper …
      [2020-10-18 11:40:32.641] [LOG] Module helper loaded: MMM-Screencast
      [2020-10-18 11:40:32.642] [LOG] No helper found for module: on-this-day.
      [2020-10-18 11:40:33.072] [LOG] Initializing new module helper …
      [2020-10-18 11:40:33.074] [LOG] Module helper loaded: MMM-Remote-Control
      [2020-10-18 11:40:33.137] [LOG] Initializing new module helper …
      [2020-10-18 11:40:33.138] [LOG] Module helper loaded: MMM-learnlanguage
      [2020-10-18 11:40:34.381] [LOG] Initializing new module helper …
      [2020-10-18 11:40:34.384] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify
      [2020-10-18 11:40:34.389] [LOG] No helper found for module: clock.
      [2020-10-18 11:40:34.411] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘node-ical’
      Require stack:

      • /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
      • /home/pi/MagicMirror/modules/default/calendar/node_helper.js
      • /home/pi/MagicMirror/js/app.js
      • /home/pi/MagicMirror/js/electron.js
      • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js

      [2020-10-18 11:40:34.413] [LOG] Loading module helpers …
      [2020-10-18 11:40:34.416] [LOG] No helper found for module: alert.
      [2020-10-18 11:40:34.419] [LOG] Initializing new module helper …
      [2020-10-18 11:40:34.422] [LOG] Module helper loaded: updatenotification
      [2020-10-18 11:40:34.425] [LOG] Initializing new module helper …
      [2020-10-18 11:40:34.427] [LOG] Module helper loaded: MMM-Dad-Jokes
      [2020-10-18 11:40:34.430] [LOG] Initializing new module helper …
      [2020-10-18 11:40:34.433] [LOG] Module helper loaded: MMM-Screencast
      [2020-10-18 11:40:34.436] [LOG] No helper found for module: on-this-day.
      [2020-10-18 11:40:34.438] [LOG] Initializing new module helper …
      [2020-10-18 11:40:34.439] [LOG] Module helper loaded: MMM-Remote-Control
      [2020-10-18 11:40:34.440] [LOG] Initializing new module helper …
      [2020-10-18 11:40:34.441] [LOG] Module helper loaded: MMM-learnlanguage
      [2020-10-18 11:40:34.443] [LOG] Initializing new module helper …
      [2020-10-18 11:40:34.444] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify
      [2020-10-18 11:40:34.445] [LOG] No helper found for module: clock.
      [2020-10-18 11:40:34.455] [ERROR] App threw an error during load
      [2020-10-18 11:40:34.459] [ERROR] Error: Cannot find module ‘node-ical’
      Require stack:

      • /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
      • /home/pi/MagicMirror/modules/default/calendar/node_helper.js
      • /home/pi/MagicMirror/js/app.js
      • /home/pi/MagicMirror/js/electron.js
      • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      • at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Function.Module._load (internal/modules/cjs/loader.js:531:27)
        at Module.require (internal/modules/cjs/loader.js:685:19)
        at require (internal/modules/cjs/helpers.js:16:16)
        at Object. (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
        at Module._compile (internal/modules/cjs/loader.js:786:30)
        at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
        at Module.load (internal/modules/cjs/loader.js:645:32)
        [2020-10-18 11:40:34.465] [ERROR] Whoops! There was an uncaught exception…
        [2020-10-18 11:40:34.467] [ERROR] Error: Cannot find module ‘node-ical’
        Require stack:
      • /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
      • /home/pi/MagicMirror/modules/default/calendar/node_helper.js
      • /home/pi/MagicMirror/js/app.js
      • /home/pi/MagicMirror/js/electron.js
      • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      • at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Function.Module._load (internal/modules/cjs/loader.js:531:27)
        at Module.require (internal/modules/cjs/loader.js:685:19)
        at require (internal/modules/cjs/helpers.js:16:16)
        at Object. (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
        at Module._compile (internal/modules/cjs/loader.js:786:30)
        at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
        at Module.load (internal/modules/cjs/loader.js:645:32) {
        code: ‘MODULE_NOT_FOUND’,
        requireStack: [
        ‘/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js’,
        ‘/home/pi/MagicMirror/modules/default/calendar/node_helper.js’,
        ‘/home/pi/MagicMirror/js/app.js’,
        ‘/home/pi/MagicMirror/js/electron.js’,
        ‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
        undefined
        ]
        }
        [2020-10-18 11:40:34.488] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
        [2020-10-18 11:40:34.491] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
        [2020-10-18 11:40:34.728] [LOG] Launching application.
        ^C[2020-10-18 11:41:56.034] [LOG] Shutting down server…
        [2020-10-18 11:41:56.043] [LOG] Stopping module helper: updatenotification
        [2020-10-18 11:41:56.045] [LOG] Stopping module helper: MMM-Dad-Jokes
        [2020-10-18 11:41:56.048] [LOG] Stopping module helper: MMM-Screencast
        [2020-10-18 11:41:56.049] [ERROR] Whoops! There was an uncaught exception…
        [2020-10-18 11:41:56.050] [ERROR] TypeError: Cannot convert undefined or null to object
        at Function.keys ()
        at Class.stop (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:70:20)
        at App.stop (/home/pi/MagicMirror/js/app.js:262:16)
        at App. (/home/pi/MagicMirror/js/electron.js:122:7)
        at App.emit (events.js:200:13)
        [2020-10-18 11:41:56.053] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
        [2020-10-18 11:41:56.054] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      S 1 Reply Last reply Reply Quote 0
      • 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
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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