<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question There was an issue loading properties (nifi-2.0.0-M4) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/There-was-an-issue-loading-properties-nifi-2-0-0-M4/m-p/392925#M248287</link>
    <description>&lt;P&gt;I am facing an issue with my Nifi as I am unable to access the Nifi anymore. I think this maybe because I have modified and replaced the nifi.properties file from the original downloaded version of the file.&lt;/P&gt;&lt;P&gt;When I try to run Nifi as a service using&amp;nbsp;sudo service nifi start it does not start the service.&lt;/P&gt;&lt;P&gt;Here are the nifi-app.log that I can see...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi
java.lang.IllegalArgumentException: There was an issue loading properties
        at org.apache.nifi.NiFi.initializeProperties(NiFi.java:361)
        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: java.lang.IllegalStateException: Sensitive Properties Key [nifi.sensitive.props.key] not found: See Admin Guide section [Updating t
        at org.apache.nifi.properties.NiFiPropertiesLoader.getDefaultProperties(NiFiPropertiesLoader.java:159)
        at org.apache.nifi.properties.NiFiPropertiesLoader.get(NiFiPropertiesLoader.java:138)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.apache.nifi.NiFi.initializeProperties(NiFi.java:356)
        ... 3 common frames omitted
2024-09-01 16:47:45,266 INFO [main] org.apache.nifi.NiFi Launching NiFi...
2024-09-01 16:47:45,306 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Loading Application Properties [/opt/nifi/./conf/nifi.properties]
2024-09-01 16:47:45,310 ERROR [main] o.a.nifi.properties.NiFiPropertiesLoader Flow Configuration [./conf/flow.json.gz] Found: Migration Requirrops.key]
2024-09-01 16:47:45,311 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi
java.lang.IllegalArgumentException: There was an issue loading properties
        at org.apache.nifi.NiFi.initializeProperties(NiFi.java:361)
        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: java.lang.IllegalStateException: Sensitive Properties Key [nifi.sensitive.props.key] not found: See Admin Guide section [Updating t
        at org.apache.nifi.properties.NiFiPropertiesLoader.getDefaultProperties(NiFiPropertiesLoader.java:159)
        at org.apache.nifi.properties.NiFiPropertiesLoader.get(NiFiPropertiesLoader.java:138)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.apache.nifi.NiFi.initializeProperties(NiFi.java:356)
        ... 3 common frames omitted&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I think the problematic area is this in the nifi.properties file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi.security.autoreload.enabled=false
nifi.security.autoreload.interval=10 secs
nifi.security.keystore=./conf/keystore.p12
nifi.security.keystoreType=PKCS12
nifi.security.keystorePasswd=
nifi.security.keyPasswd=&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The keystorePasswd and keyPasswd properties are empty, while I am trying to run this on https with default settings.&lt;BR /&gt;&lt;BR /&gt;Can someone please help me here ?&lt;/P&gt;</description>
    <pubDate>Sun, 01 Sep 2024 21:03:20 GMT</pubDate>
    <dc:creator>NaveedButt</dc:creator>
    <dc:date>2024-09-01T21:03:20Z</dc:date>
    <item>
      <title>There was an issue loading properties (nifi-2.0.0-M4)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/There-was-an-issue-loading-properties-nifi-2-0-0-M4/m-p/392925#M248287</link>
      <description>&lt;P&gt;I am facing an issue with my Nifi as I am unable to access the Nifi anymore. I think this maybe because I have modified and replaced the nifi.properties file from the original downloaded version of the file.&lt;/P&gt;&lt;P&gt;When I try to run Nifi as a service using&amp;nbsp;sudo service nifi start it does not start the service.&lt;/P&gt;&lt;P&gt;Here are the nifi-app.log that I can see...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi
java.lang.IllegalArgumentException: There was an issue loading properties
        at org.apache.nifi.NiFi.initializeProperties(NiFi.java:361)
        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: java.lang.IllegalStateException: Sensitive Properties Key [nifi.sensitive.props.key] not found: See Admin Guide section [Updating t
        at org.apache.nifi.properties.NiFiPropertiesLoader.getDefaultProperties(NiFiPropertiesLoader.java:159)
        at org.apache.nifi.properties.NiFiPropertiesLoader.get(NiFiPropertiesLoader.java:138)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.apache.nifi.NiFi.initializeProperties(NiFi.java:356)
        ... 3 common frames omitted
2024-09-01 16:47:45,266 INFO [main] org.apache.nifi.NiFi Launching NiFi...
2024-09-01 16:47:45,306 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Loading Application Properties [/opt/nifi/./conf/nifi.properties]
2024-09-01 16:47:45,310 ERROR [main] o.a.nifi.properties.NiFiPropertiesLoader Flow Configuration [./conf/flow.json.gz] Found: Migration Requirrops.key]
2024-09-01 16:47:45,311 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi
java.lang.IllegalArgumentException: There was an issue loading properties
        at org.apache.nifi.NiFi.initializeProperties(NiFi.java:361)
        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: java.lang.IllegalStateException: Sensitive Properties Key [nifi.sensitive.props.key] not found: See Admin Guide section [Updating t
        at org.apache.nifi.properties.NiFiPropertiesLoader.getDefaultProperties(NiFiPropertiesLoader.java:159)
        at org.apache.nifi.properties.NiFiPropertiesLoader.get(NiFiPropertiesLoader.java:138)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.apache.nifi.NiFi.initializeProperties(NiFi.java:356)
        ... 3 common frames omitted&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I think the problematic area is this in the nifi.properties file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi.security.autoreload.enabled=false
nifi.security.autoreload.interval=10 secs
nifi.security.keystore=./conf/keystore.p12
nifi.security.keystoreType=PKCS12
nifi.security.keystorePasswd=
nifi.security.keyPasswd=&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The keystorePasswd and keyPasswd properties are empty, while I am trying to run this on https with default settings.&lt;BR /&gt;&lt;BR /&gt;Can someone please help me here ?&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 21:03:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/There-was-an-issue-loading-properties-nifi-2-0-0-M4/m-p/392925#M248287</guid>
      <dc:creator>NaveedButt</dc:creator>
      <dc:date>2024-09-01T21:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: There was an issue loading properties (nifi-2.0.0-M4)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/There-was-an-issue-loading-properties-nifi-2-0-0-M4/m-p/393195#M248367</link>
      <description>&lt;P&gt;I tried creating the certificates using TinyCert.org and placing the corresponding files and properties in place.&lt;BR /&gt;I used this YouTube tutorial for generating the certificates and keys:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=LanpbWR7Gv8" target="_self"&gt;https://www.youtube.com/watch?v=LanpbWR7Gv8&lt;/A&gt;&lt;BR /&gt;I am not sure how to generate and add the nifi.sensitive.props.key property. Can you point me to an article please ?&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 21:01:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/There-was-an-issue-loading-properties-nifi-2-0-0-M4/m-p/393195#M248367</guid>
      <dc:creator>NaveedButt</dc:creator>
      <dc:date>2024-09-08T21:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: There was an issue loading properties (nifi-2.0.0-M4)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/There-was-an-issue-loading-properties-nifi-2-0-0-M4/m-p/393236#M248387</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/115527"&gt;@NaveedButt&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The exception you shared is complaining about the nifi.sensitive.props.key property not being set in the nifi.properties file at startup:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1725896161791.png" style="width: 726px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41717i987923B91A4B9B8D/image-dimensions/726x216?v=v2" width="726" height="216" role="button" title="MattWho_0-1725896161791.png" alt="MattWho_0-1725896161791.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This pops key value is used to encrypt all sensitive component properties created in the flow.json.gz as you build your dataflows via the NiFi canvas.&lt;BR /&gt;&lt;BR /&gt;If you have not built any dataflows that utilize sensitive properties in the component configurations, you can just set some value and start your NiFi.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you have already existing dataflows on your NiFi canvas containing sensitive values set (passwords) in the configurtion(s), you'll need to retrieve the exact password from the original nifi.properties and use that.&amp;nbsp; If original props key is not set, NiFi will fail to start when it tries to load the flow.json.gz since it will not be able to decrypt those passwords using the new props key.&lt;BR /&gt;&lt;BR /&gt;If you get stuck, you can carefully manually edit the flow.json.gz and remove all "enc{.....}" values.&amp;nbsp; This will allow you to start your NiFi using a new sensitive props key value; however, all your configured passwords will be cleared and you will need to enter them again into your various component configurations.&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 15:43:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/There-was-an-issue-loading-properties-nifi-2-0-0-M4/m-p/393236#M248387</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-09-09T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: There was an issue loading properties (nifi-2.0.0-M4)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/There-was-an-issue-loading-properties-nifi-2-0-0-M4/m-p/393245#M248393</link>
      <description>&lt;P&gt;Thanks for the detailed reply. I added a new value in the nifi.properties and it worked as my installation was brand new, but did not know that the exact value needs to be copied over from the previous installation if we are configuring an old installation.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 19:08:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/There-was-an-issue-loading-properties-nifi-2-0-0-M4/m-p/393245#M248393</guid>
      <dc:creator>NaveedButt</dc:creator>
      <dc:date>2024-09-09T19:08:45Z</dc:date>
    </item>
  </channel>
</rss>

