<?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 DeletedNodeCleanupWorker fails to purge deleted nodes in DB in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/deletednodecleanupworker-fails-to-purge-deleted-nodes-in-db/m-p/131835#M35562</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using Alfresco Community&amp;nbsp;-&amp;nbsp;5.2.0 (re21f2be5-b22) and I am facing some issues with deleted nodes DB purging as stated below.&lt;/P&gt;&lt;P&gt;Has anyone encountered the same issues?&lt;/P&gt;&lt;P&gt;Are there any config parameters to change in alfresco-global.properties or any manual recipe to fix this issue?&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Luis Alventosa&lt;/P&gt;&lt;PRE&gt;2021-03-27 04:49:22,821  ERROR [node.db.DeletedNodeCleanupWorker] [DefaultScheduler_Worker-10] Failed to purge nodes.
  If the purgable set is too large for the available DB resources
  then the nodes can be purged manually as well.
  Set log level to WARN for this class to get exception log:
   From commit time (ms):    1614150122119
   To commit time (ms):      1614157322119
   Error:
### Error updating database.  Cause: org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"
  Detail: Key (id)=(249915836) is still referenced from table "alf_node_properties".
### The error may involve alfresco.node.delete.delete_NodesByTxnCommitTime-Inline
### The error occurred while setting parameters
### SQL: delete from alf_node         where             type_qname_id = ? and             transaction_id &amp;lt;=             (                 select max(txn.id) from alf_transaction txn                 where                     txn.commit_time_ms &amp;gt;= ? and                     txn.commit_time_ms &amp;lt; ?             )
### Cause: org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"
  Detail: Key (id)=(249915836) is still referenced from table "alf_node_properties".
; SQL []; ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"
  Detail: Key (id)=(249915836) is still referenced from table "alf_node_properties".; nested exception is org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"
  Detail: Key (id)=(249915836) is still referenced from table "alf_node_properties".&lt;/PRE&gt;</description>
    <pubDate>Mon, 31 May 2021 23:23:27 GMT</pubDate>
    <dc:creator>luis_alventosa</dc:creator>
    <dc:date>2021-05-31T23:23:27Z</dc:date>
    <item>
      <title>DeletedNodeCleanupWorker fails to purge deleted nodes in DB</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/deletednodecleanupworker-fails-to-purge-deleted-nodes-in-db/m-p/131835#M35562</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using Alfresco Community&amp;nbsp;-&amp;nbsp;5.2.0 (re21f2be5-b22) and I am facing some issues with deleted nodes DB purging as stated below.&lt;/P&gt;&lt;P&gt;Has anyone encountered the same issues?&lt;/P&gt;&lt;P&gt;Are there any config parameters to change in alfresco-global.properties or any manual recipe to fix this issue?&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Luis Alventosa&lt;/P&gt;&lt;PRE&gt;2021-03-27 04:49:22,821  ERROR [node.db.DeletedNodeCleanupWorker] [DefaultScheduler_Worker-10] Failed to purge nodes.
  If the purgable set is too large for the available DB resources
  then the nodes can be purged manually as well.
  Set log level to WARN for this class to get exception log:
   From commit time (ms):    1614150122119
   To commit time (ms):      1614157322119
   Error:
### Error updating database.  Cause: org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"
  Detail: Key (id)=(249915836) is still referenced from table "alf_node_properties".
### The error may involve alfresco.node.delete.delete_NodesByTxnCommitTime-Inline
### The error occurred while setting parameters
### SQL: delete from alf_node         where             type_qname_id = ? and             transaction_id &amp;lt;=             (                 select max(txn.id) from alf_transaction txn                 where                     txn.commit_time_ms &amp;gt;= ? and                     txn.commit_time_ms &amp;lt; ?             )
### Cause: org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"
  Detail: Key (id)=(249915836) is still referenced from table "alf_node_properties".
; SQL []; ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"
  Detail: Key (id)=(249915836) is still referenced from table "alf_node_properties".; nested exception is org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"
  Detail: Key (id)=(249915836) is still referenced from table "alf_node_properties".&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 May 2021 23:23:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/deletednodecleanupworker-fails-to-purge-deleted-nodes-in-db/m-p/131835#M35562</guid>
      <dc:creator>luis_alventosa</dc:creator>
      <dc:date>2021-05-31T23:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: DeletedNodeCleanupWorker fails to purge deleted nodes in DB</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/deletednodecleanupworker-fails-to-purge-deleted-nodes-in-db/m-p/131836#M35563</link>
      <description>&lt;P&gt;Under a specific constellation involving concurrent deletion + cretion/change on other nodes, previous versions of Alfresco could run into issues where it tried to purge non-deleted nodes, which fails because of those foreign key constraints. This should be fixed as part of REPO-3493 for ACS 6.1. It can be worked around by manually purging deleted nodes via SQL - once all currently deleted nodes have been purged, ACS should continue normally with regular purging (at least until the specific constellation is triggered again).&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 10:24:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/deletednodecleanupworker-fails-to-purge-deleted-nodes-in-db/m-p/131836#M35563</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-06-01T10:24:59Z</dc:date>
    </item>
  </channel>
</rss>

