We are trying out the Jira server in a docker container. We use a proxy server for internet access for the container host. Inside the container, we can access the Atlassian marketplace and other internet endpoints. However, Jira Server itself cannot access the internet.
We have started the server as below
/usr/lib/jvm/java-1.8-openjdk/bin/java -Djava.util.logging.config.file=/opt/atlassian/jira/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms384m -Xmx2048m -XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory -XX:-OmitStackTraceInFastThrow -Djava.locale.providers=COMPAT -Djira.home=/var/atlassian/jira -Datlassian.plugins.startup.options=-fg -Dhttp.proxyHost=http://proxy.sy.com.au -Dhttps.proxyHost=http://proxy.sy.com.au -Dhttp.proxyPort=3128 -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts=localhost\|169.254.169.254\|169.254.170.2\|127.0.0.1 -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Xloggc:/opt/atlassian/jira/logs/atlassian-jira-gc-%t.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=20M -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintGCCause -Dignore.endorsed.dirs= -classpath /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar -Dcatalina.base=/opt/atlassian/jira -Dcatalina.home=/opt/atlassian/jira -Djava.io.tmpdir=/opt/atlassian/jira/temp org.apache.catalina.startup.Bootstrap -Dhttp.proxyHost=http://proxy.sy.com.au -Dhttps.proxyHost=http://proxy.sy.com.au -Dhttp.proxyPort=3128 -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts=localhost|169.254.169.254|169.254.170.2|127.0.0.1 start
and in the logs
2021-01-15 21:23:35,971 UpmScheduler:thread-1 WARN anonymous [c.a.upm.pac.PacClientImpl] Error when querying application info from MPAC: com.atlas
sian.marketplace.client.MpacException: org.apache.http.conn.ConnectTimeoutException: Connect to marketplace.atlassian.com:443 [marketplace.atlassian.c
om/18.104.22.168, marketplace.atlassian.com/22.214.171.124, marketplace.atlassian.com/126.96.36.199] failed: connect timed out
Any help would be highly appreciated.
I'm not sure where you are getting the Docker image for Jira. However, there's one that is being maintained by Atlassian (still not officially supported by Atlassian yet); https://hub.docker.com/r/atlassian/jira-software.
On this page, Outbound Proxy is not covered which means we will need to configure it manually. I'm not sure which documentation you are referring to.
This document says to pass as arguments which I did as the docker start up command. Anyway, it's all good for the moment as we hard coded it into the docker image.
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events