Hi Users,
I'm here with another question regarding the upgrade from NiFi-1.9.2 to
NiFi-1.11.4. After testing a different instance of NiFi-1.11.4 and getting
comfortable with the features, we have decided to upgrade our existing NiFi
instance to 1.11.4. All of the process was smooth and I was able to get secure
NiFi-1.11.4 up and running and then I get this message after logging into NiFi.
Note that the authentication which uses LDAP has succeeded but then I get the
screen which says:
An unexpected error has occurred. Please check the logs for additional details.
I copied users.xml, authorizations.xml as well as database_repository files
from previous install to new installation. I have a separate location for other
configurations like authorizers.xml, login-identity-providers.xml,
state-management.xml, authorizers.xml, flow.xml.gz and also the keystore and
trustore files. I pointed the latest NiFi instance to the common config before
starting it. Also, provenance, content and flowfile repositories are configured
separately and I pointed new install to the existing locations.
Given below are the error messages in logs after authentication is successful.
My UserId is unable to access the root process group and basically nothing can
be accessed in NiFi.
nifi-user.log:
2020-07-14 13:41:18,996 INFO [NiFi Web Server-75]
o.a.n.w.s.NiFiAuthenticationFilter Authentication success for <UserName>
2020-07-14 13:41:19,064 ERROR [NiFi Web Server-36]
o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred:
java.lang.NullPointerException. Returning Internal Server Error response.
java.lang.NullPointerException: null
at
org.apache.nifi.util.FlowDifferenceFilters.isNewRelationshipAutoTerminatedAndDefaulted(FlowDifferenceFilters.java:203)
at
org.apache.nifi.groups.StandardProcessGroup.lambda$getModifications$84(StandardProcessGroup.java:4911)
at
java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at
java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at
java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at
java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at
java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at
java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1556)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)…..
nifi-app.log:
2020-07-14 13:41:52,706 INFO [Write-Ahead Local State Provider Maintenance]
org.wali.MinimalLockingWriteAheadLog
org.wali.MinimalLockingWriteAheadLog@6a2d0632 checkpointed with 0 Records and 0
Swap Files in 5 milliseconds (Stop-the-world time = 2 milliseconds, Clear Edit
Logs time = 2 millis), max Transaction ID -1
2020-07-14 13:41:53,299 ERROR [Timer-Driven Process Thread-7]
o.apache.nifi.controller.FlowController Failed to capture component stats for
Stats History
java.lang.NullPointerException: null
at
org.apache.nifi.util.FlowDifferenceFilters.isNewRelationshipAutoTerminatedAndDefaulted(FlowDifferenceFilters.java:203)
at
org.apache.nifi.groups.StandardProcessGroup.lambda$getModifications$84(StandardProcessGroup.java:4911)……
One thing to note is that the existing NiFi instance is installed a system
service and we start and stop it using a sudo user. As this is the first time
using the new instance, I didn't change the system service or init.d
configuration and started nifi user. Also, the previous and current installs
both have the below property in bootstrap.conf
rus.as=nifi
Could you please guide me what I'm doing wrong and what needs to be done? I'm
hoping this is a simple authorization issue which can be fixed with a small
change.
Thank you,
Harsha
Sent from Outlook<http://aka.ms/weboutlook>