Friendica upgrade fails on creating backup

My YunoHost server

Hardware: VPS bought online
**YunoHost version: 11.2.4
**I have access to my server : Through SSH | through the webadmin |
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
**If your request is related to an app, specify its name and version:Friendica 2023.05~ynh2 to 2023.05~ynh3

Description of my issue

When trying to upgrade Friendica from the gui I get an error message stating that the backup cannot be made.

https://paste.yunohost.org/raw/losicumato

args:
  apps:
  - friendica
  name: friendica-pre-upgrade1
  system: null
ended_at: 2023-09-19 08:21:09.193448
error: Niets om op te slaan
interface: api
operation: backup_create
parent: null
related_to:
- - app
  - friendica
started_at: 2023-09-19 08:21:06.868250
success: false
yunohost_version: 11.2.4

============

2023-09-19 10:21:06,900: INFO - Bestanden aan het verzamelen voor de backup van friendica...
2023-09-19 10:21:06,908: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_ds80wuxl/scripts/backup"  7>&1']'
2023-09-19 10:21:06,915: DEBUG - + source ../settings/scripts/_common.sh
2023-09-19 10:21:06,915: DEBUG - + source /usr/share/yunohost/helpers
2023-09-19 10:21:06,916: DEBUG - +++ set +o
2023-09-19 10:21:06,916: DEBUG - +++ grep xtrace
2023-09-19 10:21:06,917: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2023-09-19 10:21:06,918: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2023-09-19 10:21:06,931: DEBUG - + ynh_print_info '--message=Declaring files to be backed up...'
2023-09-19 10:21:06,940: INFO - Declaring files to be backed up...
2023-09-19 10:21:06,940: DEBUG - + cd /var/www/friendica
2023-09-19 10:21:06,940: DEBUG - + ynh_exec_as friendica php8.2 bin/console maintenance 1
2023-09-19 10:21:06,940: DEBUG - + local user=friendica
2023-09-19 10:21:06,941: DEBUG - + shift 1
2023-09-19 10:21:06,941: DEBUG - ++ whoami
2023-09-19 10:21:06,941: DEBUG - + [[ friendica = root ]]
2023-09-19 10:21:06,942: DEBUG - + sudo -u friendica php8.2 bin/console maintenance 1
2023-09-19 10:21:06,985: DEBUG - 
2023-09-19 10:21:06,985: DEBUG - dir=$(cd "${0%[/\\]*}" > /dev/null; pwd)
2023-09-19 10:21:06,985: DEBUG - 
2023-09-19 10:21:06,985: DEBUG - if [[ -d /proc/cygdrive && $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
2023-09-19 10:21:06,985: DEBUG -    # We are in Cygwin using Windows php, so the path must be translated
2023-09-19 10:21:06,985: DEBUG -    dir=$(cygpath -m "$dir");
2023-09-19 10:21:06,985: DEBUG - fi
2023-09-19 10:21:06,985: DEBUG - 
2023-09-19 10:21:06,985: DEBUG - php "${dir}/console.php" "$@"
2023-09-19 10:21:06,991: DEBUG - + ynh_backup --src_path=/var/www/friendica
2023-09-19 10:21:07,019: DEBUG - + dest_path=
2023-09-19 10:21:07,019: DEBUG - + is_big=0
2023-09-19 10:21:07,019: DEBUG - + not_mandatory=0
2023-09-19 10:21:07,019: DEBUG - + BACKUP_CORE_ONLY=1
2023-09-19 10:21:07,019: DEBUG - + test -n friendica
2023-09-19 10:21:07,019: DEBUG - ++ ynh_app_setting_get --app=friendica --key=do_not_backup_data
2023-09-19 10:21:07,019: DEBUG - ++ local _globalapp=friendica
2023-09-19 10:21:07,044: DEBUG - ++ app=friendica
2023-09-19 10:21:07,044: DEBUG - ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-09-19 10:21:07,044: DEBUG - ++ ynh_app_setting get friendica do_not_backup_data
2023-09-19 10:21:07,084: DEBUG - + do_not_backup_data=
2023-09-19 10:21:07,085: DEBUG - + '[' '!' -e /var/www/friendica ']'
2023-09-19 10:21:07,085: DEBUG - ++ realpath /var/www/friendica
2023-09-19 10:21:07,086: DEBUG - + src_path=/var/www/friendica
2023-09-19 10:21:07,086: DEBUG - + [[ -z '' ]]
2023-09-19 10:21:07,086: DEBUG - + dest_path=var/www/friendica
2023-09-19 10:21:07,086: DEBUG - + [[ -e var/www/friendica ]]
2023-09-19 10:21:07,086: DEBUG - + local rel_dir=/apps/friendica/backup
2023-09-19 10:21:07,086: DEBUG - + rel_dir=/apps/friendica/backup/
2023-09-19 10:21:07,086: DEBUG - + dest_path=/apps/friendica/backup/var/www/friendica
2023-09-19 10:21:07,087: DEBUG - + dest_path=apps/friendica/backup/var/www/friendica
2023-09-19 10:21:07,087: DEBUG - ++ echo /var/www/friendica
2023-09-19 10:21:07,087: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,089: DEBUG - + local src=/var/www/friendica
2023-09-19 10:21:07,090: DEBUG - ++ echo apps/friendica/backup/var/www/friendica
2023-09-19 10:21:07,090: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,092: DEBUG - + local dest=apps/friendica/backup/var/www/friendica
2023-09-19 10:21:07,092: DEBUG - ++ dirname /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/var/www/friendica
2023-09-19 10:21:07,093: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/var/www
2023-09-19 10:21:07,095: DEBUG - + ynh_backup --src_path=/etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf
2023-09-19 10:21:07,120: DEBUG - + dest_path=
2023-09-19 10:21:07,121: DEBUG - + is_big=0
2023-09-19 10:21:07,121: DEBUG - + not_mandatory=0
2023-09-19 10:21:07,121: DEBUG - + BACKUP_CORE_ONLY=1
2023-09-19 10:21:07,121: DEBUG - + test -n friendica
2023-09-19 10:21:07,121: DEBUG - ++ ynh_app_setting_get --app=friendica --key=do_not_backup_data
2023-09-19 10:21:07,121: DEBUG - ++ local _globalapp=friendica
2023-09-19 10:21:07,143: DEBUG - ++ app=friendica
2023-09-19 10:21:07,144: DEBUG - ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-09-19 10:21:07,144: DEBUG - ++ ynh_app_setting get friendica do_not_backup_data
2023-09-19 10:21:07,183: DEBUG - + do_not_backup_data=
2023-09-19 10:21:07,183: DEBUG - + '[' '!' -e /etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf ']'
2023-09-19 10:21:07,183: DEBUG - ++ realpath /etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf
2023-09-19 10:21:07,184: DEBUG - + src_path=/etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf
2023-09-19 10:21:07,184: DEBUG - + [[ -z '' ]]
2023-09-19 10:21:07,184: DEBUG - + dest_path=etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf
2023-09-19 10:21:07,184: DEBUG - + [[ -e etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf ]]
2023-09-19 10:21:07,184: DEBUG - + local rel_dir=/apps/friendica/backup
2023-09-19 10:21:07,184: DEBUG - + rel_dir=/apps/friendica/backup/
2023-09-19 10:21:07,184: DEBUG - + dest_path=/apps/friendica/backup/etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf
2023-09-19 10:21:07,184: DEBUG - + dest_path=apps/friendica/backup/etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf
2023-09-19 10:21:07,184: DEBUG - ++ echo /etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf
2023-09-19 10:21:07,184: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,186: DEBUG - + local src=/etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf
2023-09-19 10:21:07,186: DEBUG - ++ echo apps/friendica/backup/etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf
2023-09-19 10:21:07,186: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,189: DEBUG - + local dest=apps/friendica/backup/etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf
2023-09-19 10:21:07,189: DEBUG - ++ dirname /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/nginx/conf.d/friendica.maindomain.tld.d/friendica.conf
2023-09-19 10:21:07,190: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/nginx/conf.d/friendica.maindomain.tld.d
2023-09-19 10:21:07,191: DEBUG - + ynh_backup --src_path=/etc/php/8.2/fpm/pool.d/friendica.conf
2023-09-19 10:21:07,214: DEBUG - + dest_path=
2023-09-19 10:21:07,214: DEBUG - + is_big=0
2023-09-19 10:21:07,214: DEBUG - + not_mandatory=0
2023-09-19 10:21:07,214: DEBUG - + BACKUP_CORE_ONLY=1
2023-09-19 10:21:07,214: DEBUG - + test -n friendica
2023-09-19 10:21:07,214: DEBUG - ++ ynh_app_setting_get --app=friendica --key=do_not_backup_data
2023-09-19 10:21:07,215: DEBUG - ++ local _globalapp=friendica
2023-09-19 10:21:07,240: DEBUG - ++ app=friendica
2023-09-19 10:21:07,240: DEBUG - ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-09-19 10:21:07,240: DEBUG - ++ ynh_app_setting get friendica do_not_backup_data
2023-09-19 10:21:07,284: DEBUG - + do_not_backup_data=
2023-09-19 10:21:07,285: DEBUG - + '[' '!' -e /etc/php/8.2/fpm/pool.d/friendica.conf ']'
2023-09-19 10:21:07,285: DEBUG - ++ realpath /etc/php/8.2/fpm/pool.d/friendica.conf
2023-09-19 10:21:07,286: DEBUG - + src_path=/etc/php/8.2/fpm/pool.d/friendica.conf
2023-09-19 10:21:07,286: DEBUG - + [[ -z '' ]]
2023-09-19 10:21:07,286: DEBUG - + dest_path=etc/php/8.2/fpm/pool.d/friendica.conf
2023-09-19 10:21:07,286: DEBUG - + [[ -e etc/php/8.2/fpm/pool.d/friendica.conf ]]
2023-09-19 10:21:07,287: DEBUG - + local rel_dir=/apps/friendica/backup
2023-09-19 10:21:07,287: DEBUG - + rel_dir=/apps/friendica/backup/
2023-09-19 10:21:07,287: DEBUG - + dest_path=/apps/friendica/backup/etc/php/8.2/fpm/pool.d/friendica.conf
2023-09-19 10:21:07,287: DEBUG - + dest_path=apps/friendica/backup/etc/php/8.2/fpm/pool.d/friendica.conf
2023-09-19 10:21:07,287: DEBUG - ++ echo /etc/php/8.2/fpm/pool.d/friendica.conf
2023-09-19 10:21:07,287: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,288: DEBUG - + local src=/etc/php/8.2/fpm/pool.d/friendica.conf
2023-09-19 10:21:07,289: DEBUG - ++ echo apps/friendica/backup/etc/php/8.2/fpm/pool.d/friendica.conf
2023-09-19 10:21:07,289: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,291: DEBUG - + local dest=apps/friendica/backup/etc/php/8.2/fpm/pool.d/friendica.conf
2023-09-19 10:21:07,291: DEBUG - ++ dirname /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/php/8.2/fpm/pool.d/friendica.conf
2023-09-19 10:21:07,292: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/php/8.2/fpm/pool.d
2023-09-19 10:21:07,294: DEBUG - + ynh_backup --src_path=/etc/fail2ban/jail.d/friendica.conf
2023-09-19 10:21:07,319: DEBUG - + dest_path=
2023-09-19 10:21:07,319: DEBUG - + is_big=0
2023-09-19 10:21:07,319: DEBUG - + not_mandatory=0
2023-09-19 10:21:07,319: DEBUG - + BACKUP_CORE_ONLY=1
2023-09-19 10:21:07,320: DEBUG - + test -n friendica
2023-09-19 10:21:07,320: DEBUG - ++ ynh_app_setting_get --app=friendica --key=do_not_backup_data
2023-09-19 10:21:07,320: DEBUG - ++ local _globalapp=friendica
2023-09-19 10:21:07,343: DEBUG - ++ app=friendica
2023-09-19 10:21:07,343: DEBUG - ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-09-19 10:21:07,343: DEBUG - ++ ynh_app_setting get friendica do_not_backup_data
2023-09-19 10:21:07,385: DEBUG - + do_not_backup_data=
2023-09-19 10:21:07,385: DEBUG - + '[' '!' -e /etc/fail2ban/jail.d/friendica.conf ']'
2023-09-19 10:21:07,385: DEBUG - ++ realpath /etc/fail2ban/jail.d/friendica.conf
2023-09-19 10:21:07,386: DEBUG - + src_path=/etc/fail2ban/jail.d/friendica.conf
2023-09-19 10:21:07,387: DEBUG - + [[ -z '' ]]
2023-09-19 10:21:07,387: DEBUG - + dest_path=etc/fail2ban/jail.d/friendica.conf
2023-09-19 10:21:07,387: DEBUG - + [[ -e etc/fail2ban/jail.d/friendica.conf ]]
2023-09-19 10:21:07,387: DEBUG - + local rel_dir=/apps/friendica/backup
2023-09-19 10:21:07,387: DEBUG - + rel_dir=/apps/friendica/backup/
2023-09-19 10:21:07,387: DEBUG - + dest_path=/apps/friendica/backup/etc/fail2ban/jail.d/friendica.conf
2023-09-19 10:21:07,387: DEBUG - + dest_path=apps/friendica/backup/etc/fail2ban/jail.d/friendica.conf
2023-09-19 10:21:07,387: DEBUG - ++ echo /etc/fail2ban/jail.d/friendica.conf
2023-09-19 10:21:07,387: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,389: DEBUG - + local src=/etc/fail2ban/jail.d/friendica.conf
2023-09-19 10:21:07,389: DEBUG - ++ echo apps/friendica/backup/etc/fail2ban/jail.d/friendica.conf
2023-09-19 10:21:07,390: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,392: DEBUG - + local dest=apps/friendica/backup/etc/fail2ban/jail.d/friendica.conf
2023-09-19 10:21:07,392: DEBUG - ++ dirname /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/fail2ban/jail.d/friendica.conf
2023-09-19 10:21:07,393: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/fail2ban/jail.d
2023-09-19 10:21:07,395: DEBUG - + ynh_backup --src_path=/etc/fail2ban/filter.d/friendica.conf
2023-09-19 10:21:07,422: DEBUG - + dest_path=
2023-09-19 10:21:07,422: DEBUG - + is_big=0
2023-09-19 10:21:07,422: DEBUG - + not_mandatory=0
2023-09-19 10:21:07,422: DEBUG - + BACKUP_CORE_ONLY=1
2023-09-19 10:21:07,422: DEBUG - + test -n friendica
2023-09-19 10:21:07,422: DEBUG - ++ ynh_app_setting_get --app=friendica --key=do_not_backup_data
2023-09-19 10:21:07,423: DEBUG - ++ local _globalapp=friendica
2023-09-19 10:21:07,447: DEBUG - ++ app=friendica
2023-09-19 10:21:07,447: DEBUG - ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-09-19 10:21:07,447: DEBUG - ++ ynh_app_setting get friendica do_not_backup_data
2023-09-19 10:21:07,486: DEBUG - + do_not_backup_data=
2023-09-19 10:21:07,486: DEBUG - + '[' '!' -e /etc/fail2ban/filter.d/friendica.conf ']'
2023-09-19 10:21:07,486: DEBUG - ++ realpath /etc/fail2ban/filter.d/friendica.conf
2023-09-19 10:21:07,487: DEBUG - + src_path=/etc/fail2ban/filter.d/friendica.conf
2023-09-19 10:21:07,487: DEBUG - + [[ -z '' ]]
2023-09-19 10:21:07,488: DEBUG - + dest_path=etc/fail2ban/filter.d/friendica.conf
2023-09-19 10:21:07,488: DEBUG - + [[ -e etc/fail2ban/filter.d/friendica.conf ]]
2023-09-19 10:21:07,488: DEBUG - + local rel_dir=/apps/friendica/backup
2023-09-19 10:21:07,488: DEBUG - + rel_dir=/apps/friendica/backup/
2023-09-19 10:21:07,488: DEBUG - + dest_path=/apps/friendica/backup/etc/fail2ban/filter.d/friendica.conf
2023-09-19 10:21:07,488: DEBUG - + dest_path=apps/friendica/backup/etc/fail2ban/filter.d/friendica.conf
2023-09-19 10:21:07,488: DEBUG - ++ echo /etc/fail2ban/filter.d/friendica.conf
2023-09-19 10:21:07,488: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,490: DEBUG - + local src=/etc/fail2ban/filter.d/friendica.conf
2023-09-19 10:21:07,490: DEBUG - ++ echo apps/friendica/backup/etc/fail2ban/filter.d/friendica.conf
2023-09-19 10:21:07,490: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,492: DEBUG - + local dest=apps/friendica/backup/etc/fail2ban/filter.d/friendica.conf
2023-09-19 10:21:07,492: DEBUG - ++ dirname /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/fail2ban/filter.d/friendica.conf
2023-09-19 10:21:07,493: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/fail2ban/filter.d
2023-09-19 10:21:07,494: DEBUG - + ynh_backup --src_path=/etc/logrotate.d/friendica
2023-09-19 10:21:07,517: DEBUG - + dest_path=
2023-09-19 10:21:07,517: DEBUG - + is_big=0
2023-09-19 10:21:07,517: DEBUG - + not_mandatory=0
2023-09-19 10:21:07,517: DEBUG - + BACKUP_CORE_ONLY=1
2023-09-19 10:21:07,517: DEBUG - + test -n friendica
2023-09-19 10:21:07,517: DEBUG - ++ ynh_app_setting_get --app=friendica --key=do_not_backup_data
2023-09-19 10:21:07,518: DEBUG - ++ local _globalapp=friendica
2023-09-19 10:21:07,540: DEBUG - ++ app=friendica
2023-09-19 10:21:07,540: DEBUG - ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-09-19 10:21:07,541: DEBUG - ++ ynh_app_setting get friendica do_not_backup_data
2023-09-19 10:21:07,581: DEBUG - + do_not_backup_data=
2023-09-19 10:21:07,582: DEBUG - + '[' '!' -e /etc/logrotate.d/friendica ']'
2023-09-19 10:21:07,582: DEBUG - ++ realpath /etc/logrotate.d/friendica
2023-09-19 10:21:07,583: DEBUG - + src_path=/etc/logrotate.d/friendica
2023-09-19 10:21:07,583: DEBUG - + [[ -z '' ]]
2023-09-19 10:21:07,583: DEBUG - + dest_path=etc/logrotate.d/friendica
2023-09-19 10:21:07,583: DEBUG - + [[ -e etc/logrotate.d/friendica ]]
2023-09-19 10:21:07,583: DEBUG - + local rel_dir=/apps/friendica/backup
2023-09-19 10:21:07,583: DEBUG - + rel_dir=/apps/friendica/backup/
2023-09-19 10:21:07,583: DEBUG - + dest_path=/apps/friendica/backup/etc/logrotate.d/friendica
2023-09-19 10:21:07,583: DEBUG - + dest_path=apps/friendica/backup/etc/logrotate.d/friendica
2023-09-19 10:21:07,583: DEBUG - ++ echo /etc/logrotate.d/friendica
2023-09-19 10:21:07,583: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,585: DEBUG - + local src=/etc/logrotate.d/friendica
2023-09-19 10:21:07,585: DEBUG - ++ echo apps/friendica/backup/etc/logrotate.d/friendica
2023-09-19 10:21:07,585: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2023-09-19 10:21:07,587: DEBUG - + local dest=apps/friendica/backup/etc/logrotate.d/friendica
2023-09-19 10:21:07,588: DEBUG - ++ dirname /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/logrotate.d/friendica
2023-09-19 10:21:07,588: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/friendica-pre-upgrade1/apps/friendica/backup/etc/logrotate.d
2023-09-19 10:21:07,590: DEBUG - + ynh_backup --src_path=/etc/cron.d/friendica
2023-09-19 10:21:07,613: DEBUG - + dest_path=
2023-09-19 10:21:07,613: DEBUG - + is_big=0
2023-09-19 10:21:07,613: DEBUG - + not_mandatory=0
2023-09-19 10:21:07,614: DEBUG - + BACKUP_CORE_ONLY=1
2023-09-19 10:21:07,614: DEBUG - + test -n friendica
2023-09-19 10:21:07,614: DEBUG - ++ ynh_app_setting_get --app=friendica --key=do_not_backup_data
2023-09-19 10:21:07,614: DEBUG - ++ local _globalapp=friendica
2023-09-19 10:21:07,638: DEBUG - ++ app=friendica
2023-09-19 10:21:07,638: DEBUG - ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2023-09-19 10:21:07,638: DEBUG - ++ ynh_app_setting get friendica do_not_backup_data
2023-09-19 10:21:07,677: DEBUG - + do_not_backup_data=
2023-09-19 10:21:07,677: DEBUG - + '[' '!' -e /etc/cron.d/friendica ']'
2023-09-19 10:21:07,677: DEBUG - + ynh_print_warn '--message=Source path '\''/etc/cron.d/friendica'\'' does not exist'
2023-09-19 10:21:07,685: DEBUG - + ynh_print_log 'Source path '\''/etc/cron.d/friendica'\'' does not exist'
2023-09-19 10:21:07,685: DEBUG - + echo -e 'Source path '\''/etc/cron.d/friendica'\'' does not exist'
2023-09-19 10:21:07,686: DEBUG - + '[' 0 == 0 ']'
2023-09-19 10:21:07,686: DEBUG - + echo /etc/cron.d/friendica
2023-09-19 10:21:07,686: WARNING - Source path '/etc/cron.d/friendica' does not exist
2023-09-19 10:21:07,686: DEBUG - + grep --quiet /etc/fail2ban
2023-09-19 10:21:07,687: DEBUG - + return 1
2023-09-19 10:21:07,687: DEBUG - + ynh_exit_properly
2023-09-19 10:21:07,687: DEBUG - + [[ backup =~ ^install$|^upgrade$|^restore$ ]]
2023-09-19 10:21:09,190: DEBUG - Could not run script: /var/cache/yunohost/app_tmp_work_dirs/app_ds80wuxl/scripts/backup
2023-09-19 10:21:09,192: ERROR - Kon geen backup voor app 'friendica' aanmaken

Is there anyone that can help me with this issue?

Hmf dont know why the cron doesnt exists but let’s try to yolo fix the issue with

sudo touch /etc/cron.d/friendica

and retry the upgrade …

I am sorry, I forgot to mention: I already tried that.
Exact same error…

A lot of people must have this. I changed nothing on my YNH setup manually.

Anyone have any idea how to fix this?

Anyone? For a cuppa?