cancel
Showing results for 
Search instead for 
Did you mean: 

Need help Upgrading 2.0.0 to 2.1

thrykol
Champ in-the-making
Champ in-the-making
I am in the process of trying to upgrade from 2.0 to 2.1. For both versions I am using alfresco-community-tomcat-2.*.0.tar.gz.

Following the instructions at http://wiki.alfresco.com/wiki/General_Upgrade_Process I am taking the war file found in alfresco-community-tomcat-2.1.0.tar.gz and placing it over the top of my existing war file.

After starting alfresco using alfresco.sh (previously stopped), I see the following in my alfresco.log and catalina.out files, respectively:

14:05:32,797 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
14:05:34,965 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
14:05:37,227 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Store exists - bootstrap ignored: user://alfrescoUserStore
14:05:37,232 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Store exists - bootstrap ignored: system://system
14:05:37,237 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Store exists - bootstrap ignored: workspace://lightWeightVersionSt
ore
14:05:37,241 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Store exists - bootstrap ignored: archive://SpacesStore
14:05:37,245 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Store exists - bootstrap ignored: workspace://SpacesStore
14:05:38,996 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_
data'.  'dir.root' should be overridden to point to a specific folder.
14:05:38,997 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
14:05:39,178 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
14:05:39,226 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
14:05:39,230 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
14:05:39,390 ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
14:05:39,390 ERROR [org.alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
14:05:39,486 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_06-b05; maximum heap size 493.063MB
14:05:39,486 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493.063MB is less
than recommended 512MB
14:05:39,487 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.0.0 (
build-185) schema 38 - Installed version 2.0.0 (build-185) schema 38


…Aug 1, 2007 2:05:08 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Aug 1, 2007 2:05:08 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 1, 2007 2:05:09 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
14:05:32,797 WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
14:05:34,965 WARN  [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
14:05:37,227 DEBUG [repo.importer.ImporterBootstrap] Store exists - bootstrap ignored: user://alfrescoUserStore
14:05:37,232 DEBUG [repo.importer.ImporterBootstrap] Store exists - bootstrap ignored: system://system
14:05:37,237 DEBUG [repo.importer.ImporterBootstrap] Store exists - bootstrap ignored: workspace://lightWeightVersionStore
14:05:37,241 DEBUG [repo.importer.ImporterBootstrap] Store exists - bootstrap ignored: archive://SpacesStore
14:05:37,245 DEBUG [repo.importer.ImporterBootstrap] Store exists - bootstrap ignored: workspace://SpacesStore
14:05:38,996 WARN  [repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.
root' should be overridden to point to a specific folder.
14:05:38,997 INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
14:05:39,178 INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
14:05:39,226 INFO  [admin.patch.PatchExecuter] No patches were required.
14:05:39,230 INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
14:05:39,390 ERROR [alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
14:05:39,390 ERROR [alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
14:05:39,486 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_06-b05; maximum heap size 493.063MB
14:05:39,486 WARN  [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493.063MB is less than recommen
ded 512MB
14:05:39,487 INFO  [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.0.0 (build-185) sc
hema 38 - Installed version 2.0.0 (build-185) schema 38
Aug 1, 2007 2:05:40 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 1, 2007 2:05:41 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 1, 2007 2:05:41 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/34  config=null
Aug 1, 2007 2:05:41 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 1, 2007 2:05:41 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 32952 ms

Logging into Alfresco confirms that I am still using 2.0 (I did a clean install of 2.1 to see some of the visual differences).

Where am I going wrong on the install process?  I am running Fedora 6 with mysql.  Any help would be greatly appreciated.
5 REPLIES 5

paullewon
Champ in-the-making
Champ in-the-making
I'm getting the same. Also on Fedora. I tried the upgrade from 2.0 to 2.1 using the alfresco.war from alfresco-community-war-2.1.0.tar.gz (the .war filedate is 7/23/2007 8:11 a.m.) and the alfresco.war from alfresco-community-tomcat-2.1.0.tar.gz (the .war filedate is 7/25/2007 1:10 a.m.).

My catalina.out:

Aug 3, 2007 1:28:30 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/Alfresco/java/lib/i386/server:/opt/Alfresco/java/lib/i386:/opt/Alfresco/java/../lib/i386
Aug 3, 2007 1:28:30 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Aug 3, 2007 1:28:30 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1152 ms
Aug 3, 2007 1:28:30 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 3, 2007 1:28:30 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Aug 3, 2007 1:28:30 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 3, 2007 1:28:32 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
13:28:58,362 ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to execute command: convert /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_29877.gif  /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_29878.png
13:29:01,625 WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
13:29:09,277 WARN  [repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
13:29:09,277 INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
13:29:09,442 INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
13:29:09,459 INFO  [admin.patch.PatchExecuter] No patches were required.
13:29:09,497 INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
13:29:09,987 ERROR [alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
13:29:09,987 ERROR [alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
13:29:10,036 ERROR [alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.<init>(ServerSocket.java:185)
   at java.net.ServerSocket.<init>(ServerSocket.java:141)
   at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:407)
   at java.lang.Thread.run(Thread.java:595)
13:29:10,125 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_08-b03; maximum heap size 1012.625MB
13:29:10,126 INFO  [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.0.0 (build-185) schema 38 - Installed version 2.0.0 (build-185) schema 38
Aug 3, 2007 1:29:12 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Aug 3, 2007 1:29:12 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8109
Aug 3, 2007 1:29:12 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/94  config=null
Aug 3, 2007 1:29:12 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 3, 2007 1:29:12 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 42301 ms

Paul

steve
Champ in-the-making
Champ in-the-making
Hi,

That's a bit odd.
Have you deleted everything in the …tomcat/work, …tomcat/temp and …/tomcat/webapps/alfresco?

If not, Tomcat will use the old files from the previous deployment.

Hope this helps,

Steve

thrykol
Champ in-the-making
Champ in-the-making
Hi,

That's a bit odd.
Have you deleted everything in the …tomcat/work, …tomcat/temp and …/tomcat/webapps/alfresco?

If not, Tomcat will use the old files from the previous deployment.

Hope this helps,

Steve

Steve,

I have tried doing that.  Unfortunately it doesn't work.  The import starts, then the following error is thrown when trying to import "readme_template.xml":

06:49:44,047 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Importing alfresco/templates/readme_template.xml
06:49:44,190 ERROR [org.alfresco.repo.admin.patch.PatchServiceImpl] org.alfresco.error.AlfrescoRuntimeException: Bootstr
ap failed
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:444)
        at org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch.applyInternal(GenericBootstrapPatch.java:126)
        at org.alfresco.repo.admin.patch.AbstractPatch$1$1.execute(AbstractPatch.java:350)
        at org.alfresco.repo.admin.patch.AbstractPatch$1$1.execute(AbstractPatch.java:344)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:225)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)
        at org.alfresco.repo.admin.patch.AbstractPatch$1.doWork(AbstractPatch.java:355)
        at org.alfresco.repo.admin.patch.AbstractPatch$1.doWork(AbstractPatch.java:340)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:260)
        at org.alfresco.repo.admin.patch.AbstractPatch.apply(AbstractPatch.java:358)
        at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatch(PatchServiceImpl.java:232)
        at org.alfresco.repo.admin.patch.PatchServiceImpl.applyPatchAndDependencies(PatchServiceImpl.java:186)
        at org.alfresco.repo.admin.patch.PatchServiceImpl.applyOutstandingPatches(PatchServiceImpl.java:127)
        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:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:
187)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
        at $Proxy44.applyOutstandingPatches(Unknown Source)
        at org.alfresco.repo.admin.patch.PatchExecuter.applyOutstandingPatches(PatchExecuter.java:89)
        at org.alfresco.repo.admin.patch.PatchExecuter.onBootstrap(PatchExecuter.java:132)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
        at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.j
ava:77)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMult
icaster.java:75)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:2
41)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableW
ebApplicationContext.java:156)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.alfresco.service.cmr.view.ImporterException: Path /app:company_home/app:dictionary/app:content_templates
within node workspace://SpacesStore/c96fae22-41f3-11dc-98d0-8389f395250b does not exist - the path must resolve to a valid location
        at org.alfresco.repo.importer.ImporterComponent.getNodeRef(ImporterComponent.java:268)
        at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:223)
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:426)
        … 59 more

