-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoiding IPv6 with extra JAVA_OPTION #347
Comments
@bbaassssiiee Thanks for raising this issue. Did you had a chance to test this change from your end ? if it is tested then please provide us the artifactory-service.log with enabling this artifactory_extra_java_opts: '-server -Xms512m -Xmx4g -Xss256k -XX:+UseG1GC -Djava.net.preferIPv4Stack=true' |
@bbaassssiiee we would like to include in this readme instead of default in vars. |
This was tested and here is the log you requested: |
|
Some distributions have two entries for localhost in
/etc/hosts
:This can cause Java apps trying binding using IPv6, which fails when that's disabled. This causes some tcp ports not listening, like the Artifactory router service.
Solution: add an extra JAVA_OPTION:
-Djava.net.preferIPv4Stack=true
.JFrog-Cloud-Installers/Ansible/ansible_collections/jfrog/platform/roles/artifactory/defaults/main.yml
Line 39 in 9158ae3
The text was updated successfully, but these errors were encountered: