I'm getting errors when attempting to bootstrap an new installation of Alfresco Community 1.4 with a full Repository export. I've followed instructions as per the Wiki, but am running into problems with the content I'm trying to import. Specifically, there are some 2 integrity violations. Here's the output that caused the bootstrap failure:
17:41:34,234 DEBUG [repo.importer.ImporterBootstrap] Permissions set: 0 17:41:34,328 ERROR [node.integrity.IntegrityChecker] Found 2 integrity violations: Invalid property value: Node: archive://SpacesStore/cc089019-a735-11db-8be7-27b06a5358e9 Type: {http://www.alfresco.org/model/content/1.0}content Property: {http://www.alfresco.org/model/content/1.0}name Constraint: Value 'Node Type: {http://www.alfresco.org/model/content/1.0}folder Node Properties: 9 Node Aspects: [{ht tp://www.alfresco.org/model/content/1.0}auditable, {http://www.alfresco.org/model/system/1.0}referenceable]' matches reg ular expression: .*[\"\*\\\>\<\?\/\:\|\xA3\xAC\%\&\+\;]+.* Invalid property value: Node: archive://SpacesStore/ab0410fd-a734-11db-8be7-27b06a5358e9 Type: {http://www.alfresco.org/model/content/1.0}content Property: {http://www.alfresco.org/model/content/1.0}name Constraint: Value 'Node Type: {http://www.alfresco.org/model/content/1.0}folder Node Properties: 9 Node Aspects: [{ht tp://www.alfresco.org/model/content/1.0}auditable, {http://www.alfresco.org/model/system/1.0}referenceable]' matches reg ular expression: .*[\"\*\\\>\<\?\/\:\|\xA3\xAC\%\&\+\;]+.* 17:41:34,437 ERROR [util.transaction.SpringAwareUserTransaction] Transaction didn't commit org.alfresco.repo.node.integrity.IntegrityException: Integrity failure at org.alfresco.repo.node.integrity.IntegrityChecker.checkIntegrity(IntegrityChecker.java:611) at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.flush(AlfrescoTransac tionSupport.java:518) at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(Alfresco TransactionSupport.java:589) at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatfo rmTransactionManager.java:657) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTran sactionManager.java:482) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransaction Manager.java:469) at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(Transa ctionAspectSupport.java:266) at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:397) at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:441) at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:670) at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:54) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMult icaster.java:45) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:2 25) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableW ebApplicationContext.java:134) 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:3692) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4127) 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:804) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118) 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:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) 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:680) at org.apache.catalina.startup.Catalina.start(Catalina.java:536) 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:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 17:41:34,453 ERROR [web.context.ContextLoader] Context initialization failed org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
I also had this problem when trying to import my test repository data into a new installation.
The problem is that the contraints on file/name properties have changed from Alfresco 1.3 to 1.4.
The solution is to correct the invalid file/name properties in the export description XML file so that it imports correctly.
This is easy to do as an export file (.acp) is just a ZIP file with a specific structure. Simply unpack the acp file to disk and edit the single .xml file you find in the root of the unpacked structure. This file contains the meta-data description of the content files and folders to import. Search in the file for the node Ids mentioned in your exception report, and then correct the filename and cm:name attributes for those records to only contain valid filename characters as per the regular expression. Then zip back up the ACP file and try you import again - this worked for me!
Thanks for the info Kevin. I ended up clearing out my deleted files in the original repository, which is where those bogus filenames were. I did, however, need to edit the .xml file in the export file anyway (to remove all the rma namespace references) as I was going from a pre-release version of 1.4 - so thanks for that advice too!