Support Questions

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

Nifi web server failing to start

avatar
Contributor

Hi all,

I'm trying to create secured nifi and when i restart it says,

" INFO [NiFi Bootstrap Command Listener] org.apache.nifi.bootstrap.RunNiFi Apache NiFi now running and listening for Bootstrap requests on port 40512

2018-08-21 16:22:24,527 ERROR [NiFi logging handler] org.apache.nifi.StdErr Failed to start web server: Unresolved address 2018-08-21 16:22:24,527 ERROR [NiFi logging handler] org.apache.nifi.StdErr Shutting down... 2018-08-21 16:22:25,894 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi never started. Will not restart NiFi"

I even tried removing the flowfile, contents and provenance repositories and tried restarting the nifi, even though i,m getting the same error. Any please help me out. Thanks in advance @Matt Burgess @Matt Clarke @Jay Kumar SenSharma @Geoffrey Shelton Okot @Artem Ervitsnifi-bootstrap.txtapplog.txt

4 REPLIES 4

avatar
Master Mentor

@Deepak SANAGAPALLI

We see the following error

2018-08-21 16:22:24,529 WARN [main] org.apache.nifi.web.server.JettyServer Failed to start web server... shutting down.
java.net.SocketException: Unresolved address
        at sun.nio.ch.Net.translateToSocketException(Net.java:131)
        at sun.nio.ch.Net.translateException(Net.java:157)
        at sun.nio.ch.Net.translateException(Net.java:163)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:76)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:298)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:431)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:777)
        at org.apache.nifi.NiFi.<init>(NiFi.java:160)
        at org.apache.nifi.NiFi.main(NiFi.java:268)
Caused by: java.nio.channels.UnresolvedAddressException: null
        at sun.nio.ch.Net.checkAddress(Net.java:101)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:218)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        ... 9 common frames omitted

NiFi internally starts a Jetty web container. Here the above error indicates that in your configuration you might not have specified the Address for NiFi and hence we see "Unresolved Address"

Can you please share your NiFi config so that we can see why the Address is unresolved.

Also please share the output of the following command to verify if your NiFi Host has a valid hostname.

# hostname -f
# cat /etc/hosts
# grep 'nifi.cluster.node.address' /etc/nifi/conf/nifi.properties 
# grep 'nifi.web.http.host' /etc/nifi/conf/nifi.properties 

.

avatar
Master Mentor

@Deepak SANAGAPALLI

Also as you are securing your Nifi hence can you also check the following https property "nifi.web.https.host" is setup

# grep 'nifi.web.https.host' /etc/nifi/conf/nifi.properties 
(OR List all web properties as following)
# grep 'nifi.web.htt' /etc/nifi/conf/nifi.properties 

.

avatar
Contributor

Hi @Jay Kumar SenSharma Thanks lot for quick response, here i attach document with all the details you have asked above. please take a look and let me know if you need any other further information.

Thanks,

Deepaknifi-hcc.txt

avatar
Contributor

Hi @Jay Kumar SenSharma @Matt Burgess @Geoffrey Shelton Okot, please can any one help me out on this. any help will appreciated alot.

Thanks,

Deepak