Configuration of Confluence Cluster Fails with 'Cannot assign requested address'

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following appears in the atlassian-confluence.log:

Error Message: (Wrapped: UnicastUdpSocket{State=STATE_INITIAL, address:port=FE80:0:0:0:211:25FF:254.165.180.24:8088}) 
Cannot assign requested address
Error Code: 500
Target Servlet: action
Error Stack:
com.ibm.ws.webcontainer.webapp.WebAppErrorReport: (Wrapped: UnicastUdpSocket{State=STATE_INITIAL, 
address:port=FE80:0:0:0:211:25FF:254.165.180.24:8088}) Cannot assign requested address
     at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:603)
     at com.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:868)
     at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:152)
     at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:152)
     at com.opensymphony.module.sitemesh.filter.PageResponseWrapper.sendError(PageResponseWrapper.java:176)
     at com.opensymphony.webwork.dispatcher.ServletDispatcher.sendError(ServletDispatcher.java:349)
     at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:235)
     at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:199)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)
     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
     at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)

Cause

There's a known issue with the JVM and IPv6, particularly on Linux. Refer to Data Center Troubleshooting for more information.

Resolution

The workaround is to tell the JVM to prefer IPv4, by adding -Djava.net.preferIPv4Stack=true to JAVA_OPTS (This can be set in CONFLUENCE_INSTALL/bin/setenv.sh). See Configuring System Properties for specifics on how to set this property.

Last modified on Mar 30, 2016

Was this helpful?

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