Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

ipv6 endpoint fails. #2

Open
erijpkema opened this issue Feb 9, 2018 · 2 comments
Open

ipv6 endpoint fails. #2

erijpkema opened this issue Feb 9, 2018 · 2 comments

Comments

@erijpkema
Copy link

First of all thanks for your work.
I'm afraid that as a reward, I now have an issue to report:
When running the container, I get the following error:

Feb 09, 2018 10:03:33 AM org.apache.coyote.AbstractProtocol init       
SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-0:0:0:0:0:0:0:1-8009"]
java.net.SocketException: Protocol family unavailable

I already tried adding -Djava.net.preferIPv4Stack=true" to /usr/libexec/tomcat/server.
It is reported in the log:

options used: -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.proper
ties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.net.preferIPv4Stack=true

But the error remains.

Do you have pointers on how to disable ipv6?

@feljamal
Copy link

feljamal commented Sep 28, 2018

Disable the connector for ipv6 under /etc/tomcat/server.xml

<!-- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" address="::1"/> -->

@erijpkema
Copy link
Author

Thanks, I will try this when i try to deploy it again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants