Skip to content

connection queue abort still causing error? #15

Description

@soichih

I am still seeing occasional ss2 crash

app-mrtrix3-preproc service requested
1> Wed Feb 14 2018 04:19:55 GMT+0000 (UTC) - ^[[34mdebug^[[39m: opening new ssh connection for resource: 5943cd40055b490021abb7b6
1> Wed Feb 14 2018 04:19:56 GMT+0000 (UTC) - ^[[34mdebug^[[39m: ssh connection ready for resource: 5943cd40055b490021abb7b6
1> Wed Feb 14 2018 04:19:56 GMT+0000 (UTC) - ^[[34mdebug^[[39m: piping tar output to user
TypeError: Cannot read property 'state' of undefined
    at IncomingMessage.Channel.close (/app/node_modules/ssh2/lib/Channel.js:307:15)
    at emitNone (events.js:86:13)
    at IncomingMessage.emit (events.js:185:7)
    at abortIncoming (_http_server.js:282:11)
    at Socket.socketOnEnd (_http_server.js:434:7)
    at emitNone (events.js:91:20)
    at Socket.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)
1> Wed Feb 14 2018 04:19:57 GMT+0000 (UTC) - ^[[31merror^[[39m: Wed, 14 Feb 2018 04:19:57 GMT uncaughtException: Cannot read property 'state' of undefined
1> Wed Feb 14 2018 04:19:57 GMT+0000 (UTC) - ^[[31merror^[[39m: TypeError: Cannot read property 'state' of undefined
    at IncomingMessage.Channel.close (/app/node_modules/ssh2/lib/Channel.js:307:15)
    at emitNone (events.js:86:13)
    at IncomingMessage.emit (events.js:185:7)
    at abortIncoming (_http_server.js:282:11)
    at Socket.socketOnEnd (_http_server.js:434:7)
    at emitNone (events.js:91:20)
    at Socket.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)
1> Wed Feb 14 2018 04:23:38 GMT+0000 (UTC) - ^[[34mdebug^[[39m:  0=_sca.5a83b9c8af5aa9002a303fd0.5a83b9cacd041300347d2020, name=brainlife.view 5a81647bdc4031003b8b36fe, status=waiting, msg=soichih/sca-product-raw service requested
1> Wed Feb 14 2018 04:35:28 GMT+0000 (UTC) - ^[[34mdebug^[[39m: streaming file via sftp /mnt/share1/prod/5a83b7d9cd041300347d201d/5a83b7dacd041300347d201e/slurm-2494.err
1> Wed Feb 14 2018 04:35:28 GMT+0000 (UTC) - ^[[34mdebug^[[39m: mimetype:null

I thought my patch to ssh2 connection pool library might fix this, but I need to investigate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions