Error - Task 4943 crashed with unknown code 1 on restore
-
Yo
Had a stroke when failing to resto Doli with this error : Error - Task 4943 crashed with unknown code 1
It's a SQL constraint that fail. If you search for it in SQL logs in the server you'll probably find this :
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'Had to go SSH my cloudron then :
# 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 OFFgo back to cloudron UI and restore, then everything go smoothly.
After that go back to your mysql then put constraint on again :
SET GLOBAL restrict_fk_on_non_standard_key = ON; SHOW GLOBAL VARIABLES LIKE 'restrict_fk_on_non_standard_key'; # should return ONmaybe it'll help someone one day...!
@staff could probably do something during the restore process ? It's common to have those error in dolibarr.
PS : note that the error comes from the external module Banking4Dolibarr, not dolibarr himself.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login