Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7243

SFTP Processors - Exhausted available authentication methods

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.10.0, 1.11.0, 1.11.1, 1.11.3
    • 1.13.0
    • Extensions
    • PRO

    Description

      In version 1.8 this works correctly. In superiors no.

       

      Any of the processors: ListSFTP, FetchSFTP, GetSFTP, PutSFTP when connecting to an sftp shows the error:

      2020-03-10 15:12:51,596 ERROR [Timer-Driven Process Thread-3] o.a.nifi.processors.standard.ListSFTP ListSFTP[id=af72555e-0170-1000-c80d-7e992c9de544] Failed to perform listing on remote host due to Exhausted available authentication methods: net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods
      net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods
      at net.schmizz.sshj.SSHClient.auth(SSHClient.java:230)

       

      These tests that I commented have been made from nifi, both in windows and linux environment and fails in both.

         1 - Strict Host Key Checking: false

         2 - Strict Host Key Checking: true

              Host Key File: C:\Users\usuario\.ssh\known_hosts --> (ssh-rsa, ssh-dss and ecdsa-sha2-nistp256)

       

      From the machines, both in windows and in linux, if an sftp is made from the command line it connects without problems. But with Nifi he fails to connect.

       

      Any idea about how can I resolve this error? 

       

      Thank you in advance,

      -------------------------------------------- log -------------------------------------------------

      2020-03-10 15:12:51,596 ERROR [Timer-Driven Process Thread-3] o.a.nifi.processors.standard.ListSFTP ListSFTP[id=af72555e-0170-1000-c80d-7e992c9de544] Failed to perform listing on remote host due to Exhausted available authentication methods: net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods2020-03-10 15:12:51,596 ERROR [Timer-Driven Process Thread-3] o.a.nifi.processors.standard.ListSFTP ListSFTP[id=af72555e-0170-1000-c80d-7e992c9de544] Failed to perform listing on remote host due to Exhausted available authentication methods: net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methodsnet.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods at net.schmizz.sshj.SSHClient.auth(SSHClient.java:230) at org.apache.nifi.processors.standard.util.SFTPTransfer.getSFTPClient(SFTPTransfer.java:606) at org.apache.nifi.processors.standard.util.SFTPTransfer.getListing(SFTPTransfer.java:233) at org.apache.nifi.processors.standard.util.SFTPTransfer.getListing(SFTPTransfer.java:196) at org.apache.nifi.processors.standard.ListFileTransfer.performListing(ListFileTransfer.java:106) at org.apache.nifi.processors.standard.ListSFTP.performListing(ListSFTP.java:146) at org.apache.nifi.processor.util.list.AbstractListProcessor.listByTrackingTimestamps(AbstractListProcessor.java:472) at org.apache.nifi.processor.util.list.AbstractListProcessor.onTrigger(AbstractListProcessor.java:414) at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1176) at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:213) at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117) at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110) 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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)2020-03-10 15:12:51,601 DEBUG [Timer-Driven Process Thread-3] o.a.nifi.processors.standard.ListSFTP ListSFTP[id=af72555e-0170-1000-c80d-7e992c9de544] has chosen to yield its resources; will not be scheduled to run again for 1000 milliseconds2020-03-10 15:12:51,603 TRACE [Timer-Driven Process Thread-3] o.a.n.c.r.StandardProcessSession StandardProcessSession[id=0] checkpointed, but no events were performed by this ProcessSession

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            exceptionfactory David Handermann
            raulpopi Raúl
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 1h
              1h

              Slack

                Issue deployment