node-clinic-doctor icon indicating copy to clipboard operation
node-clinic-doctor copied to clipboard

Error: premature close

Open ekhodzitsky opened this issue 5 years ago • 1 comments

Doctor, bubbleprof and flame - all crash with this error:

Error: premature close at MultiStream.onclose (/usr/lib/node_modules/clinic/node_modules/end-of-stream/index.js:47:89) at MultiStream.emit (events.js:203:15) at MultiStream.destroy (/usr/lib/node_modules/clinic/node_modules/multistream/index.js:65:8) at MultiStream._gotNextStream (/usr/lib/node_modules/clinic/node_modules/multistream/index.js:94:10) at MultiStream._next (/usr/lib/node_modules/clinic/node_modules/multistream/index.js:85:10) at Parser.onEnd (/usr/lib/node_modules/clinic/node_modules/multistream/index.js:120:10) at Object.onceWrapper (events.js:286:20) at Parser.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1129:12) at process._tickCallback (internal/process/next_tick.js:63:19)

I'm running this:

clinic bubbleprof --on-port='autocannon -c10 localhost:$PORT' --dest /someDir -- node /app.js

This worked fine several times, but then an error began to occur. I tried to generate HTML from collected data:

clinic bubbleprof --visualize-only /someDirWithData/12178.clinic-bubbleprof

Generated HTML is empty.

Node version: 10.16.0 Clinic version: 4.1.0 OS: Ubuntu 16.04.4 LTS

Can't share the server code becase it's private.

ekhodzitsky avatar Sep 25 '19 07:09 ekhodzitsky