06:49:44,322 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollb
ack-only
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransaction
Manager.java:618)…

Not sure if it matters, but my 2.0 build was restored from existing data, so there is a "restore" directory in tomcat/shared/classes/alfresco/extension along with a "restore-context.xml" file.

Thanks for your help.

Shane

paullewon
Champ in-the-making
Champ in-the-making
Hi Steve,

I'd carefully followed the General Upgrade Process, which said to clean out temporary files in …/tomcat/temp and …/tomcat/work, and had not touched anything in …/tomcat/webapps/alfresco except to replace the alfresco.war file. And in no case had I deleted any folders. Just files.

Taking your "Have you deleted everything in the …tomcat/work, …tomcat/temp and …/tomcat/webapps/alfresco?" question as a license to be more aggressive, I went ahead this morning and deleted files and folder structure in …/tomcat/temp, …/tomcat/work, and …/tomcat/webapps/alfresco. My current catalina .log and catalina.out are now very clean. But I now get a 404 "The requested resource (/alfresco/) is not available" upon trying to pull up Alfresco in the browser.

Time for a fresh install?

Here's catalina.out:

Aug 6, 2007 9:52:19 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/Alfresco/java/lib/i386/server:/opt/Alfresco/java/lib/i386:/opt/Alfresco/java/../lib/i386
Aug 6, 2007 9:52:19 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Aug 6, 2007 9:52:19 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2607 ms
Aug 6, 2007 9:52:20 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 6, 2007 9:52:20 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Aug 6, 2007 9:52:20 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 6, 2007 9:52:21 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
Aug 6, 2007 9:52:23 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Aug 6, 2007 9:52:23 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8109
Aug 6, 2007 9:52:23 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/106  config=null
Aug 6, 2007 9:52:23 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 6, 2007 9:52:23 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3876 ms

Here's catalina.2007-08-06.log:

Aug 6, 2007 9:52:19 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/Alfresco/java/lib/i386/server:/opt/Alfresco/java/lib/i386:/opt/Alfresco/java/../lib/i386
Aug 6, 2007 9:52:19 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Aug 6, 2007 9:52:19 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2607 ms
Aug 6, 2007 9:52:20 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 6, 2007 9:52:20 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Aug 6, 2007 9:52:20 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 6, 2007 9:52:21 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
Aug 6, 2007 9:52:23 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Aug 6, 2007 9:52:23 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8109
Aug 6, 2007 9:52:23 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/106  config=null
Aug 6, 2007 9:52:23 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 6, 2007 9:52:23 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3876 ms

Thanks again,

Paul

paullewon
Champ in-the-making
Champ in-the-making
I went ahead and did a full install of 2.1, and now have it up and running. Could use clarification on the upgrade process for the future, but not urgently at this time.

Thanks,

Paul