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

If NiFi process is killed, bootstrap auto-restart hangs on missing sensitive key file

    XMLWordPrintableJSON

Details

    Description

      If the NiFi process is killed and autoRestart is enabled in the bootstrap process (RunNiFi.java) (enabled by default except when in run mode) and the instance is using encrypted configuration files, the sensitive.key file which contains the master encryption key is no longer available when restart occurs. This results in the application exiting.

      To resolve this, the logic to prepare and generate the sensitive key file should be extracted to a method and invoked during initial start and during the auto-restart loop at https://github.com/apache/nifi/blob/master/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java#L1159 .

      Attachments

        Issue Links

          Activity

            People

              alopresto Andy LoPresto
              alopresto Andy LoPresto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: