<?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: Nifi UI Behind Load Balancer in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381623#M244358</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101202"&gt;@PriyankaMondal&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What is being logged in the nifi-user.log when the issue happens?&lt;BR /&gt;Have you tried using your browser's developer tools to look at the data being exchanged in the request with the NiFi cluster?&lt;BR /&gt;Feels like maybe the site cookies are not being sent to the NiFi node after successful authentication resulting in the exception being seen.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2024 16:15:17 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2024-01-03T16:15:17Z</dc:date>
    <item>
      <title>Nifi UI Behind Load Balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381390#M244295</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 3-node Nifi cluster using self signed certificate. and that is working fine. Now I want to run these 3 node Nifi UI (port 8443) behind Load Balancer. The changes I have in nifi.properties file is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nifi.web.proxy.host=localhost:8443,nifiinstance-group-1:8443,&amp;lt;load-balancer&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All Nifi UI has same credential. and loadBalancer is using HTTP connection. Now, Nifi UI is coming up, but while passing the credentials it is throwing error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PriyankaMondal_0-1703762818700.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39297iF05CA6A5B921266B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PriyankaMondal_0-1703762818700.png" alt="PriyankaMondal_0-1703762818700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is no such error in nifi logs:&lt;/P&gt;&lt;P&gt;3X.XX.XX.XX - - [28/Dec/2023:11:03:12 +0000] "GET /nifi/ HTTP/1.1" 200 21126 "&lt;A href="http://3X.XX.XX.XX/nifi/login" target="_blank" rel="noopener"&gt;http://3X.XX.XX.XX/nifi/login&lt;/A&gt;" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide me with the root cause if this problem and how to solve this?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 11:31:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381390#M244295</guid>
      <dc:creator>PriyankaMondal</dc:creator>
      <dc:date>2023-12-28T11:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI Behind Load Balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381402#M244298</link>
      <description>&lt;P&gt;How you are trying to log in? using certificate? or Username&amp;amp;Passsword ? Is NiFi running on the container?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 14:49:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381402#M244298</guid>
      <dc:creator>ckumar</dc:creator>
      <dc:date>2023-12-28T14:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI Behind Load Balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381431#M244313</link>
      <description>&lt;P&gt;Its not on the container. and I am trying to login using username and password&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 05:24:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381431#M244313</guid>
      <dc:creator>PriyankaMondal</dc:creator>
      <dc:date>2023-12-29T05:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI Behind Load Balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381452#M244321</link>
      <description>&lt;P&gt;Thanks, The Error message tells me that "access unknown certificate of token not found"&amp;nbsp;&lt;/P&gt;&lt;P&gt;This means NiFi as a service expects client cert to be present if there are No client certs then a token must be present which would be obtained after entering the user name password.&lt;/P&gt;&lt;P&gt;But in LB connection it is possible that the token has been obtained from one nifi node but LB is redirecting the next request to a different NiFi node and it will not work&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you configured the stick session at the Load Balancing Proxy?&lt;/P&gt;&lt;P&gt;Refer to why it is needed in NiFi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Nifi-authentication-fails-when-a-HTTPS-load-balancer-is-used/td-p/343785" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/Nifi-authentication-fails-when-a-HTTPS-load-balancer-is-used/td-p/343785&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#proxy_configuration" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#proxy_configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#session_affinity" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#session_affinity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 13:52:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381452#M244321</guid>
      <dc:creator>ckumar</dc:creator>
      <dc:date>2023-12-29T13:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI Behind Load Balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381600#M244351</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/42173"&gt;@ckumar&lt;/a&gt;&amp;nbsp;! I am using GCP services to create LB. for the backend services of LB we used session affinity as "client IP" ( As shown below in the Screen Shot).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PriyankaMondal_0-1704267122855.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39324iC9CC80D81124EC73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PriyankaMondal_0-1704267122855.png" alt="PriyankaMondal_0-1704267122855.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Adding to this I used curl command to generate the token using LB URL, which is responding correctly. But Nifi UI still have the error.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;URL used :&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;&lt;SPAN class="ui-provider id ie qe bye byf byg byh byi byj byk byl bym byn byo byp byq byr bys byt byu byv byw byx byy byz bza bzb bzc bzd bze bzf bzg bzh bzi bzj"&gt;curl --location --request POST '&lt;A class="fui-Link ___10kug0w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="http://34.117.130.187/nifi-api/access/token%27" href="http://34.117.130.187/nifi-api/access/token%27" target="_blank" rel="noreferrer noopener"&gt;http://&amp;lt;LoadBalancer&amp;gt;/nifi-api/access/token'&lt;/A&gt; --header 'Content-Type: application/x-www-form-urlencoded' &amp;nbsp;--data-urlencode 'username=&amp;lt;MyUser&amp;gt;' &amp;nbsp;--data-urlencode 'password=&amp;lt;MyPassword&amp;gt;'&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Further, for debugging the root cause, I added only one Nifi server on the LB Backend, still getting the same error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 07:42:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381600#M244351</guid>
      <dc:creator>PriyankaMondal</dc:creator>
      <dc:date>2024-01-03T07:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI Behind Load Balancer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381623#M244358</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101202"&gt;@PriyankaMondal&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What is being logged in the nifi-user.log when the issue happens?&lt;BR /&gt;Have you tried using your browser's developer tools to look at the data being exchanged in the request with the NiFi cluster?&lt;BR /&gt;Feels like maybe the site cookies are not being sent to the NiFi node after successful authentication resulting in the exception being seen.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 16:15:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-UI-Behind-Load-Balancer/m-p/381623#M244358</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-03T16:15:17Z</dc:date>
    </item>
  </channel>
</rss>

