Error al importar tenant

cancel
Showing results for 
Search instead for 
Did you mean: 
raulcad
Member II

Error al importar tenant

He probado desde la versión 4.2.f a la 5.0.d de Alfresco Community en Windows y no he sido capaz de conseguir que funcionen los siguientes pasos sin que salten excepciones que además dejan la instalción de Alfresco inestable:

1. Crear un tenant
2. Exportar el tenant
3. Borrar el tenant
4. Importar el tenant

Para ello he utilizado la consola de tenants, y he seguido los pasos que se indican en la ayuda, de parar el servidor después de borrar el tenant, borrar los directorios de índices y de contenido y volver a iniciar el servidor. En concreto estos son los pasos que he dado y las excepciones obtenidas, para que podáis verlo y reproducirlo:

En la tenant console de admin:

1. create testa.com testa C:/alfresco/alf_data/testa

Result: created tenant: testa.com

2. export testa.com C:/backups/testa

Result: exported tenant: testa.com

El directorio C:/backups/testa contiene en este momento:
- testa.com_models.acp
- testa.com_spaces.acp
- testa.com_spaces_archive.acp
- testa.com_system.acp
- testa.com_users.acp
- testa.com_versions2.acp

3. delete testa.com

Result: Deleted tenant: testa.com

4. Paro el servidor

5. Borro el directorio C:\alfresco\alf_data\testa

6. Borro el contenido de C:\alfresco\alf_data\solr\workspace\SpacesStore
7. Borro el contenido de C:\alfresco\alf_data\solr\archive\SpacesStore
8. Borro el contenido de C:\alfresco\alf_data\solr\workspace-SpacesStore\alfrescoModels
9. Borro el contenido de C:\alfresco\alf_data\solr\archive-SpacesStore\alfrescoModels

10. Borro el contenido de C:\alfresco\alf_data\solr4\content
11. Borro el contenido de C:\alfresco\alf_data\solr4\index\workspace\SpacesStore\index
12. Borro el contenido de C:\alfresco\alf_data\solr4\index\archive\SpacesStore\index
13. Borro el contenido de C:\alfresco\alf_data\solr4\model

14. Inicio del servidor y voy a la tenant console de admin

15. import testa.com C:/backups/testa C:/alfresco/alf_data/testa

Result:

org.alfresco.error.AlfrescoRuntimeException: 10230007 Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:362)
   at org.alfresco.repo.tenant.MultiTAdminServiceImpl.bootstrapSpacesTenantStore(MultiTAdminServiceImpl.java:1075)
   at org.alfresco.repo.tenant.MultiTAdminServiceImpl.importBootstrapSpacesTenantStore(MultiTAdminServiceImpl.java:1058)
   at org.alfresco.repo.tenant.MultiTAdminServiceImpl.importTenant(MultiTAdminServiceImpl.java:578)
   at org.alfresco.repo.tenant.TenantInterpreter.executeCommand(TenantInterpreter.java:328)
   at org.alfresco.repo.tenant.TenantInterpreter$1$1.execute(TenantInterpreter.java:143)
   at org.alfresco.repo.tenant.TenantInterpreter$1$1.execute(TenantInterpreter.java:140)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)
   at org.alfresco.repo.tenant.TenantInterpreter$1.doWork(TenantInterpreter.java:151)
   at org.alfresco.repo.tenant.TenantInterpreter$1.doWork(TenantInterpreter.java:136)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.tenant.TenantInterpreter.interpretCommand(TenantInterpreter.java:154)
   at org.alfresco.repo.web.scripts.admin.DynamicInterpreterExtension.interpretCommand(DynamicInterpreterExtension.java:104)
   at org.alfresco.repo.web.scripts.admin.DynamicInterpreterExtension.executeCmd(DynamicInterpreterExtension.java:67)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
   at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
   at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_tenantconsole_post_js_2._c_main_8(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-tenantconsole.post.js:191)
   at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_tenantconsole_post_js_2.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-tenantconsole.post.js)
   at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
   at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_tenantconsole_post_js_2._c_script_0(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-tenantconsole.post.js:199)
   at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_tenantconsole_post_js_2.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-tenantconsole.post.js)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
   at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_tenantconsole_post_js_2.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-tenantconsole.post.js)
   at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_tenantconsole_post_js_2.exec(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-tenantconsole.post.js)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:502)
   at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:200)
   at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
   at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
   at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
   at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1364)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
   at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:489)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:551)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:619)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:399)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:280)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Unknown Source)
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 16624; column 137 due to error: Failed invocation: ReflectiveMethodInvocation: public abstract org.alfresco.service.namespace.QName org.alfresco.service.cmr.repository.NodeService.getType(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException; target is of class [com.sun.proxy.$Proxy13]
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:194)
   at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:423)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:272)
   at org.alfresco.repo.importer.ImporterBootstrap.doImport(ImporterBootstrap.java:480)
   at org.alfresco.repo.importer.ImporterBootstrap.access$000(ImporterBootstrap.java:71)
   at org.alfresco.repo.importer.ImporterBootstrap$1$1.execute(ImporterBootstrap.java:351)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
   at org.alfresco.repo.importer.ImporterBootstrap$1.doWork(ImporterBootstrap.java:355)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:358)
   … 71 more
Caused by: org.alfresco.service.cmr.repository.InvalidNodeRefException: Failed invocation: ReflectiveMethodInvocation: public abstract org.alfresco.service.namespace.QName org.alfresco.service.cmr.repository.NodeService.getType(org.alfresco.service.cmr.repository.NodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException; target is of class [com.sun.proxy.$Proxy13]
   at org.alfresco.repo.tenant.MultiTNodeServiceInterceptor.invoke(MultiTNodeServiceInterceptor.java:146)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at com.sun.proxy.$Proxy13.getType(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:224)
   at com.sun.proxy.$Proxy34.getType(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.alfresco.repo.tagging.TagScopePropertyMethodInterceptor.invoke(TagScopePropertyMethodInterceptor.java:152)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:305)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:269)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at com.sun.proxy.$Proxy13.getType(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
   at com.sun.proxy.$Proxy13.getType(Unknown Source)
   at org.alfresco.repo.importer.view.ViewParser.processStartReference(ViewParser.java:483)
   at org.alfresco.repo.importer.view.ViewParser.processStartElement(ViewParser.java:267)
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:176)
   … 80 more
Caused by: org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/3d114e70-7139-4024-9a06-b73fa0ae3d4d (status:null)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.getNodePairNotNull(DbNodeServiceImpl.java:182)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.getType(DbNodeServiceImpl.java:706)
   at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.alfresco.repo.lock.mem.LockableAspectInterceptor.invoke(LockableAspectInterceptor.java:226)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at com.sun.proxy.$Proxy13.getType(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.alfresco.repo.tenant.MultiTNodeServiceInterceptor.invoke(MultiTNodeServiceInterceptor.java:140)
   … 111 more


Siempre salta la misma excepción org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/********-****-****-****-************

Como se ve, ni si quiera se ha trabajado sobre el tenant, si no que estaba recién creado cuando lo he exportado.

Me parece muy raro que siendo algo tan básico siempre de este error (incluso en una instalación recién hecha de Alfresco), y que no haya constancia de este fallo por parte de otros usuarios. ¿Hay algo que esté haciendo mal o me falta algún paso? Gracias.

UPDATE: En el adjunto va una captura del System Summary, para mostrar las características de la instalación de Alfresco.
1 Reply
openpj
Moderator
Moderator

Re: Error al importar tenant

No creo que esta característica es completamente funcional en la Edición Community