<?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 NiFi 2.4 Fails to Start Due to Bitbucket Flow Registry Client – “Too Many Concurrent Streams” Errors in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-2-4-Fails-to-Start-Due-to-Bitbucket-Flow-Registry/m-p/412253#M253346</link>
    <description>&lt;P&gt;We are running &lt;STRONG&gt;Apache NiFi 2.4&lt;/STRONG&gt; (NifiKop Helm chart) in a clustered environment.&lt;BR /&gt;When NiFi attempts to start up and synchronize with &lt;STRONG&gt;Bitbucket Cloud Registry Client&lt;/STRONG&gt;, the application fails to fully initialize.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;We have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;72 process groups&lt;/STRONG&gt; under version control (Bitbucket Cloud registry).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;nifi.web.jetty.threads=30 (max web threads).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;nifi-atlassian-nar-2.5.0-SNAPSHOT.nar&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We are observing inconsistent startup behavior:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;In some cases, NiFi &lt;STRONG&gt;starts successfully&lt;/STRONG&gt;, but the logs contain repeated errors:&lt;BR /&gt;&lt;STRONG&gt;java.io.IOException: too many concurrent streams&lt;/STRONG&gt; (from the JDK HTTP/2 client used by the Bitbucket registry integration).&lt;BR /&gt;Even though these errors appear, the cluster eventually loads, and the UI becomes available.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In other cases, NiFi &lt;STRONG&gt;fails to start entirely&lt;/STRONG&gt;. It gets stuck ( The UI is visible for a few minutes but then it appear like an empty canvas where you cannot change or create anything)&amp;nbsp; at the following log entry and does not progress further:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="java"&gt;2025-09-04 13:57:41,246 INFO [Framework Task Thread-27] o.a.n.a.b.BitbucketFlowRegistryClient BitbucketFlowRegistryClient[id=XXXXXX] Initializing repository client&lt;/LI-CODE&gt;&lt;P&gt;When this occurs, the Controller Settings → Registry Clients page cannot load, and NiFi remains blocked.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If we disable the Bitbucket registry (by modifying the registry client URL so it cannot connect), NiFi starts consistently without issue.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We need guidance on:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Whether this is a &lt;STRONG&gt;known issue in NiFi 2.4’s Bitbucket Flow Registry Client&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Whether there is a &lt;STRONG&gt;configuration option&lt;/STRONG&gt; to force HTTP/1.1 or limit HTTP/2 concurrency for registry communications. (Not sure if this is the case)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Whether there is a &lt;STRONG&gt;supported workaround&lt;/STRONG&gt; to prevent registry client initialization from blocking NiFi startup when many versioned process groups are present.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;&lt;STRONG&gt;Logs when NiFi Starts Successfully (but with Errors)&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;Example log with &lt;STRONG&gt;“too many concurrent streams”&lt;/STRONG&gt; during startup:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;	at org.apache.nifi.web.client.StandardWebClientService$StandardHttpRequestBodySpec.getResponse(StandardWebClientService.java:366)
	at org.apache.nifi.web.client.StandardWebClientService$StandardHttpRequestBodySpec.retrieve(StandardWebClientService.java:349)
	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.controller.service.StandardControllerServiceInvocationHandler.invoke(StandardControllerServiceInvocationHandler.java:251)
	at org.apache.nifi.controller.service.StandardControllerServiceInvocationHandler$ProxiedReturnObjectInvocationHandler.invoke(StandardControllerServiceInvocationHandler.java:237)
	at jdk.proxy26/jdk.proxy26.$Proxy234.retrieve(Unknown Source)
	at org.apache.nifi.atlassian.bitbucket.BitbucketRepositoryClient.getPagedResponseValues(BitbucketRepositoryClient.java:373)
	at org.apache.nifi.atlassian.bitbucket.BitbucketRepositoryClient.getListCommits(BitbucketRepositoryClient.java:362)
	at org.apache.nifi.atlassian.bitbucket.BitbucketRepositoryClient.getLatestCommit(BitbucketRepositoryClient.java:403)
	at org.apache.nifi.atlassian.bitbucket.BitbucketRepositoryClient.getContentFromBranch(BitbucketRepositoryClient.java:244)
	at org.apache.nifi.registry.flow.git.AbstractGitFlowRegistryClient.getSnapshot(AbstractGitFlowRegistryClient.java:491)
	at org.apache.nifi.registry.flow.git.AbstractGitFlowRegistryClient.getFlow(AbstractGitFlowRegistryClient.java:279)
	at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.lambda$getFlow$6(StandardFlowRegistryClientNode.java:231)
	at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.execute(StandardFlowRegistryClientNode.java:314)
	at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.getFlow(StandardFlowRegistryClientNode.java:231)
	at org.apache.nifi.groups.StandardProcessGroup.synchronizeWithFlowRegistry(StandardProcessGroup.java:3769)
	at org.apache.nifi.groups.StandardProcessGroup.lambda$setVersionControlInformation$27(StandardProcessGroup.java:3575)
	at org.apache.nifi.controller.scheduling.StandardProcessScheduler.lambda$wrapTask$1(StandardProcessScheduler.java:177)
	at java.base/java.lang.VirtualThread.run(VirtualThread.java:329)
