Dashboard Diagnostics: Mismatched URL Scheme

Derek F. February 27, 2013

This is a clean/new install and not an upgrade. We are getting the following error on the dashboard:

JIRA is reporting that it is using the URL scheme 'http', which does not match the scheme used to run these diagnostics, 'https'. This is known to cause JIRA to construct URLs using an incorrect hostname, which will result in errors in the dashboard, among other issues.

The most common cause of this is the use of a reverse-proxy HTTP(S) server (often Apache or IIS) in front of the application server running JIRA. While this configuration is supported, some additional setup might be necessary in order to ensure that JIRA detects the correct scheme.

The following articles describe the issue and the steps you should take to ensure that your web server and app server are configured correctly:

- Gadgets do not display correctly after upgrade to JIRA 4.0

- Integrating JIRA with Apache

- Integrating JIRA with Apache using SSL

------------------------------------------------------

Our f5 passes the https/443 request to our apache layer via http/80 and apache has instructions to proxy the request to the host where Jira standalone is running.

5 answers

2 votes
Janet Albion
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 28, 2013

Hi Derek,

Have you tried setting the proxyName and proxyPort in the JIRA's server.xml so that it will be aware of the proxy ? It's something like

scheme="https" proxyName="jira.example.com" proxyPort="443"

0 votes
Derek Fetsch March 10, 2013

This resolved it for me:

https://confluence.atlassian.com/display/JIRAKB/Login+Gadget+and+Dashboard+Does+not+Work+when+Running+behind+a+Load+Balancer

For this:

proxyName="<proxy_server>"

The proxy_server is the domain that jira answers on, not the name of the server(s) actually doing the proxy-ing.

0 votes
Teck-En
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 4, 2013

When the load balancer sends the request to one of 5 servers,

Mind to clarify more on the 5 servers of the above statement? Did you meant that you have multiple JIRA server? Elaborate more on the statement may help other user to understand your problem better as I'm not really familiar with load balancer. ;)

Derek Fetsch March 10, 2013

We have 5 httpd servers that proxy the request back top the one jira instance.

We have a load balancer (f5) that manages the pool of apache servers. When/If one gets overloaded, it removes that server form the pool and directs the balanced/ratioed traffic to the other 4 until the 5th recovers at which time it gets added back to the pool.

0 votes
Derek F. February 28, 2013

When the load balancer sends the request to one of 5 servers, how do you specify the proxyName? Can you have multiple servers listed in proxyName?

scheme="https"proxyName="jira.example.com"proxyPort="443"

0 votes
Teck-En
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 28, 2013

Suggest an answer

Log in or Sign up to answer