Created 01-27-2017 04:57 PM
Hello,
In my NiFi flow, I am using a FetchSFTP processor to get files from a server. The first day I configured the processor it was working fine and was able to connect to the server and retrieve the files. However since then I have been getting the following error from the processor:
java.io.IOException: Failed to obtain connection to remote host due to com.jcraft.jsch.JSchException: session is down
No changes have been made to the processor's configuration and no changes have been made to the SFTP server. I am also still able to connect to the SFTP server via WinSCP; I am only having an issue with the FetchSFTP processor.
If anyone could provide some help towards debugging this issue it would be greatly appreciated! Thanks!
Created 02-03-2017 02:40 PM
Thanks for the response, but I was actually able to fix the problem a few days ago - I should have posted my solution.
The user was configured to to login and access a specific filepath. In my processor configuration I had the "remote file" property set to the full path as /path/to/file/${filename} when all I needed was ${filename}. But thanks for the response!
Created 02-02-2017 09:03 PM
Have you tried stopping FetchSFTP and starting it again? If so, does it work after restarting it? In the processor's configuration, is "Send Keep Alive On Timeout" set to true?
Created 02-03-2017 02:40 PM
Thanks for the response, but I was actually able to fix the problem a few days ago - I should have posted my solution.
The user was configured to to login and access a specific filepath. In my processor configuration I had the "remote file" property set to the full path as /path/to/file/${filename} when all I needed was ${filename}. But thanks for the response!
Created 02-03-2017 05:45 PM
Glad the issue has been resolved!