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

EncryptionOperationNotPossibleException in nifi-bootstrap.log might suggest underlying cause

    XMLWordPrintableJSON

Details

    Description

      Our Ansible instructions upgraded NiFi and created a new nifi.sensitive.props.key. In nifi.properties this property, if extant, is used to encrypt sensitive properties in flow.xml.gz. Thus, upon relaunching NiFi, the wrong key was used to decrypt resulting in the reported failure to start, flow.xml.gz is no longer useful.

      We found the problem and fixed it after Mark Payne suggested a possible cause, but if this state of things can be determined, it might save on community support for this situation if the logged message were to suggest what's at the bottom of this problem. The top of the stack trace appears in logs/nifi-app.log as below:

      2017-07-25 23:23:31,148 WARN [main] org.apache.nifi.web.server.JettyServer
      Failed to start web server... shutting down.
      org.apache.nifi.encrypt.EncryptionException:
      org.jasypt.exceptions.EncryptionOperationNotPossibleException
      at
      org.apache.nifi.encrypt.StringEncryptor.decrypt(StringEncryptor.java:149)
      ~[nifi-framework-core-1.1.2.jar:1.1.2]
      at
      org.apache.nifi.controller.serialization.FlowFromDOMFactory.decrypt(FlowFromDOMFactory.java:474)
      ~[nifi-framework-core-1.1.2.jar:1.1.2]
      at...

      Attachments

        Issue Links

          Activity

            People

              alopresto Andy LoPresto
              russell.bateman Russell Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: