Cannot create Application Links From Bamboo to Bitbucket Server / JIRA

Hi,

i just bought the new versions of JIRA and Bitbucket. I had a setup of JIRA, Stash and Bamboo before. After installing the new versions of JIRA and Bitbucket-Server I reconfigured the application links because they were not working. Between JIRA and Bitbucket-Server everything works great. If I set-up an Application Link from within Bamboo to either JIRA or Bitbucket Server I get that spinning wheel at the bottom of the Link applications window. (See http://i.imgur.com/6S83HOA.jpg). If I refresh the page I see that the link was created, but I encounter a similar spinning wheel on the OAuth Tab just like in this question: Bamboo to Stash Application Link OAuth Hangs

I tried completely reinstalling Bamboo (tried 5.7.2 - which was installed before and 5.9.4) but creating those Application Links won't work.

How can I resolve this issue?

Thanks,

Philipp

__________________________________

Edit: I did some debugging with Firebug and Firefox (Firefox shows a Javascript error on the page btw, see http://i.imgur.com/Zjy3x83.jpg) The corresponding Firebug log I have uploaded here: http://i.imgur.com/MskYoNb.jpg.

I did also record the Firebug errors while clicking the OAuth Tab, when editing the Application Link: http://i.imgur.com/Z0w13TP.jpg

 

P.S.: I can't seem to upload images within Confluence here.

 

2 answers

1 accepted

1 vote
Accepted answer

I contacted the Bamboo support and could resolve the issue. So here's the answer for other users who are facing a similar problem:

I had a reverse proxy with https:/// which would resolve to my internal Bamboo server. Somehow my old server.xml configuration got messed up with and I forgot to enable https within the connector. I used the connector xml described at point 8 of this Confluence doc: https://confluence.atlassian.com/bamboo/integrating-bamboo-with-apache-http-server-391087370.html#IntegratingBamboowithApacheHTTPserver-Step8(optional):ConfigureApacheHTTPServerforSSL

I'll also share the answer I got from the Atlasssian Support:

From the JS console you pointed us to, I believe that there was a mismatch between the "Base URL" you were using in Bamboo (http://bamboo..) against https://bamboo...

There are a few things that are important while creating the AppLinks:

  • The "Base URL" must match the "Application Links" URL
  • If you are using a proxy:
    • The parameters scheme="https", proxyName="mycompany.com" and proxyPort="443" should be present on your Tomcat Connector.
    • The "Base URL" and "Application Links" URL must match the proxyName

Sometimes the proxy configuration could be wrong, getting the AppLinks to fail. I imagine you used a procedure similar to this one and bypassed the proxy?

Hi Philipp, I am glad this information helped you solve the issue. Best, Thiago

Are there any errors being logged during this application linking? Can you check?

Forgot to mention that there are no errors. Here are the logs for a link attempt from Bamboo (192.168.1.119) to Bitbucket Server (192.168.1.166). At 2015-10-13 09:41:32,957 Bamboo tries to make some requests into Bitbucket, but no actual errors... bamboo: 2015-10-13 09:35:33,534 INFO [http-apr-8085-exec-23] [AccessLogFilter] philm5 DELETE http://bamboo.somedomain.com/rest/applinks/2.0/applicationlink/ae2ea1f6-35d6-3606-9dfa-010e476c1a69 118552kb 2015-10-13 09:35:33,706 INFO [http-apr-8085-exec-3] [AccessLogFilter] philm5 GET http://bamboo.somedomain.com/rest/applinks/2.0/orphaned-trust/?_=1444721731587 116439kb 2015-10-13 09:35:33,706 INFO [http-apr-8085-exec-16] [AccessLogFilter] philm5 GET http://bamboo.somedomain.com/rest/applinks/2.0/listApplicationlinks?_=1444721731586 116439kb 2015-10-13 09:35:44,417 INFO [http-apr-8085-exec-14] [AccessLogFilter] philm5 GET http://bamboo.somedomain.com/rest/applinks/2.0/applicationlinkForm/manifest.json?url=http%3A%2F%2F192.168.1.166%3A7991%2F&_=1444721731589 115853kb 2015-10-13 09:35:44,431 INFO [http-apr-8085-exec-14] [AppLinksManifestDownloader] Authenticator placeholder.to.ensure.backwards.compatibility specified by remote application ae2ea1f6-35d6-3606-9dfa-010e476c1a69 is not installed locally, and will not be used. 2015-10-13 09:35:44,431 INFO [http-apr-8085-exec-14] [AppLinksManifestDownloader] Authenticator placeholder.to.ensure.backwards.compatibility specified by remote application ae2ea1f6-35d6-3606-9dfa-010e476c1a69 is not installed locally, and will not be used. 2015-10-13 09:35:44,431 INFO [http-apr-8085-exec-4] [AccessLogFilter] philm5 GET http://bamboo.somedomain.com/rest/applinks/2.0/manifest.json?_=1444721731590 114940kb 2015-10-13 09:35:53,270 INFO [http-apr-8085-exec-24] [AccessLogFilter] philm5 PUT http://bamboo.somedomain.com/rest/applinks/2.0/applicationlink 114478kb bitbucket: 2015-10-13 09:38:45,040 DEBUG [http-nio-7991-exec-5] @1X1WK2Lx578x1200x0 127.0.0.1 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-crowd-sso:crowdSsoAuthHandler 2015-10-13 09:38:45,040 DEBUG [http-nio-7991-exec-5] @1X1WK2Lx578x1200x0 127.0.0.1 "GET /rest/capabilities HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled 2015-10-13 09:38:45,041 DEBUG [http-nio-7991-exec-5] @1X1WK2Lx578x1200x0 127.0.0.1 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:crowdHttpAuthHandler 2015-10-13 09:38:45,041 DEBUG [http-nio-7991-exec-5] @1X1WK2Lx578x1200x0 127.0.0.1 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:rememberMeAuthHandler 2015-10-13 09:38:45,042 DEBUG [http-nio-7991-exec-5] @1X1WK2Lx578x1200x0 127.0.0.1 "GET /rest/capabilities HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key ProviderManager.providerNotFound and locales [en_US, en] 2015-10-13 09:38:45,043 DEBUG [http-nio-7991-exec-5] @1X1WK2Lx578x1200x0 127.0.0.1 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-crowd-sso:crowdSsoAuthHandler 2015-10-13 09:38:45,043 DEBUG [http-nio-7991-exec-5] @1X1WK2Lx578x1200x0 127.0.0.1 "GET /rest/capabilities HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled 2015-10-13 09:38:45,043 DEBUG [http-nio-7991-exec-5] @1X1WK2Lx578x1200x0 127.0.0.1 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:crowdHttpAuthHandler 2015-10-13 09:38:45,043 DEBUG [http-nio-7991-exec-5] @1X1WK2Lx578x1200x0 127.0.0.1 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:rememberMeAuthHandler 2015-10-13 09:38:45,044 DEBUG [http-nio-7991-exec-5] @1X1WK2Lx578x1200x0 127.0.0.1 "GET /rest/capabilities HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key ProviderManager.providerNotFound and locales [en_US, en] 2015-10-13 09:38:50,064 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-crowd-sso:crowdSsoAuthHandler 2015-10-13 09:38:50,064 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled 2015-10-13 09:38:50,064 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:crowdHttpAuthHandler 2015-10-13 09:38:50,064 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:rememberMeAuthHandler 2015-10-13 09:38:50,065 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key ProviderManager.providerNotFound and locales [en_US, en] 2015-10-13 09:38:50,065 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-crowd-sso:crowdSsoAuthHandler 2015-10-13 09:38:50,065 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled 2015-10-13 09:38:50,065 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:crowdHttpAuthHandler 2015-10-13 09:38:50,065 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:rememberMeAuthHandler 2015-10-13 09:38:50,066 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key ProviderManager.providerNotFound and locales [en_US, en] 2015-10-13 09:38:50,067 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key somedomain Software Bamboo and locales [en_US, en] 2015-10-13 09:38:50,069 DEBUG [http-nio-7991-exec-7] @1X1WK2Lx578x1201x0 127.0.0.1 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key somedomain Software JIRA and locales [en_US, en] 2015-10-13 09:41:32,957 DEBUG [http-nio-7991-exec-9] @1X1WK2Lx581x1202x0 192.168.1.119 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-crowd-sso:crowdSsoAuthHandler 2015-10-13 09:41:32,957 DEBUG [http-nio-7991-exec-9] @1X1WK2Lx581x1202x0 192.168.1.119 "GET /rest/capabilities HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled 2015-10-13 09:41:32,957 DEBUG [http-nio-7991-exec-9] @1X1WK2Lx581x1202x0 192.168.1.119 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:crowdHttpAuthHandler 2015-10-13 09:41:32,957 DEBUG [http-nio-7991-exec-9] @1X1WK2Lx581x1202x0 192.168.1.119 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:rememberMeAuthHandler 2015-10-13 09:41:32,959 DEBUG [http-nio-7991-exec-9] @1X1WK2Lx581x1202x0 192.168.1.119 "GET /rest/capabilities HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key ProviderManager.providerNotFound and locales [en_US, en] 2015-10-13 09:41:32,960 DEBUG [http-nio-7991-exec-9] @1X1WK2Lx581x1202x0 192.168.1.119 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-crowd-sso:crowdSsoAuthHandler 2015-10-13 09:41:32,960 DEBUG [http-nio-7991-exec-9] @1X1WK2Lx581x1202x0 192.168.1.119 "GET /rest/capabilities HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled 2015-10-13 09:41:32,960 DEBUG [http-nio-7991-exec-9] @1X1WK2Lx581x1202x0 192.168.1.119 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:crowdHttpAuthHandler 2015-10-13 09:41:32,960 DEBUG [http-nio-7991-exec-9] @1X1WK2Lx581x1202x0 192.168.1.119 "GET /rest/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:rememberMeAuthHandler 2015-10-13 09:41:32,961 DEBUG [http-nio-7991-exec-9] @1X1WK2Lx581x1202x0 192.168.1.119 "GET /rest/capabilities HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key ProviderManager.providerNotFound and locales [en_US, en] 2015-10-13 09:41:32,995 DEBUG [http-nio-7991-exec-11] @1X1WK2Lx581x1203x0 192.168.1.119 "GET /rest/remote-event-consumer/1/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-crowd-sso:crowdSsoAuthHandler 2015-10-13 09:41:32,995 DEBUG [http-nio-7991-exec-11] @1X1WK2Lx581x1203x0 192.168.1.119 "GET /rest/remote-event-consumer/1/capabilities HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled 2015-10-13 09:41:32,995 DEBUG [http-nio-7991-exec-11] @1X1WK2Lx581x1203x0 192.168.1.119 "GET /rest/remote-event-consumer/1/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:crowdHttpAuthHandler 2015-10-13 09:41:32,995 DEBUG [http-nio-7991-exec-11] @1X1WK2Lx581x1203x0 192.168.1.119 "GET /rest/remote-event-consumer/1/capabilities HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:rememberMeAuthHandler 2015-10-13 09:41:32,996 DEBUG [http-nio-7991-exec-11] @1X1WK2Lx581x1203x0 192.168.1.119 "GET /rest/remote-event-consumer/1/capabilities HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key ProviderManager.providerNotFound and locales [en_US, en] 2015-10-13 09:41:37,975 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-crowd-sso:crowdSsoAuthHandler 2015-10-13 09:41:37,975 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled 2015-10-13 09:41:37,975 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:crowdHttpAuthHandler 2015-10-13 09:41:37,975 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:rememberMeAuthHandler 2015-10-13 09:41:37,976 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key ProviderManager.providerNotFound and locales [en_US, en] 2015-10-13 09:41:37,977 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-crowd-sso:crowdSsoAuthHandler 2015-10-13 09:41:37,977 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.b.i.c.s.CrowdSsoAuthenticationHandler Skipping Crowd SSO as it is not enabled 2015-10-13 09:41:37,977 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:crowdHttpAuthHandler 2015-10-13 09:41:37,977 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider attempting authentication with authenticator com.atlassian.bitbucket.server.bitbucket-authentication:rememberMeAuthHandler 2015-10-13 09:41:37,978 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key ProviderManager.providerNotFound and locales [en_US, en] 2015-10-13 09:41:37,979 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key somedomain Software Bamboo and locales [en_US, en] 2015-10-13 09:41:37,981 DEBUG [http-nio-7991-exec-2] @1X1WK2Lx581x1204x0 192.168.1.119 "GET /rest/capabilities/navigation HTTP/1.1" c.a.s.i.i18n.PluginI18nService No values found in any valid locale for key somedomain Software JIRA and locales [en_US, en]

Sorry but the image links won't open for me (company web security is so lame). I just recently tried connecting my Bamboo with Stash (2 weeks ago) from scratch (linux zip installer) and I found no issues with it. I use the default installation, no https, no domain names, no proxies, just an Application link using the IP/PORT and it worked fine. I remember I have an issue with http/https and using the domain name (instead of the IP where it succeeded for me)

To create those links I didn't use domain names. I'm using the internal networks internal IPs and not using HTTPS within my local network. It did work when I configured JIRA 6.4, Stash 3.5 and Bamboo last year... In the Application link pane I enter 192.168.1.166:7990 for Bitbucket / :8080 for JIRA. I did it the same way when linking Bitbucket to JIRA and it worked.... There seems to be some issue with the AJAX javascript pulling the corresponding Bitbucket/JIRA site.... But thank you :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,636 views 18 21
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