Friendica fails to upgrade to 2021.04 and restoration fails

My YunoHost server

Hardware: VPS bought online
YunoHost version: 4.2.6.1
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I posted this on the Github page but honestly I do not see much if any activity there and this is a big issue with this Friendica upgrade since it fails completely. Upgrade to version 2021.04 · Issue #48 · YunoHost-Apps/friendica_ynh · GitHub

I will past the error logs here:

109  DEBUG initializing base actions map parser for cli
110  DEBUG loading actions map namespace 'yunohost'
112  DEBUG building parser...
121  DEBUG building parser took 0.009s
122  DEBUG acquiring lock...
130  DEBUG lock has been acquired
139  DEBUG loading python module yunohost.app took 0.008s
139  DEBUG processing action [8180.1]: yunohost.app.upgrade with args={'app': ['friendica'], 'url': None, 'file': None, 'force': False}
141  INFO Now upgrading friendica...
190  DEBUG initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth'
262  DEBUG Downloading…
1120 DEBUG Done
1122 DEBUG Checking required packages for friendica...
1137 DEBUG Checking that required services are up and running...
2882 DEBUG no arguments found for 'upgrade' in manifest
3346 DEBUG Executing command '/bin/bash -x "./upgrade"  7>&1'
3353 DEBUG + source _common.sh
3354 DEBUG ++ YNH_PHP_VERSION=7.3
3355 DEBUG ++ extra_php_dependencies='php7.3-mbstring php7.3-cli php7.3-imagick php7.3-xml php7.3-zip php7.3-mysql php7.3-json php7.3-gd'
3356 WARNING _common.sh: line 33: syntax error near unexpected token `elif'
3356 WARNING _common.sh: line 33: `        elif is_there_enough_space /home; then'
3357 DEBUG + source /usr/share/yunohost/helpers
3357 DEBUG +++ set +o
3358 DEBUG +++ grep xtrace
3358 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace'
3359 DEBUG ++ XTRACE_ENABLE='set -o xtrace'
3359 DEBUG ++ set +x
3403 DEBUG + ynh_script_progression '--message=Loading installation settings...'
3403 DEBUG + set +o xtrace
3441 DEBUG + set +o xtrace
3467 DEBUG + echo '! Helper used in legacy mode !'
3467 DEBUG + set +x
3468 INFO [++..................] > Loading installation settings...
3469 DEBUG + echo '[++..................] > Loading installation settings...'
3469 DEBUG + set -o xtrace
3469 DEBUG + app=friendica
3469 DEBUG ++ ynh_app_setting_get --app=friendica --key=domain
3469 DEBUG ++ local legacy_args=ak
3469 DEBUG ++ args_array=([a]=app= [k]=key=)
3469 DEBUG ++ local -A args_array
3469 DEBUG ++ local app
3469 DEBUG ++ local key
3470 DEBUG ++ ynh_handle_getopts_args --app=friendica --key=domain
3470 DEBUG ++ set +o xtrace
3536 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
3536 DEBUG ++ ynh_app_setting get friendica domain
3537 DEBUG ++ set +o xtrace
3583 DEBUG + domain=social.trom.tf
3583 DEBUG ++ ynh_app_setting_get --app=friendica --key=path
3583 DEBUG ++ local legacy_args=ak
3583 DEBUG ++ args_array=([a]=app= [k]=key=)
3583 DEBUG ++ local -A args_array
3583 DEBUG ++ local app
3584 DEBUG ++ local key
3584 DEBUG ++ ynh_handle_getopts_args --app=friendica --key=path
3584 DEBUG ++ set +o xtrace
3625 DEBUG ++ [[ path =~ (unprotected|protected|skipped)_ ]]
3625 DEBUG ++ ynh_app_setting get friendica path
3625 DEBUG ++ set +o xtrace
3677 DEBUG + path_url=/
3678 DEBUG ++ ynh_app_setting_get --app=friendica --key=final_path
3678 DEBUG ++ local legacy_args=ak
3678 DEBUG ++ args_array=([a]=app= [k]=key=)
3678 DEBUG ++ local -A args_array
3678 DEBUG ++ local app
3679 DEBUG ++ local key
3679 DEBUG ++ ynh_handle_getopts_args --app=friendica --key=final_path
3679 DEBUG ++ set +o xtrace
3723 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
3723 DEBUG ++ ynh_app_setting get friendica final_path
3723 DEBUG ++ set +o xtrace
3770 DEBUG + final_path=/var/www/friendica
3771 DEBUG ++ ynh_app_setting_get --app=friendica --key=db_name
3771 DEBUG ++ local legacy_args=ak
3771 DEBUG ++ args_array=([a]=app= [k]=key=)
3771 DEBUG ++ local -A args_array
3771 DEBUG ++ local app
3771 DEBUG ++ local key
3771 DEBUG ++ ynh_handle_getopts_args --app=friendica --key=db_name
3772 DEBUG ++ set +o xtrace
3803 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
3803 DEBUG ++ ynh_app_setting get friendica db_name
3803 DEBUG ++ set +o xtrace
3853 DEBUG + db_name=friendica
3853 DEBUG ++ ynh_app_setting_get --app=friendica --key=mysqlpwd
3853 DEBUG ++ local legacy_args=ak
3854 DEBUG ++ args_array=([a]=app= [k]=key=)
3854 DEBUG ++ local -A args_array
3854 DEBUG ++ local app
3854 DEBUG ++ local key
3854 DEBUG ++ ynh_handle_getopts_args --app=friendica --key=mysqlpwd
3854 DEBUG ++ set +o xtrace
3887 DEBUG ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
3887 DEBUG ++ ynh_app_setting get friendica mysqlpwd
3887 DEBUG ++ set +o xtrace
3938 DEBUG + db_pwd=ygGdsddV4wfRbXipbxu0c0QP
3938 DEBUG ++ ynh_app_setting_get --app=friendica --key=email
3938 DEBUG ++ local legacy_args=ak
3939 DEBUG ++ args_array=([a]=app= [k]=key=)
3939 DEBUG ++ local -A args_array
3939 DEBUG ++ local app
3939 DEBUG ++ local key
3939 DEBUG ++ ynh_handle_getopts_args --app=friendica --key=email
3939 DEBUG ++ set +o xtrace
4001 DEBUG ++ [[ email =~ (unprotected|protected|skipped)_ ]]
4002 DEBUG ++ ynh_app_setting get friendica email
4002 DEBUG ++ set +o xtrace
4056 DEBUG + admin_mail=tio@trom.tf
4057 DEBUG ++ ynh_app_setting_get --app=friendica --key=admin
4057 DEBUG ++ local legacy_args=ak
4057 DEBUG ++ args_array=([a]=app= [k]=key=)
4057 DEBUG ++ local -A args_array
4057 DEBUG ++ local app
4057 DEBUG ++ local key
4057 DEBUG ++ ynh_handle_getopts_args --app=friendica --key=admin
4058 DEBUG ++ set +o xtrace
4138 DEBUG ++ [[ admin =~ (unprotected|protected|skipped)_ ]]
4139 DEBUG ++ ynh_app_setting get friendica admin
4139 DEBUG ++ set +o xtrace
4218 DEBUG + admin=tio
4218 DEBUG ++ ynh_app_setting_get --app=friendica --key=phpversion
4218 DEBUG ++ local legacy_args=ak
4237 DEBUG ++ args_array=([a]=app= [k]=key=)
4237 DEBUG ++ local -A args_array
4237 DEBUG ++ local app
4238 DEBUG ++ local key
4238 DEBUG ++ ynh_handle_getopts_args --app=friendica --key=phpversion
4239 DEBUG ++ set +o xtrace
4303 DEBUG ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
4303 DEBUG ++ ynh_app_setting get friendica phpversion
4303 DEBUG ++ set +o xtrace
4379 DEBUG + phpversion=7.3
4412 DEBUG ++ ynh_check_app_version_changed
4412 DEBUG ++ local return_value=UPGRADE_APP
4412 DEBUG ++ '[' UPGRADE_APP == UPGRADE_FULL ']'
4413 DEBUG ++ '[' UPGRADE_APP == UPGRADE_FORCED ']'
4413 DEBUG ++ '[' UPGRADE_APP == DOWNGRADE_FORCED ']'
4413 DEBUG ++ echo UPGRADE_APP
4413 DEBUG + upgrade_type=UPGRADE_APP
4413 DEBUG + ynh_script_progression '--message=Ensuring downward compatibility...'
4413 DEBUG + set +o xtrace
4488 DEBUG + set +o xtrace
4523 DEBUG + echo '! Helper used in legacy mode !'
4523 DEBUG + set +x
4525 DEBUG + echo '[##++................] > Ensuring downward compatibility...'
4525 INFO [##++................] > Ensuring downward compatibility...
4525 DEBUG + set -o xtrace
4526 DEBUG + '[' -z friendica ']'
4526 DEBUG + ynh_script_progression '--message=Backing up the app before upgrading (may take a while)...'
4526 DEBUG + set +o xtrace
4616 DEBUG + set +o xtrace
4649 DEBUG + echo '! Helper used in legacy mode !'
4649 DEBUG + set +x
4652 DEBUG + echo '[####++..............] > Backing up the app before upgrading (may take a while)...'
4652 INFO [####++..............] > Backing up the app before upgrading (may take a while)...
4653 DEBUG + set -o xtrace
4653 DEBUG + ynh_backup_before_upgrade
4654 DEBUG + '[' '!' -e /etc/yunohost/apps/friendica/scripts/backup ']'
4654 DEBUG + backup_number=1
4654 DEBUG + local old_backup_number=2
4654 DEBUG + local app_bck=friendica
4654 DEBUG + NO_BACKUP_UPGRADE=0
4654 DEBUG + '[' 0 -eq 0 ']'
4655 DEBUG + ynh_backup_archive_exists friendica-pre-upgrade1
4655 DEBUG + yunohost backup list --output-as json --quiet
4655 DEBUG + jq -e --arg archive friendica-pre-upgrade1 '.archives | index($archive)'
4940 DEBUG + BACKUP_CORE_ONLY=1
4940 DEBUG + yunohost backup create --apps friendica --name friendica-pre-upgrade1 --debug
5084 DEBUG 101  initializing base actions map parser for cli
5086 DEBUG 103  loading actions map namespace 'yunohost'
5088 DEBUG 106  building parser...
5091 DEBUG 109  building parser took 0.003s
5092 DEBUG 110  acquiring lock...
5130 DEBUG 146  loading python module yunohost.backup took 0.028s
5130 DEBUG 148  processing action [8724.1]: yunohost.backup.create with args={'name': 'friendica-pre-upgrade1', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['friendica'], 'dry_run': False}
5383 DEBUG 398  Collecting files to be backed up for friendica...
5473 DEBUG 491  Executing command '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_dy3mi48b/scripts/backup"  7>&1'
5491 DEBUG 507  + source ../settings/scripts/_common.sh
5491 DEBUG 507  ++ YNH_PHP_VERSION=7.3
5491 DEBUG 507  ++ extra_php_dependencies='php7.3-mbstring php7.3-cli php7.3-imagick php7.3-xml php7.3-zip php7.3-mysql php7.3-json php7.3-gd'
5491 DEBUG 508  + source /usr/share/yunohost/helpers
5492 DEBUG 508  +++ set +o
5492 DEBUG 508  +++ grep xtrace
5492 DEBUG 510  ++ readonly 'XTRACE_ENABLE=set -o xtrace'
5492 DEBUG 510  ++ XTRACE_ENABLE='set -o xtrace'
5492 DEBUG 510  ++ set +x
5531 DEBUG 548  + ynh_abort_if_errors
5531 DEBUG 549  + set -o errexit
5531 DEBUG 549  + set -o nounset
5532 DEBUG 549  + trap ynh_exit_properly EXIT
5532 DEBUG 549  + ynh_print_info '--message=Loading installation settings...'
5532 DEBUG 549  + local legacy_args=m
5532 DEBUG 549  + args_array=([m]=message=)
5533 DEBUG 550  + local -A args_array
5534 DEBUG 550  + local message
5534 DEBUG 550  + ynh_handle_getopts_args '--message=Loading installation settings...'
5534 DEBUG 550  + set +o xtrace
5540 DEBUG 557  + echo 'Loading installation settings...'
5540 DEBUG 558  + app=friendica
5541 DEBUG 558  Loading installation settings...
5541 DEBUG 558  ++ ynh_app_setting_get --app=friendica --key=final_path
5541 DEBUG 558  ++ local legacy_args=ak
5541 DEBUG 559  ++ args_array=([a]=app= [k]=key=)
5541 DEBUG 559  ++ local -A args_array
5541 DEBUG 559  ++ local app
5542 DEBUG 559  ++ local key
5542 DEBUG 559  ++ ynh_handle_getopts_args --app=friendica --key=final_path
5542 DEBUG 559  ++ set +o xtrace
5590 DEBUG 607  ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
5590 DEBUG 608  ++ ynh_app_setting get friendica final_path
5591 DEBUG 608  ++ set +o xtrace
5641 DEBUG 658  + final_path=/var/www/friendica
5647 DEBUG 660  ++ ynh_app_setting_get --app=friendica --key=domain
5649 DEBUG 666  ++ local legacy_args=ak
5649 DEBUG 666  ++ args_array=([a]=app= [k]=key=)
5649 DEBUG 666  ++ local -A args_array
5649 DEBUG 666  ++ local app
5649 DEBUG 666  ++ local key
5649 DEBUG 666  ++ ynh_handle_getopts_args --app=friendica --key=domain
5649 DEBUG 666  ++ set +o xtrace
5703 DEBUG 720  ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
5703 DEBUG 720  ++ ynh_app_setting get friendica domain
5703 DEBUG 720  ++ set +o xtrace
5750 DEBUG 768  + domain=social.trom.tf
5751 DEBUG 768  ++ ynh_app_setting_get --app=friendica --key=db_name
5751 DEBUG 769  ++ local legacy_args=ak
5752 DEBUG 769  ++ args_array=([a]=app= [k]=key=)
5752 DEBUG 769  ++ local -A args_array
5752 DEBUG 769  ++ local app
5752 DEBUG 769  ++ local key
5752 DEBUG 769  ++ ynh_handle_getopts_args --app=friendica --key=db_name
5752 DEBUG 769  ++ set +o xtrace
5793 DEBUG 810  ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
5793 DEBUG 811  ++ ynh_app_setting get friendica db_name
5793 DEBUG 811  ++ set +o xtrace
5845 DEBUG 862  + db_name=friendica
5845 DEBUG 862  ++ ynh_app_setting_get --app=friendica --key=mysqlpwd
5846 DEBUG 863  ++ local legacy_args=ak
5846 DEBUG 863  ++ args_array=([a]=app= [k]=key=)
5846 DEBUG 863  ++ local -A args_array
5846 DEBUG 863  ++ local app
5846 DEBUG 864  ++ local key
5847 DEBUG 864  ++ ynh_handle_getopts_args --app=friendica --key=mysqlpwd
5847 DEBUG 864  ++ set +o xtrace
5877 DEBUG 894  ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
5877 DEBUG 894  ++ ynh_app_setting get friendica mysqlpwd
5877 DEBUG 895  ++ set +o xtrace
5921 DEBUG 939  + db_pwd=ygGdsddV4wfRbXipbxu0c0QP
5922 DEBUG 940  ++ ynh_app_setting_get --app=friendica --key=phpversion
5923 DEBUG 940  ++ local legacy_args=ak
5923 DEBUG 940  ++ args_array=([a]=app= [k]=key=)
5923 DEBUG 940  ++ local -A args_array
5923 DEBUG 940  ++ local app
5923 DEBUG 940  ++ local key
5923 DEBUG 941  ++ ynh_handle_getopts_args --app=friendica --key=phpversion
5923 DEBUG 941  ++ set +o xtrace
5949 DEBUG 967  ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
5950 DEBUG 968  ++ ynh_app_setting get friendica phpversion
5950 DEBUG 968  ++ set +o xtrace
6002 DEBUG 1018 + phpversion=7.3
6002 DEBUG 1019 + ynh_print_info '--message=Declaring files to be backed up...'
6002 DEBUG 1019 + local legacy_args=m
6002 DEBUG 1019 + args_array=([m]=message=)
6002 DEBUG 1019 + local -A args_array
6002 DEBUG 1019 + local message
6002 DEBUG 1019 + ynh_handle_getopts_args '--message=Declaring files to be backed up...'
6003 DEBUG 1019 + set +o xtrace
6019 DEBUG 1036 Declaring files to be backed up...
6020 DEBUG 1036 + echo 'Declaring files to be backed up...'
6020 DEBUG 1036 + ynh_backup --src_path=/var/www/friendica
6020 DEBUG 1036 + local legacy_args=sdbm
6020 DEBUG 1036 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
6020 DEBUG 1037 + local -A args_array
6021 DEBUG 1037 + local src_path
6021 DEBUG 1037 + local dest_path
6021 DEBUG 1037 + local is_big
6021 DEBUG 1037 + local not_mandatory
6021 DEBUG 1037 + ynh_handle_getopts_args --src_path=/var/www/friendica
6021 DEBUG 1037 + set +o xtrace
6070 DEBUG 1088 + dest_path=
6071 DEBUG 1088 + is_big=0
6071 DEBUG 1088 + not_mandatory=0
6071 DEBUG 1088 + BACKUP_CORE_ONLY=1
6072 DEBUG 1088 + test -n friendica
6072 DEBUG 1089 ++ ynh_app_setting_get --app=friendica --key=do_not_backup_data
6072 DEBUG 1089 ++ local legacy_args=ak
6072 DEBUG 1090 ++ args_array=([a]=app= [k]=key=)
6073 DEBUG 1090 ++ local -A args_array
6074 DEBUG 1091 ++ local app
6074 DEBUG 1091 ++ local key
6074 DEBUG 1091 ++ ynh_handle_getopts_args --app=friendica --key=do_not_backup_data
6074 DEBUG 1091 ++ set +o xtrace
6131 DEBUG 1147 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
6131 DEBUG 1148 ++ ynh_app_setting get friendica do_not_backup_data
6131 DEBUG 1149 ++ set +o xtrace
6213 DEBUG 1230 + do_not_backup_data=
6214 DEBUG 1231 + '[' 0 -eq 1 ']'
6214 DEBUG 1231 + '[' '!' -e /var/www/friendica ']'
6214 DEBUG 1231 ++ realpath /var/www/friendica
6215 DEBUG 1233 + src_path=/var/www/friendica
6215 DEBUG 1233 + [[ -z '' ]]
6216 DEBUG 1233 + dest_path=var/www/friendica
6216 DEBUG 1233 + [[ -e var/www/friendica ]]
6216 DEBUG 1233 + local rel_dir=/apps/friendica/backup
6216 DEBUG 1233 + rel_dir=/apps/friendica/backup/
6216 DEBUG 1234 + dest_path=/apps/friendica/backup/var/www/friendica
6216 DEBUG 1234 + dest_path=apps/friendica/backup/var/www/friendica
6216 DEBUG 1234 ++ echo /var/www/friendica
6217 DEBUG 1234 ++ sed --regexp-extended 's/"/\"\"/g'
6228 DEBUG 1242 + local src=/var/www/friendica
6229 DEBUG 1245 ++ sed --regexp-extended 's/"/\"\"/g'
6230 DEBUG 1247 ++ echo apps/friendica/backup/var/www/friendica
6233 DEBUG 1249 + local dest=apps/friendica/backup/var/www/friendica
6234 DEBUG 1250 + echo '"/var/www/friendica","apps/friendica/backup/var/www/friendica"'
6234 DEBUG 1251 ++ dirname /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/var/www/friendica
6239 DEBUG 1254 + mkdir --parents /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/var/www
6244 DEBUG 1260 + ynh_backup --src_path=/etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6245 DEBUG 1261 + local legacy_args=sdbm
6245 DEBUG 1261 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
6245 DEBUG 1261 + local -A args_array
6245 DEBUG 1261 + local src_path
6245 DEBUG 1262 + local dest_path
6246 DEBUG 1262 + local is_big
6246 DEBUG 1262 + local not_mandatory
6246 DEBUG 1262 + ynh_handle_getopts_args --src_path=/etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6247 DEBUG 1263 + set +o xtrace
6351 DEBUG 1360 + dest_path=
6352 DEBUG 1369 + is_big=0
6352 DEBUG 1369 + not_mandatory=0
6352 DEBUG 1370 + BACKUP_CORE_ONLY=1
6352 DEBUG 1370 + test -n friendica
6352 DEBUG 1370 ++ ynh_app_setting_get --app=friendica --key=do_not_backup_data
6357 DEBUG 1370 ++ local legacy_args=ak
6357 DEBUG 1370 ++ args_array=([a]=app= [k]=key=)
6359 DEBUG 1370 ++ local -A args_array
6360 DEBUG 1370 ++ local app
6360 DEBUG 1374 ++ local key
6360 DEBUG 1374 ++ ynh_handle_getopts_args --app=friendica --key=do_not_backup_data
6360 DEBUG 1374 ++ set +o xtrace
6396 DEBUG 1413 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
6396 DEBUG 1413 ++ ynh_app_setting get friendica do_not_backup_data
6396 DEBUG 1413 ++ set +o xtrace
6453 DEBUG 1470 + do_not_backup_data=
6453 DEBUG 1470 + '[' 0 -eq 1 ']'
6453 DEBUG 1470 + '[' '!' -e /etc/nginx/conf.d/social.trom.tf.d/friendica.conf ']'
6454 DEBUG 1471 ++ realpath /etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6456 DEBUG 1473 + src_path=/etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6457 DEBUG 1473 + [[ -z '' ]]
6457 DEBUG 1473 + dest_path=etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6457 DEBUG 1473 + [[ -e etc/nginx/conf.d/social.trom.tf.d/friendica.conf ]]
6457 DEBUG 1473 + local rel_dir=/apps/friendica/backup
6457 DEBUG 1474 + rel_dir=/apps/friendica/backup/
6457 DEBUG 1474 + dest_path=/apps/friendica/backup/etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6457 DEBUG 1474 + dest_path=apps/friendica/backup/etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6458 DEBUG 1474 ++ sed --regexp-extended 's/"/\"\"/g'
6458 DEBUG 1474 ++ echo /etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6460 DEBUG 1477 + local src=/etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6461 DEBUG 1478 ++ sed --regexp-extended 's/"/\"\"/g'
6461 DEBUG 1478 ++ echo apps/friendica/backup/etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6464 DEBUG 1482 + local dest=apps/friendica/backup/etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6465 DEBUG 1482 + echo '"/etc/nginx/conf.d/social.trom.tf.d/friendica.conf","apps/friendica/backup/etc/nginx/conf.d/social.trom.tf.d/friendica.conf"'
6465 DEBUG 1482 ++ dirname /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/nginx/conf.d/social.trom.tf.d/friendica.conf
6467 DEBUG 1484 + mkdir --parents /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/nginx/conf.d/social.trom.tf.d
6470 DEBUG 1486 + ynh_backup --src_path=/etc/php/7.3/fpm/pool.d/friendica.conf
6471 DEBUG 1486 + local legacy_args=sdbm
6471 DEBUG 1487 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
6471 DEBUG 1487 + local -A args_array
6471 DEBUG 1487 + local src_path
6471 DEBUG 1487 + local dest_path
6471 DEBUG 1487 + local is_big
6471 DEBUG 1487 + local not_mandatory
6471 DEBUG 1487 + ynh_handle_getopts_args --src_path=/etc/php/7.3/fpm/pool.d/friendica.conf
6471 DEBUG 1487 + set +o xtrace
6532 DEBUG 1541 + dest_path=
6533 DEBUG 1543 + is_big=0
6533 DEBUG 1543 + not_mandatory=0
6533 DEBUG 1543 + BACKUP_CORE_ONLY=1
6533 DEBUG 1543 + test -n friendica
6533 DEBUG 1543 ++ ynh_app_setting_get --app=friendica --key=do_not_backup_data
6533 DEBUG 1544 ++ local legacy_args=ak
6534 DEBUG 1544 ++ args_array=([a]=app= [k]=key=)
6534 DEBUG 1544 ++ local -A args_array
6534 DEBUG 1544 ++ local app
6534 DEBUG 1544 ++ local key
6534 DEBUG 1546 ++ ynh_handle_getopts_args --app=friendica --key=do_not_backup_data
6535 DEBUG 1546 ++ set +o xtrace
6595 DEBUG 1613 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
6596 DEBUG 1613 ++ ynh_app_setting get friendica do_not_backup_data
6596 DEBUG 1613 ++ set +o xtrace
6707 DEBUG 1725 + do_not_backup_data=
6708 DEBUG 1725 + '[' 0 -eq 1 ']'
6708 DEBUG 1725 + '[' '!' -e /etc/php/7.3/fpm/pool.d/friendica.conf ']'
6708 DEBUG 1725 ++ realpath /etc/php/7.3/fpm/pool.d/friendica.conf
6708 DEBUG 1725 + src_path=/etc/php/7.3/fpm/pool.d/friendica.conf
6708 DEBUG 1726 + [[ -z '' ]]
6709 DEBUG 1726 + dest_path=etc/php/7.3/fpm/pool.d/friendica.conf
6709 DEBUG 1726 + [[ -e etc/php/7.3/fpm/pool.d/friendica.conf ]]
6709 DEBUG 1726 + local rel_dir=/apps/friendica/backup
6709 DEBUG 1726 + rel_dir=/apps/friendica/backup/
6710 DEBUG 1726 + dest_path=/apps/friendica/backup/etc/php/7.3/fpm/pool.d/friendica.conf
6710 DEBUG 1726 + dest_path=apps/friendica/backup/etc/php/7.3/fpm/pool.d/friendica.conf
6713 DEBUG 1731 ++ sed --regexp-extended 's/"/\"\"/g'
6717 DEBUG 1735 ++ echo /etc/php/7.3/fpm/pool.d/friendica.conf
6723 DEBUG 1739 + local src=/etc/php/7.3/fpm/pool.d/friendica.conf
6724 DEBUG 1739 ++ sed --regexp-extended 's/"/\"\"/g'
6724 DEBUG 1739 ++ echo apps/friendica/backup/etc/php/7.3/fpm/pool.d/friendica.conf
6727 DEBUG 1743 + local dest=apps/friendica/backup/etc/php/7.3/fpm/pool.d/friendica.conf
6727 DEBUG 1744 + echo '"/etc/php/7.3/fpm/pool.d/friendica.conf","apps/friendica/backup/etc/php/7.3/fpm/pool.d/friendica.conf"'
6727 DEBUG 1744 ++ dirname /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/php/7.3/fpm/pool.d/friendica.conf
6731 DEBUG 1746 + mkdir --parents /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/php/7.3/fpm/pool.d
6731 DEBUG 1749 + ynh_print_info '--message=Backing up the MySQL database...'
6732 DEBUG 1749 + local legacy_args=m
6732 DEBUG 1749 + args_array=([m]=message=)
6732 DEBUG 1749 + local -A args_array
6732 DEBUG 1750 + local message
6733 DEBUG 1750 + ynh_handle_getopts_args '--message=Backing up the MySQL database...'
6734 DEBUG 1750 + set +o xtrace
6752 DEBUG 1770 + echo 'Backing up the MySQL database...'
6753 DEBUG 1770 + ynh_mysql_dump_db --database=friendica
6753 DEBUG 1771 Backing up the MySQL database...
6754 DEBUG 1771 + local legacy_args=d
6754 DEBUG 1772 + args_array=([d]=database=)
6754 DEBUG 1772 + local -A args_array
6755 DEBUG 1772 + local database
6755 DEBUG 1773 + ynh_handle_getopts_args --database=friendica
6755 DEBUG 1773 + set +o xtrace
6776 DEBUG 1793 + mysqldump --single-transaction --skip-dump-date friendica
199288 DEBUG 194301 + ynh_backup --src_path=/etc/cron.d/friendica
199289 DEBUG 194303 + local legacy_args=sdbm
199289 DEBUG 194304 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
199289 DEBUG 194305 + local -A args_array
199289 DEBUG 194305 + local src_path
199289 DEBUG 194305 + local dest_path
199290 DEBUG 194305 + local is_big
199290 DEBUG 194305 + local not_mandatory
199290 DEBUG 194305 + ynh_handle_getopts_args --src_path=/etc/cron.d/friendica
199290 DEBUG 194305 + set +o xtrace
199327 DEBUG 194344 + dest_path=
199328 DEBUG 194345 + is_big=0
199328 DEBUG 194345 + not_mandatory=0
199328 DEBUG 194345 + BACKUP_CORE_ONLY=1
199328 DEBUG 194345 + test -n friendica
199334 DEBUG 194345 ++ ynh_app_setting_get --app=friendica --key=do_not_backup_data
199335 DEBUG 194346 ++ local legacy_args=ak
199335 DEBUG 194346 ++ args_array=([a]=app= [k]=key=)
199335 DEBUG 194346 ++ local -A args_array
199335 DEBUG 194346 ++ local app
199335 DEBUG 194346 ++ local key
199335 DEBUG 194346 ++ ynh_handle_getopts_args --app=friendica --key=do_not_backup_data
199336 DEBUG 194346 ++ set +o xtrace
199363 DEBUG 194380 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
199370 DEBUG 194381 ++ ynh_app_setting get friendica do_not_backup_data
199372 DEBUG 194381 ++ set +o xtrace
199485 DEBUG 194499 + do_not_backup_data=
199486 DEBUG 194499 + '[' 0 -eq 1 ']'
199486 DEBUG 194503 + '[' '!' -e /etc/cron.d/friendica ']'
199487 DEBUG 194504 ++ realpath /etc/cron.d/friendica
199487 DEBUG 194505 + src_path=/etc/cron.d/friendica
199488 DEBUG 194505 + [[ -z '' ]]
199488 DEBUG 194505 + dest_path=etc/cron.d/friendica
199488 DEBUG 194505 + [[ -e etc/cron.d/friendica ]]
199488 DEBUG 194505 + local rel_dir=/apps/friendica/backup
199488 DEBUG 194506 + rel_dir=/apps/friendica/backup/
199489 DEBUG 194506 + dest_path=/apps/friendica/backup/etc/cron.d/friendica
199489 DEBUG 194507 + dest_path=apps/friendica/backup/etc/cron.d/friendica
199490 DEBUG 194507 ++ echo /etc/cron.d/friendica
199495 DEBUG 194508 ++ sed --regexp-extended 's/"/\"\"/g'
199497 DEBUG 194515 + local src=/etc/cron.d/friendica
199498 DEBUG 194515 ++ sed --regexp-extended 's/"/\"\"/g'
199536 DEBUG 194518 ++ echo apps/friendica/backup/etc/cron.d/friendica
199556 DEBUG 194571 + local dest=apps/friendica/backup/etc/cron.d/friendica
199567 DEBUG 194585 + echo '"/etc/cron.d/friendica","apps/friendica/backup/etc/cron.d/friendica"'
199568 DEBUG 194586 ++ dirname /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/cron.d/friendica
199568 DEBUG 194586 + mkdir --parents /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/cron.d
199569 DEBUG 194586 + ynh_print_info '--message=Backup script completed for friendica. (YunoHost will then actually copy those files to the archive).'
199569 DEBUG 194586 + local legacy_args=m
199569 DEBUG 194587 + args_array=([m]=message=)
199569 DEBUG 194587 + local -A args_array
199569 DEBUG 194587 + local message
199574 DEBUG 194587 + ynh_handle_getopts_args '--message=Backup script completed for friendica. (YunoHost will then actually copy those files to the archive).'
199574 DEBUG 194587 + set +o xtrace
199575 DEBUG 194592 + echo 'Backup script completed for friendica. (YunoHost will then actually copy those files to the archive).'
199575 DEBUG 194593 + ynh_exit_properly
199575 DEBUG 194593 + local exit_code=0
199576 DEBUG 194593 + rm -rf /var/cache/yunohost/download/
199576 DEBUG 194594 Backup script completed for friendica. (YunoHost will then actually copy those files to the archive).
199578 DEBUG 194595 + '[' 0 -eq 0 ']'
199578 DEBUG 194596 + exit 0
200587 DEBUG 195605 Backup permission for friendica
200712 DEBUG 195729 initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth'
236481 DEBUG 231499 Creating a backup archive from the collected files...
236489 DEBUG 231507 The archive will contain about 10.2GiB of data.
236490 DEBUG 231508 Creating the backup TAR archive...
585448 DEBUG 580463 TAR backup archive created
585451 DEBUG 580465 Backup created
585454 DEBUG 580471 To view the log of the operation 'Create a backup archive', use the command 'yunohost log show 20210709-022143-backup_create20210709-022143-backup_create'
585506 DEBUG 580523 action [8724.1] executed in 580.375s
585508 DEBUG name: friendica-pre-upgrade1
585508 DEBUG results:
585508 DEBUG   apps:
585508 DEBUG     friendica: Success
585508 DEBUG   system:
585509 DEBUG size: 10901167509
586327 DEBUG + '[' 0 -eq 0 ']'
586328 DEBUG + ynh_backup_archive_exists friendica-pre-upgrade2
586328 DEBUG + yunohost backup list --output-as json --quiet
586329 DEBUG + jq -e --arg archive friendica-pre-upgrade2 '.archives | index($archive)'
586566 DEBUG + ynh_abort_if_errors
586566 DEBUG + set -o errexit
586567 DEBUG + set -o nounset
586567 DEBUG + trap ynh_exit_properly EXIT
586567 DEBUG + '[' -z /var/www/friendica ']'
586567 DEBUG + '[' -f /var/www/friendica/.htconfig.php ']'
586567 DEBUG + '[' -f /var/www/friendica/.htconfig.php ']'
586567 DEBUG + '[' -z tio@trom.tf ']'
586567 DEBUG + ynh_legacy_permissions_exists
586567 DEBUG + for permission in "skipped" "unprotected" "protected"
586568 DEBUG + ynh_permission_exists --permission=legacy_skipped_uris
586568 DEBUG + local legacy_args=p
586568 DEBUG + args_array=([p]=permission=)
586568 DEBUG + local -A args_array
586568 DEBUG + local permission
586568 DEBUG + ynh_handle_getopts_args --permission=legacy_skipped_uris
586568 DEBUG + set +o xtrace
586583 DEBUG + yunohost user permission list friendica --output-as json --quiet
586584 DEBUG + jq -e --arg perm friendica.legacy_skipped_uris '.permissions[$perm]'
586913 DEBUG + for permission in "skipped" "unprotected" "protected"
586913 DEBUG + ynh_permission_exists --permission=legacy_unprotected_uris
586913 DEBUG + local legacy_args=p
586913 DEBUG + args_array=([p]=permission=)
586914 DEBUG + local -A args_array
586914 DEBUG + local permission
586914 DEBUG + ynh_handle_getopts_args --permission=legacy_unprotected_uris
586914 DEBUG + set +o xtrace
586926 DEBUG + yunohost user permission list friendica --output-as json --quiet
586927 DEBUG + jq -e --arg perm friendica.legacy_unprotected_uris '.permissions[$perm]'
587311 DEBUG + for permission in "skipped" "unprotected" "protected"
587311 DEBUG + ynh_permission_exists --permission=legacy_protected_uris
587311 DEBUG + local legacy_args=p
587312 DEBUG + args_array=([p]=permission=)
587312 DEBUG + local -A args_array
587312 DEBUG + local permission
587312 DEBUG + ynh_handle_getopts_args --permission=legacy_protected_uris
587312 DEBUG + set +o xtrace
587331 DEBUG + yunohost user permission list friendica --output-as json --quiet
587340 DEBUG + jq -e --arg perm friendica.legacy_protected_uris '.permissions[$perm]'
587673 DEBUG + return 1
587673 DEBUG + '[' UPGRADE_APP == UPGRADE_APP ']'
587674 DEBUG ++ cd /var/www/friendica
587674 DEBUG ++ git rev-parse --is-inside-work-tree
587679 WARNING fatal: not a git repository (or any of the parent directories): .git
587681 WARNING ./upgrade: line 116: ynh_smart_mktemp: command not found
587681 DEBUG + '[' ']'
587681 DEBUG ++ ynh_smart_mktemp 6000
587681 DEBUG + tmpdir=
587682 DEBUG + ynh_exit_properly
587682 DEBUG + local exit_code=127
587682 DEBUG + rm -rf /var/cache/yunohost/download/
587684 DEBUG + '[' 127 -eq 0 ']'
587684 DEBUG + trap '' EXIT
587684 DEBUG + set +o errexit
587684 DEBUG + set +o nounset
587685 DEBUG + sleep 0.5
588188 DEBUG + type -t ynh_clean_setup
588188 DEBUG + ynh_clean_setup
588188 DEBUG + ynh_restore_upgradebackup
588189 DEBUG + ynh_print_err '--message=Upgrade failed.'
588189 DEBUG + local legacy_args=m
588189 DEBUG + args_array=([m]=message=)
588189 DEBUG + local -A args_array
588189 DEBUG + local message
588190 DEBUG + ynh_handle_getopts_args '--message=Upgrade failed.'
588191 DEBUG + set +o xtrace
588223 DEBUG + ynh_print_log '[Error] Upgrade failed.'
588224 WARNING [Error] Upgrade failed.
588232 DEBUG + echo -e '[Error] Upgrade failed.'
588233 DEBUG + local app_bck=friendica
588233 DEBUG + NO_BACKUP_UPGRADE=0
588233 DEBUG + '[' 0 -eq 0 ']'
588233 DEBUG + ynh_backup_archive_exists friendica-pre-upgrade1
588233 DEBUG + yunohost backup list --output-as json --quiet
588233 DEBUG + jq -e --arg archive friendica-pre-upgrade1 '.archives | index($archive)'
589129 DEBUG + yunohost app remove friendica
589427 DEBUG Removing friendica...
595594 DEBUG [++..................] > Loading installation settings...
596134 DEBUG [##+++...............] > Removing the MySQL database...
636975 DEBUG [#####++.............] > Removing dependencies...
645308 DEBUG [#######+++..........] > Removing app main directory...
653904 DEBUG [##########++........] > Removing NGINX web server configuration...
654572 DEBUG [############+++.....] > Removing PHP-FPM configuration...
656913 DEBUG [###############++...] > Removing logrotate configuration...
656980 DEBUG [#################+++] > Removing the dedicated system user...
657350 WARNING userdel: user friendica is currently used by process 5289
657351 WARNING /usr/sbin/deluser: `/sbin/userdel friendica' returned error code 8. Exiting.
657527 WARNING /usr/sbin/delgroup: `friendica' still has `friendica' as their primary group!
657555 DEBUG Removal of friendica completed
658562 DEBUG friendica removed
662375 DEBUG + yunohost backup restore friendica-pre-upgrade1 --apps friendica --force --debug
662525 DEBUG 114  initializing base actions map parser for cli
662526 DEBUG 115  loading actions map namespace 'yunohost'
662528 DEBUG 117  building parser...
662531 DEBUG 121  building parser took 0.003s
662532 DEBUG 122  acquiring lock...
662573 DEBUG 162  loading python module yunohost.backup took 0.032s
662573 DEBUG 162  processing action [20887.1]: yunohost.backup.restore with args={'name': 'friendica-pre-upgrade1', 'system': None, 'apps': ['friendica'], 'force': True}
662576 DEBUG 165  Preparing archive for restoration...
662577 DEBUG 166  Extracting needed files from the archive…

Also the restoration of the backup failed. This was the error:

These are the exact errors. As I understand the ynh dev changed Friendica to the git version. Perhaps that’s the issue. But I am clueless what’s wrong and what should be done. If anyone can help…?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.