Confluence jira connection timeout

Hi

How can I change timeout value between Confluence and Jira? I see it defaults to 5sec which is too short in our enviornment.

Below is catalina.out from Confluence app. User Derectory is connected to JIRA Directory. I see this happenning when users logon Confluence.

2013-05-19 23:48:45,756 ERROR [scheduler_Worker-2] [atlassian.crowd.directory.DbCachingDirectoryPoller] pollChanges Error occurred while refreshing the cache for directory [ 393217 ].
com.atlassian.crowd.exception.OperationFailedException: org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 5000 ms

3 answers

1 accepted

The parameter http.timeout is described in this documentation, however it's not possible to be edited through UI.

You can edit this parameter directly via database if you wish, but before any modification, make sure to create a database backup.

This is an example of update statement:

update cwd_directory_attribute set attribute_value = 10000 where directory_id = 393217 and attribute_name = 'crowd.server.http.timeout';

Cheers

Hi Kenichi,

You can edit it by accessing Confluence administration > User Directories, then edit JIRA directory and change the Synchronisation Interval. More details in this documentation.

Cheers

Hi Tiago

Currently the Synchronisation Interval sets to '60 minutes'. To me this value definens how often Sync happens. This is different from Confluence - JIRA timeout value which defaults to 5 sec.

Thanks!

Hi I found out cwd_directory_attribute has the value rowd.server.http.timeout = 5000

Does this work?

How can I change this record from Confluence UI?

mysql> select * from cwd_directory_attribute;
+--------------+---------------------------------------------+------------------------------------------------------+
| directory_id | attribute_value | attribute_name |
+--------------+---------------------------------------------+------------------------------------------------------+

| 393217 | 5000 | crowd.server.http.timeout |

+--------------+---------------------------------------------+------------------------------------------------------+
13 rows in set (0.00 sec)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

385 views 21 10
Join discussion

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