You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Vinay Joseph <vi...@microfocus.com> on 2023/05/15 03:23:08 UTC

Failed to synchronize with Registry

Hi,

I have been using NiFi 1.21.0 and Registry 1.21.0 for a project. I am pretty new to the platform.

Both of them are secured against an FQDN, not localhost.

If I restart NiFi, I have no issues ... for a while. Then all of a sudden I a question mark against the process group.

[cid:image001.png@01D9872F.F4FFD580]

The nifi-app.log shows.
2023-05-15 03:12:42,437 ERROR [Timer-Driven Process Thread-6] o.a.nifi.groups.StandardProcessGroup Failed to synchronize StandardProcessGroup[identifier=c08db5d3-0187-1000-47d1-021d3fe4547b,name=Ingest Stats] with Flow Registry because could not determine the most recent version of the Flow in the Flow Registry
org.apache.nifi.registry.flow.FlowRegistryException: Error retrieving flow: Unknown user with identity 'anonymous'. Contact the system administrator.
    at org.apache.nifi.registry.flow.NifiRegistryFlowRegistryClient.getFlow(NifiRegistryFlowRegistryClient.java:233)
    at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.lambda$getFlow$4(StandardFlowRegistryClientNode.java:210)
    at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.execute(StandardFlowRegistryClientNode.java:282)
    at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.getFlow(StandardFlowRegistryClientNode.java:210)
    at org.apache.nifi.groups.StandardProcessGroup.synchronizeWithFlowRegistry(StandardProcessGroup.java:3889)
    at org.apache.nifi.controller.FlowController$6.run(FlowController.java:967)
    at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.nifi.registry.client.NiFiRegistryException: Error retrieving flow: Unknown user with identity 'anonymous'. Contact the system administrator.
    at org.apache.nifi.registry.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:117)
    at org.apache.nifi.registry.client.impl.JerseyFlowClient.get(JerseyFlowClient.java:87)
    at org.apache.nifi.registry.flow.NifiRegistryFlowRegistryClient.getFlow(NifiRegistryFlowRegistryClient.java:225)
    ... 12 common frames omitted
Caused by: javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized
    at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:942)
    at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:755)
    at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:675)
    at org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:697)
    at org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:691)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390)
    at org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:691)
    at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:674)
    at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:422)
    at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:318)
    at org.apache.nifi.registry.client.impl.JerseyFlowClient.lambda$get$1(JerseyFlowClient.java:93)
    at org.apache.nifi.registry.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:103)
    ... 14 common frames omitted

I can verify that NiFi is secured and configured to authenticate against LDAP.

[cid:image002.png@01D9872F.F4FFD580]

Nifi.properties has anonymous authentication set to false.
nifi.security.allow.anonymous.authentication=false
So, I am wondering why is NiFi unable to send my user credentials to registry?

Vinay Joseph
Pre-Sales Lead for IDOL Asia Pacific and Japan | vjoseph@opentext.com  | +61438354611 | Melbourne, Australia | https://www.linkedin.com/in/vinayjoseph/

[cid:image003.png@01D9872F.F4FFD580]


Re: Failed to synchronize with Registry

Posted by Bryan Bende <bb...@gmail.com>.
I was talking about the keystore itself. If you use keytool to list the
keystore.jks that nifi is using, you can see the extended key usage, and it
is required to have both serverAuth and clientAuth. If it it has only
serverAuth then it would likely produce the issue you are seeing, and if
that is the case you need to re-generate the keystore.

On Tue, May 16, 2023 at 8:27 AM Patrick Timmins <pt...@cox.net> wrote:

