<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Lifreay Document Library Table Replication</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117909906" />
  <subtitle>Lifreay Document Library Table Replication</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117909906</id>
  <updated>2026-04-03T20:54:59Z</updated>
  <dc:date>2026-04-03T20:54:59Z</dc:date>
  <entry>
    <title>RE: Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117936319" />
    <author>
      <name>Kevin Matthews</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117936319</id>
    <updated>2019-11-29T21:48:37Z</updated>
    <published>2019-11-29T21:48:37Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Kevin Matthews:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;David H Nebinger:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;Kevin Matthews:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;So for liferay, in addition to not modify liferay tables, replicate specific tables is not good as well. If i am unable to recover from the error when I replicate the entire DB then it seems I would need to do re-install of the portal?&lt;br /&gt;&lt;/blockquote&gt;So I would first discard the replica; I think it&amp;#39;s already in a bad state. Replace it by replicating the main system (db, filesystem, etc) and test and verify.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t think &amp;#34;re install&amp;#34; is really going to be required here; your primary instance is [seems to be] functional, it is just the replica that is causing problems. Getting the replica right should be the key to it being functional too.&lt;br /&gt;&lt;br /&gt;Backup/restore is a pet peeve of Olaf, with good reason. All to often we hear folks saying they take backups, but if the restore process hasn&amp;#39;t been tested, there is no guarantee that the backup itself has any real value. Just backing stuff up to check off a devops checklist is not enough, the restore process needs to be tested to prove that you can restore in the face of a disaster.&lt;/blockquote&gt;&lt;br /&gt;Hi David, when you say file system do you mean the replacing the data/document_library file system or the entire liferay root folder? I have the system configure 3 ways dbstore,local store and advance file system store. With my advance file system store i have file replication on to a NAS storage. I am still awaiting the lportal db.&lt;/blockquote&gt;&lt;br /&gt;Hi David, I copy the database and I able to see the artifacts in the document portlet=. Thanks for your advise.</summary>
    <dc:creator>Kevin Matthews</dc:creator>
    <dc:date>2019-11-29T21:48:37Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117930369" />
    <author>
      <name>Kevin Matthews</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117930369</id>
    <updated>2019-11-29T14:49:15Z</updated>
    <published>2019-11-29T14:49:15Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;David H Nebinger:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;Kevin Matthews:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;So for liferay, in addition to not modify liferay tables, replicate specific tables is not good as well. If i am unable to recover from the error when I replicate the entire DB then it seems I would need to do re-install of the portal?&lt;br /&gt;&lt;/blockquote&gt;So I would first discard the replica; I think it&amp;#39;s already in a bad state. Replace it by replicating the main system (db, filesystem, etc) and test and verify.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t think &amp;#34;re install&amp;#34; is really going to be required here; your primary instance is [seems to be] functional, it is just the replica that is causing problems. Getting the replica right should be the key to it being functional too.&lt;br /&gt;&lt;br /&gt;Backup/restore is a pet peeve of Olaf, with good reason. All to often we hear folks saying they take backups, but if the restore process hasn&amp;#39;t been tested, there is no guarantee that the backup itself has any real value. Just backing stuff up to check off a devops checklist is not enough, the restore process needs to be tested to prove that you can restore in the face of a disaster.&lt;/blockquote&gt;&lt;br /&gt;Hi David, when you say file system do you mean the replacing the data/document_library file system or the entire liferay root folder? I have the system configure 3 ways dbstore,local store and advance file system store. With my advance file system store i have file replication on to a NAS storage. I am still awaiting the lportal db.</summary>
    <dc:creator>Kevin Matthews</dc:creator>
    <dc:date>2019-11-29T14:49:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117914824" />
    <author>
      <name>Kevin Matthews</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117914824</id>
    <updated>2019-11-27T18:52:00Z</updated>
    <published>2019-11-27T18:52:00Z</published>
    <summary type="html">&amp;lt;p&amp;gt;OK I will proceed&amp;amp;nbsp;to replace the DB and filesystem from primary to target and see what results..&amp;lt;/p&amp;gt;</summary>
    <dc:creator>Kevin Matthews</dc:creator>
    <dc:date>2019-11-27T18:52:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117914489" />
    <author>
      <name>Kevin Matthews</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117914489</id>
    <updated>2019-11-27T18:49:45Z</updated>
    <published>2019-11-27T18:49:45Z</published>
    <summary type="html">Thanks for the recommendation Olaf. noted. Happy Thanksgiving &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;div class="quote-title"&gt;Olaf Kock:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;Kevin Matthews:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Thanks Olaf. So for liferay, in addition to not modify liferay tables, replicate specific tables is not good as well. If i am unable to recover from the error when I replicate the entire DB then it seems I would need to do re-install of the portal?&lt;br /&gt;&lt;/blockquote&gt;I&amp;#39;m quite pragmatic with this: If you&amp;#39;re unable to restore, I won&amp;#39;t allow you to state that you have had a backup. Because (according to my principles) you&amp;#39;re only allowed to call something a Backup if you have recently demonstrated that you are able to use this set of data to set up a completely new virgin system. &lt;br /&gt;So: If you don&amp;#39;t want to do a re-installation of your portal: Have a Backup ready and make sure it fits the criteria given. No matter if you recover live, this moment, or with the detour through cloud, tape or disk.&lt;br /&gt;And yes: A partial copy of the database hardly counts as backup.&lt;/blockquote&gt;</summary>
    <dc:creator>Kevin Matthews</dc:creator>
    <dc:date>2019-11-27T18:49:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117912564" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117912564</id>
    <updated>2019-11-27T16:59:00Z</updated>
    <published>2019-11-27T16:59:00Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Kevin Matthews:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;So for liferay, in addition to not modify liferay tables, replicate specific tables is not good as well. If i am unable to recover from the error when I replicate the entire DB then it seems I would need to do re-install of the portal?&lt;br /&gt;&lt;/blockquote&gt;So I would first discard the replica; I think it&amp;#39;s already in a bad state. Replace it by replicating the main system (db, filesystem, etc) and test and verify.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t think &amp;#34;re install&amp;#34; is really going to be required here; your primary instance is [seems to be] functional, it is just the replica that is causing problems. Getting the replica right should be the key to it being functional too.&lt;br /&gt;&lt;br /&gt;Backup/restore is a pet peeve of Olaf, with good reason. All to often we hear folks saying they take backups, but if the restore process hasn&amp;#39;t been tested, there is no guarantee that the backup itself has any real value. Just backing stuff up to check off a devops checklist is not enough, the restore process needs to be tested to prove that you can restore in the face of a disaster.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-11-27T16:59:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117914029" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117914029</id>
    <updated>2019-11-27T16:34:01Z</updated>
    <published>2019-11-27T16:34:01Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Kevin Matthews:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Thanks Olaf. So for liferay, in addition to not modify liferay tables, replicate specific tables is not good as well. If i am unable to recover from the error when I replicate the entire DB then it seems I would need to do re-install of the portal?&lt;br /&gt;&lt;/blockquote&gt;I&amp;#39;m quite pragmatic with this: If you&amp;#39;re unable to restore, I won&amp;#39;t allow you to state that you have had a backup. Because (according to my principles) you&amp;#39;re only allowed to call something a Backup if you have recently demonstrated that you are able to use this set of data to set up a completely new virgin system. &lt;br /&gt;So: If you don&amp;#39;t want to do a re-installation of your portal: Have a Backup ready and make sure it fits the criteria given. No matter if you recover live, this moment, or with the detour through cloud, tape or disk.&lt;br /&gt;And yes: A partial copy of the database hardly counts as backup.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-11-27T16:34:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117913633" />
    <author>
      <name>Kevin Matthews</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117913633</id>
    <updated>2019-11-27T15:55:17Z</updated>
    <published>2019-11-27T15:55:17Z</published>
    <summary type="html">Thanks Olaf. So for liferay, in addition to not modify liferay tables, replicate specific tables is not good as well. If i am unable to recover from the error when I replicate the entire DB then it seems I would need to do re-install of the portal?&lt;br /&gt;&lt;div class="quote-title"&gt;Olaf Kock:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;Kevin Matthews:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;How would I be able to fix this error? Do I need to re-install the liferay portal? Or just replicating the entire DB would fix it?&lt;br /&gt;&lt;/blockquote&gt;You&amp;#39;d best fix it by starting without breaking the database in the first place, just as David says: Don&amp;#39;t pick and choose, replicate everything. Note that this might include database, filesystem (document library, deployed plugins etc), search index.&lt;/blockquote&gt;</summary>
    <dc:creator>Kevin Matthews</dc:creator>
    <dc:date>2019-11-27T15:55:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117910946" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117910946</id>
    <updated>2019-11-27T15:39:37Z</updated>
    <published>2019-11-27T15:39:37Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Kevin Matthews:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;How would I be able to fix this error? Do I need to re-install the liferay portal? Or just replicating the entire DB would fix it?&lt;br /&gt;&lt;/blockquote&gt;You&amp;#39;d best fix it by starting without breaking the database in the first place, just as David says: Don&amp;#39;t pick and choose, replicate everything. Note that this might include database, filesystem (document library, deployed plugins etc), search index.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-11-27T15:39:37Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117910599" />
    <author>
      <name>Kevin Matthews</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117910599</id>
    <updated>2019-11-27T15:23:57Z</updated>
    <published>2019-11-27T15:23:57Z</published>
    <summary type="html">How would I be able to fix this error? Do I need to re-install the liferay portal? Or just replicating the entire DB would fix it?&lt;div class="quote-title"&gt;David H Nebinger:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Do not &amp;#34;pick and choose&amp;#34; what to replicate; replicate the entire Liferay database. A single doc lib file touches on many different internal systems including the asset framework, doc lib, resource permissions, etc. Trying to cherry pick will end up just giving you a broken replicated environment, as evidenced by what you&amp;#39;ve already seen.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Additionally, if you are using a non-JDBC store, you have to replicate the filesystem as well to ensure the actual artifacts are available on the target system.&lt;/blockquote&gt;</summary>
    <dc:creator>Kevin Matthews</dc:creator>
    <dc:date>2019-11-27T15:23:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117910263" />
    <author>
      <name>Kevin Matthews</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117910263</id>
    <updated>2019-11-27T15:11:42Z</updated>
    <published>2019-11-27T15:11:42Z</published>
    <summary type="html">Thanks David. Happy Thanksgiving &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;</summary>
    <dc:creator>Kevin Matthews</dc:creator>
    <dc:date>2019-11-27T15:11:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117911518" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117911518</id>
    <updated>2019-11-27T15:09:10Z</updated>
    <published>2019-11-27T15:09:10Z</published>
    <summary type="html">Do not &amp;#34;pick and choose&amp;#34; what to replicate; replicate the entire Liferay database. A single doc lib file touches on many different internal systems including the asset framework, doc lib, resource permissions, etc. Trying to cherry pick will end up just giving you a broken replicated environment, as evidenced by what you&amp;#39;ve already seen.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Additionally, if you are using a non-JDBC store, you have to replicate the filesystem as well to ensure the actual artifacts are available on the target system.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-11-27T15:09:10Z</dc:date>
  </entry>
  <entry>
    <title>Lifreay Document Library Table Replication</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117909905" />
    <author>
      <name>Kevin Matthews</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117909905</id>
    <updated>2019-11-27T15:04:43Z</updated>
    <published>2019-11-27T15:04:43Z</published>
    <summary type="html">Hello, has anyone done any DB replication on the document library tables for Liferay 7? This is usually a standard requirement to provide replication to another data center just in case of emergency.&lt;br /&gt; If you have done replication what tables did you replicate and is there a detail procedure replicating tables in Liferay? I notice when I replicated the document library tables dlcontent,dlfileentry,dlfilerank,dlfileshortcut,dlfileversion,dlfolder when I click on the document portlet link there no doucment list and I get an error in the logs:Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_web_portlet_DLAdminPortlet&amp;amp;p_p_lifecycle=0&amp;amp;p_p_state=maximized generates exception: java.lang.IllegalArgumentException: Someone may be trying to circumvent the permission checker: {companyId=20116, name=com.liferay.document.library.kernel.model.DLFileEntry, primKey=73054, scope=4}&lt;br /&gt;com.liferay.portal.kernel.exception.NoSuchResourcePermissionException: {companyId=20116, name=com.liferay.document.library.kernel.model.DLFileEntry, primKey=73054, scope=4}</summary>
    <dc:creator>Kevin Matthews</dc:creator>
    <dc:date>2019-11-27T15:04:43Z</dc:date>
  </entry>
</feed>
