<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [SOLVED] Can't make replication service work in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261766#M214896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi. I'm trying to replicate one Alfresco Community 4.0d installation from one site to another, but I'm having problems configuring it (and finding documentation).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Both sites have only the default content, except the source node which contains a test site too (it should be replicated on the other).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Added "replication.enabled=true" in &lt;/SPAN&gt;&lt;STRONG&gt;alfresco-global.properties&lt;/STRONG&gt;&lt;SPAN&gt; (both alfresco instances)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Defined a "primaryStore" pointing to &lt;/SPAN&gt;&lt;STRONG&gt;/app/alfresco-4.0.d/alf_data/contentstore&lt;/STRONG&gt;&lt;SPAN&gt; in &lt;/SPAN&gt;&lt;STRONG&gt;replicating-content-services-context.xml&lt;/STRONG&gt;&lt;SPAN&gt; (source node only)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Added share url in the source alfresco with those contents in &lt;/SPAN&gt;&lt;STRONG&gt;share-config-custom.xml&lt;/STRONG&gt;&lt;SPAN&gt;: (source node only)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;config evaluator="string-compare" condition="Replication"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;share-url repositoryId="remote_alfresco_ID_obtained_from_CMIS_info"&amp;gt;&lt;A href="http://remote_target_alfresco/share/" rel="nofollow noopener noreferrer"&gt;http://remote_target_alfresco/share/&lt;/A&gt;&amp;lt;/share-url&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;- Created new folder under Repository / Data Dictionary / Transfers / Transfer Targets / Default group, pointing to the target alfresco (source node only)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Created a new replicating job In Admin Tools / Replication Jobs, targeting the previous folder (source node only)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I click on 'Run Job', I got this exception on the target node:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;2012-04-23 09:59:39,844&amp;nbsp; ERROR [repo.transaction.AlfrescoTransactionSupport] [defaultAsyncAction1] After completion (rolled-back) listener exception:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; listener: org.alfresco.repo.transfer.TransferCommitTransactionListener@12731ffa&lt;BR /&gt; java.lang.NullPointerException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.content.replication.ReplicatingContentStore$ReplicatingWriteListener$ReplicateOnCloseRunnable.run(ReplicatingContentStore.java:437)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.content.replication.ReplicatingContentStore$ReplicatingWriteListener.contentStreamClosedImpl(ReplicatingContentStore.java:420)&lt;BR /&gt;…&lt;BR /&gt;…&lt;BR /&gt;2012-04-23 09:59:39,849&amp;nbsp; ERROR [content.cleanup.EagerContentStoreCleaner] [defaultAsyncAction1] Content deletion failed:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; URL:&amp;nbsp;&amp;nbsp;&amp;nbsp; store://2012/4/23/9/59/32128378-02b2-40e6-889b-0c66f91b4bf9.bin&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Source: org.alfresco.repo.content.replication.ReplicatingContentStore@399e2cb3&lt;BR /&gt; java.lang.NullPointerException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.content.replication.ReplicatingContentStore.delete(ReplicatingContentStore.java:344)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.content.cleanup.EagerContentStoreCleaner.deleteFromStore(EagerContentStoreCleaner.java:306)&lt;BR /&gt;…&lt;BR /&gt;…&lt;BR /&gt;2012-04-23 09:59:40,051&amp;nbsp; ERROR [repo.action.AsynchronousActionExecutionQueueImpl] [defaultAsyncAction1] Failed to execute asynchronous action: Action[ id=ee84bb62-6d7a-4715-b87a-757f77dc0b9d, node=null ]&lt;BR /&gt; org.alfresco.repo.transfer.TransferFatalException: 03230004 An error has occurred while trying to commit transfer {0}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.transfer.AbstractManifestProcessorBase.handleException(AbstractManifestProcessorBase.java:224)&lt;BR /&gt;…&lt;BR /&gt;Caused by: java.lang.NullPointerException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.content.replication.ReplicatingContentStore$ReplicatingWriteListener$ReplicateOnCloseRunnable.run(ReplicatingContentStore.java:437)&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I couldn't find any doc. or example about configuring it from the start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anybody help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2012 08:05:55 GMT</pubDate>
    <dc:creator>fr3dy</dc:creator>
    <dc:date>2012-04-23T08:05:55Z</dc:date>
    <item>
      <title>[SOLVED] Can't make replication service work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261766#M214896</link>
      <description>Hi. I'm trying to replicate one Alfresco Community 4.0d installation from one site to another, but I'm having problems configuring it (and finding documentation).Both sites have only the default content, except the source node which contains a test site too (it should be replicated on the other).I d</description>
      <pubDate>Mon, 23 Apr 2012 08:05:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261766#M214896</guid>
      <dc:creator>fr3dy</dc:creator>
      <dc:date>2012-04-23T08:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED] Can't make replication service work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261767#M214897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;based on your log output you have configured a replicating content store on the target node as well (your list specifically states this as "source node" only). Please be aware that for content replication between Alfresco instances you do not need any replicating content store. The replicating content store is only relevant for distributing content of one instance on several backend storage systems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please adapt your configuration and try again without the replicating stores. When content replication works in general, you should investigate the error from the replicating content store which I assume is caused by something else in your configuration / setup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 09:41:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261767#M214897</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-04-23T09:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED] Can't make replication service work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261768#M214898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've renamed the file &lt;/SPAN&gt;&lt;STRONG&gt;replicating-content-services-context.xml&lt;/STRONG&gt;&lt;SPAN&gt; to disable it on both nodes (you were right, I enabled it on both instances).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After restarting services…. IT WORKS! I'm gonna make some tests now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, is it possible to configure Active-Passive nodes by using replication? I mean, enable transfer from instance 1–&amp;gt;2 and, if instance 1 fails, activate 2–&amp;gt;1 (automatized if possible).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 10:15:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261768#M214898</guid>
      <dc:creator>fr3dy</dc:creator>
      <dc:date>2012-04-23T10:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED] Can't make replication service work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261769#M214899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;technically, something like this would be possible with implementation, but there could be a variety of complications. For one, the version history and versionable policy is only stored on the originating node (say "1") and not transferred to the replication target. The replicated node on "2" is not versionable by default and even if you enabled versioning for it, you would end up with two distinct histories if you reverse the replication direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 10:48:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261769#M214899</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-04-23T10:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED] Can't make replication service work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261770#M214900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;technically, something like this would be possible with implementation, but there could be a variety of complications. For one, the version history and versionable policy is only stored on the originating node (say "1") and not transferred to the replication target. The replicated node on "2" is not versionable by default and even if you enabled versioning for it, you would end up with two distinct histories if you reverse the replication direction.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Axel&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, what are the chances of using a replicated instance as primary one? Should I do something like this?:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Replicate from alf1 to alf2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) If alf1 fails, use alf2 (read-only) while fixing/restoring alf1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Once restored, enable alf1 again and continue from step 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess enabling read-write on alf2 is not a good idea, since it should always be a mirror of the main node (alf1). Could you confirm this and the above?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 11:10:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261770#M214900</guid>
      <dc:creator>fr3dy</dc:creator>
      <dc:date>2012-04-23T11:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED] Can't make replication service work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261771#M214901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for the most common scenario of a temporary downtime of alf1 I would advise to follow the points you've listed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Switching the "primary node" in a replication context should only be used if it fulfills a business use case - not for purely technical reasons. It should at all times be clear which node stores the master and what nodes only manage the mirror nodes - including the additional data that accompanies the master. So as long as you do not have the functionality in place that transfers this additional data, the node on alf2 can and should only ever be a mirror.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 11:32:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261771#M214901</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-04-23T11:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED] Can't make replication service work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261772#M214902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;for the most common scenario of a temporary downtime of alf1 I would advise to follow the points you've listed.&lt;BR /&gt;Switching the "primary node" in a replication context should only be used if it fulfills a business use case - not for purely technical reasons. It should at all times be clear which node stores the master and what nodes only manage the mirror nodes - including the additional data that accompanies the master. So as long as you do not have the functionality in place that transfers this additional data, the node on alf2 can and should only ever be a mirror.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Axel&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll do that then. Thanks!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 11:38:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-can-t-make-replication-service-work/m-p/261772#M214902</guid>
      <dc:creator>fr3dy</dc:creator>
      <dc:date>2012-04-23T11:38:10Z</dc:date>
    </item>
  </channel>
</rss>

