Upgrade from 3.3.3 to 3.5.15 fails
Asked by Andre Lehmann:

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 completed in 21655 ms2012-07-19 09:01:17,278 ERROR [main] [confluence.user.migration.LdapRepositoryConfigurationMigrator] validateObjectClassDefined Property groupSearchFilter does not define an objectClass filter2012-07-19 09:01:17,279 ERROR [main] [confluence.user.migration.LdapRepositoryConfigurationMigrator] validateObjectClassDefined Property userSearchFilterdoes not define an objectClass filter2012-07-19 09:01:17,280 INFO [main] [confluence.user.migration.AtlassianUserMigrator] validate validated repository [ ldapRepository ] with [ com.atlassian.confluence.user.migration.LdapRepositoryConfigurationMigrator@2ad191 ]2012-07-19 09:01:17,280 INFO [main] [confluence.user.migration.AtlassianUserMigrator] validate validated repository [ hibernateRepository ] with [ com.atlassian.confluence.user.migration.HibernateRepositoryConfigurationMigrator@12489c0 ]2012-07-19 09:01:17,300 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized Upgrade failed, application will not start: Upgrade task com.atlassian.confluence.upgrade.upgradetask.AtlassianUserToEmbeddedCrowdConfigurationUpgradeTask@a8e5ac failed during the VALIDATION phasecom.atlassian.confluence.upgrade.UpgradeException: Upgrade task com.atlassian.confluence.upgrade.upgradetask.AtlassianUserToEmbeddedCrowdConfigurationUpgradeTask@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 during upgrade:2012-07-19 09:01:17,317 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized 1: Property groupSearchFilter does not define an objectClass filter2012-07-19 09:01:17,317 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized 2: Property userSearchFilterdoes not define an objectClass filter
```

This is our atlassian-user.xml:

```
&lt;ldap key="ldapRepository" name="LDAP Repository MMS-T-SYSTEMS" cache="true"&gt;                        &lt;host&gt;URL&lt;/host&gt;                        &lt;port&gt;389&lt;/port&gt;                        &lt;batchSize&gt;999&lt;/batchSize&gt;                        &lt;securityPrincipal&gt;cn=XXX,ou=XXX,ou=XXX,dc=XXX,dc=XX&lt;/securityPrincipal&gt;                        &lt;securityCredential&gt;XXXXXXX&lt;/securityCredential&gt;                        &lt;securityProtocol&gt;plain&lt;/securityProtocol&gt;                        &lt;securityAuthentication&gt;simple&lt;/securityAuthentication&gt;                        &lt;baseContext&gt;dc=XXX,dc=XX&lt;/baseContext&gt;                        &lt;baseUserNamespace&gt;dc=XXX,dc=XX&lt;/baseUserNamespace&gt;                        &lt;baseGroupNamespace&gt;dc=XXX,dc=XX&lt;/baseGroupNamespace&gt;                        &lt;usernameAttribute&gt;sAMAccountName&lt;/usernameAttribute&gt;                        &lt;userSearchAllDepths&gt;true&lt;/userSearchAllDepths&gt;                        &lt;userSearchFilter&gt;(objectClass=user)&lt;/userSearchFilter&gt;                        &lt;firstnameAttribute&gt;givenname&lt;/firstnameAttribute&gt;                        &lt;surnameAttribute&gt;sn&lt;/surnameAttribute&gt;                        &lt;emailAttribute&gt;mail&lt;/emailAttribute&gt;                        &lt;groupnameAttribute&gt;cn&lt;/groupnameAttribute&gt;                        &lt;groupSearchFilter&gt;(&amp;#38;(objectCategory=Group)(&amp;#124;(cn=grp-*)(cn=mms-*)))&lt;/groupSearchFilter&gt;                        &lt;groupSearchAllDepths&gt;true&lt;/groupSearchAllDepths&gt;                        &lt;membershipAttribute&gt;member&lt;/membershipAttribute&gt;                        &lt;classes&gt;                                &lt;groupAdaptor&gt;com.swisscom.confluence.ldap.LDAPTokenGroupBasedGroupAdapter&lt;/groupAdaptor&gt;                        &lt;/classes&gt;        &lt;/ldap&gt;
```

Any ideas on this?

Kind regards  
Andr?


Answers:
author: Andre Lehmann
body: 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?


author: Andre Lehmann
body: 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.


author: Robert M
body: 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.


Tags: upgrade

user