Trying to install Confluence for Jira & getting an error (Not valid url)
Asked by Adar Bronstein:

Hey guys,

I'm trying to install Confluence for Jira and when setting it up I receive an error when putting in the JIRA Base URL (jira server location) which is "This is not a valid url for Jira 4.3 or later.

Not sure what I'm doing wrong, just putting in the server location stated in Jira which is something like <http://www.someurl.com>

Thanks a lot !


Answers:
author: Nic Brough -Adaptavist-
body: I'm assuming you mean you are trying to set up a trusted application link?

That error messae is pretty much what it says - Confluence has tried to connect to the url you have given it and has had one of two problems:

1. It got no response for some reason. For example, dns isn't returned a valid address, it's firewalled, on the wrong port, ssl negociation fails, etc, any error that a browser would say "there's nothing there" to if you ran it in a browser)

2. It got a response, but it wasn't a useful one. For example, another non-Jira application responded, the version of Jira that is there is too old for it to handle.

Simple test, if you can - log into the Confluence server and try using wget or curl to hit the Jira url on the command line - that will give you a helpful error message (in case 1 above) or it'll get you a downloaded file which contains the response it got, which will also tell you what is wrong.  

If you can't try that on the server, then try it on your local machine, it may give you more info too. I mean - your [www.someurl.com](http://www.someurl.com) - what does that do in a browser on your machine?

comments: author: Adar Bronstein
body: Hi,

no, not trusted application link, Jira base URL (Jira's server location), I've added an attachment to this thread with annonymous details to show the exact problem.

Thanks a lot !

![](http://desmond.imageshack.us/Himg215/scaled.php?server=215&filename=baseurl.jpg&res=landing)


author: Nic Brough -Adaptavist-
body: Ah, ok, that makes sense.

However, this is trying to do the same thing - it's testing that it can connect to the Jira instance to retreive user and group information and failing for some reason. You need to do exactly the same set of debugging.

There is an additional point here though - Confluence is trying to fetch some very specific information in a specfic way. That means when it fails, it should be logging some highly focussed errors. Errors on the application link stuff would all be along the lines of "I can't talk to the Jira you've pointed me at", whereas errors on user/group config will be "I spoke to Jira and it gave me duff information" (assuming the Jira is ok)

You really need to read your confluence application log - it will definitely tell you whether it's a "can't see the Jira" or "Jira isn't playing nice" or "Jira is giving me information I can't understand"


author: Adar Bronstein
body: I have no idea what happened but after a few tried it works.. thanks a lot :)


author: Michael Albers
body: Hi guys,

I had the same issue, but resolved it by fixing my SSL configuration.

I have jira and confluence running standalone on one server. Apache 2 with mod_proxy is used to handle the https communication. I had to add SSLCertificateChainFile ... to my apache site configuration, be cause it was required by https certificate. Everything looked fine from my browser before, but I think that JAVA is checking it much more in detail :-)

Hopefully you got jira and confluence up and running now!

Micha


author: Denise Unterwurzacher [Atlassian]
body: Hi Adar,

This is actually a known issue which is being tracked at <https://jira.atlassian.com/browse/CONF-27339>

It happens when the initial URL entered for Confluence is incorrect or cannot be reached from JIRA (ie the URL contains 'localhost'. The workaround is to remove the Application Link from JIRA and attempt the connection from Confluence again, with the correct URL.

Hope this helps!

Denise.


author: Adar Bronstein
body: See comment below, I think I'm referring to something else.

Thanks ! :)


author: Colin Goudie
body: Are you referring to the application link setup? I'm not sure what Confluence for JIRA is?