<?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 Re: Template import error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Template-import-error/m-p/347068#M235053</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69192"&gt;@DigitalPlumber&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes, it is "secure". It's a very simple docker image with SINGLE_USER_AUTHENTICATION and a PROPS_KEY.&amp;nbsp;&lt;BR /&gt;The user log shows me anonymous user, which may be the cause of the problem. However, I fail to understand (and sorry the ignorance with NiFi auth methods) how to properly login as an user. NiFi does not prompt me an username or password when accessing the canvas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2022-07-07 12:47:01,537 INFO [NiFi Web Server-20] o.a.n.w.s.NiFiAuthenticationFilter Attempting request for (&amp;lt;anonymous&amp;gt;) GET http://localhost:8443/nifi-api/flow/current-user (source ip: 172.21.0.1)                                       
2022-07-07 12:47:01,541 INFO [NiFi Web Server-20] o.a.n.w.s.NiFiAuthenticationFilter Authentication success for anonymous&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Just in case I'm adding the docker-compose yaml file link &lt;A title="docker-compose.yaml" href="https://github.com/linssab/nifi-environment/blob/main/docker-compose.yaml" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 14:13:13 GMT</pubDate>
    <dc:creator>linssab</dc:creator>
    <dc:date>2022-07-07T14:13:13Z</dc:date>
    <item>
      <title>Template import error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Template-import-error/m-p/347055#M235047</link>
      <description>&lt;P&gt;I am trying to import an *.xml template made with NiFi version 1.13.2 into a 1.14 version client (in docker).&lt;/P&gt;&lt;P&gt;When trying to upload the *.xml file with the&lt;FONT face="terminal,monaco" size="2"&gt; Upload Template&lt;/FONT&gt; button under the &lt;FONT face="terminal,monaco" size="2"&gt;Operate panel&lt;/FONT&gt;, I get the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;html&amp;gt; &amp;lt;head&amp;gt; &amp;lt;meta http-equiv="Content-Type" content="text/html;charset=utf-8"/&amp;gt; &amp;lt;title&amp;gt;Error 403 Forbidden&amp;lt;/title&amp;gt; &amp;lt;/head&amp;gt; &amp;lt;body&amp;gt;&amp;lt;h2&amp;gt;HTTP ERROR 403 Forbidden&amp;lt;/h2&amp;gt; &amp;lt;table&amp;gt; &amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;URI:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;/nifi-api/process-groups/8f8e29ed-0181-1000-d7d0-76467ebfce01/templates/upload&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt; &amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;STATUS:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;403&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt; &amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;MESSAGE:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;Forbidden&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt; &amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;SERVLET:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;jerseySpring&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt; &amp;lt;/table&amp;gt; &amp;lt;hr&amp;gt;&amp;lt;a href="https://eclipse.org/jetty"&amp;gt;Powered by Jetty:// 9.4.42.v20210604&amp;lt;/a&amp;gt;&amp;lt;hr/&amp;gt; &amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have never seen this error before. Any clue of what the problem is?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 10:51:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Template-import-error/m-p/347055#M235047</guid>
      <dc:creator>linssab</dc:creator>
      <dc:date>2022-07-07T10:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Template import error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Template-import-error/m-p/347066#M235051</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the NiFi secure? What do you see in app and user log?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 13:46:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Template-import-error/m-p/347066#M235051</guid>
      <dc:creator>DigitalPlumber</dc:creator>
      <dc:date>2022-07-07T13:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Template import error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Template-import-error/m-p/347068#M235053</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69192"&gt;@DigitalPlumber&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes, it is "secure". It's a very simple docker image with SINGLE_USER_AUTHENTICATION and a PROPS_KEY.&amp;nbsp;&lt;BR /&gt;The user log shows me anonymous user, which may be the cause of the problem. However, I fail to understand (and sorry the ignorance with NiFi auth methods) how to properly login as an user. NiFi does not prompt me an username or password when accessing the canvas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2022-07-07 12:47:01,537 INFO [NiFi Web Server-20] o.a.n.w.s.NiFiAuthenticationFilter Attempting request for (&amp;lt;anonymous&amp;gt;) GET http://localhost:8443/nifi-api/flow/current-user (source ip: 172.21.0.1)                                       
2022-07-07 12:47:01,541 INFO [NiFi Web Server-20] o.a.n.w.s.NiFiAuthenticationFilter Authentication success for anonymous&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Just in case I'm adding the docker-compose yaml file link &lt;A title="docker-compose.yaml" href="https://github.com/linssab/nifi-environment/blob/main/docker-compose.yaml" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 14:13:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Template-import-error/m-p/347068#M235053</guid>
      <dc:creator>linssab</dc:creator>
      <dc:date>2022-07-07T14:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Template import error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Template-import-error/m-p/347079#M235062</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97121"&gt;@linssab&lt;/a&gt; I am not well versed with the docker aspect of this however I see this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;GET http://localhost:8443/nifi-api/flow/current-user&lt;/LI-CODE&gt;&lt;P&gt;That is going to http&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel the reason this is happening is because you have this in your yaml file:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ports:
            - '8443:8080'
        cpus : 2
        mem_limit: 2G
        mem_reservation: 2G
        environment:
            - NIFI_WEB_HTTP_PORT=8080&lt;/LI-CODE&gt;&lt;P&gt;That to me tells me that anything going in on 8443 route it to 8080 and 8080 is set on nifi.properties as the value for&amp;nbsp;nifi.web.http.port= because you are passing in through your yaml file:&lt;/P&gt;&lt;P&gt;NIFI_WEB_HTTP_PORT=8080&lt;BR /&gt;&lt;BR /&gt;I recommend that you change&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ports:
            - '8443:8080'

to

ports:
           - '8443:8443'


AND

environment:
            - NIFI_WEB_HTTP_PORT=8080

to

environment:
            - NIFI_WEB_HTTPS_PORT=8443&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;notice the "S" in HTTP&amp;lt;S&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then NiFi should start up securely and you will get a login page where you can pass it the values you set for:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- SINGLE_USER_CREDENTIALS_USERNAME=
- SINGLE_USER_CREDENTIALS_PASSWORD=&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Jul 2022 16:17:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Template-import-error/m-p/347079#M235062</guid>
      <dc:creator>DigitalPlumber</dc:creator>
      <dc:date>2022-07-07T16:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Template import error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Template-import-error/m-p/347088#M235067</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97121"&gt;@linssab&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are probably running into this issue&amp;nbsp;described in &lt;A href="https://issues.apache.org/jira/browse/NIFI-9241" target="_self"&gt;NIFI-9241&lt;/A&gt;, which has been fixed on NiFi 1.15.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 22:42:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Template-import-error/m-p/347088#M235067</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-07-07T22:42:01Z</dc:date>
    </item>
  </channel>
</rss>