Caused by: java.io.IOException: too many concurrent streams
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:967)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:133)
	at org.apache.nifi.web.client.StandardWebClientService$StandardHttpRequestBodySpec.getResponse(StandardWebClientService.java:364)
	... 19 common frames omitted
Caused by: java.io.IOException: too many concurrent streams
	at java.net.http/jdk.internal.net.http.Http2Connection.reserveStream0(Http2Connection.java:616)
	at java.net.http/jdk.internal.net.http.Http2Connection.reserveStream(Http2Connection.java:583)
	at java.net.http/jdk.internal.net.http.Http2ClientImpl.getConnectionFor(Http2ClientImpl.java:109)
	at java.net.http/jdk.internal.net.http.ExchangeImpl.get(ExchangeImpl.java:94)
	at java.net.http/jdk.internal.net.http.Exchange.establishExchange(Exchange.java:391)
	at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Exchange.java:584)
	at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Exchange.java:428)
	at java.net.http/jdk.internal.net.http.Exchange.responseAsync(Exchange.java:420)
	at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:414)
	at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(MultiExchange.java:347)
	at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
	at java.net.http/jdk.internal.net.http.HttpClientImpl$DelegatingExecutor.execute(HttpClientImpl.java:177)
	at java.base/java.util.concurrent.CompletableFuture.completeAsync(CompletableFuture.java:2719)
	at java.net.http/jdk.internal.net.http.MultiExchange.responseAsync(MultiExchange.java:300)
	at java.net.http/jdk.internal.net.http.HttpClientImpl.sendAsync(HttpClientImpl.java:1050)
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:931)
	... 21 common frames omitted
