Unable to create filesystem object for sftp://

Dear Community,

When we create a connection to a linux system via sftp or ftp, we do receive the following error message.

“error”:
“Unable to create filesystem object for sftp://:22/usr//”

“stacktrace”:
“java.io.IOException: Failed to get SFTP session connected\n\tat com.snaplogic.snap.api.fs.sftp.SftpSessionProducer.connectSession(SftpSessionProducer.java:314)\n\tat com.snaplogic.snap.api.fs.sftp.SftpSessionProducer.getSession(SftpSessionProducer.java:191)\n\tat com.snaplogic.snap.api.fs.sftp.SftpUrlConnection.connect(SftpUrlConnection.java:139)\n\tat com.snaplogic.snap.api.fs.sftp.SftpFileSystem.connect(SftpFileSystem.java:50)\n\tat com.snaplogic.snap.api.fs.sftp.SftpFileSystem.(SftpFileSystem.java:45)\n\tat com.snaplogic.snap.api.fs.sftp.SftpFileSystemProvider.newFileSystem(SftpFileSystemProvider.java:67)\n\tat com.snaplogic.snap.api.fs.JfsUtils.getFileSystem(JfsUtils.java:259)\n\tat com.snaplogic.snaps.binary.FileFinder.lambda$getFileSystemFor$2(FileFinder.java:268)\n\tat net.jodah.failsafe.Functions$11.call(Functions.java:263)\n\tat net.jodah.failsafe.SyncFailsafe.call(SyncFailsafe.java:145)\n\tat net.jodah.failsafe.SyncFailsafe.get(SyncFailsafe.java:69)\n\tat com.snaplogic.snaps.binary.BinaryUtils.failsafeExecute(BinaryUtils.java:456)\n\tat com.snaplogic.snaps.binary.FileFinder.getFileSystemFor(FileFinder.java:272)\n\tat com.snaplogic.snaps.binary.FileFinder.populate(FileFinder.java:149)\n\tat com.snaplogic.snaps.binary.Read.process(Read.java:226)\n\tat com.snaplogic.snap.api.ExecutionUtil.process(ExecutionUtil.java:106)\n\tat com.snaplogic.snap.api.ExecutionUtil.execute(ExecutionUtil.java:70)\n\tat com.snaplogic.snap.api.SimpleSnap.execute(SimpleSnap.java:70)\n\tat com.snaplogic.snaps.binary.Read.executeForSuggest(Read.java:414)\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl.executeSnap(SnapRunnableImpl.java:798)\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl.executeForSuggest(SnapRunnableImpl.java:647)\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl.doRun(SnapRunnableImpl.java:856)\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:435)\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:117)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat java.base/java.lang.Thread.run(Thread.java:834)\nCaused by: com.jcraft.jsch.JSchException: Auth fail\n\tat com.jcraft.jsch.Session.connect(Session.java:519)\n\tat com.snaplogic.snap.api.fs.sftp.SftpSessionProducer.connectSession(SftpSessionProducer.java:310)\n\t… 29 more\n”

“reason”:
“Failed to get SFTP session connected”

“resolution”:
“Please check all properties and credentials”

When we make a native sftp or ftp call to the target from the operating system level, it works like a charm. So, there is no nwtwork issue, no connectivity issue.
Please advice, why we receive this error message or Java exception dump.
thx

The sftp url usually looks like sftp://ftp.snaplogic.com:22/dir/filename. In your case the hostname seems to be missing. Verify if the File property in the File Reader snap is configured properly