All of a sudden, JIRA stopped to serve as a user server for bitbucket

dinis brazão August 11, 2016

I had followed these instructions,

https://confluence.atlassian.com/bitbucketserver/connecting-bitbucket-server-to-jira-for-user-management-776640400.html

And everything seemed to be ok. but,after  few days, when a user tries to sign into bitbucket, e is answered "The remote authentication server is not available. Please try again later.". However the server is running because one can log into JIRA.

3 answers

0 votes
dinis brazão August 14, 2016

Hi. I solved it and will paste here the info for helping others.

The last post (from Benjamin Brodie, on June 16 2014) of this thread, https://answers.atlassian.com/questions/221159,  more or less describes what happened in my server and the solution. I'll just add a bit of info to make it more clear one thing that was not clear to me:

1 - Disable and then Remove the JIRA Server directory. In Bitbucket administration > Accounts > User directory.
2 - Click "Add Directory" and re-enter all of the necessary details.

3 - I don't know if it has helped anything but previous to this I also deleted the connection between Bitbucket and JIRA and then, reconnected (as per https://confluence.atlassian.com/bitbucketserver/connecting-bitbucket-server-to-jira-for-user-management-776640400.html).

So now it was solved the JIRA User server for bitbucket. I will now monitor in the following days and check to see if this stabilized my JIRA and Bitbucket blocking access to users with ERR_CONECTION REFUSED.

Cheers all

 

0 votes
dinis brazão August 12, 2016

Oh. Yes.
Actually I think this might be the problem: In My setup, my JIRA port is not the :8080 but in the logs, I see that one of the errors is:

Caused by: org.apache.http.conn.HttpHostConnectException: Connect to site:com:8080 [site.com/xx.xx.xx.xx] failed: Connection refused.

Error chain:

'JIRA User Directory' is not functional during authentication of 'user'. Skipped.....

Caused by: com.atlassian.crowd.exception.runtime.CommunicationException: null....

Caused by: org.apache.http.conn.HttpHostConnectException: Connect to site:com:8080 [site.com/xx.xx.xx.xx] failed: Connection refused.

Caused by: java.net.ConnectException: Connection refused


I dunno if it is related or might help to diagnose but perhaps this is causing Bitbucket and JIRA to kind of block access - from time to time, JIRA or Bitbucket start to refuse connections and I need to restart the services (as described in this my other post:https://answers.atlassian.com/questions/39977369)

 

Do you know where I can set properly the port for apache?

 

Thanks in advance

0 votes
Bhushan Nagaraj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 11, 2016

Hey Dinis,

Do you see any errors in the logs? Log files can be found at <HOME_FOLDER>/logs/atlassian-bitbucket.log

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events