> You will also need to generate the properly configured  files on your
> systems (truststore, keystore, authorizer, etc) and specify their locations
> using the appropriate properties in the relevant *.properties files.
> More here:
>
> https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html
>
>
> https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#security_configuration
>
>
> On 5/15/2023 10:22 PM, Vinay Joseph wrote:
>
> Hi Bryan,
>
>
>
> I did add
>
> nifi.security.needClientAuth=true
>
>
>
> to the nifi.properties file and I am still facing the same issue. Is there
> something I am missing for clientAuth enablement?
>
>
>
> Regards,
>
>
>
> *Vinay Joseph*
>
> Pre-Sales Lead for IDOL Asia Pacific and Japan | vjoseph@opentext.com  |
> +61438354611 | Melbourne, Australia |
> https://www.linkedin.com/in/vinayjoseph/
>
>
>
>
>
> *From:* Bryan Bende <bb...@gmail.com> <bb...@gmail.com>
> *Sent:* Tuesday, May 16, 2023 12:11 AM
> *To:* users@nifi.apache.org
> *Subject:* Re: Failed to synchronize with Registry
>
>
>
> Hello,
>
>
>
> Most likely the server certificate you created for your NiFi instance does
> not have clientAuth ability. This is required for a NiFi cluster and also
> for communicating with registry, which is two-way TLS with a proxied entity
> identity.
>
>
>
> Thanks,
>
>
>
> Bryan
>
>
>
> On Sun, May 14, 2023 at 11:23 PM Vinay Joseph <vi...@microfocus.com>
> wrote:
>
> Hi,
>
>
>
> I have been using NiFi 1.21.0 and Registry 1.21.0 for a project. I am
> pretty new to the platform.
>
>
>
> Both of them are secured against an FQDN, not localhost.
>
>
>
> If I restart NiFi, I have no issues … for a while. Then all of a sudden I
> a question mark against the process group.
>
>
>
>
>
> The nifi-app.log shows.
>
> 2023-05-15 03:12:42,437 ERROR [Timer-Driven Process Thread-6]
> o.a.nifi.groups.StandardProcessGroup Failed to synchronize
> StandardProcessGroup[identifier=c08db5d3-0187-1000-47d1-021d3fe4547b,name=Ingest
> Stats] with Flow Registry because could not determine the most recent
> version of the Flow in the Flow Registry
>
> org.apache.nifi.registry.flow.FlowRegistryException: Error retrieving
> flow: Unknown user with identity 'anonymous'. Contact the system
> administrator.
>
>     at
> org.apache.nifi.registry.flow.NifiRegistryFlowRegistryClient.getFlow(NifiRegistryFlowRegistryClient.java:233)
>
>     at
> org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.lambda$getFlow$4(StandardFlowRegistryClientNode.java:210)
>
>     at
> org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.execute(StandardFlowRegistryClientNode.java:282)
>
>     at
> org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.getFlow(StandardFlowRegistryClientNode.java:210)
>
>     at
> org.apache.nifi.groups.StandardProcessGroup.synchronizeWithFlowRegistry(StandardProcessGroup.java:3889)
>
>     at
> org.apache.nifi.controller.FlowController$6.run(FlowController.java:967)
>
>     at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
>
>     at
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown
> Source)
>
>     at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown
> Source)
>
>     at
> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
> Source)
>
>     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
> Source)
>
>     at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>
>     at java.base/java.lang.Thread.run(Unknown Source)
>
> Caused by: org.apache.nifi.registry.client.NiFiRegistryException: Error
> retrieving flow: Unknown user with identity 'anonymous'. Contact the
> system administrator.
>
>     at
> org.apache.nifi.registry.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:117)
>
>     at
> org.apache.nifi.registry.client.impl.JerseyFlowClient.get(JerseyFlowClient.java:87)
>
>     at
> org.apache.nifi.registry.flow.NifiRegistryFlowRegistryClient.getFlow(NifiRegistryFlowRegistryClient.java:225)
>
>     ... 12 common frames omitted
>
> Caused by: javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:942)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:755)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:675)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:697)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:691)
>
>     at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
>
>     at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
>
>     at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
>
>     at
> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:691)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:674)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:422)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:318)
>
>     at
> org.apache.nifi.registry.client.impl.JerseyFlowClient.lambda$get$1(JerseyFlowClient.java:93)
>
>     at
> org.apache.nifi.registry.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:103)
>
>     ... 14 common frames omitted
>
>
>
> I can verify that NiFi is secured and configured to authenticate against
> LDAP.
>
>
>
>
>
> Nifi.properties has anonymous authentication set to false.
>
> nifi.security.allow.anonymous.authentication=false
>
> So, I am wondering why is NiFi unable to send my user credentials to
> registry?
>
>
>
> *Vinay Joseph*
>
> Pre-Sales Lead for IDOL Asia Pacific and Japan | vjoseph@opentext.com  |
> +61438354611 | Melbourne, Australia |
> https://www.linkedin.com/in/vinayjoseph/
>
>
>
>
>
>

Re: Failed to synchronize with Registry

Posted by Patrick Timmins <pt...@cox.net>.
You will also need to generate the properly configured  files on your 
systems (truststore, keystore, authorizer, etc) and specify their 
locations using the appropriate properties|||in the relevant 
*.properties files.  More here:
|

