cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade to 4.0 howto?

ssrjazz
Champ in-the-making
Champ in-the-making
Can anyone point me to a howto or other instructions on upgrading from Alfresco Community 3.4e to 4.0?

Thanks!
40 REPLIES 40

ssrjazz
Champ in-the-making
Champ in-the-making
If you still do not find what you need, can you outline what that upgrade document should include?

The existing documentation is fine, but I think it should be easier to do the upgrade.

Why such a lengthy multi-step process?  Why not have a wizard or script that can do most of those steps automatically with just a few prompts from an admin?  Everything one hears about alfresco is about how easy it is to use….if you're a user.  Why not make admins lives a bit easier too?  Does the Enterprise Edition have an upgrade script(s)/wizard?

mrogers
Star Contributor
Star Contributor
Following the readme (HowToSetupSolr.txt) I copied the following folders from new to old.
webapps/solr
alf_data/keystore
alf_data/solr
copied the conf/catalina/localhost.xml

changed tomcat-users.xml to add the "repoclient" user
changed server.xml to add SSL

I think that's it.  Again I'm not claiming this is the best way to do it.   Its just what I did. :mrgreen:

edimusrex
Champ in-the-making
Champ in-the-making
This upgrade is killing me.  I am trying to upgrade from version 3.4a to version 4.0 but so far have had no luck at all.  All the documentation seems to be for older versions which are absolutely no help.  So far all I have managed to do is get it configured to run with MySQL, Did a cold backup of the old server but somewhere in the reintegration problem everything goes wrong. 

Any assistance would be greatly appreciated, I am losing sleep over this fiasco.

mrogers
Star Contributor
Star Contributor
You need to post more details, not least the content of your alfresco.log.

edimusrex
Champ in-the-making
Champ in-the-making
I will post a log on Monday.  I can get 4.0 installed with no problems, I can get it running with MySQL but I must be missing something when it comes to migrating the old data to the new server.  The explorer does not work.  I can get the shared portal to come up but nothing allows me to log in.

Maybe a more detailed process for migrating to 4.0 is in need.  I don't know

citizenkane
Champ in-the-making
Champ in-the-making
Following the readme (HowToSetupSolr.txt) I copied the following folders from new to old.
webapps/solr
alf_data/keystore
alf_data/solr
copied the conf/catalina/localhost.xml

changed tomcat-users.xml to add the "repoclient" user
changed server.xml to add SSL

I think that's it.  Again I'm not claiming this is the best way to do it.   Its just what I did. :mrgreen:

HowToSetupSolr.txt is an install guide for SOLR if you are building a bespoke system from scratch. Unfortunately, if you are just trying to upgrade, it is as clear as mud. I have spent over an hour with it and it is clear that the steps required are above my Alfresco vocabulary.

Thanks for your effort mrogers - but could you or someone else please help with a quickstart guide targeted at someone upgrading an instance using the default binary install.

edimusrex
Champ in-the-making
Champ in-the-making
This is the error log I get when trying to upgrade to 4.0.  Like I said before, I can easily update 3.4a to 3.4e but not from 3.4e to 4.0

2011-10-25 11:12:55,016  ERROR [web.context.ContextLoader] [Thread-1] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 09250002 Not all patches could be applied
   at org.alfresco.repo.admin.patch.PatchExecuter.applyOutstandingPatches(PatchExecuter.java:111)
   at org.alfresco.repo.admin.patch.PatchExecuter$1.doWork(PatchExecuter.java:124)
   at org.alfresco.repo.admin.patch.PatchExecuter$1.doWork(PatchExecuter.java:120)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:519)
   at org.alfresco.repo.admin.patch.PatchExecuter.onBootstrap(PatchExecuter.java:128)
   at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
   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:546)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
   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:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
   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:519)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
   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)
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
Exception in thread "JobAcquisitionThread" java.lang.NullPointerException
   at org.activiti.engine.impl.jobexecutor.JobAcquisitionThread.run(JobAcquisitionThread.java:103)
