Created 06-28-2019 04:10 AM
I have downloaded Nifi on my laptop running Mac OS Catalina Public Beta 2 and not able to access the UI.
It is up and running and able to access all the REST API's shown below ,
http://127.0.0.1:8080/nifi-api/flow/processor-types
http://127.0.0.1:8080/nifi-api/flow/controller-service-types
http://127.0.0.1:8080/nifi-api/flow/reporting-task-types
http://127.0.0.1:8080/nifi-api/controller/config
http://127.0.0.1:8080/nifi-api/resources
http://127.0.0.1:8080/nifi-api/system-diagnostics
However UI is not accessible , getting below error. Note this is very specific to Mac OS Catalina public beta. it is working fine in Mojave . Nothing stands out in any of the logs.
Problem accessing /nifi/. Reason:
Not Found
Powered by Jetty:// 9.4.11.v20180605
For testing purpose , i have downloaded Nifi-Registry and it is also having the same issue.
Created 06-28-2019 04:53 AM
Is it possible that the browser might be redirecting it to somewhere else. (or any Browser caching issue)
Can you please check if using the CURL call are you getting any different response headers? Can you please share the response headers when CURL using "-ivL" flags ?
Example:
# curl -ivL http://kerlatest6.example.com:8080/nifi # curl -ivL http://kerlatest6.example.com:8080/nifi-api/flow/processor-types
Also can you please share the output of the following command so that we can see if the process ID is same which is using that port 8080 or different?
# netstat -tnlpa | grep 8080 # ps -ef | grep nifi
.
Created 06-28-2019 05:52 AM
re-posting.. didn't added it as comment.
Below are the CURL Commands output.
➜ ~ git:(master) ✗ netstat -an | grep 8080
tcp4 0 0 *.8080 *.* LISTEN
➜ ~ git:(master) ✗ ps -ef | grep nifi
501 19949 1 0 9:57PM ttys001 0:00.00 /bin/sh ./nifi.sh start
501 19951 19949 0 9:57PM ttys001 0:01.29 /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java -cp /Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/conf:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/lib/bootstrap/* -Xms12m -Xmx24m -Dorg.apache.nifi.bootstrap.config.log.dir=/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/logs -Dorg.apache.nifi.bootstrap.config.pid.dir=/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/run -Dorg.apache.nifi.bootstrap.config.file=/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/conf/bootstrap.conf org.apache.nifi.bootstrap.RunNiFi start
501 19952 19951 0 9:57PM ttys001 2:18.73 /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java -classpath /Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./conf:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/nifi-properties-1.9.0.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/jetty-schemas-3.1.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/slf4j-api-1.7.25.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/nifi-framework-api-1.9.0.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/javax.servlet-api-3.1.0.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/jcl-over-slf4j-1.7.25.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/logback-classic-1.2.3.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/jul-to-slf4j-1.7.25.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/nifi-runtime-1.9.0.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/log4j-over-slf4j-1.7.25.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/logback-core-1.2.3.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/nifi-nar-utils-1.9.0.jar:/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./lib/nifi-api-1.9.0.jar -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx2048M -Xms2048M -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 -Djavax.security.auth.useSubjectCredsOnly=true -Djava.security.egd=file:/dev/urandom -Dsun.net.http.allowRestrictedHeaders=true -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -XX:+UseG1GC -Djava.protocol.handler.pkgs=sun.net.www.protocol -Dnifi.properties.file.path=/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./conf/nifi.properties -Dnifi.bootstrap.listen.port=58309 -Dapp=NiFi -Dorg.apache.nifi.bootstrap.config.log.dir=/Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/logs org.apache.nifi.NiFi
501 19975 1382 0 9:57PM ttys001 0:00.03 tail -f ../logs/nifi-app.log
501 20666 14587 0 10:06PM ttys002 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn nifi
Created 06-29-2019 02:56 AM
can anyone really help ?
Created 06-30-2019 09:08 PM
The above question and the entire response thread below was originally posted in the Community Help track. On Sun Jun 30 21:08 UTC 2019, a member of the HCC moderation staff moved it to the Data Ingestion & Streaming track. The Community Help Track is intended for questions about using the HCC site itself, not technical questions about the Nifi Web UI.
Created 07-01-2019 03:43 AM
Can you please check if your "nifi-web-api-xxx.war" and "nifi-web-ui-xxx.war" NARs are deploying fine in Nifi?
Do you see any message in your "nifi-app.log" for those WARs ? Some message like "with context path set to /nifi" (OR) "with context path set to /nifi-api"
Example:
# grep 'nifi-web-ui' /PATH/TO/nifi-1.9.2/logs/nifi-app* INFO [main] org.apache.nifi.web.server.JettyServer Loading WAR: /NiFi_Demos/nifi-1.9.2/./work/nar/framework/nifi-framework-nar-1.9.2.nar-unpacked/NAR-INF/bundled-dependencies/nifi-web-ui-1.9.2.war with context path set to /nifi INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.w.WebAppContext@1018f702{nifi,/nifi,file:///NiFi_Demos/nifi-1.9.2/work/jetty/nifi-web-ui-1.9.2.war/webapp/,AVAILABLE}{./work/nar/framework/nifi-framework-nar-1.9.2.nar-unpacked/NAR-INF/bundled-dependencies/nifi-web-ui-1.9.2.war}
.
OR
# grep 'nifi-web-ui' /PATH/TO/nifi-1.9.2/logs/nifi-app* INFO [main] org.apache.nifi.web.server.JettyServer Loading WAR: /NiFi_Demos/nifi-1.9.2/./work/nar/framework/nifi-framework-nar-1.9.2.nar-unpacked/NAR-INF/bundled-dependencies/nifi-web-api-1.9.2.war with context path set to /nifi-api INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.w.WebAppContext@1018f702{nifi,/nifi,file:///NiFi_Demos/nifi-1.9.2/work/jetty/nifi-web-ui-1.9.2.war/webapp/,AVAILABLE}{./work/nar/framework/nifi-framework-nar-1.9.2.nar-unpacked/NAR-INF/bundled-dependencies/nifi-web-ui-1.9.2.war}
.
If not then it indicates that your "/nifi" or "/nifi-api" contexts are not registered properly. Hence those contexts are not accessible from UI/Curl.
In that case i will suggest you to please check the following:
1. The Permission on the directory to know if the NiFi user is able to write to that dir?
# ls -lart nifi-1.9.2/work/nar/framework/nifi-framework-nar-1.9.2.nar-unpacked/NAR-INF/bundled-dependencies/nifi-web-api-1.9.2.war
2. Check & share the complete nifi startup logs so tat we can findout if there are any issues in getting tose context registered properly?
.
Created 07-01-2019 05:55 PM
Below are the details :
~ git:(master) ✗ grep 'nifi-web-ui' /Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/logs/nifi-app.log
2019-06-30 21:41:27,762 INFO [main] org.apache.nifi.web.server.JettyServer Loading WAR: /Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/./work/nar/framework/nifi-framework-nar-1.9.0.nar-unpacked/NAR-INF/bundled-dependencies/nifi-web-ui-1.9.0.war with context path set to /nifi
2019-06-30 21:41:42,074 INFO [main] o.e.jetty.server.handler.ContextHandler Started o.e.j.w.WebAppContext@509e4bc4{nifi,/nifi,file:///Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/work/jetty/nifi-web-ui-1.9.0.war/webapp/,AVAILABLE}{./work/nar/framework/nifi-framework-nar-1.9.0.nar-unpacked/NAR-INF/bundled-dependencies/nifi-web-ui-1.9.0.war}
~ git:(master) ✗ ls -lart /Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/work/nar/framework/nifi-framework-nar-1.9.0.nar-unpacked/NAR-INF/bundled-dependencies/nifi-web-api-1.9.0.war
-rw-r--r-- 1 samaraarkotti staff 950040 Feb 21 17:48 /Users/samaraarkotti/Documents/example-nifi-1.9.0-deploy/nifi-1.9.0/work/nar/framework/nifi-framework-nar-1.9.0.nar-unpacked/NAR-INF/bundled-dependencies/nifi-web-api-1.9.0.war
Attached are the logs:
Created 07-11-2019 07:48 PM
I am still facing the same issue any help would be appreciated.