Unable to link Stash with JIRA

I am running Stash on my private server for evaluation purpose, since I consider to buy it for my private Git projects. Since I really need some kind of issue tracking integrated with Stash (so I can link issues with commits etc.), I gave JIRA a chance to integrate Stash to.

I installed it, set it up and so on... After some collisions with my login-session-tokens I moved stash. The config now is the following:

Stash running on http://my.ip.ad.dr:31004/stash/ (local: localhost:7990)

JIRA running on http://my.id.ad.dr:31005/(local: localhost:8080)

On both Stash and JIRA the public IP address is set as Base URL.

My problem is, that I can't integrate Stash with JIRA (or vice versa). First, I logged in in Stash as Admin, went to Application Links, entered the public IP of my JIRA installation, pressed the button, but Stash couldn't find JIRA. Then I tried the local IP, since both are running on the same server anyway, and finally Stash found the JIRA installation. So I ticked both checkboxes (I want to have the same list of users on both instances), and clicked continue. Then following error occured:

Unable to auto-configure a Consumer as the remote Consumer-Info could not be found.

(I also tried the same procedure in JIRA and tried to link Stash, but it throwed exactly the same exception.)

After some google research, I just found like 3 questions here, where only one of them had some suggestions to fix this problem (though it referred to Confluence). It said that it seems to be some proxy problem, but since both Stash and JIRA are running on the same machine, I don't see a proxy to be the problem. (The server is directly connected to my router at home by the way.)

I really don't know what to do anymore, and would really appreciate any kind of help.

Here is the link to the question I referred to in my question: https://answers.atlassian.com/questions/230871/error-when-linking-jira-and-confluence

Also, maybe the answers to the questions Renjith V asked may be useful for you:

Couple of questions:

  • Are the base urls correctly set in both the instances? => Yes they are, exactly like I wrote above (quadruple-checked it)
  • Are they reachable from the each of their servers via the configured base url? => Yes they are
  • Are you using the same url while entering the link for the application? => No, not exactly. The IP is identical, yes, but they differ in the port and /stash (like mentioned above)
  • Looks like there is a proxy. Can the JIRA server reach the proxy via documents.yeack.comover HTTPS? => I don't have any proxy, and I don't use HTTPS.
  • Are the HTTPS server certificates imported into each others keystore? The logs will indicate what is going on with the connection attempt. => Like said above, Neither Stash nor JIRA is set up to use HTTPS

If you need any further information about my setup or anything, please let me know. I will provide the missing information as soon as possible.

Thank you in advance,

Chris

3 answers

Hi Chris,

In addition to the question here I might support you raise a support ticket and attach the support zip from both servers. These kinds of problems are often related to proxies, but that's obviously not your problem. Hopefully we can get to the bottom of it soon.

Cheers,

Charles

Hi Charles,

thank you very much for your fast response. All right, I will try that as soon as I have some spare time.

Greetings,

Chris

I'm running into a similar issue. Has your issue been resolved? What was your ticket number with Atlassian so that I may track it as well.

Hi Todd,

I couldn't find Chris' support ticket, so I couldn't say what the issue was. Have you raised your own ticket?

Charles

Charles,

My issue ended up being that I was using different ports, but the context was still the same. That caused some cookie issues during my links.

This wasn't a 100% fix though. The connection worked, but only sometimes. I ended up scratching the Jira project.

I will probably switch to on demand. The main reason I wanted my own server was the user directory service that on demand cannot provide. That isn't a deal breaker for me.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

94 views 0 5
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