<?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 web UI timeouts in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313566#M80418</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84336"&gt;@Garyy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That depends on what your definition is of "Standalone" NiFi server.&lt;BR /&gt;&lt;BR /&gt;A one node NiFi cluster and a standalone NiFi are two different things and I have seen many users with a one Node NiFi cluster refer to that as standalone.&amp;nbsp; A true standalone NIFi does not use Zookeeper and does not need to replicate requests to other nodes in the NiFi cluster, so none of the "cluster" configuration properties are used.&amp;nbsp; Additionally, a standalone NiFi has no dependency on zookeeper at the core level.&amp;nbsp; NiFi clusters use ZK for Cluster Coordinator and Primary node election (these roles only exist in a cluster setup) and Cluster wide state storage (Standalone has no need to share state with other nodes, so all state is simply stored locally).&lt;BR /&gt;&lt;BR /&gt;You can tell if your NiFi is a true standalone by checking the following property in the nifi.properties file:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi.cluster.is.node&lt;/LI-CODE&gt;&lt;P&gt;If it is set to true, then this NiFi is configured to operate as a cluster even if their is only one node&lt;BR /&gt;If it is set to false, then node is truly standalone.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 12:40:09 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2021-03-22T12:40:09Z</dc:date>
    <item>
      <title>NiFi web UI timeouts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/188674#M80415</link>
      <description>&lt;P&gt;Running HDF 3.1.0.&lt;/P&gt;&lt;P&gt;I'm quite often getting this error in the NiFi web UI:&lt;/P&gt;&lt;P&gt;"An unexpected error has occured: &lt;/P&gt;&lt;P&gt;javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: Read timed out"&lt;/P&gt;&lt;P&gt;Would appreciate a tip on how to avoid this. Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="79428-nifisockettimeout.png" style="width: 753px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18621i609E70692799ECEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="79428-nifisockettimeout.png" alt="79428-nifisockettimeout.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:50:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/188674#M80415</guid>
      <dc:creator>henrikolsen</dc:creator>
      <dc:date>2019-08-18T07:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi web UI timeouts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/188675#M80416</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48450/henrikolsen.html" nodeid="48450"&gt;@Henrik Olsen&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;NiFi's various timeout settings are very aggressive.  They are more ideal for a standalone NiFi instance running a fairly simple dataflow.  In a NiFi cluster the following timeouts should be increased:&lt;/P&gt;&lt;PRE&gt;nifi.cluster.node.connection.timeout=5 secs  (increase to 30 secs)

nifi.cluster.node.read.timeout=5 secs (Increase to 30 secs)

nifi.zookeeper.connect.timeout=3 secs  (increase to 60 secs)

nifi.zookeeper.session.timeout=3 secs  (Increase to 60 secs)&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;A restart of NiFi will be needed after making these changes.&lt;/P&gt;&lt;P&gt;Another thing you could do when this condition is present is to use the browser developer tools to try to catch what action is timing out.&lt;/P&gt;&lt;P&gt;Are you seeing a lot of full garbage collection occurring (if these stop-the-world events are long enough, it can also cause this).&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 19:37:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/188675#M80416</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-07-09T19:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi web UI timeouts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313436#M80417</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;, Do these parameters only apply to the cases of cluster? I am using a standalone nifi server, but my UI sessions frequently get terminated w/o any messages during development. Could something else, such as security settings, also have such effect? Could you please shed more light? Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 15:42:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313436#M80417</guid>
      <dc:creator>Garyy</dc:creator>
      <dc:date>2021-03-19T15:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi web UI timeouts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313566#M80418</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84336"&gt;@Garyy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That depends on what your definition is of "Standalone" NiFi server.&lt;BR /&gt;&lt;BR /&gt;A one node NiFi cluster and a standalone NiFi are two different things and I have seen many users with a one Node NiFi cluster refer to that as standalone.&amp;nbsp; A true standalone NIFi does not use Zookeeper and does not need to replicate requests to other nodes in the NiFi cluster, so none of the "cluster" configuration properties are used.&amp;nbsp; Additionally, a standalone NiFi has no dependency on zookeeper at the core level.&amp;nbsp; NiFi clusters use ZK for Cluster Coordinator and Primary node election (these roles only exist in a cluster setup) and Cluster wide state storage (Standalone has no need to share state with other nodes, so all state is simply stored locally).&lt;BR /&gt;&lt;BR /&gt;You can tell if your NiFi is a true standalone by checking the following property in the nifi.properties file:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi.cluster.is.node&lt;/LI-CODE&gt;&lt;P&gt;If it is set to true, then this NiFi is configured to operate as a cluster even if their is only one node&lt;BR /&gt;If it is set to false, then node is truly standalone.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 12:40:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313566#M80418</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-03-22T12:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi web UI timeouts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313577#M80419</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;! Your explanation is very educational.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked my nifi setting. It's a real standalone server.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;nifi.cluster.is.node=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, do you know what else could terminate UI sessions?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 15:29:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313577#M80419</guid>
      <dc:creator>Garyy</dc:creator>
      <dc:date>2021-03-22T15:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi web UI timeouts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313678#M80420</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84336"&gt;@Garyy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the first place you may want to start is opening developer tools in your browser and then trying to connect your NiFi UI and take note of what calls are taking the longest to return and which it eventually times out on.&lt;BR /&gt;&lt;BR /&gt;You may also want to enable garbage collection logging within your NiFi JVM (do this by adding GC logging java args in the NiFI bootstrap.conf file).&amp;nbsp; &amp;nbsp;If your JVM is encountering long and/or frequent GC (all GC events are stop-the-world events), this can result in timeouts made to the UI.&lt;BR /&gt;&lt;BR /&gt;It is also not entirely clear to me what you mean by your UI access get terminated.&amp;nbsp; NiFi does not use sessions. What are you observing? Can you provide more detail and screenshots?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 13:35:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313678#M80420</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-03-24T13:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi web UI timeouts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313742#M80421</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;, By saying my UI session getting terminated unexpected, I meant I was forced out of my nifi session a while after I logged in and worked on it, so I had to log in again. I observed more and recorded my issue. I always got kicked out exactly one hour after my last login. So I searched the configuration folder and found the following in&amp;nbsp;login-identity-providers.xml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;property name="Authentication Expiration"&amp;gt;1 hour&amp;lt;/property&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I believe this is root cause. After updating this value, I should be fine now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 18:14:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313742#M80421</guid>
      <dc:creator>Garyy</dc:creator>
      <dc:date>2021-03-25T18:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi web UI timeouts</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313809#M80422</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84336"&gt;@Garyy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You are correct.&amp;nbsp; Since NiFi does not use sessions as mentioned in my last response, the client must authenticate every action performed.&amp;nbsp; When you "login" to NiFi, the result is a bearer token being issued to the user which your browser stores and reuses in all subsequent request to the NiFi endpoints.&amp;nbsp; At the same time a server side token for your user is also stored on the specific NIFi node you logged in to.&amp;nbsp; The configuration in your NiFi login provider dictates how long those bearer tokens are good for.&amp;nbsp; With your setting of 1 hour, you would be forced to re-login again every hour.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 18:35:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-web-UI-timeouts/m-p/313809#M80422</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-03-29T18:35:24Z</dc:date>
    </item>
  </channel>
</rss>

