bchelli/node-smb2

ECONNRESET

jrbecart opened this issue · 9 comments

I got an error using smb2: ECONNRESET

Here is the end of the log

{ [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
-- error
{ '0': { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' } }

My config is:

var smb2Client = new SMB2({
      share:'\\\\MYHOSTNAME\\MYSHARE'
    , domain:'MYDOMAIN'
    , username:'MYUN'
    , password:'MYPWD'
    , debug: true
        , autoCloseTimeout: 0
});

Any idea where to start looking?

PS: My folder have more than 20000 files.

We are routinely running into this problem too, and are currently looking into why some servers respond and others do not, although there are no noticeable differences in the server setup.

When using readdir several times on the same folder :

  • I read successfully on first attempt.
  • Second attempt throws a 'write after end' error
  • All subsequent attempts throw ECONNRESET

If I close the client and instanciate a new one on the same share, in the same process, this cycle is reproduced from the beginning.

This may be solved by #12

@jrbecart, @ooskapenaar does your problems persist with 0.2.7 ?

@marsaud will test and get back to you asap. Haven't used the functionality for a while.

@marsaud I did a few tests and it seems to be ok. Thanks.

Still having this issue :

error { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }

Experiencing the same issue. I'm on 0.2.7.

Any update on this?

Can you try with the latest version v0.2.11?