Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Outbound proxy jira server Edited

Hi, 

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/13.236.8.160, marketplace.atlassian.com/13.236.8.159, marketplace.atlassian.com/13.236.8.158] failed: connect timed out

 

Any help would be highly appreciated.

 

BR,

Gayan

 

1 answer

1 accepted

Hi @Gayan Gunapala,

Can I know how you are passing the JVM arguments? Are you editing the setenv.sh file or you are passing them as environment variables?

According to this article, it looks like editing the file would work.

Thanks,
Moga

Hi @mogavenasan 

Yes, passing via command line didn't work but editing setenv.sh worked. 

 

BR,

Gayan

Glad to hear that!

Please mark this thread as solved if you are happy with the solution.

Thanks.

It's good it worked. But this is not covered in Atlassian documentation. The suggested method in the documentation doesn't work.

Like mogavenasan likes this

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.

https://confluence.atlassian.com/jirakb/configure-an-outbound-proxy-for-use-in-jira-server-247857187.html

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.

Thanks

That document did not cover anything to do with Docker (I can't even find the word "Docker" on that page). I think there was a misunderstanding and glad to know that we cleared that up! :)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

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 ...

7,121 views 8 28
Join discussion

Community Events

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

Events near you