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

GetSMBFile fails with Different server found for same hostname

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.18.0
    • 1.19.0
    • Core UI
    • None
    • RedHat 6 using openjdk 11 2018-09-25
      OpenJDK Runtime Environment 18.9 (build 11+28)
      OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)

    Description

      After almost exactly 1 week of running 1.18.0, previously configured GetSMBFile processes are reporting that they cannot retrieve files due to "Different server found for same hostname" error.  This happened on more than 1 of my GetSMBFile connectors.  There does not appear to be a way to force it to "forget" the server; restarting the processor did not fix it.  A full NiFi restart does resolve the issue.

       

      Dump information:

      2022-10-26 08:46:51,188 INFO [Timer-Driven Process Thread-55] c.hierynomus.smbj.connection.Connection Closed connection to servername.domain
      2022-10-26 08:46:51,188 INFO [Packet Reader for servername.domain] c.h.s.t.tcp.direct.DirectTcpPacketReader Thread[Packet Reader for servername.domain,5,main] stopped.
      2022-10-26 08:46:51,188 ERROR [Timer-Driven Process Thread-55] o.apache.nifi.processors.smb.GetSmbFile GetSmbFile[id=d212416c-9cb0-1f8e-cf35-c4cdfe011e42] Could not establish smb connection because of error co
      m.hierynomus.protocol.transport.TransportException: Different server found for same hostname 'servername.domain', disconnecting...
      com.hierynomus.protocol.transport.TransportException: Different server found for same hostname 'servername.domain', disconnecting...
              at com.hierynomus.smbj.connection.SMBProtocolNegotiator.initializeOrValidateServerDetails(SMBProtocolNegotiator.java:232)
              at com.hierynomus.smbj.connection.SMBProtocolNegotiator.negotiateDialect(SMBProtocolNegotiator.java:83)
              at com.hierynomus.smbj.connection.Connection.connect(Connection.java:141)
              at com.hierynomus.smbj.SMBClient.getEstablishedOrConnect(SMBClient.java:96)
              at com.hierynomus.smbj.SMBClient.connect(SMBClient.java:71)
              at org.apache.nifi.processors.smb.GetSmbFile.onTrigger(GetSmbFile.java:390)
              at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
              at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1354)
              at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:246)
              at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:102)
              at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
              at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
              at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
              at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:834)

       

      A possible answer was found here:  https://github.com/hierynomus/smbj/issues/672

      Attachments

        Issue Links

          Activity

            People

              gkulik Kulik Gábor
              stlaarons Aaron Schultz
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 40m
                  40m