https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html

https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#security_configuration


On 5/15/2023 10:22 PM, Vinay Joseph wrote:
>
> Hi Bryan,
>
> I did add
>
> nifi.security.needClientAuth=true
>
> to the nifi.properties file and I am still facing the same issue. Is 
> there something I am missing for clientAuth enablement?
>
> Regards,
>
> *Vinay Joseph*
>
> Pre-Sales Lead for IDOL Asia Pacific and Japan | vjoseph@opentext.com  
> | +61438354611 | Melbourne, Australia | 
> https://www.linkedin.com/in/vinayjoseph/
>
> *From:*Bryan Bende <bb...@gmail.com>
> *Sent:* Tuesday, May 16, 2023 12:11 AM
> *To:* users@nifi.apache.org
> *Subject:* Re: Failed to synchronize with Registry
>
> Hello,
>
> Most likely the server certificate you created for your NiFi instance 
> does not have clientAuth ability. This is required for a NiFi cluster 
> and also for communicating with registry, which is two-way TLS with a 
> proxied entity identity.
>
> Thanks,
>
> Bryan
>
> On Sun, May 14, 2023 at 11:23 PM Vinay Joseph 
> <vi...@microfocus.com> wrote:
>
>     Hi,
>
>     I have been using NiFi 1.21.0 and Registry 1.21.0 for a project. I
>     am pretty new to the platform.
>
>     Both of them are secured against an FQDN, not localhost.
>
>     If I restart NiFi, I have no issues … for a while. Then all of a
>     sudden I a question mark against the process group.
>
>     The nifi-app.log shows.
>
>     2023-05-1503:12:42,437ERROR[Timer-Driven Process Thread-6]
>     o.a.nifi.groups.StandardProcessGroupFailed to synchronize
>     StandardProcessGroup[identifier=c08db5d3-0187-1000-47d1-021d3fe4547b,name=Ingest
>     Stats] with Flow Registry because could not determine the most
>     recent version of the Flow in the Flow Registry
>
>     org.apache.nifi.registry.flow.FlowRegistryException:
>     Errorretrieving flow: Unknown user with identity 'anonymous'.
>     Contact the system administrator.
>
>         at
>     org.apache.nifi.registry.flow.NifiRegistryFlowRegistryClient.getFlow(NifiRegistryFlowRegistryClient.java:233)
>
>         at
>     org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.lambda$getFlow$4(StandardFlowRegistryClientNode.java:210)
>
>         at
>     org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.execute(StandardFlowRegistryClientNode.java:282)
>
>         at
>     org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.getFlow(StandardFlowRegistryClientNode.java:210)
>
>         at
>     org.apache.nifi.groups.StandardProcessGroup.synchronizeWithFlowRegistry(StandardProcessGroup.java:3889)
>
>         at
>     org.apache.nifi.controller.FlowController$6.run(FlowController.java:967)
>
>         at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
>
>         at
>     java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown
>     Source)
>
>         at
>     java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
>
>         at
>     java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
>     Source)
>
>         at
>     java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
>     Source)
>
>         at
>     java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
>     Source)
>
>         at java.base/java.lang.Thread.run(Unknown Source)
>
>     Caused by: org.apache.nifi.registry.client.NiFiRegistryException:
>     Errorretrieving flow: Unknown user with identity 'anonymous'.
>     Contact the system administrator.
>
>         at
>     org.apache.nifi.registry.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:117)
>
>         at
>     org.apache.nifi.registry.client.impl.JerseyFlowClient.get(JerseyFlowClient.java:87)
>
>         at
>     org.apache.nifi.registry.flow.NifiRegistryFlowRegistryClient.getFlow(NifiRegistryFlowRegistryClient.java:225)
>
>         ... 12common frames omitted
>
>     Caused by: javax.ws.rs.NotAuthorizedException: HTTP 401Unauthorized
>
>         at
>     org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:942)
>
>         at
>     org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:755)
>
>         at
>     org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:675)
>
>         at
>     org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:697)
>
>         at
>     org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:691)
>
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
>
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
>
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
>
>         at
>     org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390)
>
>         at
>     org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:691)
>
>         at
>     org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:674)
>
>         at
>     org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:422)
>
>         at
>     org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:318)
>
>         at
>     org.apache.nifi.registry.client.impl.JerseyFlowClient.lambda$get$1(JerseyFlowClient.java:93)
>
>         at
>     org.apache.nifi.registry.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:103)
>
>         ... 14common frames omitted
>
>     I can verify that NiFi is secured and configured to authenticate
>     against LDAP.
>
>     Nifi.properties has anonymous authentication set to false.
>
>     nifi.security.allow.anonymous.authentication=false
>
>     So, I am wondering why is NiFi unable to send my user credentials
>     to registry?
>
>     *Vinay Joseph*
>
>     Pre-Sales Lead for IDOL Asia Pacific and Japan |
>     vjoseph@opentext.com | +61438354611 | Melbourne, Australia |
>     https://www.linkedin.com/in/vinayjoseph/
>

