RE: Minifi 1.14.0 exception - sensitive props key
Hi Jeremy, MiNiFi constructs nifi.properties file from the config.yml located in ./conf folder and this property needs to be set manually in config.yml before the startup: Security Properties: Sensitive Props: key: '' Thanks, Tom From: Jeremy Pemberton-Pigott Sent: 20 September 2021 16:58 To: users@nifi.apache.org Subject: Re: Minifi 1.14.0 exception - sensitive props key Hi Tom, I recall that I used the NiFi 1.14.0 binary to set the key and then copied that over to the MiNiFi properties file to get it to work. Linux only: https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#updating-the-sensitive-properties-key ./bin/nifi.sh set-sensitive-properties-key Jeremy On Mon, Sep 20, 2021 at 9:14 PM Tomislav Novosel mailto:tomislav.novo...@clearpeaks.com>> wrote: According to migration guidance for NiFi property 'Sensitive Properties Key' should be generated at startup, I believe this is the same behaviour in case of MiNiFi since they merged the codebase. Why is this happening? BR, Tom From: Tomislav Novosel mailto:tomislav.novo...@clearpeaks.com>> Sent: 20 September 2021 11:05 To: users@nifi.apache.org<mailto:users@nifi.apache.org> Subject: Minifi 1.14.0 exception - sensitive props key Hi to all, I was using MiNiFi 0.5.0 running on ubuntu, installed as a service. I switched now to MiNiFi 1.14.0 – I disabled minifi service, deleted installation folder and unpacked MiNiFi 1.14.0 folder at the same place where was 0.5.0 installed. I started new MiNiFi 1.14.0 and the service don't want to start properly with this exception: java.lang.Exception: Unable to load flow due to: java.lang.IllegalArgumentException: NiFi Sensitive Properties Key [nifi.sensitive.props.key] is required at org.apache.nifi.headless.HeadlessNiFiServer.start(HeadlessNiFiServer.java:166) at org.apache.nifi.minifi.MiNiFi.(MiNiFi.java:163) at org.apache.nifi.minifi.MiNiFi.(MiNiFi.java:64) at org.apache.nifi.minifi.MiNiFi.main(MiNiFi.java:265) Caused by: java.lang.IllegalArgumentException: NiFi Sensitive Properties Key [nifi.sensitive.props.key] is required at org.apache.nifi.encrypt.PropertyEncryptorFactory.getPropertyEncryptor(PropertyEncryptorFactory.java:42) at org.apache.nifi.headless.HeadlessNiFiServer.start(HeadlessNiFiServer.java:125) ... 3 common frames omitted I tried to set the key manually, but the property in nifi.properties gets overwritten every time I am starting the service. Could not find anything about this exception, can someone help, why is this happening? Thanks, regards, Tom
Re: Minifi 1.14.0 exception - sensitive props key
Hi Tom, I recall that I used the NiFi 1.14.0 binary to set the key and then copied that over to the MiNiFi properties file to get it to work. Linux only: https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#updating-the-sensitive-properties-key ./bin/nifi.sh set-sensitive-properties-key Jeremy On Mon, Sep 20, 2021 at 9:14 PM Tomislav Novosel < tomislav.novo...@clearpeaks.com> wrote: > According to migration guidance for NiFi property 'Sensitive Properties > Key' should be generated at startup, I believe this is the same behaviour > in case of MiNiFi since they merged the codebase. Why is this happening? > > > > BR, > > Tom > > *From:* Tomislav Novosel > *Sent:* 20 September 2021 11:05 > *To:* users@nifi.apache.org > *Subject:* Minifi 1.14.0 exception - sensitive props key > > > > Hi to all, > > > > I was using MiNiFi 0.5.0 running on ubuntu, installed as a service. > > I switched now to MiNiFi 1.14.0 – I disabled minifi service, deleted > > installation folder and unpacked MiNiFi 1.14.0 folder at the same place > > where was 0.5.0 installed. > > > > I started new MiNiFi 1.14.0 and the service don't want to start properly > > with this exception: > > > > java.lang.Exception: Unable to load flow due to: > java.lang.IllegalArgumentException: NiFi Sensitive Properties Key > [nifi.sensitive.props.key] is required > > at > org.apache.nifi.headless.HeadlessNiFiServer.start(HeadlessNiFiServer.java:166) > > at org.apache.nifi.minifi.MiNiFi.(MiNiFi.java:163) > > at org.apache.nifi.minifi.MiNiFi.(MiNiFi.java:64) > > at org.apache.nifi.minifi.MiNiFi.main(MiNiFi.java:265) > > Caused by: java.lang.IllegalArgumentException: NiFi Sensitive Properties > Key [nifi.sensitive.props.key] is required > > at > org.apache.nifi.encrypt.PropertyEncryptorFactory.getPropertyEncryptor(PropertyEncryptorFactory.java:42) > > at > org.apache.nifi.headless.HeadlessNiFiServer.start(HeadlessNiFiServer.java:125) > > ... 3 common frames omitted > > > > I tried to set the key manually, but the property in nifi.properties gets > overwritten > > every time I am starting the service. > > > > Could not find anything about this exception, can someone help, why is > this happening? > > > > Thanks, regards, > > Tom >
RE: Minifi 1.14.0 exception - sensitive props key
According to migration guidance for NiFi property 'Sensitive Properties Key' should be generated at startup, I believe this is the same behaviour in case of MiNiFi since they merged the codebase. Why is this happening? BR, Tom From: Tomislav Novosel Sent: 20 September 2021 11:05 To: users@nifi.apache.org Subject: Minifi 1.14.0 exception - sensitive props key Hi to all, I was using MiNiFi 0.5.0 running on ubuntu, installed as a service. I switched now to MiNiFi 1.14.0 - I disabled minifi service, deleted installation folder and unpacked MiNiFi 1.14.0 folder at the same place where was 0.5.0 installed. I started new MiNiFi 1.14.0 and the service don't want to start properly with this exception: java.lang.Exception: Unable to load flow due to: java.lang.IllegalArgumentException: NiFi Sensitive Properties Key [nifi.sensitive.props.key] is required at org.apache.nifi.headless.HeadlessNiFiServer.start(HeadlessNiFiServer.java:166) at org.apache.nifi.minifi.MiNiFi.(MiNiFi.java:163) at org.apache.nifi.minifi.MiNiFi.(MiNiFi.java:64) at org.apache.nifi.minifi.MiNiFi.main(MiNiFi.java:265) Caused by: java.lang.IllegalArgumentException: NiFi Sensitive Properties Key [nifi.sensitive.props.key] is required at org.apache.nifi.encrypt.PropertyEncryptorFactory.getPropertyEncryptor(PropertyEncryptorFactory.java:42) at org.apache.nifi.headless.HeadlessNiFiServer.start(HeadlessNiFiServer.java:125) ... 3 common frames omitted I tried to set the key manually, but the property in nifi.properties gets overwritten every time I am starting the service. Could not find anything about this exception, can someone help, why is this happening? Thanks, regards, Tom
Minifi 1.14.0 exception - sensitive props key
Hi to all, I was using MiNiFi 0.5.0 running on ubuntu, installed as a service. I switched now to MiNiFi 1.14.0 - I disabled minifi service, deleted installation folder and unpacked MiNiFi 1.14.0 folder at the same place where was 0.5.0 installed. I started new MiNiFi 1.14.0 and the service don't want to start properly with this exception: java.lang.Exception: Unable to load flow due to: java.lang.IllegalArgumentException: NiFi Sensitive Properties Key [nifi.sensitive.props.key] is required at org.apache.nifi.headless.HeadlessNiFiServer.start(HeadlessNiFiServer.java:166) at org.apache.nifi.minifi.MiNiFi.(MiNiFi.java:163) at org.apache.nifi.minifi.MiNiFi.(MiNiFi.java:64) at org.apache.nifi.minifi.MiNiFi.main(MiNiFi.java:265) Caused by: java.lang.IllegalArgumentException: NiFi Sensitive Properties Key [nifi.sensitive.props.key] is required at org.apache.nifi.encrypt.PropertyEncryptorFactory.getPropertyEncryptor(PropertyEncryptorFactory.java:42) at org.apache.nifi.headless.HeadlessNiFiServer.start(HeadlessNiFiServer.java:125) ... 3 common frames omitted I tried to set the key manually, but the property in nifi.properties gets overwritten every time I am starting the service. Could not find anything about this exception, can someone help, why is this happening? Thanks, regards, Tom