Getting "duplicate key: Exchange Domain Servers" error on AD synchronization after upgrage to 3.5

I'm trying to migrate from Confluence 3.1.2 to 3.5.17.

I use AD as user directory. During upgrade Confluence created a user directory with correct settings. (Previously LDAP config was in file). All users and groups were synchronized and I can see them but users have no memberships (groups).

I can see an error in log during synchronyzation (see below).

All LDAP/AD settings are the same as in Stash where everything works fine (users/groups/memberships).

So what does this error mean : "java.lang.IllegalArgumentException: duplicate key: Exchange Domain Servers" ?

How to fix it?


2015-06-26 22:29:47,678 ERROR [QuartzScheduler_Worker-1] [] pollChanges Error occurred while refreshing the cache for directory [ 37257217 ].
java.lang.IllegalArgumentException: duplicate key: Exchange Domain Servers
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(
    at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$
    at org.quartz.simpl.SimpleThreadPool$
2015-06-26 22:30:00,117 ERROR [QuartzScheduler_Worker-9] [confluence.stats.internals.StatsManagerImpl] processDataQueue Inner SQL Exception: 207 [42S22] - Invalid column name 'sessionID'.


1 answer

Strange, I saw that behaviour of losing the group memberships before, when that happened with me the problem I followed the work around of below KB:

information Yep, I had make sure that the file was copied properly.

What is strange is that invalid error you are facing. Can you try following the work around of below KB and see if that improves the current situation?

What database you are using?

Also, if this is prod, please make sure to backup your database and do this upgrade on a test environment instead.

Lastly, I know the upgrade worked in stash, however that does not means it will work in Confluence as those upgrades from a EOL version are not a "walk in the park". Most people see atlassian apps as sisters however they are more like cousins (they share similarities but in their core they are totally different applications).

As upgrade cases tend to get complicated I would also suggest you to raise a support case at in case you have some urgency for this task.
Thanks and Regards,
Lavitz - the guy that uses Confluence on Windows as a Hobby!

The issue you refered is about local group membership - where membership of AD-users in local groups were lost. In my case I lost all users memberships in any group. These membership should be loaded from AD but failing due to the exception I mentioned.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,314 views 93 8
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