<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error - Task 4943 crashed with unknown code 1 on restore]]></title><description><![CDATA[<p dir="auto">Yo</p>
<p dir="auto">Had a stroke when failing to resto Doli with this error : Error - Task 4943 crashed with unknown code 1</p>
<p dir="auto">It's a SQL constraint that fail. If you search for it in SQL logs in the server you'll probably find this :</p>
<pre><code>ERROR 6125 (HY000): Failed to add the foreign key constraint.
Missing unique key for constraint 'fk_b4d_bank_reconciliation'
in the referenced table 'dolibarr_c_banking4dolibarr_bank_account'
</code></pre>
<p dir="auto">Had to go SSH my cloudron then :</p>
<pre><code># shell
sudo docker exec -it mysql /bin/bash -c 'MYSQL_PWD="$CLOUDRON_MYSQL_ROOT_PASSWORD" mysql -u root'

# then once connected in mysql :
SELECT CURRENT_USER();
SET GLOBAL restrict_fk_on_non_standard_key = OFF;
SHOW GLOBAL VARIABLES LIKE 'restrict_fk_on_non_standard_key';
# should return OFF
</code></pre>
<p dir="auto">go back to cloudron UI and restore, then everything go smoothly.</p>
<p dir="auto">After that go back to your mysql then put constraint on again :</p>
<pre><code>SET GLOBAL restrict_fk_on_non_standard_key = ON;
SHOW GLOBAL VARIABLES LIKE 'restrict_fk_on_non_standard_key';
# should return ON
</code></pre>
<p dir="auto">maybe it'll help someone one day...!</p>
<p dir="auto"><a class="plugin-mentions-group plugin-mentions-a" href="/groups/staff" aria-label="Profile: staff">@<bdi>staff</bdi></a> could probably do something during the restore process ? It's common to have those error in dolibarr.</p>
<p dir="auto">PS : note that the error comes from the external module Banking4Dolibarr, not dolibarr himself.</p>
]]></description><link>https://forum.cloudron.io/topic/16032/error-task-4943-crashed-with-unknown-code-1-on-restore</link><generator>RSS for Node</generator><lastBuildDate>Mon, 05 Oct 2026 08:23:24 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/16032.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Sep 2026 17:15:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error - Task 4943 crashed with unknown code 1 on restore on Thu, 01 Oct 2026 16:11:30 GMT]]></title><description><![CDATA[<p dir="auto">That seems a bit rough to disable those checks just to import the dump. Doesn't this hint at a data inconsistency? But I am not familiar with what non standard keys are in mysql</p>
]]></description><link>https://forum.cloudron.io/post/130318</link><guid isPermaLink="true">https://forum.cloudron.io/post/130318</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 01 Oct 2026 16:11:30 GMT</pubDate></item></channel></rss>