cancel
Showing results for 
Search instead for 
Did you mean: 

replication configuration service in alfresco 4.0 share

sradha
Champ on-the-rise
Champ on-the-rise
Hi,

I want to replicate the folder/content between two alfresco instances running in two different machines.Can anyone guide me how to configure replication service in share?
13 REPLIES 13

bisana
Champ on-the-rise
Champ on-the-rise
By replication, did u mean that you want the same state in two machine, if so I think it is possible, I have not done it,since there was no requirement
You can 'replicate' by
    taking the backup of the database from the first server  and restoring it on the secound server
    Take the back of the alfresco installtion directory from the first and  restore it in the secdound server
    Later on u can write a script to make the DB and the files to be synchronised on some time interval which u decide
If my posting is usefull please rate me

sradha
Champ on-the-rise
Champ on-the-rise
Hi,

Can you please mention the steps elaborately with some example?


Regards,

Sradha

bisana
Champ on-the-rise
Champ on-the-rise
DB backup, you can use mysqldump if u are using mysql
file copying simple 'scp' or 'rsysn' will do, there are tons of how to do in the net

sradha
Champ on-the-rise
Champ on-the-rise
Hi,

I want to configure relication job  without doing any coding.I want to create external transfergruop  for relpication bewwen two alfresco instances having diffent repository. can you guid? I got some alticle related to this and posting below:

http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fat-admincon...
http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fadminconsol...

mrogers
Star Contributor
Star Contributor
Set up a "transfer target".
Create a replication job and select the transfer target you crated above.
On the destination system edit the share extension config to be able to map sending repaid to URL.

That's the high level.   Have you managed any of it?

sradha
Champ on-the-rise
Champ on-the-rise
Hi,
I have done both the way.
1.I have configured the target repository id and url in share-custom-config.xml.
2.I have create created a replication job using alfresco share tool.But while i tried to run the job ,I got exception as


"Result: Job cannot be run, message '10220434 Error executing transfer - 10220432 Failed to execute HTTP request begin to target: TransferTarget: Internal Target,host:internal,port:443 status: java.net.UnknownHostException: internal" is displayed. "

Then i saw an issue in Jira.Posting the link

https://issues.alfresco.com/jira/browse/ALF-11640

I have done changes as mentioned as giving host:localhost
port:8080
path: url of internal folder
user:admin
password:admin

But got exception as

08271450 Failed to execute HTTP request begin to target: TransferTarget: Internal Target,host:localhost,port:8080 status: org.json.JSONException: A JSONObject text must begin with '{' at character 5


Also guide me that how can I create a external target  inside default group?

mrogers
Star Contributor
Star Contributor
Simply use Share to create a folder in "Default Group".

But first you need the hostname or IP address of your remote alfresco instance and the port number to connect to by http or https.

It looks like your "host" is wrong for your target called "internal".    And is the port number of 443 correct,  alfresco is generally 8443?

You need to specify the hostname of your remote alfresco instance.    You can also specify its IP address if there is no suitable hostname.

sradha
Champ on-the-rise
Champ on-the-rise
Hi,

I am trying to edit the metadata of Internal Target as mentioned below.I am getting error as incorrect path.Can you please let me know whether i am correct or not and what will be the  Endpoint Path???


Name:Internal target

Title:Internal Target
Description:Internal Target

Endpoint Host:* DEVSERVERA

Endpoint Port:*8443


Endpoint Path:*${url.serverPath}/share/${spaces.repository.childname}/${spaces.transfer_groups.childname}

Endpoint Protocol:*http

Username: admin

Password: admin

mrogers
Star Contributor
Star Contributor
Leave endpoint path alone. The default value of /alfresco/service/api/transfer should be O.K. 

DEVSERVERA does not look like a hostname,  I'd expect it to have your domain name e.g. devservera.someco.com    

Does it resolve to an IP address?  
Don't know what O.S. you are using but does 'ping DEVSERVERA' work?