Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

[NIFI] : listSFTP Auth fail

Solved Go to solution
Highlighted

[NIFI] : listSFTP Auth fail

New Contributor

Hi all,

I Got this error, but i don't know where is an issue in listSFTP processor

The command line works

sftp -o StrictHostKeyChecking=no  -oIdentityFile=/home/xxx/id_dsa XXXX@x.x.33.5

In the processor listFSTP

Username : XXXX
Strict Host Key Checking : true or false (same errors)
Host Key File : /home/xxx/id_dsa

And this error :

2017-09-04 14:04:16,655 ERROR [Timer-Driven Process Thread-2] o.a.nifi.processors.standard.ListSFTP ListSFTP[id=3c8b4625-015e-1000-ffff-ffffda2b4cb0] Failed to perform listing on remote host due to java.io.IOException: Failed to obtain connection to remote host due to com.jcraft.jsch.JSchException: Auth fail: {}
java.io.IOException: Failed to obtain connection to remote host due to com.jcraft.jsch.JSchException: Auth fail
        at org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:447)
        at org.apache.nifi.processors.standard.util.SFTPTransfer.getListing(SFTPTransfer.java:184)
        at org.apache.nifi.processors.standard.util.SFTPTransfer.getListing(SFTPTransfer.java:148)
        at org.apache.nifi.processors.standard.ListFileTransfer.performListing(ListFileTransfer.java:104)
        at org.apache.nifi.processor.util.list.AbstractListProcessor.onTrigger(AbstractListProcessor.java:340)
        at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
        at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1120)
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:147)
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
        at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.jcraft.jsch.JSchException: Auth fail
        at com.jcraft.jsch.Session.connect(Session.java:519)
        at com.jcraft.jsch.Session.connect(Session.java:183)
        at org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:433)
        ... 16 common frames omitted

thanks for yours helps

1 ACCEPTED SOLUTION

Accepted Solutions

Re: [NIFI] : listSFTP Auth fail

@mayki wogno

What user are you running NiFi as? If it isn't the same user you are using to login with, then the NiFi user won't be able to access the private key in the other user's home directory.

4 REPLIES 4

Re: [NIFI] : listSFTP Auth fail

@mayki wogno

What user are you running NiFi as? If it isn't the same user you are using to login with, then the NiFi user won't be able to access the private key in the other user's home directory.

Re: [NIFI] : listSFTP Auth fail

@mayki wogno

Does the above comment make sense to you?

Re: [NIFI] : listSFTP Auth fail

@mayki wogno

Are you still seeing this issue?

Re: [NIFI] : listSFTP Auth fail

New Contributor

Hi, the issue is about my private key

Don't have an account?
Coming from Hortonworks? Activate your account here