0 votes
by (170 points)
retagged by

FROM sftp few files are getting downloaded successfully.
after that below errors are occurred.

First Error:
Failure; Listener is shutting down. Files cannot be opened anymore. ---> Rebex.Net.SftpException: Failure; Listener is shutting down. Files cannot be opened anymore.
at oipb.loji(ruhe are, Type arf)
at oipb.loih(String ant, oiqc anu, Boolean anv, oiok anw)
at Rebex.Net.Sftp.jlvv(oiok sb, String sc, Stream sd, Int64 se, Int64 sf, rtup sg)
at Rebex.Net.Sftp.jlvt(FileMode ro, oiok rp, String rq, String rr, Int64 rs, Int64 rt, Int64 ru, rtup rv)
at oiow.keoi(FileMode amw, String amx, String amy, Int64 amz, Int64 ana)
--- End of inner exception stack trace ---
at rtum.jilv(Exception gw, TransferProblemType gx, rtuj gy, rtuj gz, BatchProblemReactions ha, BatchProblemReactions hb, BatchProblemReactions& hc)
at rtum.jiln(String fq, String fr, rtuj fs, rtuj ft, rtuj fu, rtuj fv, Boolean fw, Boolean fx, Boolean fy)
at rtum.jilm(rtuk fp)
at rtum.jilj()
at rtum.jile(TransferAction fa, rtui fb, String fc, TransferMethod fd, MoveMode fe, LinkProcessingMode ff, ActionOnExistingFiles fg, rtuj fh)
at Rebex.Net.Sftp.jlwt(TransferAction ut, oiok uu, oiov uv, String uw, TransferMethod ux, MoveMode uy, LinkProcessingMode uz, ActionOnExistingFiles va)
at Rebex.Net.Sftp.Download(String remotePath, String localDirectoryPath, TraversalMode traversalMode, TransferMethod transferMethod, ActionOnExistingFiles existingFileMode)

Second Error:
The connection was closed by the server.
Rebex.Net.SftpException: The connection was closed by the server. ---> Rebex.Net.SshException: The connection was closed by the server. ---> Rebex.Net.SshException: The connection was closed by the server. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at Rebex.Net.ProxySocket.Receive(Byte[] buffer, Int32 offset, Int32 count, SocketFlags socketFlags)
at Rebex.Net.SshSession.nxij(Int32 afk, Int32 afl)
--- End of inner exception stack trace ---
at Rebex.Net.SshSession.nxij(Int32 afk, Int32 afl)
at Rebex.Net.SshSession.nxin(Byte[]& afs)
at Rebex.Net.SshSession.nxiv()
at Rebex.Net.SshSession.hjka.nxjt()
--- End of inner exception stack trace ---
at Rebex.Net.SshSession.nxiq()
at Rebex.Net.SshSession.nxis[b,c](uxno2 afx, Int32 afy, uxnp afz, c aga, b agb, b agc) at Rebex.Net.SshSession.nxir[b,c](uxno2 afv, c afw)
at Rebex.Net.SshChannel.xhvp[b,c](uxno`2 xj, c xk)
at Rebex.Net.SshChannel.Receive(Byte[] buffer, Int32 offset, Int32 count)
at oiol.vgrs(Byte[] m, Int32 n, Int32 o)
at oipb.lojn(Int32 arr)
at oipb.lojp(ruhe& aru)
at oipb.lojm(UInt32 arp, Boolean arq)
at oipb.lojl(ruhe arm, UInt32 arn, oiok aro)
at oipb.loih(String ant, oiqc anu, Boolean anv, oiok anw)
at Rebex.Net.Sftp.jlvv(oiok sb, String sc, Stream sd, Int64 se, Int64 sf, rtup sg)
--- End of inner exception stack trace ---
at Rebex.Net.Sftp.jlvv(oiok sb, String sc, Stream sd, Int64 se, Int64 sf, rtup sg)
at Rebex.Net.Sftp.jlvt(FileMode ro, oiok rp, String rq, String rr, Int64 rs, Int64 rt, Int64 ru, rtup rv)
at oiow.keoi(FileMode amw, String amx, String amy, Int64 amz, Int64 ana)
at rtum.jiln(String fq, String fr, rtuj fs, rtuj ft, rtuj fu, rtuj fv, Boolean fw, Boolean fx, Boolean fy)
at rtum.jilm(rtuk fp)
at rtum.jilj()
at rtum.jile(TransferAction fa, rtui fb, String fc, TransferMethod fd, MoveMode fe, LinkProcessingMode ff, ActionOnExistingFiles fg, rtuj fh)
at Rebex.Net.Sftp.jlwt(TransferAction ut, oiok uu, oiov uv, String uw, TransferMethod ux, MoveMode uy, LinkProcessingMode uz, ActionOnExistingFiles va)
at Rebex.Net.Sftp.Download(String remotePath, String localDirectoryPath, TraversalMode traversalMode, TransferMethod transferMethod, ActionOnExistingFiles existingFileMode)

Third Error:
System.InvalidOperationException: Not authenticated to the server.
at Rebex.Net.Sftp.jlun()
at Rebex.Net.Sftp.jlwt(TransferAction ut, oiok uu, oiov uv, String uw, TransferMethod ux, MoveMode uy, LinkProcessingMode uz, ActionOnExistingFiles va)
at Rebex.Net.Sftp.Download(String remotePath, String localDirectoryPath, TraversalMode traversalMode, TransferMethod transferMethod, ActionOnExistingFiles existingFileMode)

this all three are occurred in sequence wise.
If more info required.Please let me know.

1 Answer

+1 vote
by (144k points)

The first error comes from the SFTP server. Instead of responding to the client's SFTP request, the server reported a generic 'failure' error with the following error message:

Listener is shutting down. Files cannot be opened anymore.

Apparently, a shutdown of the server has been initiated while the SFTP client was attempting to transfer files.

Therefore, it's not a surprise that the SFTP client reported "The connection was closed by the server" error soon afterwards. The server is being shut down, and it has closed the connection as part of the process.

We are not quite sure how "Not authenticated to the server" got triggered afterwards - a debug log would hopefully make it possible to tell. It looks like the client somehow got into a place where it checked the "is authenticated" field first, before checking the "is connected". We'll look into this - the client should apparently fail with "Not connected to the server" error instead.

by (170 points)
Thank You @Lukas Pokorny
We will implement the debug log.
If we face the same issue in upcoming days will provide you debug logs definitely.
...