Support Questions

Find answers, ask questions, and share your expertise

Stuck loading after login

avatar
Explorer

I'm new to NiFi, as you'll realize in this post. I'm trying to troubleshoot this issue where after I'm logging in with the provided password in the log file, I don't get past the loading screen. Here are things I've noticed: 

  1. in nifi.app log file, I get the error:
    1. Archive cleanup completed for container default; will now allow writing to this container.
  2. in cmd, I have this error: 
    1. Command Failed to set permissions so that only the owner can read status file [path]; this may allows others to have access to the key needed to communicate with NiFi. Permissions should be changed so that only the owner can read this file  
  3. when opening any .bat other than run-nifi.bat as administrator, the window immediately closes.
  4. This is the process that's looping over and over in the nifi-app.log file
    1. Screenshot 2023-07-04 102225.png

 

My feeling is that these are having to do with some sort of permission issue. I've tried taking the folder off read-only but that potential solution alone has been a rabbit hole of issues that I'm not even sure is correct. I noticed that there is a slightly different local url in this log file, tried that with the same issue (as opposed to the one provided on the website). I've tried downloading a fresh version of nifi as well. 

 

This has post has been my last resort since I cannot find anything on this issue online. TYIA 

1 ACCEPTED SOLUTION

avatar
Explorer

Oh god. One of my chrome extensions was causing this issue. Dark Reader. Issue solved. 

View solution in original post

8 REPLIES 8

avatar
Community Manager

@c3turner7 Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our NiFi experts @cotopaul and @MattWho  who may be able to assist you further.

Please keep us updated on your post, and we hope you find a satisfactory solution to your query.


Regards,

Diana Torres,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar

@c3turner7,

For 1: that is actually not an error and you might ignore it. Does it get written with ERROR because as far as I know, that line is an INFO and it causes no issue/problem.

For 2: based on my tests, you can ignore that message in windows as I received it constantly and NiFi works without any issue.

For 3: Try recording your screen and see if any error gets printed in the CMD before being closed. When this happend to me, I had an issue with JAVA and it got printed in the logs or within the CMD window. Nevertheless, what CMDs are you trying to execute and why? They all have a purpose and if you start running them in blind you might cause other problems and make your debug much heavier than it already is.

For 4: those are INFO lines, meaning that they are not affecting your application and you can ignore them.

Now, circling back to your problem, what do you mean when saying that you do not pass the loading screen? Are you staring at a blank page or do you have the logo displayed constantly? A screenshot might help. In addition, I strongly suggest you to extract all the ERROR lines from your log (nifi-app.log and nifi-bootstrap.log) and paste them here. How did you configure nifi-properties and bootstrap.conf?

avatar
Explorer

Here's the screenshot of where I'm stuck at: Screenshot 2023-07-05 092753.png

 

Good to know that those info lines don't mean anything serious and I can rule out any sort of security restrictions from Windows.

 

As far as CMDs, the only one I've run is ctrl+C to shut down NiFi. To start up, I run as administrator to get the run-nifi.bat file open in the foreground and in trying the same thing with other .bat's they immediately close.

 

Below are lines from nifi-bootstrap.log beginning with ERROR but then seem to elaborate into it being a WARNING seemingly about access. 

 

 

2023-07-05 09:27:20,147 ERROR [NiFi logging handler] org.apache.nifi.StdErr WARNING: An illegal reflective access operation has occurred
2023-07-05 09:27:20,147 ERROR [NiFi logging handler] org.apache.nifi.StdErr WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/C:/Users/chhri/NIFI-1~1.0/./work/nar/framework/nifi-framework-nar-1.22.0.nar-unpacked/NAR-INF/bundled-dependencies/spring-core-5.3.27.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
2023-07-05 09:27:20,147 ERROR [NiFi logging handler] org.apache.nifi.StdErr WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils
2023-07-05 09:27:20,147 ERROR [NiFi logging handler] org.apache.nifi.StdErr WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
2023-07-05 09:27:20,147 ERROR [NiFi logging handler] org.apache.nifi.StdErr WARNING: All illegal access operations will be denied in a future release

 

 

I am not receiving any ERROR lines in my nifi-app.log file, all INFO.

 

I have also not touched my nifi-properties and bootstrap.conf files yet. 

avatar
Master Mentor

@c3turner7 

What version of Java are you suing with your Apache NiFi 1.22?


avatar
Explorer

11

avatar
Master Mentor

@c3turner7 

I suggest opening the developer tools in your browser and then observing the network communication between your browser and the NiFi server.  Form this you should see what the current request to load the NiFi UI post authentication credentials being provided is waiting on.  

You could get and examine a JVM thread dump for your NIFi.  Getting multiple thread dumps space at least 1 min apart while it is in the state of loading the UI for comparison will allow you to see any threads that my not be changing from one dump to the next.  That info may help understand where exactly it is hung waiting on something.

Hope this helps,

Matt

avatar
Explorer

good idea. Looks like errors relating to asset loading. I could try redownloading java 11? Or try java 8?  Screenshot 2023-07-05 150618.png

avatar
Explorer

Oh god. One of my chrome extensions was causing this issue. Dark Reader. Issue solved.