Stash + Jira integration problem

Hello.

I'm trying to integrate Stash with Jira, but when I specify Jira location on Stash setup page - I'm getting error

There doesn't seem to be a running JIRA server (version 4.3 or later) at this URL.

My setup is:

  • Ubuntu Server 12.04
  • Oracle JRE 1.7.0_25
  • Nginx 1.2.4
  • Jira 6.0.4
  • Stash 2.5.2

Jira and Stash are on separate subdomains and I'm using SSL.

Config files:

jira.conf (Nginx config)

server {
    listen 443;
    server_name jira.***********.***;

    access_log off;

    ssl on;
    ssl_certificate /apps/keys/jira.pem;
    ssl_certificate_key /apps/keys/jira.key;

    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://127.0.0.1:8080;
    }
}

stash.conf

server {
    listen 443;
    server_name scm.***********.***;

    access_log off;

    ssl on;
    ssl_certificate /apps/keys/scm.pem;
    ssl_certificate_key /apps/keys/scm.key;

    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://127.0.0.1:7990;
    }
}

server.xml (Jira)

<Connector port="8080"
  
                   maxThreads="150"
                   minSpareThreads="25"
                   connectionTimeout="20000"
                   enableLookups="false"
                   maxHttpHeaderSize="8192"
                   protocol="HTTP/1.1"
                   useBodyEncodingForURI="true"
                   redirectPort="8443"
                   acceptCount="100"
                   disableUploadTimeout="true"
              
                   scheme="https"
                   proxyName="jira.***********.***"
                   proxyPort="443"/>

server.xml (Stash)

<Connector port="7990" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   useBodyEncodingForURI="true"
                   redirectPort="8443"
                   compression="on"
                   compressableMimeType="text/html,text/xml,text/plain,text/css,application/json,application/javascript,application/x-javascript"
                   secure="true"
                   scheme="https"
                   proxyName="scm.***********.***"
                   proxyPort="443"
/>

In accordance with this answer I've changed Stash' permgen.sh to use JRE from Jira instaed of the system default:

JAVA_HOME="/opt/atlassian/jira/jre/"; export JAVA_HOME

Now both applcations are using the same JRE (I can see it in console when I run their init scripts) but this doesn't help me to solve this issue. I'm still seeing the error message when I try to integrate Stash with Jira. Please help.

1 answer

1 accepted

0 votes
Accepted answer

I resolved this issue by switching to use the same wildcard certificate.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,294 views 5 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you