Tengo un problema para ejecutar la transferencia. Quiero explicaros como he hecho para crear un trabajo de replicación:
1- He copiado identificador de repositorio para ponerlo en el archivo de “share-config.xml” <php> <share-url repositoryId="xxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"> http://AlfrEjemplo/share/</share-url> </php>
2- He abierto el archivo “alfresco-global.properties” para poner dos parámetros “replication.enabled=true” y “transferservice.receiver.enabled=true” y he reiniciado el servicio de alfresco
3- He creado una carpeta de transferencia => Repositorio > Diccionario de Datos> Transferencias> Grupos de destino de transferencia > Grupo predeterminado y también he editado las propiedades establecemos la configuración
4- He configurado el trabajo de replicación a través de la consola de administración y he ejecutado el trabajo.
Por lo tanto, me ha salido el error del trabajo de replicación: Estado Último trabajo resultó fallido. Trabajo iniciado: Lun 11 May 2015 10:54:59 Finalizado: Lun 11 May 2015 10:55:02 04110168 Error executing transfer - Class {http://www.alfresco.org/model/datalist/1.0}MVirtual has not been defined in the data dictionary
Tengo tres maquinas virtuales de alfresco, he probado las dos de alfresco y se conectan perfecto pero intenté conectar con otra de alfresco, me ha salido este error. Estaba investigando el problema de conexión y no dice nada, por eso no sé cuál es el problema, ¿puede ser problema del IP de la maquina virtual o el del puerto de la dirección o algo así?
Te adjunto del archivo del error. Muchas gracias de antemano
Gracias pero creo que no tiene nada que ver…porque he pillado el error de transferencia, que he solucionado creando dos carpetas iguales con mismo nombre en dos maquinas virtuales que se llaman mv1 y mv2.
la mv1 tenia el problema de transferencia que dije anteriormente, la mv2 no tiene problema, Ahora la mv1 se conecta con la mv2 y funcionan bien pero al revés, de mv2 a mv1 pasa otro problema de transferencia:
Estado (mv2 se conecta con mv1) Último trabajo resultó fallido. Trabajo iniciado: Mar 12 May 2015 11:30:52 Finalizado: Mar 12 May 2015 11:30:53 04123427 Error al ejecutar la transferencia - 04123425 No se puede iniciar una nueva transferencia
Te muestro dos logs de mv2 y mv1:
Log de mv2: [php] 12:13:13,763 ERROR [org.alfresco.repo.transfer.HttpClientTransmitterImpl] Received "unsuccessful" response code from target server: 500 12:13:13,872 ERROR [org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl] Failed to execute asynchronous action: Action[ id=16d11cc2-7942-470e-9f68-583cad958dcb, node=workspace://SpacesStore/16d11cc2-7942-470e-9f68-583cad958dcb ]: 04123677 No se puede iniciar una nueva transferencia org.alfresco.service.cmr.replication.ReplicationServiceException: 04123679 Error al ejecutar la transferencia - 04123677 No se puede iniciar una nueva transferencia at org.alfresco.repo.replication.ReplicationActionExecutor.executeImpl(ReplicationActionExecutor.java:339) at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:241) at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:822) at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:723) at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:405) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:304) at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:414) at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529) at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:417) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.alfresco.service.cmr.transfer.TransferException: 04123677 No se puede iniciar una nueva transferencia at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.alfresco.util.json.ExceptionJsonSerializer.deserialize(ExceptionJsonSerializer.java:92) at org.alfresco.util.json.ExceptionJsonSerializer.deserialize(ExceptionJsonSerializer.java:34) at org.alfresco.repo.transfer.HttpClientTransmitterImpl.rehydrateError(HttpClientTransmitterImpl.java:738) at org.alfresco.repo.transfer.HttpClientTransmitterImpl.checkResponseStatus(HttpClientTransmitterImpl.java:186) at org.alfresco.repo.transfer.HttpClientTransmitterImpl.begin(HttpClientTransmitterImpl.java:275) at org.alfresco.repo.transfer.TransferServiceImpl2.transferImpl(TransferServiceImpl2.java:596) at org.alfresco.repo.transfer.TransferServiceImpl2.transfer(TransferServiceImpl2.java:539) at org.alfresco.repo.transfer.TransferServiceImpl2.transfer(TransferServiceImpl2.java:514) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.alfresco.repo.transaction.RetryingTransactionInterceptor$1.execute(RetryingTransactionInterceptor.java:69) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433) at org.alfresco.repo.transaction.RetryingTransactionInterceptor.invoke(RetryingTransactionInterceptor.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy123.transfer(Unknown Source) at org.alfresco.repo.replication.ReplicationActionExecutor.executeImpl(ReplicationActionExecutor.java:307) … 12 more [/php]
Log de mv1: [php] 12:13:13,089 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] Start transfer 12:13:13,089 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] checkTransfer fromRepository:8dd81d03-38dd-4d44-93c2-bbd7c1032833, transferToSelf:false 12:13:13,089 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] makeLock{http://www.alfresco.org/model/transfer/1.0}transfer.server.default 12:13:13,099 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] lock taken: name{http://www.alfresco.org/model/transfer/1.0}transfer.server.default token:0f99cc97-4a08-4a91-af22-1e21e542f834 12:13:13,099 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] register lock callback, target lock refresh time :60000 12:13:13,099 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] refreshLock callback registered 12:13:13,100 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] Receiver createTransferRecord 12:13:13,100 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] Trying to find transfer records folder: /app:company_home/app:dictionary/app:transfers/app:inbound_transfer_records 12:13:13,217 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] Found inbound transfer records folder: workspace://SpacesStore/debb3c45-15b0-403f-8e31-641168db35c8 12:13:13,217 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] Creating transfer record with name: 20150512121313217+0200.xml 12:13:13,240 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] <-createTransferRecord: workspace://SpacesStore/e9f0480a-1a84-4815-96f8-be0fe2d39744 12:13:13,258 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] Exception while staring transfer org.alfresco.service.cmr.transfer.TransferException: 04120233 Unable to locate specified temporary folder for transfer workspace://SpacesStore/e9f0480a-1a84-4815-96f8-be0fe2d39744: /app:company_home/app:dictionary/app:transfers/app:temp at org.alfresco.repo.transfer.RepoTransferReceiverImpl.getTempFolder(RepoTransferReceiverImpl.java:371) at org.alfresco.repo.transfer.RepoTransferReceiverImpl$1.execute(RepoTransferReceiverImpl.java:465) at org.alfresco.repo.transfer.RepoTransferReceiverImpl$1.execute(RepoTransferReceiverImpl.java:460) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452) at org.alfresco.repo.transfer.RepoTransferReceiverImpl.start(RepoTransferReceiverImpl.java:458) at org.alfresco.repo.web.scripts.transfer.BeginTransferCommandProcessor.process(BeginTransferCommandProcessor.java:117) at org.alfresco.repo.web.scripts.transfer.TransferWebScript.processCommand(TransferWebScript.java:98) at org.alfresco.repo.web.scripts.transfer.TransferWebScript.execute(TransferWebScript.java:69) at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:429) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:491) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:529) at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:341) 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:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 12:13:13,266 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] releasing lock - we never created the transfer id 12:13:13,266 DEBUG [org.alfresco.repo.transfer.RepoTransferReceiverImpl] transfer service about to releaseLock : {http://www.alfresco.org/model/transfer/1.0}transfer.server.default [/php] Muchas gracias!
Al final he encontrado un fallo tonto jeje porque he escrito mal la dirección de url:[php] <share-url repositoryId="xxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"> http://mv1/share/</share-url>[/php] en el archivo "share-config.xml" de la mv2, la he modificado y se conecta perfecto