Upgrade from 3.3.3 to 3.5.15 fails

Hi there,

we are trying to upgrade our Confluence-Ssystems to 4.2 and therefor we have to upgrade to 3.5 before...

That upgrade fails with the following error:

2012-07-19 09:00:48,914 ERROR [main] [confluence.search.lucene.ConfluenceSearcherInitialisation] initialise Error encountered while warming up searcher -
The index has not been upgraded. Please reindex.
2012-07-19 09:00:55,399 INFO [main] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext: initialization compl
eted in 21655 ms
2012-07-19 09:01:17,278 ERROR [main] [confluence.user.migration.LdapRepositoryConfigurationMigrator] validateObjectClassDefined Property groupSearchFilter
 does not define an objectClass filter
2012-07-19 09:01:17,279 ERROR [main] [confluence.user.migration.LdapRepositoryConfigurationMigrator] validateObjectClassDefined Property userSearchFilter
does not define an objectClass filter
2012-07-19 09:01:17,280 INFO [main] [confluence.user.migration.AtlassianUserMigrator] validate validated repository [ ldapRepository ] with [ com.atlassia
n.confluence.user.migration.LdapRepositoryConfigurationMigrator@2ad191 ]
2012-07-19 09:01:17,280 INFO [main] [confluence.user.migration.AtlassianUserMigrator] validate validated repository [ hibernateRepository ] with [ com.atl
assian.confluence.user.migration.HibernateRepositoryConfigurationMigrator@12489c0 ]
2012-07-19 09:01:17,300 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized Upgrade failed, application w
ill not start: Upgrade task com.atlassian.confluence.upgrade.upgradetask.AtlassianUserToEmbeddedCrowdConfigurationUpgradeTask@a8e5ac failed during the VAL
IDATION phase
com.atlassian.confluence.upgrade.UpgradeException: Upgrade task com.atlassian.confluence.upgrade.upgradetask.AtlassianUserToEmbeddedCrowdConfigurationUpgr
adeTask@a8e5ac failed during the VALIDATION phase
        at com.atlassian.confluence.upgrade.AbstractUpgradeManager.executeUpgradeStep(AbstractUpgradeManager.java:205)
        at com.atlassian.confluence.upgrade.AbstractUpgradeManager.validateUpgradeTasks(AbstractUpgradeManager.java:140)
        at com.atlassian.confluence.upgrade.AbstractUpgradeManager.upgrade(AbstractUpgradeManager.java:70)
        at com.atlassian.confluence.upgrade.impl.DefaultUpgradeManager.upgrade(DefaultUpgradeManager.java:140)
        at com.atlassian.confluence.upgrade.UpgradeLauncherServletContextListener.contextInitialized(UpgradeLauncherServletContextListener.java:28)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2012-07-19 09:01:17,316 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized 2 errors were encountered dur
ing upgrade:
2012-07-19 09:01:17,317 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized 1: Property groupSearchFilter
 does not define an objectClass filter
2012-07-19 09:01:17,317 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized 2: Property userSearchFilter
does not define an objectClass filter

This is our atlassian-user.xml:

<ldap key="ldapRepository" name="LDAP Repository MMS-T-SYSTEMS" cache="true">
                        <host>URL</host>
                        <port>389</port>
                        <batchSize>999</batchSize>
                        <securityPrincipal>cn=XXX,ou=XXX,ou=XXX,dc=XXX,dc=XX</securityPrincipal>
                        <securityCredential>XXXXXXX</securityCredential>
                        <securityProtocol>plain</securityProtocol>
                        <securityAuthentication>simple</securityAuthentication>
                        <baseContext>dc=XXX,dc=XX</baseContext>
                        <baseUserNamespace>dc=XXX,dc=XX</baseUserNamespace>
                        <baseGroupNamespace>dc=XXX,dc=XX</baseGroupNamespace>
                        <usernameAttribute>sAMAccountName</usernameAttribute>
                        <userSearchAllDepths>true</userSearchAllDepths>
                        <userSearchFilter>(objectClass=user)</userSearchFilter>
                        <firstnameAttribute>givenname</firstnameAttribute>
                        <surnameAttribute>sn</surnameAttribute>
                        <emailAttribute>mail</emailAttribute>
                        <groupnameAttribute>cn</groupnameAttribute>
                        <groupSearchFilter>(&(objectCategory=Group)(|(cn=grp-*)(cn=mms-*)))</groupSearchFilter>
                        <groupSearchAllDepths>true</groupSearchAllDepths>
                        <membershipAttribute>member</membershipAttribute>

                        <classes>
                                <groupAdaptor>com.swisscom.confluence.ldap.LDAPTokenGroupBasedGroupAdapter</groupAdaptor>
                        </classes>
        </ldap>

Any ideas on this?

Kind regards
André

3 answers

1 accepted

Accepted Answer
0 votes

I was able to resolve this problem:

I changed the groupSearchFilter to:

<groupSearchFilter>objectClass=Group)</groupSearchFilter>

Than the upgrade process starts...
Strange behavoiur but it works...

Kind regards
André

Just a head's Up: You might want to look at going to 3.5.17

We did an upgrade from 3.3.3 to 3.5.15 and then tried to go to 4.3.7 and we had no end of trouble, even losing quite a bit of data. By going to 3.5.17, no such problems existed.

Could be specific to our installation, but just wanted to offer a suggestion.

Hi Robert,

we had the same problem with 3.5.17

But it worked with my resoltuion to clear the user- and group-search filter.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 09, 2018 in Confluence

Introducing Praecipio Consulting, an Atlassian Solution Partner

Hey there Community!  My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they c...

385 views 0 9
Read article

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