Skip to main content
Tung
Silver ⭐️⭐️
August 8, 2024
Question

Forbidden Error when open NIFI UI

I had an authorization error after running successfully NiFi service on the Cloudera Private Cloud Base Cluster. Here is the error log in nifi-user.log file:

2024-08-07 17:57:56,775 INFO [main] o.a.n.a.FileAccessPolicyProvider Authorizations file loaded at Wed Aug 07 17:57:56 ICT 2024
2024-08-07 17:58:48,621 INFO [NiFi Web Server-30] o.a.n.w.s.NiFiAuthenticationFilter Authentication Started 10.62.142.124 [CN=node2, ST=CA, C=US] GET https://node2:8443/nifi-api/flow/metrics/json
2024-08-07 17:58:48,627 INFO [NiFi Web Server-30] o.a.n.w.s.NiFiAuthenticationFilter Authentication Success [node2] 10.62.142.124 GET https://node2:8443/nifi-api/flow/metrics/json
2024-08-07 17:58:48,747 INFO [NiFi Web Server-30] o.a.n.w.a.c.AccessDeniedExceptionMapper identity[node2], groups[nifi] does not have permission to access the requested resource. No applicable policies could be found. Returning Forbidden response.

Here are all the services I am using:

Tung_2-1723106589407.jpeg

I am using Java 11, I changed the NiFi directory from /var/lib/nifi, /var/log/nifi to /home/lib/nifi, /home/log/nifi because of the free space problem.

Does anyone know how to fix this? Thanks

 
 

 

 
 

2 replies

ckumar
Platinum ⭐️
Platinum ⭐️
August 12, 2024

From the logs snipped, it appears that the NiFi node does not have all the permissions, to get more clarity it would be nice if you could add the error you see in NiFi UI related to permissions. 

Thank you 

Translate
Tung
TungAuthor
Silver ⭐️⭐️
August 13, 2024

Hi Ckumar, recently I can not open the UI because the error of 403 when I check the nifi-request.log file also. I think all error come from same reason. 

Translate