I do see an ERROR in my nifi-app.log. Anyone have any experience addressing
this problem? I'm going to see what it says in the Admin Guide, as the
ERROR suggests. I'm not certain I understand how to set this sensitive
properties key. I'm assuming it has something to do with sensitive
properties in parameter contexts.
Any guidance would still be appreciated. I need to get this running. Thanks
in advance for any help.
2022-12-11 02:54:03,338 ERROR [main]
o.a.nifi.properties.NiFiPropertiesLoader Flow Configuration
[./conf/flow.json.gz] Found: Migration Required for blank Sensitive
Properties Key [nifi.sensitive.props.k
ey]
2022-12-11 02:54:03,340 ERROR [main] org.apache.nifi.NiFi Failure to launch
NiFi
java.lang.IllegalArgumentException: There was an issue decrypting protected
properties
at org.apache.nifi.NiFi.initializeProperties(NiFi.java:375)
at
org.apache.nifi.NiFi.convertArgumentsToValidatedNiFiProperties(NiFi.java:343)
at
org.apache.nifi.NiFi.convertArgumentsToValidatedNiFiProperties(NiFi.java:339)
at org.apache.nifi.NiFi.main(NiFi.java:331)
Caused by: org.apache.nifi.properties.SensitivePropertyProtectionException:
Sensitive Properties Key [nifi.sensitive.props.key] not found: See Admin
Guide section [Updating the Sensitive Properties Key]
at
org.apache.nifi.properties.NiFiPropertiesLoader.getDefaultProperties(NiFiPropertiesLoader.java:239)
at
org.apache.nifi.properties.NiFiPropertiesLoader.get(NiFiPropertiesLoader.java:218)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.nifi.NiFi.initializeProperties(NiFi.java:370)
... 3 common frames omitted
On Sat, Dec 10, 2022 at 11:55 PM Jeremy Pemberton-Pigott <
[email protected]> wrote:
> Instead of the bootstrap log check the nifi-app.log. It might be out of
> memory or have the port it needs already in use.
>
> Regards,
>
> Jeremy
>
>
> On 11 Dec 2022, at 11:01, James McMahon <[email protected]> wrote:
>
>
> I am trying to start nifi on an AWS EC2 instance. My bootstrap.conf says
> the service does not start, but I see no indication why. I am trying to
> start the nifi service using
>
> sudo ../bin/nifi.sh start
>
> How can I debug this? Here is the nifi-bootstrap log:
>
> 2022-12-11 02:54:02,932 INFO [main] org.apache.nifi.bootstrap.Command
> Command: java -classpath
> /opt/nifi/releases/nifi-1.18.0/./conf:/opt/nifi/releases/nifi-1.18.0/./lib/javax.servlet-api-3.1.0.jar:/
>
> opt/nifi/releases/nifi-1.18.0/./lib/jetty-schemas-5.2.jar:/opt/nifi/releases/nifi-1.18.0/./lib/logback-classic-1.2.11.jar:/opt/nifi/releases/nifi-1.18.0/./lib/logback-core-1.2.11.jar:/opt/nifi/releas
>
> es/nifi-1.18.0/./lib/jcl-over-slf4j-1.7.36.jar:/opt/nifi/releases/nifi-1.18.0/./lib/jul-to-slf4j-1.7.36.jar:/opt/nifi/releases/nifi-1.18.0/./lib/log4j-over-slf4j-1.7.36.jar:/opt/nifi/releases/nifi-1.
>
> 18.0/./lib/nifi-api-1.18.0.jar:/opt/nifi/releases/nifi-1.18.0/./lib/nifi-framework-api-1.18.0.jar:/opt/nifi/releases/nifi-1.18.0/./lib/nifi-server-api-1.18.0.jar:/opt/nifi/releases/nifi-1.18.0/./lib/
>
> nifi-runtime-1.18.0.jar:/opt/nifi/releases/nifi-1.18.0/./lib/nifi-nar-utils-1.18.0.jar:/opt/nifi/releases/nifi-1.18.0/./lib/nifi-properties-1.18.0.jar:/opt/nifi/releases/nifi-1.18.0/./lib/nifi-proper
>
> ty-utils-1.18.0.jar:/opt/nifi/releases/nifi-1.18.0/./lib/nifi-stateless-bootstrap-1.18.0.jar:/opt/nifi/releases/nifi-1.18.0/./lib/nifi-stateless-api-1.18.0.jar:/opt/nifi/releases/nifi-1.18.0/./lib/sl
>
> f4j-api-1.7.36.jar:/opt/nifi/releases/nifi-1.18.0/./lib/java11/jakarta.activation-api-1.2.2.jar:/opt/nifi/releases/nifi-1.18.0/./lib/java11/jakarta.activation-1.2.2.jar:/opt/nifi/releases/nifi-1.18.0
>
> /./lib/java11/jakarta.xml.bind-api-2.3.3.jar:/opt/nifi/releases/nifi-1.18.0/./lib/java11/jaxb-runtime-2.3.5.jar:/opt/nifi/releases/nifi-1.18.0/./lib/java11/txw2-2.3.5.jar:/opt/nifi/releases/nifi-1.18
> .0/./lib/java11/istack-commons-runtime-3.0.12.jar:/opt/nifi/releases/nifi-1.18.0/./lib/java11/javax.annotation-api-1.3.2.jar
> -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m -Dcurato
> r-log-only-first-connection-issue-as-error-level=true
> -Djavax.security.auth.useSubjectCredsOnly=true
> -Djava.security.egd=file:/dev/urandom -Dzookeeper.admin.enableServer=false
> -Dsun.net.http.allowRes
> trictedHeaders=true -Djava.net.preferIPv4Stack=true
> -Djava.awt.headless=true -Djava.protocol.handler.pkgs=sun.net.www.protocol
> -Dnifi.properties.file.path=/opt/nifi/releases/nifi-1.18.0/./conf/nifi.p
> roperties -Dnifi.bootstrap.listen.port=40671 -Dapp=NiFi
> -Dorg.apache.nifi.bootstrap.config.log.dir=/opt/nifi/releases/nifi-1.18.0/logs
> org.apache.nifi.NiFi
> 2022-12-11 02:54:02,976 INFO [main] org.apache.nifi.bootstrap.Command
> Launched Apache NiFi with Process ID 26353
> 2022-12-11 02:54:03,979 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi
> never started. Will not restart NiFi
> 2022-12-11 02:54:10,317 INFO [main] o.a.n.b.NotificationServiceManager
> Successfully loaded the following 0 services: []
> 2022-12-11 02:54:10,320 INFO [main] org.apache.nifi.bootstrap.RunNiFi
> Registered no Notification Services for Notification Type NIFI_STARTED
> 2022-12-11 02:54:10,320 INFO [main] org.apache.nifi.bootstrap.RunNiFi
> Registered no Notification Services for Notification Type NIFI_STOPPED
> 2022-12-11 02:54:10,320 INFO [main] org.apache.nifi.bootstrap.RunNiFi
> Registered no Notification Services for Notification Type NIFI_DIED
> 2022-12-11 02:54:10,337 INFO [main] org.apache.nifi.bootstrap.Command
> Apache NiFi is not running