Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

NiFi UI is not loading template after login.

avatar
Explorer

If I create a new template, it is creating a flow.xml.gz and working fine. However If I replace the flow.xml.gz with old flow.xml.gz (one backup taken earlier in same cluster node HDF2.X) nifi UI is not coming after login and giving error as "com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out".

Have tried with all parameter tuning as described by "Matt Clarke" in some other post but no results.

Again If I move old file and replace with new flow.xml.gz then nifi is working fine.

Please let me know if anyone faces such issues and probable reason and working around.

Thanks,

SP

6 REPLIES 6

avatar
Explorer

@Matt Clarke

Have tried with all parameter tuning as described by "Matt Clarke" in some other post but no results.

avatar
Super Mentor
@SP

-

I am confused by your statement:
"If I create a new template, it is creating a flow.xml.gz and working fine"

-

A template is not the same thing as a flow.xml.gz file.

Are you generating a template, downloading it, and then trying to use that template as a new flow.xml.gz file? If so, that will not work.

-

Thank you,

Matt

avatar
Super Mentor

@SP

-

A couple of things that can be done to troubleshoot this.

1. Did you inspect both the nifi-app.log and nifi-bootstrap.log for any ERROR or WARN messages during NiFi start?

2. After Staring NiFi and waiting at least 5 minutes, take a series of 3 thread dumps (3-5 minutes apart) that can be inspected for any threads that may not be progressing (same thread ID in same state in every thread dump). NiFi will validate the components as it loads the flow from the flow.xml.gz. If you are using any type of mounted NAS and that mount is in a bad state and your new flow is trying to access that mount it may cause the validation thread to hang waiting on response from that NAS.

3. Perform a diff between working flow.xml.gz and non working flow.xml.gz to see what kind of components are i use in new flow and how they have been configured.

-

Thank you,

Matt

avatar
Explorer

Hi Matt,

Sorry for the delayed response.

Actually NiFi UI was not loading so that users are unable to login to NiFi.

What I have done is removed the current flow.xml.gz and replaced with the latest backup of flow.xml and certainly NiFi UI was up and working.

Not sure how to fix if the current flow.xml got corrupted for some reason and there were no error log which I can track for the above issue.

Thanks & regards,

SP

avatar
Super Mentor

*** Community Forum Tip: Try to avoid starting a new answer in response to an existing answer. Instead use comments to respond to existing answers. There is no guaranteed order to different answer which can make it hard following a discussion

avatar
Explorer

Yes I have already checked the logs as you have mentioned and nothing specific I can point out to this behavior. Have not taken thread dump but checked with diff and there seems to be some deployment of nar file but can't say specifically if that causes this. Anyway I have not faced it after that and incase if I face the same issue again I will follow your recommendations.

Thanks for your help and support Matt.