-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting to swftp server using ssh ftp throws session is down error when using JSch library #44
Comments
I can't say I've seen this issue first-hand or heard of it from others, however I also have not tried connecting to a SwFTP instance using the JSch library, either. If you're using a number of simultaneous connections with the same credentials, you might be reaching the per-user connection limit that's configurable with the Would you mind sharing some sample code that we can use to try and reproduce the issue? |
@briancline I am having the same issue as well.
I observed from the Jsch logs that I am getting the following error even though I am disconnecting the connection.
Code to disconnect the connection and that method is called from finally.
My question is disconnecting for the channel not good enough, or we still do have to discoonect from the session explicitly. |
Hi
I am connecting to swftp using ssh ftp from a java program using JCch libraries. It works for some time and after that it throws session is down error. The SFTP server is running on softlayer
Caused by: com.jcraft.jsch.JSchException: session is down
at com.jcraft.jsch.Channel.sendChannelOpen(Channel.java:728)
at com.jcraft.jsch.Channel.connect(Channel.java:151)
at com.jcraft.jsch.Channel.connect(Channel.java:145)
at com.approuter.module.ftp.protocol.SftpConnectionImpl.(SftpConnectionImpl.java:108)
... 23 more
We try to reestablish a new session by cleaning of the resources (calling disconnect) but still face the same error even after retrying many number of times. Again suddenly it starts working after couple of hours.
Another thing is when this error occurs, it affects other clients as well who use the same credentials.
Can we know what is happening on the server side and how sessions are handled?
Is it possible to reuse a session once it gets corrupt/invalid. All channels returned by this session fail to work.
has anybody seen this issue?
Thanks
Sarath
The text was updated successfully, but these errors were encountered: