Moodle - Impossible to proceed to the upgrade && 403 error

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.7
What app is this about: MOODLE

Describe your issue

Hello everybody,

Here is what I got when I am attempting to update Moodle… Issue, when I try to reach the website, I am getting a 403 error page!

Please help me :slight_smile:

Share relevant logs or error messages

args:
  apps:
  - moodle
  name: moodle-pre-upgrade1
  system: null
ended_at: 2024-11-27 20:43:09.532482
error: Nothing to save
interface: api
operation: backup_create
parent: null
related_to:
- - app
  - moodle
started_at: 2024-11-27 20:43:08.170994
success: false
yunohost_version: 12.0.7

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

2024-11-27 21:43:08,196: INFO - Collecting files to be backed up for moodle…
2024-11-27 21:43:08,223: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_qngxinjx/scripts/backup"  7>&1']'
2024-11-27 21:43:08,227: DEBUG - + source ../settings/scripts/_common.sh
2024-11-27 21:43:08,227: DEBUG - + source /usr/share/yunohost/helpers
2024-11-27 21:43:08,228: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-11-27 21:43:08,229: DEBUG - +++ cd -- /usr/share/yunohost
2024-11-27 21:43:08,229: DEBUG - +++ pwd
2024-11-27 21:43:08,229: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-11-27 21:43:08,229: DEBUG - ++ YNH_HELPERS_VERSION=2
2024-11-27 21:43:08,232: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-11-27 21:43:08,233: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-11-27 21:43:08,267: DEBUG - + ynh_print_info '--message=Declaring files to be backed up...'
2024-11-27 21:43:08,279: INFO - Declaring files to be backed up...
2024-11-27 21:43:08,282: DEBUG - + ynh_backup --src_path=/var/www/moodle
2024-11-27 21:43:08,318: DEBUG - + dest_path=
2024-11-27 21:43:08,318: DEBUG - + is_big=0
2024-11-27 21:43:08,318: DEBUG - + not_mandatory=0
2024-11-27 21:43:08,318: DEBUG - + BACKUP_CORE_ONLY=1
2024-11-27 21:43:08,319: DEBUG - + test -n moodle
2024-11-27 21:43:08,319: DEBUG - ++ ynh_app_setting_get --app=moodle --key=do_not_backup_data
2024-11-27 21:43:08,426: DEBUG - + do_not_backup_data=
2024-11-27 21:43:08,427: DEBUG - + '[' '!' -e /var/www/moodle ']'
2024-11-27 21:43:08,427: DEBUG - ++ realpath /var/www/moodle
2024-11-27 21:43:08,428: DEBUG - + src_path=/var/www/moodle
2024-11-27 21:43:08,428: DEBUG - + [[ -z '' ]]
2024-11-27 21:43:08,429: DEBUG - + dest_path=var/www/moodle
2024-11-27 21:43:08,429: DEBUG - + [[ -e var/www/moodle ]]
2024-11-27 21:43:08,429: DEBUG - + local rel_dir=/apps/moodle/backup
2024-11-27 21:43:08,429: DEBUG - + rel_dir=/apps/moodle/backup/
2024-11-27 21:43:08,429: DEBUG - + dest_path=/apps/moodle/backup/var/www/moodle
2024-11-27 21:43:08,429: DEBUG - + dest_path=apps/moodle/backup/var/www/moodle
2024-11-27 21:43:08,429: DEBUG - ++ echo /var/www/moodle
2024-11-27 21:43:08,429: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-27 21:43:08,432: DEBUG - + local src=/var/www/moodle
2024-11-27 21:43:08,433: DEBUG - ++ echo apps/moodle/backup/var/www/moodle
2024-11-27 21:43:08,433: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-27 21:43:08,437: DEBUG - + local dest=apps/moodle/backup/var/www/moodle
2024-11-27 21:43:08,438: DEBUG - ++ dirname /home/yunohost.backup/tmp/moodle-pre-upgrade1/apps/moodle/backup/var/www/moodle
2024-11-27 21:43:08,441: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/moodle-pre-upgrade1/apps/moodle/backup/var/www
2024-11-27 21:43:08,445: DEBUG - + ynh_backup --src_path=/home/yunohost.app/moodle --is_big
2024-11-27 21:43:08,568: DEBUG - + dest_path=
2024-11-27 21:43:08,568: DEBUG - + is_big=1
2024-11-27 21:43:08,568: DEBUG - + not_mandatory=0
2024-11-27 21:43:08,568: DEBUG - + BACKUP_CORE_ONLY=1
2024-11-27 21:43:08,568: DEBUG - + test -n moodle
2024-11-27 21:43:08,569: DEBUG - ++ ynh_app_setting_get --app=moodle --key=do_not_backup_data
2024-11-27 21:43:08,709: DEBUG - + do_not_backup_data=
2024-11-27 21:43:08,710: DEBUG - + ynh_print_info '--message=/home/yunohost.app/moodle will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
2024-11-27 21:43:08,729: INFO - /home/yunohost.app/moodle will not be saved, because 'BACKUP_CORE_ONLY' is set.
2024-11-27 21:43:08,734: DEBUG - + return 0
2024-11-27 21:43:08,734: DEBUG - + ynh_backup --src_path=/etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf
2024-11-27 21:43:08,776: DEBUG - + dest_path=
2024-11-27 21:43:08,776: DEBUG - + is_big=0
2024-11-27 21:43:08,776: DEBUG - + not_mandatory=0
2024-11-27 21:43:08,776: DEBUG - + BACKUP_CORE_ONLY=1
2024-11-27 21:43:08,776: DEBUG - + test -n moodle
2024-11-27 21:43:08,777: DEBUG - ++ ynh_app_setting_get --app=moodle --key=do_not_backup_data
2024-11-27 21:43:08,901: DEBUG - + do_not_backup_data=
2024-11-27 21:43:08,902: DEBUG - + '[' '!' -e /etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf ']'
2024-11-27 21:43:08,902: DEBUG - ++ realpath /etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf
2024-11-27 21:43:08,903: DEBUG - + src_path=/etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf
2024-11-27 21:43:08,903: DEBUG - + [[ -z '' ]]
2024-11-27 21:43:08,903: DEBUG - + dest_path=etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf
2024-11-27 21:43:08,904: DEBUG - + [[ -e etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf ]]
2024-11-27 21:43:08,904: DEBUG - + local rel_dir=/apps/moodle/backup
2024-11-27 21:43:08,904: DEBUG - + rel_dir=/apps/moodle/backup/
2024-11-27 21:43:08,904: DEBUG - + dest_path=/apps/moodle/backup/etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf
2024-11-27 21:43:08,905: DEBUG - + dest_path=apps/moodle/backup/etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf
2024-11-27 21:43:08,905: DEBUG - ++ echo /etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf
2024-11-27 21:43:08,905: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-27 21:43:08,907: DEBUG - + local src=/etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf
2024-11-27 21:43:08,908: DEBUG - ++ sed --regexp-extended 's/"/\"\"/g'
2024-11-27 21:43:08,908: DEBUG - ++ echo apps/moodle/backup/etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf
2024-11-27 21:43:08,910: DEBUG - + local dest=apps/moodle/backup/etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf
2024-11-27 21:43:08,911: DEBUG - ++ dirname /home/yunohost.backup/tmp/moodle-pre-upgrade1/apps/moodle/backup/etc/nginx/conf.d/moodle.maindomain.tld.d/moodle.conf
2024-11-27 21:43:08,913: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/moodle-pre-upgrade1/apps/moodle/backup/etc/nginx/conf.d/moodle.maindomain.tld.d
2024-11-27 21:43:08,915: DEBUG - ++ ynh_exit_properly
2024-11-27 21:43:08,923: WARNING - /var/cache/yunohost/app_tmp_work_dirs/app_qngxinjx/scripts/backup: ligne 40: phpversion : variable sans liaison
2024-11-27 21:43:08,927: DEBUG - ++ [[ backup =~ ^install$|^upgrade$|^restore$ ]]
2024-11-27 21:43:09,418: DEBUG - ++ exit 1
2024-11-27 21:43:09,520: DEBUG - Could not run script: /var/cache/yunohost/app_tmp_work_dirs/app_qngxinjx/scripts/backup
2024-11-27 21:43:09,524: ERROR - Could not back up moodle

Can anyone please help me getting back Moodle?