​&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 04 Sep 2025 14:17:21 GMT</pubDate>
    <dc:creator>VVPeter</dc:creator>
    <dc:date>2025-09-04T14:17:21Z</dc:date>
    <item>
      <title>NiFi 2.4 Fails to Start Due to Bitbucket Flow Registry Client – “Too Many Concurrent Streams” Errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-2-4-Fails-to-Start-Due-to-Bitbucket-Flow-Registry/m-p/412253#M253346</link>
      <description>&lt;P&gt;We are running &lt;STRONG&gt;Apache NiFi 2.4&lt;/STRONG&gt; (NifiKop Helm chart) in a clustered environment.&lt;BR /&gt;When NiFi attempts to start up and synchronize with &lt;STRONG&gt;Bitbucket Cloud Registry Client&lt;/STRONG&gt;, the application fails to fully initialize.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;We have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;72 process groups&lt;/STRONG&gt; under version control (Bitbucket Cloud registry).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;nifi.web.jetty.threads=30 (max web threads).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;nifi-atlassian-nar-2.5.0-SNAPSHOT.nar&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We are observing inconsistent startup behavior:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;In some cases, NiFi &lt;STRONG&gt;starts successfully&lt;/STRONG&gt;, but the logs contain repeated errors:&lt;BR /&gt;&lt;STRONG&gt;java.io.IOException: too many concurrent streams&lt;/STRONG&gt; (from the JDK HTTP/2 client used by the Bitbucket registry integration).&lt;BR /&gt;Even though these errors appear, the cluster eventually loads, and the UI becomes available.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In other cases, NiFi &lt;STRONG&gt;fails to start entirely&lt;/STRONG&gt;. It gets stuck ( The UI is visible for a few minutes but then it appear like an empty canvas where you cannot change or create anything)&amp;nbsp; at the following log entry and does not progress further:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="java"&gt;2025-09-04 13:57:41,246 INFO [Framework Task Thread-27] o.a.n.a.b.BitbucketFlowRegistryClient BitbucketFlowRegistryClient[id=XXXXXX] Initializing repository client&lt;/LI-CODE&gt;&lt;P&gt;When this occurs, the Controller Settings → Registry Clients page cannot load, and NiFi remains blocked.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If we disable the Bitbucket registry (by modifying the registry client URL so it cannot connect), NiFi starts consistently without issue.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We need guidance on:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Whether this is a &lt;STRONG&gt;known issue in NiFi 2.4’s Bitbucket Flow Registry Client&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Whether there is a &lt;STRONG&gt;configuration option&lt;/STRONG&gt; to force HTTP/1.1 or limit HTTP/2 concurrency for registry communications. (Not sure if this is the case)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Whether there is a &lt;STRONG&gt;supported workaround&lt;/STRONG&gt; to prevent registry client initialization from blocking NiFi startup when many versioned process groups are present.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;&lt;STRONG&gt;Logs when NiFi Starts Successfully (but with Errors)&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;Example log with &lt;STRONG&gt;“too many concurrent streams”&lt;/STRONG&gt; during startup:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;	at org.apache.nifi.web.client.StandardWebClientService$StandardHttpRequestBodySpec.getResponse(StandardWebClientService.java:366)
	at org.apache.nifi.web.client.StandardWebClientService$StandardHttpRequestBodySpec.retrieve(StandardWebClientService.java:349)
	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.controller.service.StandardControllerServiceInvocationHandler.invoke(StandardControllerServiceInvocationHandler.java:251)
	at org.apache.nifi.controller.service.StandardControllerServiceInvocationHandler$ProxiedReturnObjectInvocationHandler.invoke(StandardControllerServiceInvocationHandler.java:237)
	at jdk.proxy26/jdk.proxy26.$Proxy234.retrieve(Unknown Source)
	at org.apache.nifi.atlassian.bitbucket.BitbucketRepositoryClient.getPagedResponseValues(BitbucketRepositoryClient.java:373)
	at org.apache.nifi.atlassian.bitbucket.BitbucketRepositoryClient.getListCommits(BitbucketRepositoryClient.java:362)
	at org.apache.nifi.atlassian.bitbucket.BitbucketRepositoryClient.getLatestCommit(BitbucketRepositoryClient.java:403)
	at org.apache.nifi.atlassian.bitbucket.BitbucketRepositoryClient.getContentFromBranch(BitbucketRepositoryClient.java:244)
	at org.apache.nifi.registry.flow.git.AbstractGitFlowRegistryClient.getSnapshot(AbstractGitFlowRegistryClient.java:491)
	at org.apache.nifi.registry.flow.git.AbstractGitFlowRegistryClient.getFlow(AbstractGitFlowRegistryClient.java:279)
	at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.lambda$getFlow$6(StandardFlowRegistryClientNode.java:231)
	at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.execute(StandardFlowRegistryClientNode.java:314)
	at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.getFlow(StandardFlowRegistryClientNode.java:231)
	at org.apache.nifi.groups.StandardProcessGroup.synchronizeWithFlowRegistry(StandardProcessGroup.java:3769)
	at org.apache.nifi.groups.StandardProcessGroup.lambda$setVersionControlInformation$27(StandardProcessGroup.java:3575)
	at org.apache.nifi.controller.scheduling.StandardProcessScheduler.lambda$wrapTask$1(StandardProcessScheduler.java:177)
	at java.base/java.lang.VirtualThread.run(VirtualThread.java:329)
