<?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: Intermittent 502 Errors Nifi behind ALB in AWS in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Intermittent-502-Errors-Nifi-behind-ALB-in-AWS/m-p/406953#M252595</link>
    <description>&lt;P&gt;We have the same issue. Are currently running with NiFi 2.3 and are still having this issue.&lt;/P&gt;&lt;P&gt;It seems to be something between NiFi and the load balancer indeed. But we haven't found out the cause yet.&lt;/P&gt;&lt;P&gt;Interested in updates from others facing this issue.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Apr 2025 12:57:49 GMT</pubDate>
    <dc:creator>rubenvw</dc:creator>
    <dc:date>2025-04-25T12:57:49Z</dc:date>
    <item>
      <title>Intermittent 502 Errors Nifi behind ALB in AWS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Intermittent-502-Errors-Nifi-behind-ALB-in-AWS/m-p/398468#M250202</link>
      <description>&lt;P&gt;I'm running Nifi in ECS with an ALB. Everything is up and seems normal except there are intermittent 502 errors that pop up in the Nifi ui that look like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-12-05 at 4.58.54 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/42942i5ADC66AC6F2E2BAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-12-05 at 4.58.54 PM.png" alt="Screenshot 2024-12-05 at 4.58.54 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;It seems that the source of the 502 is the load balancer but since it's intermittent it seems like an interaction between the load balancer and Nifi that is causing this behavior.&lt;BR /&gt;&lt;BR /&gt;I've tried messing with the following settings so that the idle timeout (60 seconds) on the ALB is lower&lt;/P&gt;&lt;P&gt;nifi.web.request.timeout&lt;/P&gt;&lt;P&gt;nifi.remote.input.http.transaction.ttl&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I've also made sure the nifi.web.proxy.host configuration is set the hostname that I'm using to hit the loadbalancer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else experienced something similar getting a load balancer in front of Nifi?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 22:23:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Intermittent-502-Errors-Nifi-behind-ALB-in-AWS/m-p/398468#M250202</guid>
      <dc:creator>anon12345</dc:creator>
      <dc:date>2024-12-05T22:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent 502 Errors Nifi behind ALB in AWS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Intermittent-502-Errors-Nifi-behind-ALB-in-AWS/m-p/400921#M250999</link>
      <description>&lt;P&gt;I picked up Nifi in December and had the same issue with 502s. I couldn't find anything other than make sure your Nifi idle timeout is greater than your load balancer. Which I did. First by 1 second. Then by 10 seconds. They by doubling it. Still the same issues.&lt;/P&gt;
&lt;P&gt;I just dealt with it until today it did it to me 3 times on a complex UpdateRecord Expression Language property. AAAAhhhggg!!!&lt;/P&gt;
&lt;P&gt;During the subsequent frustratingly redundant Google result, I came across this bug for Spring Boot:&amp;nbsp;&lt;A href="https://github.com/spring-projects/spring-boot/issues/38960" target="_blank" rel="noopener"&gt;https://github.com/spring-projects/spring-boot/issues/38960&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I'm not Java programmer but I've heard of Spring and found that Nifi uses Spring Framework. But I didn't see Spring Boot mentioned for Nifi. So out of spite, desperation and hoping it was a similar bug, I changed my load balancer's timeout to 25 seconds. I haven't had a 502 in over 4 hours now!&lt;/P&gt;
&lt;P&gt;I was preparing to upgrade to Nifi 2.1.0 as a last ditch effort. And now I see the release notes mention updating Spring Framework. Hopefully that includes the same bug fix from January 2024 for Spring Boot. But at least now I can finish building out what I need to and worry about the upgrade when I'm done.&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Hopefully this helps you (if you still need it) and it's not just a fluke or the planetary alignment.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 08:52:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Intermittent-502-Errors-Nifi-behind-ALB-in-AWS/m-p/400921#M250999</guid>
      <dc:creator>Sharkbait</dc:creator>
      <dc:date>2025-01-24T08:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent 502 Errors Nifi behind ALB in AWS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Intermittent-502-Errors-Nifi-behind-ALB-in-AWS/m-p/406953#M252595</link>
      <description>&lt;P&gt;We have the same issue. Are currently running with NiFi 2.3 and are still having this issue.&lt;/P&gt;&lt;P&gt;It seems to be something between NiFi and the load balancer indeed. But we haven't found out the cause yet.&lt;/P&gt;&lt;P&gt;Interested in updates from others facing this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 12:57:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Intermittent-502-Errors-Nifi-behind-ALB-in-AWS/m-p/406953#M252595</guid>
      <dc:creator>rubenvw</dc:creator>
      <dc:date>2025-04-25T12:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent 502 Errors Nifi behind ALB in AWS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Intermittent-502-Errors-Nifi-behind-ALB-in-AWS/m-p/411306#M253026</link>
      <description>&lt;P&gt;I'm having this same issue on the 2.3 also. AWS support says:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;target instances are likely to close TCP connections prematurely (with TCP RST or FIN) while the ALB has outstanding requests, causing 502 errors. This could be due to mismatched keep-alive timeout settings between the ALB and targets."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The ALB is set to a 1m timeout so it could be NiFi closing it early. Looking at that next.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 16:15:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Intermittent-502-Errors-Nifi-behind-ALB-in-AWS/m-p/411306#M253026</guid>
      <dc:creator>soloha</dc:creator>
      <dc:date>2025-07-09T16:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent 502 Errors Nifi behind ALB in AWS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Intermittent-502-Errors-Nifi-behind-ALB-in-AWS/m-p/411314#M253027</link>
      <description>&lt;P&gt;Possibly related to&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/NIFI-14462" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-14462&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I suggest reviewing discussion in this Apache Jira and reviewing your "&lt;SPAN&gt;nifi.web.request.timeout" setting in the nifi.properties file.&lt;BR /&gt;Making adjustments to this setting may help here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. 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>Wed, 09 Jul 2025 17:14:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Intermittent-502-Errors-Nifi-behind-ALB-in-AWS/m-p/411314#M253027</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-07-09T17:14:21Z</dc:date>
    </item>
  </channel>
</rss>

