Support Questions
Find answers, ask questions, and share your expertise

Cannot access Nifi UI

Hi guys,

I have installed Nifi as standalone. I have also created the user 'nifi' for that particular server and assigned it to all files/folders regarding Nifi. In the bootstrap.conf configuration file 'run.as' is set to nothing, although every time I try to access the web UI I'm met with the following error:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /nifi-api/flow/current-user was not found on this server.</p> </body></html>

I have also gotten the following output from the nifi-user log:

2017-10-10 17:54:00,621 INFO [NiFi Web Server-43] org.apache.nifi.web.filter.RequestLogger Attempting request for (anonymous) GET http://XXX.XXX.XXX.XXX:8080/nifi-api/flow (source ip: XXX.XXX.XXX.XXX)

2017-10-10 17:54:00,622 INFO [NiFi Web Server-43] o.a.n.w.a.c.WebApplicationExceptionMapper javax.ws.rs.WebApplicationException. Returning 405 response.

Has anyone experienced this before?

Thanks in advance

1 REPLY 1

I started a stand-alone NiFi and made a GET request to http://localhost:8080/nifi-api/flow/current-user using my browser and Postman, and both return the correct response which includes JSON showing I am the anonymous user:

{
"identity": "anonymous",
"anonymous": true,
"provenancePermissions": {
"canRead": true,
"canWrite": true
},
"countersPermissions": {
"canRead": true,
"canWrite": true
},
"tenantsPermissions": {
"canRead": true,
"canWrite": true
},
"controllerPermissions": {
"canRead": true,
"canWrite": true
},
"policiesPermissions": {
"canRead": true,
"canWrite": true
},
"systemPermissions": {
"canRead": true,
"canWrite": true
},
"restrictedComponentsPermissions": {
"canRead": true,
"canWrite": true
}
}

; ;