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

NiFi Toolkit CLI cannot connect to NiFi - trustAnchors parameter must be non-empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.19.0, 1.19.1
    • 1.20.0
    • None
    • None

    Description

      When running NiFi 1.19.0 using the apache/nifi docker image, the NiFi Toolkit is not able to connect to the running NiFi instance (with the default Single User Auth enabled).

      Having updated the NiFi Toolkit CLI properties file with the Truststore and Keystore details generated by NiFi (found within nifi.properties), then attempting to run a command using the NiFi Toolkit command line such as:

      /opt/nifi/nifi-toolkit-current/bin/cli.sh session set nifi
      /opt/nifi/nifi-toolkit-current/bin/cli.sh nifi get-services
      

      The following error is returned:

      ERROR: Error executing command 'get-services' : Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

      This suggests something isn't working correctly with the NiFi Toolkit JVM process/configuration or such (e.g. the correct truststore is not being used, see https://www.baeldung.com/java-trustanchors-parameter-must-be-non-empty)

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              Chris S Chris Sampson
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 50m
                  50m