RE: Failed to synchronize with Registry

Posted by Vinay Joseph <vi...@microfocus.com>.
Hi Bryan,

I did add
nifi.security.needClientAuth=true

to the nifi.properties file and I am still facing the same issue. Is there something I am missing for clientAuth enablement?

Regards,

Vinay Joseph
Pre-Sales Lead for IDOL Asia Pacific and Japan | vjoseph@opentext.com  | +61438354611 | Melbourne, Australia | https://www.linkedin.com/in/vinayjoseph/

[cid:image001.png@01D987F9.6EFFBAC0]

From: Bryan Bende <bb...@gmail.com>
Sent: Tuesday, May 16, 2023 12:11 AM
To: users@nifi.apache.org
Subject: Re: Failed to synchronize with Registry

Hello,

Most likely the server certificate you created for your NiFi instance does not have clientAuth ability. This is required for a NiFi cluster and also for communicating with registry, which is two-way TLS with a proxied entity identity.

Thanks,

Bryan

On Sun, May 14, 2023 at 11:23 PM Vinay Joseph <vi...@microfocus.com>> wrote:
Hi,

I have been using NiFi 1.21.0 and Registry 1.21.0 for a project. I am pretty new to the platform.

Both of them are secured against an FQDN, not localhost.

If I restart NiFi, I have no issues … for a while. Then all of a sudden I a question mark against the process group.

[cid:image002.png@01D987F9.6EFFBAC0]

The nifi-app.log shows.
2023-05-15 03:12:42,437 ERROR [Timer-Driven Process Thread-6] o.a.nifi.groups.StandardProcessGroup Failed to synchronize StandardProcessGroup[identifier=c08db5d3-0187-1000-47d1-021d3fe4547b,name=Ingest Stats] with Flow Registry because could not determine the most recent version of the Flow in the Flow Registry
org.apache.nifi.registry.flow.FlowRegistryException: Error retrieving flow: Unknown user with identity 'anonymous'. Contact the system administrator.
    at org.apache.nifi.registry.flow.NifiRegistryFlowRegistryClient.getFlow(NifiRegistryFlowRegistryClient.java:233)
    at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.lambda$getFlow$4(StandardFlowRegistryClientNode.java:210)
    at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.execute(StandardFlowRegistryClientNode.java:282)
    at org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.getFlow(StandardFlowRegistryClientNode.java:210)
    at org.apache.nifi.groups.StandardProcessGroup.synchronizeWithFlowRegistry(StandardProcessGroup.java:3889)
    at org.apache.nifi.controller.FlowController$6.run(FlowController.java:967)
    at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.nifi.registry.client.NiFiRegistryException: Error retrieving flow: Unknown user with identity 'anonymous'. Contact the system administrator.
    at org.apache.nifi.registry.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:117)
    at org.apache.nifi.registry.client.impl.JerseyFlowClient.get(JerseyFlowClient.java:87)
    at org.apache.nifi.registry.flow.NifiRegistryFlowRegistryClient.getFlow(NifiRegistryFlowRegistryClient.java:225)
    ... 12 common frames omitted
Caused by: javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized
    at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:942)
    at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:755)
    at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:675)
    at org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:697)
    at org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:691)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390)
    at org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:691)
    at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:674)
    at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:422)
    at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:318)
    at org.apache.nifi.registry.client.impl.JerseyFlowClient.lambda$get$1(JerseyFlowClient.java:93)
    at org.apache.nifi.registry.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:103)
    ... 14 common frames omitted

I can verify that NiFi is secured and configured to authenticate against LDAP.

[cid:image003.png@01D987F9.6EFFBAC0]

