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:
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.
I resolved this issue by switching to use the same wildcard certificate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.