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

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

112 views 2 0
Join discussion

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