AnsweredAssumed Answered

Migrating Servers and Workflow Error

Question asked by jmshorb on Jan 10, 2017
Latest reply on Jan 10, 2017 by kaynezhang

I am trying to save an old version of Alfresco Community 3.2r - the data is there and once it's rebuilt, I'll work on updating it. For now, I managed to install a clean tomcat/alfresco system and everything runs fine. No error messages, and just a nice log file of starting things up. Now, when I migrate my alf_data folder, and the alfresco/extension/ files (we had our own content management model), it no longer works.

 

I think that there is an issue with reconciling the alf_data folder & content models with the database (since nothing else has changed). I'm not sure where the "workflow" comes in. 

 

The alfresco.log file gives: 

22:41:29,326 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]

22:41:29,328 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]

22:41:29,328 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/data/Chemeddl/alfresco.bk.fromACS.nowork/alfresco32r/tomcat/shared/classes/alfresco-global.properties]

22:41:29,446 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]

22:41:49,701 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.

22:41:51,847 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.

22:41:53,787 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed

org.alfresco.error.AlfrescoRuntimeException: 00090003 Workflow deployment failed

        at org.alfresco.repo.workflow.WorkflowDeployer.init(WorkflowDeployer.java:336)

        at org.alfresco.repo.workflow.WorkflowDeployer$1.doWork(WorkflowDeployer.java:443)

        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:503)

        at org.alfresco.repo.workflow.WorkflowDeployer.onBootstrap(WorkflowDeployer.java:439)

        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.dictionary.DictionaryException: 00090002 Could not import bootstrap model alfresco/workflow/workflowModel.xml

        at org.alfresco.repo.dictionary.DictionaryBootstrap.onDictionaryInit(DictionaryBootstrap.java:151)

        at org.alfresco.repo.dictionary.DictionaryBootstrap.bootstrap(DictionaryBootstrap.java:108)

        at org.alfresco.repo.workflow.WorkflowDeployer.init(WorkflowDeployer.java:266)

        ... 38 more

Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 00090001 Failed to compile model wf:workflowmodel

        at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:112)

        at org.alfresco.repo.dictionary.M2Model.compile(M2Model.java:134)

        at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModel(DictionaryDAOImpl.java:274)

        at org.alfresco.repo.dictionary.DictionaryBootstrap.onDictionaryInit(DictionaryBootstrap.java:147)

        ... 40 more

Caused by: org.alfresco.service.cmr.repository.ContentIOException: 00090000 Failed to open stream onto channel:

   accessor: ContentAccessor[ contentUrl=store://2011/5/25/14/27/6ac015da-db3a-4ad8-8736-bc5e2ea059bc.bin, mimetype=text/xml, size=0, encoding=utf-8, locale=en_US]

        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:503)

        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.getUrisCtx(NamespaceDAOImpl.java:530)

        at org.alfresco.repo.dictionary.NamespaceDAOImpl.getUrisCtx(NamespaceDAOImpl.java:519)

        at org.alfresco.repo.dictionary.NamespaceDAOImpl.getURIs(NamespaceDAOImpl.java:201)

        at org.alfresco.repo.dictionary.CompiledModel.createLocalPrefixResolver(CompiledModel.java:199)

        at org.alfresco.repo.dictionary.CompiledModel.constructDefinitions(CompiledModel.java:134)

        at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:94)

        ... 43 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)

        ... 60 more

22:41:57,667 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework

22:41:59,270 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework

(As soon as I get this running I would LOVE to upgrade... the joys of inheriting a derelict site...)

Outcomes