cancel
Showing results for 
Search instead for 
Did you mean: 

replication job between two alfresco

_jan
Champ on-the-rise
Champ on-the-rise
Hi,

I am trying replications from one alfresco to another running on different devices.(community edition)

On both i set replication.enabled=true in alfresco-global.properties

Settings on device A:

in Repository>Data Dictionary>Transfers>Transfer Target Groups>Default Group i make new folder named "Mirror" and change type to File Transfer Target and set:

Endpoint Host:
192.168.12.51
Endpoint Port:
8080
Endpoint Path:
/alfresco/service/api/transfer
Endpoint Protocol:
http
Username:
admin
Password:
admin
checkbox: Enabled
Set root folder:
ABC

Then i set new Replication Job:

Source Items:
ABC
Transfer to:
"Mirror"
Other Options:
Enabled

Settings on device B:

in \tomcat\shared\classes\alfresco\web-extension\share-config-custom.xml


<share-url repositoryId="c57819f1-2c66-4113-98fe-f4276c488cc7">http://192.168.12.50:8080/share/</share-url>

After i run replication Job on device A:


<?xml version="1.0" encoding="UTF-8"?>
<report:transferReport xmlns:report="http://www.alfresco.org/model/transferReport/2.0">
<report:target name="Transfer_" endpointHost="192.168.12.51" endpointPort="135"></report:target>
<report:definition isReadOnly="false" isSync="true" numberOfNodes="13"></report:definition>
<report:exception type="org.alfresco.service.cmr.transfer.TransferException" message="01240017 Failed to execute HTTP request begin to target: TransferTarget: Transfer_,host:192.168.12.51,port:135 status: java.net.ConnectException: Connection timed out: connect">
</report:exception> <report:events> <report:eventStartState date="2015-02-24T13:50:23.585+01:00" state="START">
Enter State: START</report:eventStartState>
<report:eventError date="2015-02-24T13:51:47.823+01:00">
01240017 Failed to execute HTTP request begin to target: TransferTarget: Transfer_,host:192.168.12.51,port:135 status: java.net.ConnectException: Connection timed out: connect
</report:eventError> </report:events> </report:transferReport>


But if i try send to FTR (File trnasfer receiver (jar file running)) running on device B (same settings only port change to 9090) job run without error.
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
you appear to be failing to connect to port 135 rather than 8080.   It should be 8080.

_jan
Champ on-the-rise
Champ on-the-rise
I didnt set anything to port 135. I see now what you are pointing on, in that error message, but I only followed this tutorial http://xebee.xebia.in/index.php/2014/09/13/alfresco-live-replication-between-two-or-more-live-nodes/ and I dont remember that I set anything to this port.

juraj
Champ in-the-making
Champ in-the-making
Sorry for my collegue i give him wrong error message, but this error was due to Windows firewall, which block port 8080, thanks for quick replay.