Upgrading Confluence from 3.3.3 to 3.5.13
Asked by Jose Medina:

Is it possible to upgrade to 3.5.13 from 3.3.3 ? I'm using the war distribution and I changed my symlink to point to the newever version and when I start tomcat I get the following errors:

```
2016-12-29 10:22:26,269 INFO [main] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 3.5.13 (build #2171)2016-12-29 10:22:28,451 INFO [main] [atlassian.plugin.manager.DefaultPluginManager] init Initialising the plugin system2016-12-29 10:22:28,622 INFO [main] [atlassian.plugin.manager.DefaultPluginManager] init Plugin system started in 0:00:00.1692016-12-29 10:22:29,732 INFO [main] [com.atlassian.confluence.lifecycle] &lt;init&gt; Bootstrapping Coherence cluster manager.2016-12-29 10:22:30,364 INFO [main] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext: initialization started2016-12-29 10:22:32,077 INFO [main] [com.atlassian.confluence.lifecycle] &lt;init&gt; Loading Coherence cache manager2016-12-29 10:22:33,780 WARN [Logger@1105734171 3.3.1/389] [Coherence] log 2016-12-29 10:22:33.779 Oracle Coherence GE 3.3.1/389 &lt;Warning&gt; (thread=main, member=n/a): UnicastUdpSocket failed to set receive buffer size to 1428 packets (2096304 bytes); actual size is 85 packets (124928 bytes). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.2016-12-29 10:22:46,108 INFO [main] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext: initialization completed in 15743 ms2016-12-29 10:22:47,124 INFO [main] [confluence.user.migration.AtlassianUserMigrator] validate validated repository [ wdc1 ] with [ com.atlassian.confluence.user.migration.LdapRepositoryConfigurationMigrator@352cdad3 ]2016-12-29 10:22:47,126 ERROR [main] [confluence.user.migration.LdapRepositoryConfigurationMigrator] validateObjectClassDefined Property groupSearchFilter does not define an objectClass filter2016-12-29 10:22:47,127 ERROR [main] [confluence.user.migration.LdapRepositoryConfigurationMigrator] validateObjectClassDefined Property userSearchFilter does not define an objectClass filter2016-12-29 10:22:47,127 INFO [main] [confluence.user.migration.AtlassianUserMigrator] validate validated repository [ wdc2 ] with [ com.atlassian.confluence.user.migration.LdapRepositoryConfigurationMigrator@352cdad3 ]2016-12-29 10:22:47,128 INFO [main] [confluence.user.migration.AtlassianUserMigrator] validate validated repository [ hibernateRepository ] with [ com.atlassian.confluence.user.migration.HibernateRepositoryConfigurationMigrator@6849b026 ]2016-12-29 10:22:47,144 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized Upgrade failed, application will not start: Upgrade task com.atlassian.confluence.upgrade.upgradetask.AtlassianUserToEmbeddedCrowdConfigurationUpgradeTask@7897ce5d failed during the VALIDATION phasecom.atlassian.confluence.upgrade.UpgradeException: Upgrade task com.atlassian.confluence.upgrade.upgradetask.AtlassianUserToEmbeddedCrowdConfigurationUpgradeTask@7897ce5d 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:4244)        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4743)        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)        at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)        at org.apache.catalina.core.StandardService.start(StandardService.java:516)        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)        at org.apache.catalina.startup.Catalina.start(Catalina.java:593)        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)        at java.lang.reflect.Method.invoke(Method.java:620)        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2016-12-29 10:22:47,148 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized 2 errors were encountered during upgrade:2016-12-29 10:22:47,149 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized 1: Property groupSearchFilter does not define an objectClass filter2016-12-29 10:22:47,149 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized 2: Property userSearchFilter does not define an objectClass filter2016-12-29 10:22:47,864 INFO [main] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve
```

```
&lt;ldap key="domain" name="domain" cache="true"&gt;                &lt;host&gt;ipaddress&lt;/host&gt;                &lt;port&gt;389&lt;/port&gt;                &lt;securityPrincipal&gt;cn=user,cn=users,dc=domain,dc=com&lt;/securityPrincipal&gt;                &lt;securityCredential&gt;password&lt;/securityCredential&gt;                &lt;securityProtocol&gt;plain&lt;/securityProtocol&gt;                &lt;securityAuthentication&gt;simple&lt;/securityAuthentication&gt;                &lt;baseContext&gt;dc=domain,dc=com&lt;/baseContext&gt;                &lt;baseUserNamespace&gt;ou=Domain-Accounts,dc=domain,dc=com&lt;/baseUserNamespace&gt;                &lt;baseGroupNamespace&gt;ou=DOMAINOU-Groups,dc=litle,dc=com&lt;/baseGroupNamespace&gt;                &lt;usernameAttribute&gt;sAMAccountName&lt;/usernameAttribute&gt;                &lt;userSearchFilter&gt;(objectClass=person)&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;(info=Confluence)&lt;/groupSearchFilter&gt;                &lt;membershipAttribute&gt;member&lt;/membershipAttribute&gt;                &lt;userSearchAllDepths&gt;true&lt;/userSearchAllDepths&gt;                &lt;groupSearchAllDepths&gt;false&lt;/groupSearchAllDepths&gt;        &lt;/ldap&gt;
```


Answers:
author: Nic Brough -Adaptavist-
body: That's not how you do an upgrade, from my memory. what documentation are you following?

comments: author: Jose Medina
body: These are the docs I was following.

<https://confluence.atlassian.com/display/CONF35/Upgrading+Confluence+EAR-WAR+Distribution>


author: Jose Medina
body: I fixed the issue by changing the \<groupSearchFilter\>(info=Confluence)\</groupSearchFilter\> to \<groupSearchFilter\>(objectClass=person)\</groupSearchFilter\>

<br />

however i'm having a lot of errors with the index, is there a way I can manually do it from the command line?


author: Jose Medina
body: I restarted tomcat and it seems confluence was able to start successful, however when I go to the dashboard or any other page it says "You are not permitted to perform this operation."


author: Nic Brough -Adaptavist-
body: No, I'm not sure what you have done for the upgrade, but there's no mention of symbolic links in the upgrade doc - is there a reason you are doing it differently?


author: Jose Medina
body: yes because the context file in tomcat points to /usr/local/confluence/current and current is a symbolic link to confluence-3.3-std, and then I changed the symbolic link to 3.5.13


author: Nic Brough -Adaptavist-
body: What about the rest of the instructions?


author: Jose Medina
body: I performed all the rest and I received a bunch of errors when confluence was doing the index,

After I login to confluence I'm not able to see any page it says "You are not permitted to perform this operation."

I made a change on the atlassian-user.xml

on 3.3 it was

\<groupSearchFilter\>(info=Confluence)\</groupSearchFilter\>

on 3.5.13

\<groupSearchFilter\>(objectClass=person)\</groupSearchFilter\>

<br />

I believe I need to add more settings to the groupSearchFilter for it to allow me to view pages on confluence.


author: Jose Medina
body: I'ms till struggling trying to get confluence to recognize the group in AD, I changed the value to this and restarted confluence and still not able to see any of the content.

\<groupSearchFilter\>(\&(objectCategory=Group)(\|(cn=Confluence Users)(cn=confluence-administrators)))\</groupSearchFilter\>

The reason why I changed it was because the upgrade to 3.5.13 did not like the previous value which was:

\<groupSearchFilter\>(info=Confluence)\</groupSearchFilter\>


Tags: confluence-administration