cancel
Showing results for 
Search instead for 
Did you mean: 

replication not working from one side

sharifu
Confirmed Champ
Confirmed Champ
I have two servers, A and B. from server B -> A it replicates fine. From  A -> B it does not. I get the following error



2013-07-31 08:23:44,415  ERROR [repo.transfer.HttpClientTransmitterImpl] [defaultAsyncAction7] Received "unsuccessful" response code from target server: 500
2013-07-31 08:23:44,527  ERROR [repo.action.AsynchronousActionExecutionQueueImpl] [defaultAsyncAction7] Failed to execute asynchronous action: Action[ id=f035f446-641c-4b82-a929-665deeaa022d, node=workspace://SpacesStore/f035f446-641c-4b82-a929-665deeaa022d ]: 06314107 Unable to start a transfer
org.alfresco.service.cmr.replication.ReplicationServiceException: 06314109 Error executing transfer - 06314107 Unable to start a transfer
   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: 06314107 Unable to start a transfer
   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

18 REPLIES 18

eswbitto
Confirmed Champ
Confirmed Champ
Probably a little more detail in your setup is needed 😕

sharifu
Confirmed Champ
Confirmed Champ
centos 5 64bit. alfresco 4.2.c mysql 5. both servers have same. setup.

eswbitto
Confirmed Champ
Confirmed Champ
Are you replicating using alfresco or a 3rd party software piece? I would probably think if you are using the replication in alfresco that maybe your are replicating at the same time? If that is the case then I would setup different times and see if that fixes the issue.

sharifu
Confirmed Champ
Confirmed Champ
I have tried that it does not work. Disabled all replication jobs from server B. I will try a fresh install of server A and move contentstore to this installation and see if it works.

mrogers
Star Contributor
Star Contributor
What's in the transfer logs?   The exception posted above seems to have been truncated at the critical point.   Is there any more information?

Also you need to post details of how you have configured transfer.    If both servers really do have the same setup then B will fail since its sending to itself.   At minimum B needs to send to A.

Also are you trsnsferring the same set of nodes in both directions or is it different sets of nodes?

sharifu
Confirmed Champ
Confirmed Champ
I have just done a fresh install and moved the repository over onto centos 6.4 final 64bit os. kept everything same. B -> A work but A-> B does not. i am replicated different nodes and have created the test folder jus tto replicate which does not work. he error message is from catalina.out


2013-08-01 06:21:33,682  INFO  [web.site.EditionInterceptor] [http-apr-8080-exec-9] Successfully retrieved license information from Alfresco.
2013-08-01 06:21:39,163  INFO  [web.scripts.ImapServerStatus] [http-apr-8080-exec-10] Successfully retrieved IMAP server status from Alfresco: disabled
2013-08-01 06:22:32,155  ERROR [repo.transfer.HttpClientTransmitterImpl] [defaultAsyncAction3] Received "unsuccessful" response code from target server: 500
2013-08-01 06:22:32,368  ERROR [repo.action.AsynchronousActionExecutionQueueImpl] [defaultAsyncAction3] Failed to execute asynchronous action: Action[ id=9f147a5c-a355-4fed-b361-b971a16465f6, node=workspace://SpacesStore/9f147a5c-a355-4fed-b361-b971a16465f6 ]: 07010044 Unable to start a transfer
org.alfresco.service.cmr.replication.ReplicationServiceException: 07010046 Error executing transfer - 07010044 Unable to start a transfer
   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: 07010044 Unable to start a transfer
   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


I have set up configured repository id of server A into the share-config-custom file of server B and vice versa.

In the transfer log is


<?xml version="1.0" encoding="UTF-8"?>
<report:transferReport xmlns:report="http://www.alfresco.org/model/transferReport/2.0">
   <report:target name="USAtoUK" endpointHost="hector.uk.domain.com" endpointPort="8080"></report:target>
   <report:definition isReadOnly="true" isSync="true" numberOfNodes="5668"></report:definition>
   <report:exception type="org.alfresco.service.cmr.transfer.TransferException" message="07010044 Unable to start a transfer"></report:exception>
   <report:events>
      <report:eventStartState date="2013-08-01T06:22:13.185-05:00" state="START">Enter State: START</report:eventStartState>
      <report:eventError date="2013-08-01T06:22:32.157-05:00">07010044 Unable to start a transfer</report:eventError>
   </report:events>
</report:transferReport>


server B

<config evaluator="string-compare" condition="Replication">
      <share-urls>
         <share-url repositoryId="4ec66fe2-c0d7-469d-a4dc-399dde56683a">http://hector.uk.domain.com:8080/share/</share-url>
      </share-urls>
   </config>


server A

<config evaluator="string-compare" condition="Replication">
      <share-urls>

            <share-url repositoryId="1b76e86b-1d37-43cf-bf5b-944db18fe18c">http://tanaga.usa.domain.com:8080/share/</share-url>

      </share-urls>
   </config>

sharifu
Confirmed Champ
Confirmed Champ
server A is centos 6.4 and server B is centos 5.5. could this be an issue?

mrogers
Star Contributor
Star Contributor
Its unlikely that the OS will make any difference.

Its far more likely to be a firewall or other other such infrastructure.   The error says that server B is having problems starting the transger.  Is there anything on server b that gives a clue to the problem.   For example are there any errors in the logs, error's in B's transfer reports.  Or is B read only?

There are no errors appear on server B when replication fails from server A