Unable to start Confluence due to java.net.BindException: Cannot assign requested address

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

  • Unable to start/shutdown Confluence. The following appears in the atlassian-confluence.log:

    Dec 20, 2011 12:25:27 PM org.apache.catalina.core.StandardServer await
    SEVERE: StandardServer.await: create[5060]: 
    java.net.BindException: Cannot assign requested address
    	at java.net.PlainSocketImpl.socketBind(Native Method)
    	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
    	at java.net.ServerSocket.bind(ServerSocket.java:336)
    	at java.net.ServerSocket.<init>(ServerSocket.java:202)
    	at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)
    	at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:616)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    
  • Pinging localhost with the terminal or command prompt results in dropped packets (unable to ping localhost)

    ping localhost

Cause

This is normally caused by the fact that the OS is unable to resolve localhost , which is required to shutdown and startup Confluence, due to a missing entry in your OS' hosts file.

Resolution

For Windows:

  1. Navigate to C:\Windows\System32\drivers\etc , and edit the hosts file.

  2. Make sure that this line is uncommented (else, add the line to the bottom of the file):

    127.0.0.1       localhost

For Linux:

  1. Edit /etc/hosts
  2. Make sure that this line is uncommented (else, add the line to the top of the file):

    127.0.0.1	localhost

 

Last modified on Sep 12, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.