Stash Synchronize Remote Active Directory Fails

Trying to synchronize a large, remote active directory fails every time. We have increased the read, search, and connection timeouts. We've tried incremental vs full synchronizations. We are having no trouble with a large, local, active directory.

After manually starting a synchronization, refreshing the User Directories page will show the user group it's currently syncing. After a while, refreshing the User Directories page shows the same user group over and over, and eventually it will say 'Synchronisation failed. See server logs for details." There are no entries mentioning AD syncing in any of the logs within the /opt/atlassian/stash/3.2.0/logs/ directory. The failure occurs at random times, between 10 and 4000 seconds.

This has caused team members to not be able to log in to Stash after changing their AD account password. The problem has existed for several weeks.

When syncing a user group fails, is it possible to get Stash to try again, or skip to the next user group?

1 answer

1 accepted

Hi Andrew, for large LDAP directory the recommendation is use delegated authentication, instead of using the connector directory type (the one the performs sync). If this is not an option for you, you may consider reducing the synchronization scope with a more restrictive OU, or creating a filter.

Additional to that, since you mentioned that you're using AD, we've seen customer reporting that they've improved synchronization performance and avoided some issues when using the global catalog port (3268), instead of the default port (389) in the LDAP configuration. You may be interested in checking if it helps.


Changing the port from 389 to 3268 did the trick. Thanks!

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
Posted Jun 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

143 views 6 3
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