Caused by: java.io.IOException: too many concurrent streams
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:967)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:133)
	at org.apache.nifi.web.client.StandardWebClientService$StandardHttpRequestBodySpec.getResponse(StandardWebClientService.java:364)
	... 19 common frames omitted
Caused by: java.io.IOException: too many concurrent streams
	at java.net.http/jdk.internal.net.http.Http2Connection.reserveStream0(Http2Connection.java:616)
	at java.net.http/jdk.internal.net.http.Http2Connection.reserveStream(Http2Connection.java:583)
	at java.net.http/jdk.internal.net.http.Http2ClientImpl.getConnectionFor(Http2ClientImpl.java:109)
	at java.net.http/jdk.internal.net.http.ExchangeImpl.get(ExchangeImpl.java:94)
	at java.net.http/jdk.internal.net.http.Exchange.establishExchange(Exchange.java:391)
	at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Exchange.java:584)
	at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Exchange.java:428)
	at java.net.http/jdk.internal.net.http.Exchange.responseAsync(Exchange.java:420)
	at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:414)
	at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(MultiExchange.java:347)
	at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
	at java.net.http/jdk.internal.net.http.HttpClientImpl$DelegatingExecutor.execute(HttpClientImpl.java:177)
	at java.base/java.util.concurrent.CompletableFuture.completeAsync(CompletableFuture.java:2719)
	at java.net.http/jdk.internal.net.http.MultiExchange.responseAsync(MultiExchange.java:300)
	at java.net.http/jdk.internal.net.http.HttpClientImpl.sendAsync(HttpClientImpl.java:1050)
	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:931)
	... 21 common frames omitted
​&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Sep 2025 14:17:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-2-4-Fails-to-Start-Due-to-Bitbucket-Flow-Registry/m-p/412253#M253346</guid>
      <dc:creator>VVPeter</dc:creator>
      <dc:date>2025-09-04T14:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi 2.4 Fails to Start Due to Bitbucket Flow Registry Client – “Too Many Concurrent Streams” Errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-2-4-Fails-to-Start-Due-to-Bitbucket-Flow-Registry/m-p/412256#M253347</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/118547"&gt;@VVPeter&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'd encourage you to create an Apache NiFi Jira with all you details:&lt;BR /&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There was an improvement made to the bitbucket registry client in version 2.5&lt;BR /&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-14583" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-14583&lt;/A&gt;&lt;BR /&gt;I don't see any direct correlation to your issue., but you could try upgrading to see if your issue persists before raising your bug jira.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 20:18:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-2-4-Fails-to-Start-Due-to-Bitbucket-Flow-Registry/m-p/412256#M253347</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-09-04T20:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi 2.4 Fails to Start Due to Bitbucket Flow Registry Client – “Too Many Concurrent Streams” Errors</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-2-4-Fails-to-Start-Due-to-Bitbucket-Flow-Registry/m-p/412290#M253349</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;,&amp;nbsp; I’m currently using &lt;STRONG&gt;nifi-atlassian-nar-2.5.0-SNAPSHOT.nar&lt;/STRONG&gt;, even though my NiFi version is &lt;STRONG&gt;2.4.0&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 09:24:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-2-4-Fails-to-Start-Due-to-Bitbucket-Flow-Registry/m-p/412290#M253349</guid>
      <dc:creator>VVPeter</dc:creator>
      <dc:date>2025-09-05T09:24:27Z</dc:date>
    </item>
  </channel>
</rss>