2011-10-25 11:13:17,788  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor freemarker for extension ftl
2011-10-25 11:13:17,851  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor javascript for extension js
2011-10-25 11:13:17,852  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor freemarker for extension ftl
2011-10-25 11:13:17,854  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor javascript for extension js
2011-10-25 11:13:19,496  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 314 Web Scripts (+0 failed), 324 URLs
2011-10-25 11:13:19,496  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 8 Package Description Documents (+0 failed)
2011-10-25 11:13:19,496  INFO  [extensions.webscripts.DeclarativeRegistry] [Thread-1] Registered 0 Schema Description Documents (+0 failed)
2011-10-25 11:13:19,669  INFO  [extensions.webscripts.AbstractRuntimeContainer] [Thread-1] Initialised Spring Surf Container Web Script Container (in 1809.7837ms)
2011-10-25 11:13:19,673  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor freemarker for extension ftl
2011-10-25 11:13:19,678  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor javascript for extension js
11:13:21,256 WARN  [org.apache.myfaces.shared_impl.util.LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
11:13:23,265 ERROR [org.springframework.web.servlet.DispatcherServlet] Context initialization failed
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1937)
   at java.lang.String.substring(String.java:1904)
   at org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131)
   at org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:96)
   at org.apache.catalina.core.ApplicationContext.getResource(ApplicationContext.java:467)
   at org.apache.catalina.core.ApplicationContextFacade.getResource(ApplicationContextFacade.java:176)
   at org.springframework.web.context.support.ServletContextResource.exists(ServletContextResource.java:101)
   at org.springframework.extensions.webscripts.ResourceStore.hasDocument(ResourceStore.java:217)
   at org.springframework.extensions.webscripts.SearchPath.hasDocument(SearchPath.java:148)
   at org.springframework.extensions.webscripts.AbstractWebScript.getBundleFromPath(AbstractWebScript.java:357)
   at org.springframework.extensions.webscripts.AbstractWebScript.getResources(AbstractWebScript.java:254)
   at org.springframework.extensions.webscripts.AbstractWebScript.init(AbstractWebScript.java:130)
   at org.springframework.extensions.webscripts.DeclarativeRegistry.initWebScripts(DeclarativeRegistry.java:463)
   at org.springframework.extensions.webscripts.DeclarativeRegistry.reset(DeclarativeRegistry.java:178)
   at org.springframework.extensions.webscripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:259)
   at org.springframework.extensions.webscripts.PresentationContainer.reset(PresentationContainer.java:121)
   at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.reset(LocalWebScriptRuntimeContainer.java:121)
   at org.springframework.extensions.webscripts.AbstractRuntimeContainer.onApplicationEvent(AbstractRuntimeContainer.java:280)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
   at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
   at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
   at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
   at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
   at javax.servlet.GenericServlet.init(GenericServlet.java:212)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
   at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
   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:546)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
   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:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
   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:519)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
   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)
11:13:23,548 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:25,571 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:27,573 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:29,575 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:31,577 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:33,579 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:35,581 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:37,583 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:39,585 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:41,587 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:43,589 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:45,591 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:47,593 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:49,595 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:51,597 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:53,599 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:55,601 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:57,603 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:13:59,605 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:01,607 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:03,609 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:05,611 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:07,613 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:09,615 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:11,617 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:13,619 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:15,621 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:17,623 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:19,625 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:21,627 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:23,629 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:25,631 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:27,633 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found
11:14:29,635 WARN  [org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl] WQS unable to connect to repository: Not Found

citizenkane
Champ in-the-making
Champ in-the-making
I posted a guide to how I upgraded to 4 here:

https://forums.alfresco.com/en/viewtopic.php?f=8&t=41515&p=121181#p121181

I do not have solr implemented - but everything works fine with lucene.

edimusrex
Champ in-the-making
Champ in-the-making
I followed your directions but get the exact same error message as my previous post.  I am installing this on Windows 7 x64.

citizenkane
Champ in-the-making
Champ in-the-making
I followed your directions but get the exact same error message as my previous post.  I am installing this on Windows 7 x64.

Ah - sorry Edimusrex, that's a different country! The guide is for Ubuntu Linux 10.04.