Read the statement by Michael Teeuw here.
NPM start, starts but with blank screen
-
@sdetweil said in NPM start, starts but with blank screen:
cd ~/MagicMirror
npm installI updated 2 weeks ago i think, i’ve just updated it again.
i didgit pull && npm install
-
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’
} -
looks like there are two problems
[2020-10-18 12:12:30.530] [ERROR] ERROR! Could not find main module js file for MMM-GoogleAssistantMMM-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 destroyedsomething wrong with your email module
-
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’
} -
@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.
-
@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
-
@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).
-
@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
-
@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?
-
@natebrown the scripts don’t care, they adjust.
this script changes the installers/mm.sh
-
@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
-
@natebrown and turn off your sh script, else u will have two starting
-
@sdetweil how do i turn it off? ive just statted up my pi and magicmirror hasnt started.
-
@natebrown pm2 stop 0
pm2 delete 0
pm2 save -
@natebrown pm2 logs --lines=50
-
@sdetweil said in NPM start, starts but with blank screen:
pm2 stop 0
pm2 delete 0
pm2 saveoh ok thanks. im also still getting the splashscreen on boot
-
@natebrown there is a step during scripted install to add the mm splash screen.
-
@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.
-
@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.
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