Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Dolibarr
  3. Error - Task 4943 crashed with unknown code 1 on restore

Error - Task 4943 crashed with unknown code 1 on restore

Scheduled Pinned Locked Moved Dolibarr
2 Posts 2 Posters 47 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    M
    Matth33
    wrote last edited by Matth33
    #1

    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 OFF
    

    go 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 ON
    

    maybe 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.

    1 Reply Last reply
    2
    • nebulonN
      nebulonN
      nebulon
      Staff
      wrote last edited by
      #2

      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

      1 Reply Last reply
      1

      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
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search