gadget.common.error.500 - Reverse Proxy

Timothy Lister December 20, 2019

Hello,

Any pointers on this would be appreciated.

 

I have a new Jira install using the official docker container with Traefik as my reverse proxy. I am using a Let's Encrypt certificate which is hosted on the load balancer. SSL offloading is occurring on the reverse proxy.

 

Everything appears to work fine using https; however, the gadgets are displaying the error: "gadget.common.error.500". My docker variables are as such:

 

environment:
JVM_MINIMUM_MEMORY: 2048m
JVM_MAXIMUM_MEMORY: 4096m
ATL_PROXY_NAME: jira.mydomain.info
ATL_PROXY_PORT: 443
ATL_TOMCAT_SCHEME: https
ATL_TOMCAT_SECURE: 'false'

 

I have tried TOMCAT_SECURE as both true and false with the same results.

 

I think it is safe to assume this has something to do with Tomcat in the container but I'm not sure how to proceed.

 

Thank you kindly for any helpful input.

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 22, 2019

This happens when the server cannot reach itself to run requests over the network. 

The most common reason for this when using SSL is that the Tomcat Jira runs on does not have a certificate installed.  See https://confluence.atlassian.com/adminjiraserver/running-jira-applications-over-ssl-or-https-938847764.html for the standard instructions

Timothy Lister December 22, 2019

I appreciate the response. Since you say the "server cannot reach itself", can it be configured to connect to itself over localhost?

 

Ultimately, I don't want the container doing anything with TLS (that's what the load balancer is for).

 

Do you think this could just be a "base url" configuration related item?

 

If I must put the certificate in Tomcat, is there an environment variable for the Atlassian released docker image to accomplish this?

 

I can't be the first person to do this =/.

 

Thank you kindly,

Suggest an answer

Log in or Sign up to answer