Nifi.properties has anonymous authentication set to false.
nifi.security.allow.anonymous.authentication=false
So, I am wondering why is NiFi unable to send my user credentials to registry?

Vinay Joseph
Pre-Sales Lead for IDOL Asia Pacific and Japan | vjoseph@opentext.com<ma...@opentext.com>  | +61438354611 | Melbourne, Australia | https://www.linkedin.com/in/vinayjoseph/

[cid:image001.png@01D987F9.6EFFBAC0]


Re: Failed to synchronize with Registry

Posted by Bryan Bende <bb...@gmail.com>.
Hello,

Most likely the server certificate you created for your NiFi instance does
not have clientAuth ability. This is required for a NiFi cluster and also
for communicating with registry, which is two-way TLS with a proxied entity
identity.

Thanks,

Bryan

On Sun, May 14, 2023 at 11:23 PM Vinay Joseph <vi...@microfocus.com>
wrote:

> Hi,
>
>
>
> I have been using NiFi 1.21.0 and Registry 1.21.0 for a project. I am
> pretty new to the platform.
>
>
>
> Both of them are secured against an FQDN, not localhost.
>
>
>
> If I restart NiFi, I have no issues … for a while. Then all of a sudden I
> a question mark against the process group.
>
>
>
>
>
> The nifi-app.log shows.
>
> 2023-05-15 03:12:42,437 ERROR [Timer-Driven Process Thread-6]
> o.a.nifi.groups.StandardProcessGroup Failed to synchronize
> StandardProcessGroup[identifier=c08db5d3-0187-1000-47d1-021d3fe4547b,name=Ingest
> Stats] with Flow Registry because could not determine the most recent
> version of the Flow in the Flow Registry
>
> org.apache.nifi.registry.flow.FlowRegistryException: Error retrieving
> flow: Unknown user with identity 'anonymous'. Contact the system
> administrator.
>
>     at
> org.apache.nifi.registry.flow.NifiRegistryFlowRegistryClient.getFlow(NifiRegistryFlowRegistryClient.java:233)
>
>     at
> org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.lambda$getFlow$4(StandardFlowRegistryClientNode.java:210)
>
>     at
> org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.execute(StandardFlowRegistryClientNode.java:282)
>
>     at
> org.apache.nifi.registry.flow.StandardFlowRegistryClientNode.getFlow(StandardFlowRegistryClientNode.java:210)
>
>     at
> org.apache.nifi.groups.StandardProcessGroup.synchronizeWithFlowRegistry(StandardProcessGroup.java:3889)
>
>     at
> org.apache.nifi.controller.FlowController$6.run(FlowController.java:967)
>
>     at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
>
>     at
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown
> Source)
>
>     at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown
> Source)
>
>     at
> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
> Source)
>
>     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
> Source)
>
>     at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>
>     at java.base/java.lang.Thread.run(Unknown Source)
>
> Caused by: org.apache.nifi.registry.client.NiFiRegistryException: Error
> retrieving flow: Unknown user with identity 'anonymous'. Contact the
> system administrator.
>
>     at
> org.apache.nifi.registry.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:117)
>
>     at
> org.apache.nifi.registry.client.impl.JerseyFlowClient.get(JerseyFlowClient.java:87)
>
>     at
> org.apache.nifi.registry.flow.NifiRegistryFlowRegistryClient.getFlow(NifiRegistryFlowRegistryClient.java:225)
>
>     ... 12 common frames omitted
>
> Caused by: javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:942)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:755)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:675)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:697)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:691)
>
>     at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
>
>     at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
>
>     at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
>
>     at
> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:691)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:674)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:422)
>
>     at
> org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:318)
>
>     at
> org.apache.nifi.registry.client.impl.JerseyFlowClient.lambda$get$1(JerseyFlowClient.java:93)
>
>     at
> org.apache.nifi.registry.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:103)
>
>     ... 14 common frames omitted
>
>
>
> I can verify that NiFi is secured and configured to authenticate against
> LDAP.
>
>
>
>
>
> Nifi.properties has anonymous authentication set to false.
>
> nifi.security.allow.anonymous.authentication=false
>
> So, I am wondering why is NiFi unable to send my user credentials to
> registry?
>
>
>
> *Vinay Joseph*
>
> Pre-Sales Lead for IDOL Asia Pacific and Japan | vjoseph@opentext.com  |
> +61438354611 | Melbourne, Australia |
> https://www.linkedin.com/in/vinayjoseph/
>
>
>
>
>