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

Improve startup error messages in log

    XMLWordPrintableJSON

    Details

      Description

      We frequently have users who encounter startup errors due to configuration but can't understand the error messages to resolve the issues on their own. Improving the specific error messages, and providing context around them, would help users diagnose their own issues and supporters/community members offer better, more targeted solutions-oriented advice rather than having to ask investigatory questions and wait for synchronous conversations.

      Example issue where one of the ports (not clear from error messages) isn't specified in a cluster nifi.properties configuration file so the application fails to start up (happened during 1.7.1 to 1.9.2 migration).

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowController' defined in class path resource [nifi-context.xml]: Cannot resolve reference to bean 'clusterCoordinator' while setting bean property 'clusterCoordinator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clusterCoordinator': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Port must be inclusively in the range [1, 65535].  Port given: 0
      

      At least including the nifi.properties property/key in this error would make the issue and solution much clearer.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mtien M Tien
                Reporter:
                alopresto Andy LoPresto
              • 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 - 1h
                  1h