<?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 Failed to purge nodes @ 21.00 with mysql in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265831#M218961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have seen this error with 2 clients, one is running 3.4.d, the other 4.0.c.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;21:00:07,073 ERROR [org.alfresco.repo.node.db.DeletedNodeCleanupWorker] Failed to purge nodes.&amp;nbsp; If the purgable set is too large for the available DB resources &lt;BR /&gt;&amp;nbsp; then the nodes can be purged manually as well. &lt;BR /&gt;&amp;nbsp; Set log level to WARN for this class to get exception log: &lt;BR /&gt;&amp;nbsp;&amp;nbsp; Max commit time: 1319745600050&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Error:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;### Error updating database.&amp;nbsp; Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`alfresco`.`alf_node_aspects`, CONSTRAINT `fk_alf_nasp_n` FOREIGN KEY (`node_id`) REFERENCES `alf_node` (`id`))&lt;BR /&gt;### The error may involve alfresco.node.delete_NodesByTxnCommitTime-Inline&lt;BR /&gt;### The error occurred while setting parameters&lt;BR /&gt;### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`alfresco`.`alf_node_aspects`, CONSTRAINT `fk_alf_nasp_n` FOREIGN KEY (`node_id`) REFERENCES `alf_node` (`id`))&lt;BR /&gt;; SQL []; Cannot delete or update a parent row: a foreign key constraint fails (`alfresco`.`alf_node_aspects`, CONSTRAINT `fk_alf_nasp_n` FOREIGN KEY (`node_id`) REFERENCES `alf_node` (`id`)); nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`alfresco`.`alf_node_aspects`, CONSTRAINT `fk_alf_nasp_n` FOREIGN KEY (`node_id`) REFERENCES `alf_node` (`id`))&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;The version of mysql in this case is 5.1.52.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone knows what could cause this error? I have tuned my.cnf to increase resources/memory for mysql, but maybe there is a specific setting that could help in this case as it complains about resources.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The job that runs at 21 is nodeServiceCleanupJobDetail, but what does it do and what effects will it have when it fails? I haven't got any reports of any effects from this, but it may pop up later.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2011 10:34:38 GMT</pubDate>
    <dc:creator>loftux</dc:creator>
    <dc:date>2011-11-30T10:34:38Z</dc:date>
    <item>
      <title>Failed to purge nodes @ 21.00 with mysql</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265831#M218961</link>
      <description>I have seen this error with 2 clients, one is running 3.4.d, the other 4.0.c.21:00:07,073 ERROR [org.alfresco.repo.node.db.DeletedNodeCleanupWorker] Failed to purge nodes.&amp;nbsp; If the purgable set is too large for the available DB resources &amp;nbsp; then the nodes can be purged manually as well. &amp;nbsp; Set log leve</description>
      <pubDate>Wed, 30 Nov 2011 10:34:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265831#M218961</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2011-11-30T10:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to purge nodes @ 21.00 with mysql</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265832#M218962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Be sure to use the InnoDB engine for the MySQL database instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2011 14:15:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265832#M218962</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2011-12-04T14:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to purge nodes @ 21.00 with mysql</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265833#M218963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I checked using this&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;SELECT table_schema, table_name, table_collation FROM INFORMATION_SCHEMA.TABLES WHERE engine = 'innodb';&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;(and the negated where clause to see that no Alfresco tables were listed).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All tables are innodb, but table_collation is a mix of utf8_general_ci, utf8_bin and latin1_swedish_ci. This while db.url=jdbc:mysql://${db.host}:${db.port}/${db.name}?useUnicode=yes&amp;amp;characterEncoding=UTF-8, so that may be the reason for this error. Next step will be to find out how to convert all tables to same collation. Will report back when I find out how, or maybe someone already has the answer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 08:35:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265833#M218963</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2011-12-05T08:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to purge nodes @ 21.00 with mysql</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265834#M218964</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;Did you found the solution for this problem? I'm experiencing the same problem when using the rendition engine on alfresco 4.0c with mysql 5.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glenn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 11:38:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265834#M218964</guid>
      <dc:creator>glaenen</dc:creator>
      <dc:date>2012-01-30T11:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to purge nodes @ 21.00 with mysql</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265835#M218965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This happens to me at the 21:00 cleanup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`alfresco`.`alf_node_properties`, CONSTRAINT `fk_alf_nprop_n` FOREIGN KEY (`node_id`) REFERENCES `alf_node` (`id`))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running the svn 22617, I do not know how to relate that to any 3.x or 4.x version.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 20:31:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265835#M218965</guid>
      <dc:creator>janmulder</dc:creator>
      <dc:date>2012-04-27T20:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to purge nodes @ 21.00 with mysql</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265836#M218966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This error aborted the 21:00 cleanup, so it was getting urgent to solve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I figured out which record had the foreign key pointing to the deleted node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I removed that record manually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the 21:00 cleanup works again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The question remains:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why was there a foreign key reference to a deleted node?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 23:05:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265836#M218966</guid>
      <dc:creator>janmulder</dc:creator>
      <dc:date>2012-05-01T23:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to purge nodes @ 21.00 with mysql</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265837#M218967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello janmuldar,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please tell me, how have you identified the right record ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also getting identical exception while cleanup work at 21:00 .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ashwini&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 08:00:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265837#M218967</guid>
      <dc:creator>ashwini</dc:creator>
      <dc:date>2012-08-02T08:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to purge nodes @ 21.00 with mysql</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265838#M218968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;janmuldar, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you provide the steps you took to locate the problem record?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds like your resolution details would help a few people!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2012 21:52:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265838#M218968</guid>
      <dc:creator>tssupremacy</dc:creator>
      <dc:date>2012-11-18T21:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to purge nodes @ 21.00 with mysql</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265839#M218969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello tssupremacy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I too resolved this issue by doing Manually removing entries from database. I followed below steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I tried to do Full Indexing, and got exception for some nodes something like below :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; ERROR [index.AbstractReindexComponent.threads] [indexTrackerThread5] Reindexer&amp;nbsp;&amp;nbsp; 345 failed with error: Possible cache integrity issue during reindexing; nested exception is org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/332f578a-c80a-4b0d-b3fb-c076bfab334f(Status[changeTxnId=a96ba91d-b42b-48f8-bf7d-c2829bc9fe69, dbTxnId=253912, deleted=true]&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Here I found uuid of the node which is in this case is &lt;/SPAN&gt;&lt;STRONG&gt; "332f578a-c80a-4b0d-b3fb-c076bfab334f"&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I checked in node browser existence of this node. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. As this node was not available , I checked entry in &lt;/SPAN&gt;&lt;STRONG&gt;alf_node&lt;/STRONG&gt;&lt;SPAN&gt; table based on UUID&amp;nbsp;&amp;nbsp; and found &lt;/SPAN&gt;&lt;STRONG&gt;id &lt;/STRONG&gt;&lt;SPAN&gt; of the respective row.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Then I deleted entry from alf_child_assoc where parent_node_id is id from alf_node&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Committed the Transaction&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thats all and Alfresco stopped throwing exception . It worked for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regard,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ashwini&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 09:55:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/failed-to-purge-nodes-21-00-with-mysql/m-p/265839#M218969</guid>
      <dc:creator>ashwini</dc:creator>
      <dc:date>2012-11-19T09:55:17Z</dc:date>
    </item>
  </channel>
</rss>

