Skip to main content
Phanikondeti
Silver ⭐️⭐️⭐️
October 1, 2021
Question

Problem login for first time in Nifi

Hi All,

My Apache Nifi is running properly but  unable to open my ec2 ubuntu IP-address in browser . I am getting This site can't be reached error. Please help me to resolve this issue .

9 replies

Shelton
Gold ⭐️⭐️⭐️
October 2, 2021

@Phanikondeti 
Please can you share how you installed your nifi , version, and install documents followed? 
The errors logs would be good to share too.

Translate
Phanikondeti
Silver ⭐️⭐️⭐️
October 4, 2021

Apache nifi version : 1.14.0

installed 

java : apt-get install openjdk-8-jdk

location path : vi /etc/profile.d/java.sh

tar -zxvf nifi-1.9.2-bin.tar.gz
mv nifi-1.9.2 /opt/
ln -s /opt/nifi-1.9.2/ /opt/nifi
cd /opt/nifi
bin/nifi.sh install

Phanikondeti_0-1633355569484.png

 

 

Translate
MattWho
Titanium ⭐️⭐️⭐️
Titanium ⭐️⭐️⭐️
October 4, 2021

@Phanikondeti 

 

Thanks for sharing the log output.  Your NiFi is not up, It failed to start because it was unable to bind to the IP and port shown in the logs.  That IP address would correlate to what you have set in either of the following properties in the nifi.properties file:

(if unsecured) nifi.web.http.host=
(if secured) nifi.web.https.host=

 

You could use ifconfig command to see if your server has a network interface with that IP assigned to it.

If it was a port issue, I'd expect you to see a log message about port already being in use or that you're trying to launch NiFi as a privileged user and tried to use a port number below 1024.

If you found this response assisted with your query, please take a moment to login and click on "Accept as Solution" below this post.

Thank you,

Matt

Translate
MattWho
Titanium ⭐️⭐️⭐️
Titanium ⭐️⭐️⭐️
October 4, 2021

@Phanikondeti 

When NiFi is the bootstrap process starts a child process that may take a little time to fully start depending on size fo flowfile_repository and the size of the flow.xml.gz being loaded.

You will want to search the nifi-app.log for the following lines:

2021-10-04 18:05:57,212 INFO [main] org.apache.nifi.web.server.JettyServer NiFi has started. The UI is available at the following URLs:
2021-10-04 18:05:57,212 INFO [main] org.apache.nifi.web.server.JettyServer https://<nifi-hostname or IP>:<nifi port>/nifi
2021-10-04 18:05:57,216 INFO [main] org.apache.nifi.BootstrapListener Successfully initiated communication with Bootstrap

Until you see these lines, NiFi is still coming up and the UI will not yet be reachable.

If you do see these lines, you will want to make sure that your host where you have launched your browser can reach the hostname/IP logged in the above message.
You should also check to see which network interface your NiFi bound to on startup if you have multiple interfaces available.

If you found this response assisted with your query, please take a moment to login and click on "Accept as Solution" below this post.

Thank you,

Matt

Translate
Phanikondeti
Silver ⭐️⭐️⭐️
October 5, 2021

error : 

org.apache.nifi.web.server.JettyServer NiFi has started, but the UI is not available on any hosts. Please verify the host properties.

Phanikondeti_0-1633438849310.png

 

Translate
_Salva_
Silver ⭐️
July 23, 2024

Hello,

I got a similar error when trying to start nifi the first time. Currently I´m getting the error 

_Salva__0-1721727632676.png

As follows a little screenshot from the app-log: 

_Salva__1-1721727699684.png

 

Translate
DianaTorres
Community Manager
Community Manager
July 23, 2024

@_Salva_ As this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post. Thanks.

Translate
Regards, Diana Torres, Senior Community Moderator