AnsweredAssumed Answered

Upgrade 3.0 -> 3.2 problem

Question asked by laki on Jul 31, 2009
Hi all,

I'm running multi tenant installation on Alfresco Community 3.0. I have 2 additional tenants created, everything works fine. I now want to make an upgrade to version 3.2, so I first created a backup and tried to ran it on a different machine. Backup and restore works fine, I created export of database with mysqldump and copied all the files with documents. On version 3.0 on a different machine everything works fine.

Now, when I try to run Alfresco version 3.2 on this data, only the main tenant works. When I enable multi tenant environment by renaming those 3 files in mt directory, I get the following error. I have tried everything from the beginning multiple times with no luck.

Here is the error I get:

09:24:27,890 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
09:24:31,109 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
09:24:34,703 INFO  [org.alfresco.repo.tenant.MultiTAdminServiceImpl] Tenant disabled: demo
09:24:34,718 INFO  [org.alfresco.repo.tenant.MultiTAdminServiceImpl] Tenant disabled: test
09:24:35,171 INFO  [org.alfresco.repo.tenant.MultiTAdminServiceImpl] Tenant enabled: zts
09:24:35,593 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 06310001 Failed to bootstrap tenants
   at org.alfresco.repo.tenant.MultiTAdminServiceImpl.startTenants(MultiTAdminServiceImpl.java:327)
   at org.alfresco.repo.tenant.MultiTenantBootstrap.onBootstrap(MultiTenantBootstrap.java:53)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
   at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
   at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:617)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:69)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
   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:525)
   at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   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:578)
   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:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 06310000 Failed to open stream onto channel:
   accessor: ContentAccessor[ contentUrl=store://2009/6/3/21/50/551c4d4a-6e2f-44ca-9175-227b775479b4.bin, mimetype=text/xml, size=0, encoding=UTF-8, locale=hr_HR]
   at org.alfresco.repo.content.AbstractContentReader.getContentInputStream(AbstractContentReader.java:337)
   at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.createM2Model(DictionaryRepositoryBootstrap.java:406)
   at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.onDictionaryInit(DictionaryRepositoryBootstrap.java:261)
   at org.alfresco.repo.dictionary.DictionaryDAOImpl.initDictionaryRegistry(DictionaryDAOImpl.java:254)
   at org.alfresco.repo.dictionary.DictionaryDAOImpl.access$100(DictionaryDAOImpl.java:66)
   at org.alfresco.repo.dictionary.DictionaryDAOImpl$1.doWork(DictionaryDAOImpl.java:196)
   at org.alfresco.repo.dictionary.DictionaryDAOImpl$1.doWork(DictionaryDAOImpl.java:189)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:489)
   at org.alfresco.repo.dictionary.DictionaryDAOImpl.initDictionary(DictionaryDAOImpl.java:187)
   at org.alfresco.repo.dictionary.DictionaryDAOImpl.init(DictionaryDAOImpl.java:135)
   at org.alfresco.repo.dictionary.NamespaceDAOImpl.reset(NamespaceDAOImpl.java:125)
   at org.alfresco.repo.dictionary.NamespaceDAOImpl.getNamespaceRegistry(NamespaceDAOImpl.java:424)
   at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:551)
   at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:540)
   at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixes(NamespaceDAOImpl.java:355)
   at org.alfresco.repo.dictionary.DictionaryNamespaceComponent.getPrefixes(DictionaryNamespaceComponent.java:88)
   at org.alfresco.service.namespace.QName.getPrefixedQName(QName.java:276)
   at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.onDictionaryInit(DictionaryRepositoryBootstrap.java:246)
   at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap$1.execute(DictionaryRepositoryBootstrap.java:207)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)
   at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.init(DictionaryRepositoryBootstrap.java:203)
   at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.onEnableTenant(DictionaryRepositoryBootstrap.java:426)
   at org.alfresco.repo.tenant.MultiTAdminServiceImpl$2.doWork(MultiTAdminServiceImpl.java:551)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:489)
   at org.alfresco.repo.tenant.MultiTAdminServiceImpl.enableTenant(MultiTAdminServiceImpl.java:545)
   at org.alfresco.repo.tenant.MultiTAdminServiceImpl.startTenants(MultiTAdminServiceImpl.java:302)
   … 36 more
Caused by: java.lang.UnsupportedOperationException: The content never exists
   at org.alfresco.repo.content.EmptyContentReader.getDirectReadableChannel(EmptyContentReader.java:59)
   at org.alfresco.repo.content.AbstractContentReader.getReadableChannel(AbstractContentReader.java:226)
   at org.alfresco.repo.content.AbstractContentReader.getContentInputStream(AbstractContentReader.java:330)
   … 61 more

The problem as I can see is that Alfresco somehow is not able to locate tenant store on local disk. Store is located in C:\alfresco_data_store and the file 551c4d4a-6e2f-44ca-9175-227b775479b4.bin is there (under demo1 tenant). After all, version 3.0 works without any errors.

I think this is bug in Alfresco, but can't be sure.

Regards,
Laki

Outcomes