@JimboJoe: Yes. Sorry. You’re right.
Here are the logs:
2020-04-03 11:31:47,841: INFO - Restoring the app 'kanboard'…
2020-04-03 11:31:47,987: DEBUG - Restoring the app 'kanboard'…
2020-04-03 11:31:48,018: DEBUG - No default hook for action 'post_app_addaccess' in /usr/share/yunohost/hooks/
2020-04-03 11:31:48,019: DEBUG - No custom hook for action 'post_app_addaccess' in /etc/yunohost/hooks.d/
2020-04-03 11:31:48,019: DEBUG - Permission 'kanboard.main' created
2020-04-03 11:31:48,020: DEBUG - Full log of this operation: '<a href="#/tools/logs/20200403-093148-permission_create-kanboard" style="text-decoration:underline">Create permission 'kanboard'</a>'
2020-04-03 11:31:48,030: DEBUG - The permission database has been resynchronized
2020-04-03 11:31:48,539: DEBUG - SSOwat configuration generated
2020-04-03 11:31:48,573: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/20200402-185959/apps/kanboard/backup YNH_STDINFO=/tmp/tmpGbo69B/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/20200402-185959/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/20200402-185959 YNH_APP_INSTANCE_NAME=kanboard YNH_INTERFACE=api YNH_APP_ID=kanboard YNH_STDRETURN=/tmp/tmpBeRl_U/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/20200402-185959/apps/kanboard/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restoremqJfrp/restore" /home/yunohost.backup/tmp/20200402-185959/apps/kanboard/backup kanboard 7>&1'…
2020-04-03 11:31:48,574: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/20200402-185959/apps/kanboard/backup YNH_STDINFO=/tmp/tmpGbo69B/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/20200402-185959/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/20200402-185959 YNH_APP_INSTANCE_NAME=kanboard YNH_INTERFACE=api YNH_APP_ID=kanboard YNH_STDRETURN=/tmp/tmpBeRl_U/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/20200402-185959/apps/kanboard/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restoremqJfrp/restore" /home/yunohost.backup/tmp/20200402-185959/apps/kanboard/backup kanboard 7>&1']'
2020-04-03 11:31:48,612: DEBUG - + source ../settings/scripts/_common.sh
2020-04-03 11:31:48,620: DEBUG - ++ pkg_dependencies='php-gd php-zip php-dom php-mbstring'
2020-04-03 11:31:48,621: DEBUG - + source /usr/share/yunohost/helpers
2020-04-03 11:31:48,621: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2020-04-03 11:31:48,621: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,622: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2020-04-03 11:31:48,622: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt
2020-04-03 11:31:48,623: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,623: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2020-04-03 11:31:48,623: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup
2020-04-03 11:31:48,624: DEBUG - +++ CAN_BIND=1
2020-04-03 11:31:48,624: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,624: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2020-04-03 11:31:48,625: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban
2020-04-03 11:31:48,628: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,628: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2020-04-03 11:31:48,628: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2020-04-03 11:31:48,629: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,629: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2020-04-03 11:31:48,630: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging
2020-04-03 11:31:48,630: DEBUG - +++ increment_progression=0
2020-04-03 11:31:48,630: DEBUG - +++ previous_weight=0
2020-04-03 11:31:48,631: DEBUG - +++ max_progression=-1
2020-04-03 11:31:48,631: DEBUG - +++ progress_scale=20
2020-04-03 11:31:48,631: DEBUG - +++ progress_string2='####################'
2020-04-03 11:31:48,632: DEBUG - +++ progress_string1=++++++++++++++++++++
2020-04-03 11:31:48,632: DEBUG - +++ progress_string0=....................
2020-04-03 11:31:48,632: DEBUG - ++++ date +%s
2020-04-03 11:31:48,633: DEBUG - +++ base_time=1585906308
2020-04-03 11:31:48,633: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,633: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2020-04-03 11:31:48,634: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate
2020-04-03 11:31:48,634: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,634: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2020-04-03 11:31:48,635: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2020-04-03 11:31:48,635: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2020-04-03 11:31:48,635: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,636: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2020-04-03 11:31:48,636: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2020-04-03 11:31:48,636: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,637: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2020-04-03 11:31:48,637: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx
2020-04-03 11:31:48,637: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,638: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2020-04-03 11:31:48,638: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2020-04-03 11:31:48,638: DEBUG - +++ n_install_dir=/opt/node_n
2020-04-03 11:31:48,639: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2020-04-03 11:31:48,639: DEBUG - +++ export N_PREFIX=/opt/node_n
2020-04-03 11:31:48,640: DEBUG - +++ N_PREFIX=/opt/node_n
2020-04-03 11:31:48,640: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,640: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2020-04-03 11:31:48,640: DEBUG - ++ . /usr/share/yunohost/helpers.d/php
2020-04-03 11:31:48,641: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,641: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2020-04-03 11:31:48,641: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql
2020-04-03 11:31:48,642: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2020-04-03 11:31:48,642: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,642: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2020-04-03 11:31:48,643: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2020-04-03 11:31:48,643: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,643: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2020-04-03 11:31:48,644: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2020-04-03 11:31:48,644: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,644: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2020-04-03 11:31:48,644: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd
2020-04-03 11:31:48,645: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,645: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2020-04-03 11:31:48,645: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2020-04-03 11:31:48,646: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-04-03 11:31:48,646: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2020-04-03 11:31:48,646: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2020-04-03 11:31:48,646: DEBUG - + ynh_abort_if_errors
2020-04-03 11:31:48,647: DEBUG - + set -eu
2020-04-03 11:31:48,647: DEBUG - + trap ynh_exit_properly EXIT
2020-04-03 11:31:48,647: DEBUG - + ynh_script_progression '--message=Loading settings...' --weight=2
2020-04-03 11:31:48,648: DEBUG - + set +x
2020-04-03 11:31:48,749: DEBUG - + set +x
2020-04-03 11:31:48,749: INFO - [+...................] > Loading settings...
2020-04-03 11:31:48,796: DEBUG - + echo '! Helper used in legacy mode !'
2020-04-03 11:31:48,796: DEBUG - + set +x
2020-04-03 11:31:48,797: DEBUG - + echo '[+...................] > Loading settings...'
2020-04-03 11:31:48,797: DEBUG - + set -x
2020-04-03 11:31:48,797: DEBUG - + app=kanboard
2020-04-03 11:31:48,798: DEBUG - ++ ynh_app_setting_get --app=kanboard --key=domain
2020-04-03 11:31:48,799: DEBUG - ++ local legacy_args=ak
2020-04-03 11:31:48,800: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-04-03 11:31:48,800: DEBUG - ++ declare -Ar args_array
2020-04-03 11:31:48,800: DEBUG - ++ local app
2020-04-03 11:31:48,800: DEBUG - ++ local key
2020-04-03 11:31:48,801: DEBUG - ++ ynh_handle_getopts_args --app=kanboard --key=domain
2020-04-03 11:31:48,801: DEBUG - ++ set +x
2020-04-03 11:31:48,801: DEBUG - ++ ynh_app_setting get kanboard domain
2020-04-03 11:31:48,802: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-04-03 11:31:48,802: DEBUG - ++ ACTION=get
2020-04-03 11:31:48,802: DEBUG - ++ APP=kanboard
2020-04-03 11:31:48,803: DEBUG - ++ KEY=domain
2020-04-03 11:31:48,803: DEBUG - ++ VALUE=
2020-04-03 11:31:48,803: DEBUG - ++ python2.7 -
2020-04-03 11:31:49,105: DEBUG - ++ [[ domain =~ ^(unprotected|skipped)_ ]]
2020-04-03 11:31:49,105: DEBUG - + domain=home.lan
2020-04-03 11:31:49,106: DEBUG - ++ ynh_app_setting_get --app=kanboard --key=path
2020-04-03 11:31:49,106: DEBUG - ++ local legacy_args=ak
2020-04-03 11:31:49,106: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-04-03 11:31:49,106: DEBUG - ++ declare -Ar args_array
2020-04-03 11:31:49,107: DEBUG - ++ local app
2020-04-03 11:31:49,107: DEBUG - ++ local key
2020-04-03 11:31:49,107: DEBUG - ++ ynh_handle_getopts_args --app=kanboard --key=path
2020-04-03 11:31:49,107: DEBUG - ++ set +x
2020-04-03 11:31:49,108: DEBUG - ++ ynh_app_setting get kanboard path
2020-04-03 11:31:49,108: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-04-03 11:31:49,108: DEBUG - ++ ACTION=get
2020-04-03 11:31:49,108: DEBUG - ++ APP=kanboard
2020-04-03 11:31:49,109: DEBUG - ++ KEY=path
2020-04-03 11:31:49,109: DEBUG - ++ VALUE=
2020-04-03 11:31:49,109: DEBUG - ++ python2.7 -
2020-04-03 11:31:49,411: DEBUG - ++ [[ path =~ ^(unprotected|skipped)_ ]]
2020-04-03 11:31:49,412: DEBUG - + path_url=/kanboard
2020-04-03 11:31:49,412: DEBUG - ++ ynh_app_setting_get --app=kanboard --key=final_path
2020-04-03 11:31:49,412: DEBUG - ++ local legacy_args=ak
2020-04-03 11:31:49,412: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-04-03 11:31:49,413: DEBUG - ++ declare -Ar args_array
2020-04-03 11:31:49,413: DEBUG - ++ local app
2020-04-03 11:31:49,414: DEBUG - ++ local key
2020-04-03 11:31:49,414: DEBUG - ++ ynh_handle_getopts_args --app=kanboard --key=final_path
2020-04-03 11:31:49,414: DEBUG - ++ set +x
2020-04-03 11:31:49,414: DEBUG - ++ ynh_app_setting get kanboard final_path
2020-04-03 11:31:49,415: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-04-03 11:31:49,415: DEBUG - ++ ACTION=get
2020-04-03 11:31:49,415: DEBUG - ++ APP=kanboard
2020-04-03 11:31:49,416: DEBUG - ++ KEY=final_path
2020-04-03 11:31:49,416: DEBUG - ++ VALUE=
2020-04-03 11:31:49,416: DEBUG - ++ python2.7 -
2020-04-03 11:31:49,617: DEBUG - ++ [[ final_path =~ ^(unprotected|skipped)_ ]]
2020-04-03 11:31:49,618: DEBUG - + final_path=/var/www/kanboard
2020-04-03 11:31:49,618: DEBUG - ++ ynh_app_setting_get --app=kanboard --key=db_name
2020-04-03 11:31:49,619: DEBUG - ++ local legacy_args=ak
2020-04-03 11:31:49,619: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-04-03 11:31:49,619: DEBUG - ++ declare -Ar args_array
2020-04-03 11:31:49,619: DEBUG - ++ local app
2020-04-03 11:31:49,620: DEBUG - ++ local key
2020-04-03 11:31:49,620: DEBUG - ++ ynh_handle_getopts_args --app=kanboard --key=db_name
2020-04-03 11:31:49,620: DEBUG - ++ set +x
2020-04-03 11:31:49,621: DEBUG - ++ ynh_app_setting get kanboard db_name
2020-04-03 11:31:49,621: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-04-03 11:31:49,621: DEBUG - ++ ACTION=get
2020-04-03 11:31:49,622: DEBUG - ++ APP=kanboard
2020-04-03 11:31:49,622: DEBUG - ++ KEY=db_name
2020-04-03 11:31:49,622: DEBUG - ++ VALUE=
2020-04-03 11:31:49,622: DEBUG - ++ python2.7 -
2020-04-03 11:31:49,924: DEBUG - ++ [[ db_name =~ ^(unprotected|skipped)_ ]]
2020-04-03 11:31:49,925: DEBUG - + db_name=kanboard
2020-04-03 11:31:49,925: DEBUG - + ynh_script_progression '--message=Validating restoration parameters...' --weight=2
2020-04-03 11:31:49,925: DEBUG - + set +x
2020-04-03 11:31:49,926: DEBUG - + set +x
2020-04-03 11:31:49,926: DEBUG - + echo '! Helper used in legacy mode !'
2020-04-03 11:31:49,926: DEBUG - + set +x
2020-04-03 11:31:49,926: DEBUG - + echo '[#+..................] > Validating restoration parameters...'
2020-04-03 11:31:49,927: DEBUG - + set -x
2020-04-03 11:31:49,927: DEBUG - + ynh_webpath_available --domain=home.lan --path_url=/kanboard
2020-04-03 11:31:49,927: DEBUG - + local legacy_args=dp
2020-04-03 11:31:49,928: DEBUG - + args_array=([d]=domain= [p]=path_url=)
2020-04-03 11:31:49,928: DEBUG - + declare -Ar args_array
2020-04-03 11:31:49,928: DEBUG - + local domain
2020-04-03 11:31:49,928: DEBUG - + local path_url
2020-04-03 11:31:49,929: DEBUG - + ynh_handle_getopts_args --domain=home.lan --path_url=/kanboard
2020-04-03 11:31:49,929: DEBUG - + set +x
2020-04-03 11:31:49,929: DEBUG - + sudo yunohost domain url-available home.lan /kanboard
2020-04-03 11:31:50,633: WARNING - Unknown domain
2020-04-03 11:31:50,634: INFO - [#+..................] > Validating restoration parameters...
2020-04-03 11:31:50,736: DEBUG - + ynh_die '--message=Path not available: home.lan/kanboard'
2020-04-03 11:31:50,736: WARNING - Path not available: home.lan/kanboard
2020-04-03 11:31:50,737: DEBUG - + local legacy_args=mc
2020-04-03 11:31:50,738: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2020-04-03 11:31:50,738: DEBUG - + declare -Ar args_array
2020-04-03 11:31:50,738: DEBUG - + local message
2020-04-03 11:31:50,739: DEBUG - + local ret_code
2020-04-03 11:31:50,739: DEBUG - + ynh_handle_getopts_args '--message=Path not available: home.lan/kanboard'
2020-04-03 11:31:50,739: DEBUG - + set +x
2020-04-03 11:31:50,739: DEBUG - + echo 'Path not available: home.lan/kanboard'
2020-04-03 11:31:50,740: DEBUG - + exit 1
2020-04-03 11:31:50,740: DEBUG - + ynh_exit_properly
2020-04-03 11:31:50,740: DEBUG - + local exit_code=1
2020-04-03 11:31:50,740: DEBUG - + '[' 1 -eq 0 ']'
2020-04-03 11:31:50,741: DEBUG - + trap '' EXIT
2020-04-03 11:31:50,741: DEBUG - + set +eu
2020-04-03 11:31:50,741: DEBUG - + sleep 0.5
2020-04-03 11:31:51,244: DEBUG - + type -t ynh_clean_setup
2020-04-03 11:31:51,244: WARNING -
2020-04-03 11:31:51,245: DEBUG - + ynh_die
2020-04-03 11:31:51,245: DEBUG - + local legacy_args=mc
2020-04-03 11:31:51,246: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2020-04-03 11:31:51,246: DEBUG - + declare -Ar args_array
2020-04-03 11:31:51,246: DEBUG - + local message
2020-04-03 11:31:51,246: DEBUG - + local ret_code
2020-04-03 11:31:51,247: DEBUG - + ynh_handle_getopts_args
2020-04-03 11:31:51,247: DEBUG - + set +x
2020-04-03 11:31:51,247: DEBUG - + echo ''
2020-04-03 11:31:51,247: DEBUG - + exit 1
2020-04-03 11:31:51,358: ERROR - Could not restore the app 'kanboard'
Traceback (most recent call last):
File "/usr/lib/moulinette/yunohost/backup.py", line 1396, in _restore_app
env=env_dict)[0]
File "/usr/lib/moulinette/yunohost/hook.py", line 347, in hook_exec
raise YunohostError('hook_exec_failed', path=path)
YunohostError: Could not run script: /tmp/restoremqJfrp/restore
2020-04-02 21:02:39,393: INFO - Restoring the app 'kanboard'…
2020-04-02 21:02:39,395: ERROR - An app with the ID 'kanboard' is already installed
and I see now this:
2020-04-03 11:31:50,739: DEBUG - + echo 'Path not available: home.lan/kanboard'
Indeed, I’ve changed the domain.
I’ll try again…
EDIT
I successfully restored kanboard and the data after deleting the data and uninstalling kanboard.