ended_at: 2022-08-31 21:25:49.974307 env: BASH_XTRACEFD: '7' YNH_APP_BACKUP_DIR: /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup YNH_APP_BASEDIR: /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings YNH_APP_ID: gitea YNH_APP_INSTANCE_NAME: gitea YNH_APP_INSTANCE_NUMBER: '1' YNH_APP_MANIFEST_VERSION: 1.15.7~ynh1 YNH_ARCH: amd64 YNH_BACKUP_CSV: /home/yunohost.backup/tmp/gitea-pre-upgrade1/backup.csv YNH_BACKUP_DIR: /home/yunohost.backup/tmp/gitea-pre-upgrade1 YNH_CWD: /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup YNH_INTERFACE: api YNH_STDRETURN: /tmp/tmpo1vxh_zl/stdreturn error: Une erreur s'est produite dans le script de restauration de l'application interface: api operation: backup_restore_app parent: null related_to: - - app - gitea started_at: 2022-08-31 21:25:39.931731 success: false yunohost_version: 11.0.9.12 ============ 2022-08-31 23:25:39,941: INFO - Restauration de gitea... 2022-08-31 23:25:40,135: DEBUG - Uhoh, unknown permission gitea.main ? (Maybe we're in the process or deleting the perm for this app...) 2022-08-31 23:25:40,147: DEBUG - Nothing to update in LDAP 2022-08-31 23:25:40,148: DEBUG - Permission 'gitea.admin' mise à jour 2022-08-31 23:25:40,243: DEBUG - Uhoh, unknown permission gitea.main ? (Maybe we're in the process or deleting the perm for this app...) 2022-08-31 23:25:40,244: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20220831-212540-permission_url-gitea" style="text-decoration:underline"> Mise à jour de l'URL associée à l'autorisation 'gitea' </a>' 2022-08-31 23:25:40,373: DEBUG - Uhoh, unknown permission gitea.main ? (Maybe we're in the process or deleting the perm for this app...) 2022-08-31 23:25:40,476: DEBUG - Uhoh, unknown permission gitea.main ? (Maybe we're in the process or deleting the perm for this app...) 2022-08-31 23:25:40,476: DEBUG - Permission 'gitea.admin' créée 2022-08-31 23:25:40,477: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20220831-212540-permission_create-gitea" style="text-decoration:underline"> Créer permission 'gitea' </a>' 2022-08-31 23:25:40,739: DEBUG - Permission 'gitea.main' mise à jour 2022-08-31 23:25:40,839: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20220831-212540-permission_url-gitea" style="text-decoration:underline"> Mise à jour de l'URL associée à l'autorisation 'gitea' </a>' 2022-08-31 23:25:41,061: DEBUG - Permission 'gitea.main' créée 2022-08-31 23:25:41,061: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20220831-212540-permission_create-gitea" style="text-decoration:underline"> Créer permission 'gitea' </a>' 2022-08-31 23:25:41,187: DEBUG - The permission database has been resynchronized 2022-08-31 23:25:41,327: DEBUG - La configuration de SSOwat a été regénérée 2022-08-31 23:25:41,337: DEBUG - Chargement de la migration 0022_php73_to_php74_pools ... 2022-08-31 23:25:41,337: DEBUG - Chargement de la migration 0024_rebuild_python_venv ... 2022-08-31 23:25:41,338: DEBUG - Chargement de la migration 0021_migrate_to_bullseye ... 2022-08-31 23:25:41,338: DEBUG - Chargement de la migration 0023_postgresql_11_to_13 ... 2022-08-31 23:25:41,358: DEBUG - Exécution du script de restauration de l'application 'gitea'... 2022-08-31 23:25:41,372: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_wj146ppp/restore" 7>&1']' 2022-08-31 23:25:41,381: DEBUG - + source ../settings/scripts/experimental_helper.sh 2022-08-31 23:25:41,382: DEBUG - + source ../settings/scripts/_common.sh 2022-08-31 23:25:41,382: DEBUG - ++ app=gitea 2022-08-31 23:25:41,382: DEBUG - ++ dbname=gitea 2022-08-31 23:25:41,382: DEBUG - ++ dbuser=gitea 2022-08-31 23:25:41,382: DEBUG - ++ final_path=/opt/gitea 2022-08-31 23:25:41,382: DEBUG - ++ DATADIR=/home/gitea 2022-08-31 23:25:41,383: DEBUG - ++ REPO_PATH=/home/gitea/repositories 2022-08-31 23:25:41,383: DEBUG - ++ DATA_PATH=/home/gitea/data 2022-08-31 23:25:41,383: DEBUG - ++ SSH_PATH=/home/gitea/.ssh 2022-08-31 23:25:41,383: DEBUG - +++ uname -m 2022-08-31 23:25:41,384: DEBUG - +++ grep arm64 2022-08-31 23:25:41,384: DEBUG - ++ '[' -n '' ']' 2022-08-31 23:25:41,384: DEBUG - +++ uname -m 2022-08-31 23:25:41,384: DEBUG - +++ grep aarch64 2022-08-31 23:25:41,386: DEBUG - ++ '[' -n '' ']' 2022-08-31 23:25:41,386: DEBUG - +++ uname -m 2022-08-31 23:25:41,386: DEBUG - +++ grep 64 2022-08-31 23:25:41,387: DEBUG - ++ '[' -n x86_64 ']' 2022-08-31 23:25:41,388: DEBUG - ++ architecture=x86-64 2022-08-31 23:25:41,388: DEBUG - + source /usr/share/yunohost/helpers 2022-08-31 23:25:41,388: DEBUG - +++ set +o 2022-08-31 23:25:41,388: DEBUG - +++ grep xtrace 2022-08-31 23:25:41,390: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2022-08-31 23:25:41,390: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2022-08-31 23:25:41,406: DEBUG - + ynh_abort_if_errors 2022-08-31 23:25:41,407: DEBUG - + trap ynh_exit_properly EXIT 2022-08-31 23:25:41,468: INFO - [....................] > Loading settings... 2022-08-31 23:25:41,470: DEBUG - ++ ynh_app_setting_get --app gitea --key domain 2022-08-31 23:25:41,470: DEBUG - ++ local _globalapp=gitea 2022-08-31 23:25:41,519: DEBUG - ++ app=gitea 2022-08-31 23:25:41,520: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2022-08-31 23:25:41,520: DEBUG - ++ ynh_app_setting get gitea domain 2022-08-31 23:25:41,578: DEBUG - + domain=maindomain.tld 2022-08-31 23:25:41,578: DEBUG - ++ ynh_app_setting_get --app gitea --key path 2022-08-31 23:25:41,578: DEBUG - ++ local _globalapp=gitea 2022-08-31 23:25:41,636: DEBUG - ++ app=gitea 2022-08-31 23:25:41,636: DEBUG - ++ [[ path =~ (unprotected|protected|skipped)_ ]] 2022-08-31 23:25:41,636: DEBUG - ++ ynh_app_setting get gitea path 2022-08-31 23:25:41,691: DEBUG - + path_url=/gitea 2022-08-31 23:25:41,691: DEBUG - ++ ynh_app_setting_get --app gitea --key mysqlpwd 2022-08-31 23:25:41,692: DEBUG - ++ local _globalapp=gitea 2022-08-31 23:25:41,749: DEBUG - ++ app=gitea 2022-08-31 23:25:41,750: DEBUG - ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]] 2022-08-31 23:25:41,750: DEBUG - ++ ynh_app_setting get gitea mysqlpwd 2022-08-31 23:25:41,807: DEBUG - + dbpass=********** 2022-08-31 23:25:41,807: DEBUG - ++ ynh_app_setting_get --app gitea --key adminusername 2022-08-31 23:25:41,808: DEBUG - ++ local _globalapp=gitea 2022-08-31 23:25:41,863: DEBUG - ++ app=gitea 2022-08-31 23:25:41,863: DEBUG - ++ [[ adminusername =~ (unprotected|protected|skipped)_ ]] 2022-08-31 23:25:41,863: DEBUG - ++ ynh_app_setting get gitea adminusername 2022-08-31 23:25:41,916: DEBUG - + admin=sushy 2022-08-31 23:25:41,917: DEBUG - ++ ynh_app_setting_get --app gitea --key web_port 2022-08-31 23:25:41,917: DEBUG - ++ local _globalapp=gitea 2022-08-31 23:25:41,973: DEBUG - ++ app=gitea 2022-08-31 23:25:41,974: DEBUG - ++ [[ web_port =~ (unprotected|protected|skipped)_ ]] 2022-08-31 23:25:41,974: DEBUG - ++ ynh_app_setting get gitea web_port 2022-08-31 23:25:42,031: DEBUG - + port=6000 2022-08-31 23:25:42,032: DEBUG - ++ ynh_app_setting_get gitea upstream_version 2022-08-31 23:25:42,032: DEBUG - ++ local _globalapp=gitea 2022-08-31 23:25:42,066: DEBUG - ++ app=gitea 2022-08-31 23:25:42,066: DEBUG - ++ [[ upstream_version =~ (unprotected|protected|skipped)_ ]] 2022-08-31 23:25:42,067: DEBUG - ++ ynh_app_setting get gitea upstream_version 2022-08-31 23:25:42,121: DEBUG - + upstream_version=1.15.7 2022-08-31 23:25:42,122: DEBUG - + ynh_webpath_available --domain maindomain.tld --path_url /gitea 2022-08-31 23:25:42,179: DEBUG - + yunohost domain url-available maindomain.tld /gitea 2022-08-31 23:25:42,533: DEBUG - False 2022-08-31 23:25:42,564: DEBUG - + ynh_user_exists sushy 2022-08-31 23:25:42,577: DEBUG - + yunohost user list --output-as json --quiet 2022-08-31 23:25:42,577: DEBUG - + jq -e '.users."sushy"' 2022-08-31 23:25:42,856: DEBUG - + test '!' -e /opt/gitea 2022-08-31 23:25:42,900: INFO - [+...................] > Configuring system user... 2022-08-31 23:25:42,901: DEBUG - + ynh_system_user_create --username=gitea --home_dir=/home/gitea --use_shell 2022-08-31 23:25:42,978: DEBUG - + use_shell=1 2022-08-31 23:25:42,979: DEBUG - + home_dir=/home/gitea 2022-08-31 23:25:42,979: DEBUG - + groups= 2022-08-31 23:25:42,979: DEBUG - + ynh_system_user_exists gitea 2022-08-31 23:25:42,988: DEBUG - + getent passwd gitea 2022-08-31 23:25:42,992: DEBUG - + '[' -n /home/gitea ']' 2022-08-31 23:25:42,992: DEBUG - + local 'user_home_dir=--home-dir /home/gitea' 2022-08-31 23:25:42,993: DEBUG - + local shell= 2022-08-31 23:25:42,993: DEBUG - + useradd --home-dir /home/gitea --system --user-group gitea 2022-08-31 23:25:43,122: INFO - [#++++++++++.........] > Restoring files... 2022-08-31 23:25:43,123: DEBUG - + ynh_restore 2022-08-31 23:25:43,123: DEBUG - + local REL_DIR=apps/gitea/backup 2022-08-31 23:25:43,123: DEBUG - + REL_DIR=apps/gitea/backup/ 2022-08-31 23:25:43,123: DEBUG - + read line 2022-08-31 23:25:43,124: DEBUG - + tr --delete $'\r' 2022-08-31 23:25:43,124: DEBUG - + grep --only-matching --no-filename --perl-regexp '^".*","apps/gitea/backup/.*"$' 2022-08-31 23:25:43,126: DEBUG - + cat /home/yunohost.backup/tmp/gitea-pre-upgrade1/backup.csv 2022-08-31 23:25:43,128: DEBUG - ++ echo '"/opt/gitea","apps/gitea/backup/opt/gitea"' 2022-08-31 23:25:43,128: DEBUG - ++ grep --only-matching --no-filename --perl-regexp '^"\K.*(?=",".*"$)' 2022-08-31 23:25:43,131: DEBUG - + local ORIGIN_PATH=/opt/gitea 2022-08-31 23:25:43,132: DEBUG - ++ echo '"/opt/gitea","apps/gitea/backup/opt/gitea"' 2022-08-31 23:25:43,133: DEBUG - ++ grep --only-matching --no-filename --perl-regexp '^".*","apps/gitea/backup/\K.*(?="$)' 2022-08-31 23:25:43,136: DEBUG - + local ARCHIVE_PATH=opt/gitea 2022-08-31 23:25:43,136: DEBUG - + ynh_restore_file --origin_path=opt/gitea --dest_path=/opt/gitea 2022-08-31 23:25:43,181: DEBUG - + origin_path=/opt/gitea 2022-08-31 23:25:43,182: DEBUG - + dest_path=/opt/gitea 2022-08-31 23:25:43,182: DEBUG - + not_mandatory=0 2022-08-31 23:25:43,182: DEBUG - + local archive_path=/home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/opt/gitea 2022-08-31 23:25:43,182: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/opt/gitea ']' 2022-08-31 23:25:43,182: DEBUG - + [[ -e /opt/gitea ]] 2022-08-31 23:25:43,182: DEBUG - ++ dirname /opt/gitea 2022-08-31 23:25:43,184: DEBUG - + mkdir --parents /opt 2022-08-31 23:25:43,186: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/gitea-pre-upgrade1 2022-08-31 23:25:43,188: DEBUG - + mv /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/opt/gitea /opt/gitea 2022-08-31 23:25:43,189: DEBUG - + [[ /opt/gitea == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]] 2022-08-31 23:25:43,190: DEBUG - + read line 2022-08-31 23:25:43,190: DEBUG - ++ echo '"/etc/nginx/conf.d/maindomain.tld.d/gitea.conf","apps/gitea/backup/etc/nginx/conf.d/maindomain.tld.d/gitea.conf"' 2022-08-31 23:25:43,190: DEBUG - ++ grep --only-matching --no-filename --perl-regexp '^"\K.*(?=",".*"$)' 2022-08-31 23:25:43,192: DEBUG - + local ORIGIN_PATH=/etc/nginx/conf.d/maindomain.tld.d/gitea.conf 2022-08-31 23:25:43,193: DEBUG - ++ echo '"/etc/nginx/conf.d/maindomain.tld.d/gitea.conf","apps/gitea/backup/etc/nginx/conf.d/maindomain.tld.d/gitea.conf"' 2022-08-31 23:25:43,193: DEBUG - ++ grep --only-matching --no-filename --perl-regexp '^".*","apps/gitea/backup/\K.*(?="$)' 2022-08-31 23:25:43,196: DEBUG - + local ARCHIVE_PATH=etc/nginx/conf.d/maindomain.tld.d/gitea.conf 2022-08-31 23:25:43,196: DEBUG - + ynh_restore_file --origin_path=etc/nginx/conf.d/maindomain.tld.d/gitea.conf --dest_path=/etc/nginx/conf.d/maindomain.tld.d/gitea.conf 2022-08-31 23:25:43,236: DEBUG - + origin_path=/etc/nginx/conf.d/maindomain.tld.d/gitea.conf 2022-08-31 23:25:43,236: DEBUG - + dest_path=/etc/nginx/conf.d/maindomain.tld.d/gitea.conf 2022-08-31 23:25:43,237: DEBUG - + not_mandatory=0 2022-08-31 23:25:43,237: DEBUG - + local archive_path=/home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/etc/nginx/conf.d/maindomain.tld.d/gitea.conf 2022-08-31 23:25:43,237: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/etc/nginx/conf.d/maindomain.tld.d/gitea.conf ']' 2022-08-31 23:25:43,237: DEBUG - + '[' '!' -f /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/etc/nginx/conf.d/maindomain.tld.d/gitea.conf ']' 2022-08-31 23:25:43,237: DEBUG - + [[ -e /etc/nginx/conf.d/maindomain.tld.d/gitea.conf ]] 2022-08-31 23:25:43,237: DEBUG - ++ dirname /etc/nginx/conf.d/maindomain.tld.d/gitea.conf 2022-08-31 23:25:43,238: DEBUG - + mkdir --parents /etc/nginx/conf.d/maindomain.tld.d 2022-08-31 23:25:43,240: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/gitea-pre-upgrade1 2022-08-31 23:25:43,242: DEBUG - + mv /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/etc/nginx/conf.d/maindomain.tld.d/gitea.conf /etc/nginx/conf.d/maindomain.tld.d/gitea.conf 2022-08-31 23:25:43,244: DEBUG - + [[ /etc/nginx/conf.d/maindomain.tld.d/gitea.conf == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]] 2022-08-31 23:25:43,244: DEBUG - + grep 'php7.3.*sock' /etc/nginx/conf.d/maindomain.tld.d/gitea.conf 2022-08-31 23:25:43,246: DEBUG - + read line 2022-08-31 23:25:43,246: DEBUG - ++ echo '"/etc/systemd/system/gitea.service","apps/gitea/backup/etc/systemd/system/gitea.service"' 2022-08-31 23:25:43,247: DEBUG - ++ grep --only-matching --no-filename --perl-regexp '^"\K.*(?=",".*"$)' 2022-08-31 23:25:43,248: DEBUG - + local ORIGIN_PATH=/etc/systemd/system/gitea.service 2022-08-31 23:25:43,249: DEBUG - ++ echo '"/etc/systemd/system/gitea.service","apps/gitea/backup/etc/systemd/system/gitea.service"' 2022-08-31 23:25:43,249: DEBUG - ++ grep --only-matching --no-filename --perl-regexp '^".*","apps/gitea/backup/\K.*(?="$)' 2022-08-31 23:25:43,251: DEBUG - + local ARCHIVE_PATH=etc/systemd/system/gitea.service 2022-08-31 23:25:43,251: DEBUG - + ynh_restore_file --origin_path=etc/systemd/system/gitea.service --dest_path=/etc/systemd/system/gitea.service 2022-08-31 23:25:43,295: DEBUG - + origin_path=/etc/systemd/system/gitea.service 2022-08-31 23:25:43,295: DEBUG - + dest_path=/etc/systemd/system/gitea.service 2022-08-31 23:25:43,295: DEBUG - + not_mandatory=0 2022-08-31 23:25:43,296: DEBUG - + local archive_path=/home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/etc/systemd/system/gitea.service 2022-08-31 23:25:43,296: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/etc/systemd/system/gitea.service ']' 2022-08-31 23:25:43,296: DEBUG - + '[' '!' -f /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/etc/systemd/system/gitea.service ']' 2022-08-31 23:25:43,296: DEBUG - + [[ -e /etc/systemd/system/gitea.service ]] 2022-08-31 23:25:43,297: DEBUG - ++ dirname /etc/systemd/system/gitea.service 2022-08-31 23:25:43,297: DEBUG - + mkdir --parents /etc/systemd/system 2022-08-31 23:25:43,299: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/gitea-pre-upgrade1 2022-08-31 23:25:43,302: DEBUG - + mv /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/etc/systemd/system/gitea.service /etc/systemd/system/gitea.service 2022-08-31 23:25:43,304: DEBUG - + [[ /etc/systemd/system/gitea.service == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]] 2022-08-31 23:25:43,304: DEBUG - + read line 2022-08-31 23:25:43,305: DEBUG - ++ echo '"/var/log/gitea","apps/gitea/backup/var/log/gitea"' 2022-08-31 23:25:43,305: DEBUG - ++ grep --only-matching --no-filename --perl-regexp '^"\K.*(?=",".*"$)' 2022-08-31 23:25:43,307: DEBUG - + local ORIGIN_PATH=/var/log/gitea 2022-08-31 23:25:43,308: DEBUG - ++ echo '"/var/log/gitea","apps/gitea/backup/var/log/gitea"' 2022-08-31 23:25:43,309: DEBUG - ++ grep --only-matching --no-filename --perl-regexp '^".*","apps/gitea/backup/\K.*(?="$)' 2022-08-31 23:25:43,311: DEBUG - + local ARCHIVE_PATH=var/log/gitea 2022-08-31 23:25:43,312: DEBUG - + ynh_restore_file --origin_path=var/log/gitea --dest_path=/var/log/gitea 2022-08-31 23:25:43,355: DEBUG - + origin_path=/var/log/gitea 2022-08-31 23:25:43,355: DEBUG - + dest_path=/var/log/gitea 2022-08-31 23:25:43,355: DEBUG - + not_mandatory=0 2022-08-31 23:25:43,356: DEBUG - + local archive_path=/home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/var/log/gitea 2022-08-31 23:25:43,356: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/var/log/gitea ']' 2022-08-31 23:25:43,356: DEBUG - + [[ -e /var/log/gitea ]] 2022-08-31 23:25:43,356: DEBUG - ++ dirname /var/log/gitea 2022-08-31 23:25:43,358: DEBUG - + mkdir --parents /var/log 2022-08-31 23:25:43,359: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/gitea-pre-upgrade1 2022-08-31 23:25:43,361: DEBUG - + mv /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/backup/var/log/gitea /var/log/gitea 2022-08-31 23:25:43,363: DEBUG - + [[ /var/log/gitea == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]] 2022-08-31 23:25:43,363: DEBUG - + read line 2022-08-31 23:25:43,441: INFO - [###########+++......] > Restoring database... 2022-08-31 23:25:43,442: DEBUG - + ynh_mysql_create_db gitea gitea ********** 2022-08-31 23:25:43,442: DEBUG - + local db=gitea 2022-08-31 23:25:43,443: DEBUG - + local 'sql=CREATE DATABASE gitea;' 2022-08-31 23:25:43,443: DEBUG - + [[ 3 -gt 1 ]] 2022-08-31 23:25:43,443: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON gitea.* TO '\''gitea'\''@'\''localhost'\''' 2022-08-31 23:25:43,443: DEBUG - + [[ -n ********** ]] 2022-08-31 23:25:43,443: DEBUG - + sql+=' IDENTIFIED BY '\''**********'\''' 2022-08-31 23:25:43,444: DEBUG - + sql+=' WITH GRANT OPTION;' 2022-08-31 23:25:43,444: DEBUG - + ynh_mysql_execute_as_root '--sql=CREATE DATABASE gitea; GRANT ALL PRIVILEGES ON gitea.* TO '\''gitea'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;' 2022-08-31 23:25:43,464: DEBUG - + database= 2022-08-31 23:25:43,464: DEBUG - + '[' -n '' ']' 2022-08-31 23:25:43,465: DEBUG - + mysql -B '' 2022-08-31 23:25:43,477: DEBUG - + ynh_mysql_connect_as gitea ********** gitea 2022-08-31 23:25:43,539: DEBUG - + database=gitea 2022-08-31 23:25:43,539: DEBUG - + mysql --user=gitea --password=********** --batch gitea 2022-08-31 23:25:44,309: DEBUG - + systemctl daemon-reload 2022-08-31 23:25:44,542: DEBUG - + systemctl enable gitea.service --quiet 2022-08-31 23:25:44,839: INFO - [##############+.....] > Configuring fail2ban... 2022-08-31 23:25:44,840: DEBUG - + ynh_add_fail2ban_config --logpath /var/log/gitea/gitea.log --failregex '.*Failed authentication attempt for .* from <HOST>' --max_retry 5 2022-08-31 23:25:45,059: DEBUG - + max_retry=5 2022-08-31 23:25:45,059: DEBUG - + ports=http,https 2022-08-31 23:25:45,059: DEBUG - + use_template=0 2022-08-31 23:25:45,059: DEBUG - + '[' 0 -ne 1 ']' 2022-08-31 23:25:45,060: DEBUG - + test -n /var/log/gitea/gitea.log 2022-08-31 23:25:45,060: DEBUG - + test -n '.*Failed authentication attempt for .* from <HOST>' 2022-08-31 23:25:45,060: DEBUG - [__APP__] 2022-08-31 23:25:45,060: DEBUG - enabled = true 2022-08-31 23:25:45,061: DEBUG - port = __PORTS__ 2022-08-31 23:25:45,061: DEBUG - filter = __APP__ 2022-08-31 23:25:45,061: DEBUG - logpath = __LOGPATH__ 2022-08-31 23:25:45,061: DEBUG - maxretry = __MAX_RETRY__ 2022-08-31 23:25:45,061: DEBUG - ' 2022-08-31 23:25:45,061: DEBUG - [INCLUDES] 2022-08-31 23:25:45,062: DEBUG - before = common.conf 2022-08-31 23:25:45,062: DEBUG - [Definition] 2022-08-31 23:25:45,062: DEBUG - failregex = __FAILREGEX__ 2022-08-31 23:25:45,062: DEBUG - ignoreregex = 2022-08-31 23:25:45,062: DEBUG - ' 2022-08-31 23:25:45,062: DEBUG - + ynh_add_config --template=/home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf/f2b_jail.conf --destination=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,100: DEBUG - + '[' -f /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf//home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf/f2b_jail.conf ']' 2022-08-31 23:25:45,100: DEBUG - + '[' -f /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf/f2b_jail.conf ']' 2022-08-31 23:25:45,100: DEBUG - + template_path=/home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf/f2b_jail.conf 2022-08-31 23:25:45,101: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,114: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_jail.d_gitea.conf 2022-08-31 23:25:45,115: DEBUG - ++ ynh_app_setting_get --app=gitea --key=checksum__etc_fail2ban_jail.d_gitea.conf 2022-08-31 23:25:45,115: DEBUG - ++ local _globalapp=gitea 2022-08-31 23:25:45,150: DEBUG - ++ app=gitea 2022-08-31 23:25:45,150: DEBUG - ++ [[ checksum__etc_fail2ban_jail.d_gitea.conf =~ (unprotected|protected|skipped)_ ]] 2022-08-31 23:25:45,151: DEBUG - ++ ynh_app_setting get gitea checksum__etc_fail2ban_jail.d_gitea.conf 2022-08-31 23:25:45,204: DEBUG - + local checksum_value=6eaec67ae2c0d811f46b6e40796d6894 2022-08-31 23:25:45,204: DEBUG - + backup_file_checksum= 2022-08-31 23:25:45,205: DEBUG - + '[' -n 6eaec67ae2c0d811f46b6e40796d6894 ']' 2022-08-31 23:25:45,205: DEBUG - + '[' -e /etc/fail2ban/jail.d/gitea.conf ']' 2022-08-31 23:25:45,205: DEBUG - + touch /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,205: DEBUG - + chown root:root /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,211: DEBUG - + chmod 640 /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,212: DEBUG - + cp -f /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf/f2b_jail.conf /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,216: DEBUG - + _ynh_apply_default_permissions /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,216: DEBUG - + local target=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,217: DEBUG - ++ jq -r .requirements.yunohost /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/manifest.json 2022-08-31 23:25:45,218: DEBUG - ++ tr -d '>= ' 2022-08-31 23:25:45,262: DEBUG - + local ynh_requirement=4.3 2022-08-31 23:25:45,263: DEBUG - + '[' -z 4.3 ']' 2022-08-31 23:25:45,263: DEBUG - + '[' 4.3 == null ']' 2022-08-31 23:25:45,263: DEBUG - + dpkg --compare-versions 4.3 ge 4.2 2022-08-31 23:25:45,265: DEBUG - + chmod o-rwx /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,267: DEBUG - + chmod g-w /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,269: DEBUG - + chown -R root:root /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,272: DEBUG - + ynh_system_user_exists gitea 2022-08-31 23:25:45,285: DEBUG - + getent passwd gitea 2022-08-31 23:25:45,289: DEBUG - + chown gitea:gitea /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,295: DEBUG - + echo /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,295: DEBUG - + grep -q '^/etc/cron' 2022-08-31 23:25:45,297: DEBUG - + ynh_replace_vars --file=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,309: DEBUG - + test -n /gitea 2022-08-31 23:25:45,309: DEBUG - + local path_url_slash_less=/gitea 2022-08-31 23:25:45,309: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/gitea/ --target_file=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,381: DEBUG - + sed --in-place s@__PATH__/@/gitea/@g /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,384: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/gitea --target_file=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,464: DEBUG - + sed --in-place s@__PATH__@/gitea@g /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,467: DEBUG - + test -n gitea 2022-08-31 23:25:45,467: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=gitea --target_file=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,536: DEBUG - + sed --in-place s@__NAME__@gitea@g /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,538: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=gitea --target_file=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,603: DEBUG - + sed --in-place s@__NAMETOCHANGE__@gitea@g /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,605: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=gitea --target_file=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,682: DEBUG - + sed --in-place s@__USER__@gitea@g /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,685: DEBUG - + test -n /opt/gitea 2022-08-31 23:25:45,685: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/gitea --target_file=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,751: DEBUG - + sed --in-place s@__FINALPATH__@/opt/gitea@g /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,754: DEBUG - + test -n 7.4 2022-08-31 23:25:45,754: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,827: DEBUG - + sed --in-place s@__PHPVERSION__@7.4@g /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,829: DEBUG - + test -n '' 2022-08-31 23:25:45,830: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,831: DEBUG - ++ sort --unique 2022-08-31 23:25:45,833: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2022-08-31 23:25:45,837: DEBUG - + uniques_vars=('app' 'logpath' 'max_retry' 'ports') 2022-08-31 23:25:45,837: DEBUG - + local delimit=@ 2022-08-31 23:25:45,837: DEBUG - + for one_var in "${uniques_vars[@]}" 2022-08-31 23:25:45,837: DEBUG - + [[ -v app ]] 2022-08-31 23:25:45,837: DEBUG - + match_string=__APP__ 2022-08-31 23:25:45,837: DEBUG - + match_string=__APP__ 2022-08-31 23:25:45,837: DEBUG - + replace_string=gitea 2022-08-31 23:25:45,838: DEBUG - + replace_string=gitea 2022-08-31 23:25:45,838: DEBUG - + replace_string=gitea 2022-08-31 23:25:45,838: DEBUG - + sed --in-place s@__APP__@gitea@g /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,840: DEBUG - + for one_var in "${uniques_vars[@]}" 2022-08-31 23:25:45,840: DEBUG - + [[ -v logpath ]] 2022-08-31 23:25:45,840: DEBUG - + match_string=__LOGPATH__ 2022-08-31 23:25:45,840: DEBUG - + match_string=__LOGPATH__ 2022-08-31 23:25:45,840: DEBUG - + replace_string=/var/log/gitea/gitea.log 2022-08-31 23:25:45,841: DEBUG - + replace_string=/var/log/gitea/gitea.log 2022-08-31 23:25:45,841: DEBUG - + replace_string=/var/log/gitea/gitea.log 2022-08-31 23:25:45,841: DEBUG - + sed --in-place s@__LOGPATH__@/var/log/gitea/gitea.log@g /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,842: DEBUG - + for one_var in "${uniques_vars[@]}" 2022-08-31 23:25:45,842: DEBUG - + [[ -v max_retry ]] 2022-08-31 23:25:45,842: DEBUG - + match_string=__MAX_RETRY__ 2022-08-31 23:25:45,842: DEBUG - + match_string=__MAX_RETRY__ 2022-08-31 23:25:45,842: DEBUG - + replace_string=5 2022-08-31 23:25:45,843: DEBUG - + replace_string=5 2022-08-31 23:25:45,843: DEBUG - + replace_string=5 2022-08-31 23:25:45,843: DEBUG - + sed --in-place s@__MAX_RETRY__@5@g /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,844: DEBUG - + for one_var in "${uniques_vars[@]}" 2022-08-31 23:25:45,844: DEBUG - + [[ -v ports ]] 2022-08-31 23:25:45,844: DEBUG - + match_string=__PORTS__ 2022-08-31 23:25:45,844: DEBUG - + match_string=__PORTS__ 2022-08-31 23:25:45,845: DEBUG - + replace_string=http,https 2022-08-31 23:25:45,845: DEBUG - + replace_string=http,https 2022-08-31 23:25:45,845: DEBUG - + replace_string=http,https 2022-08-31 23:25:45,845: DEBUG - + sed --in-place s@__PORTS__@http,https@g /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,846: DEBUG - + ynh_store_file_checksum --file=/etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,847: DEBUG - + update_only=0 2022-08-31 23:25:45,870: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_jail.d_gitea.conf 2022-08-31 23:25:45,871: DEBUG - ++ md5sum /etc/fail2ban/jail.d/gitea.conf 2022-08-31 23:25:45,871: DEBUG - ++ cut '--delimiter= ' --fields=1 2022-08-31 23:25:45,873: DEBUG - + ynh_app_setting_set --app=gitea --key=checksum__etc_fail2ban_jail.d_gitea.conf --value=6eaec67ae2c0d811f46b6e40796d6894 2022-08-31 23:25:45,874: DEBUG - + local _globalapp=gitea 2022-08-31 23:25:45,947: DEBUG - + app=gitea 2022-08-31 23:25:45,947: DEBUG - + [[ checksum__etc_fail2ban_jail.d_gitea.conf =~ (unprotected|protected|skipped)_ ]] 2022-08-31 23:25:45,948: DEBUG - + ynh_app_setting set gitea checksum__etc_fail2ban_jail.d_gitea.conf 6eaec67ae2c0d811f46b6e40796d6894 2022-08-31 23:25:46,007: DEBUG - + '[' -n '' ']' 2022-08-31 23:25:46,007: DEBUG - + unset backup_file_checksum 2022-08-31 23:25:46,008: DEBUG - + ynh_add_config --template=/home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf/f2b_filter.conf --destination=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,046: DEBUG - + '[' -f /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf//home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf/f2b_filter.conf ']' 2022-08-31 23:25:46,046: DEBUG - + '[' -f /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf/f2b_filter.conf ']' 2022-08-31 23:25:46,046: DEBUG - + template_path=/home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf/f2b_filter.conf 2022-08-31 23:25:46,047: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,062: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_filter.d_gitea.conf 2022-08-31 23:25:46,063: DEBUG - ++ ynh_app_setting_get --app=gitea --key=checksum__etc_fail2ban_filter.d_gitea.conf 2022-08-31 23:25:46,063: DEBUG - ++ local _globalapp=gitea 2022-08-31 23:25:46,098: DEBUG - ++ app=gitea 2022-08-31 23:25:46,098: DEBUG - ++ [[ checksum__etc_fail2ban_filter.d_gitea.conf =~ (unprotected|protected|skipped)_ ]] 2022-08-31 23:25:46,098: DEBUG - ++ ynh_app_setting get gitea checksum__etc_fail2ban_filter.d_gitea.conf 2022-08-31 23:25:46,158: DEBUG - + local checksum_value=ebbb19f2f2b455d132fe43546242c6cd 2022-08-31 23:25:46,159: DEBUG - + backup_file_checksum= 2022-08-31 23:25:46,159: DEBUG - + '[' -n ebbb19f2f2b455d132fe43546242c6cd ']' 2022-08-31 23:25:46,159: DEBUG - + '[' -e /etc/fail2ban/filter.d/gitea.conf ']' 2022-08-31 23:25:46,160: DEBUG - + touch /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,160: DEBUG - + chown root:root /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,161: DEBUG - + chmod 640 /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,162: DEBUG - + cp -f /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/conf/f2b_filter.conf /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,164: DEBUG - + _ynh_apply_default_permissions /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,165: DEBUG - + local target=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,165: DEBUG - ++ tr -d '>= ' 2022-08-31 23:25:46,166: DEBUG - ++ jq -r .requirements.yunohost /home/yunohost.backup/tmp/gitea-pre-upgrade1/apps/gitea/settings/manifest.json 2022-08-31 23:25:46,230: DEBUG - + local ynh_requirement=4.3 2022-08-31 23:25:46,231: DEBUG - + '[' -z 4.3 ']' 2022-08-31 23:25:46,231: DEBUG - + '[' 4.3 == null ']' 2022-08-31 23:25:46,231: DEBUG - + dpkg --compare-versions 4.3 ge 4.2 2022-08-31 23:25:46,233: DEBUG - + chmod o-rwx /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,234: DEBUG - + chmod g-w /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,236: DEBUG - + chown -R root:root /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,238: DEBUG - + ynh_system_user_exists gitea 2022-08-31 23:25:46,250: DEBUG - + getent passwd gitea 2022-08-31 23:25:46,252: DEBUG - + chown gitea:gitea /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,253: DEBUG - + grep -q '^/etc/cron' 2022-08-31 23:25:46,254: DEBUG - + echo /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,255: DEBUG - + ynh_replace_vars --file=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,272: DEBUG - + test -n /gitea 2022-08-31 23:25:46,272: DEBUG - + local path_url_slash_less=/gitea 2022-08-31 23:25:46,272: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/gitea/ --target_file=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,346: DEBUG - + sed --in-place s@__PATH__/@/gitea/@g /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,349: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/gitea --target_file=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,423: DEBUG - + sed --in-place s@__PATH__@/gitea@g /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,425: DEBUG - + test -n gitea 2022-08-31 23:25:46,425: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=gitea --target_file=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,505: DEBUG - + sed --in-place s@__NAME__@gitea@g /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,507: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=gitea --target_file=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,578: DEBUG - + sed --in-place s@__NAMETOCHANGE__@gitea@g /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,580: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=gitea --target_file=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,652: DEBUG - + sed --in-place s@__USER__@gitea@g /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,654: DEBUG - + test -n /opt/gitea 2022-08-31 23:25:46,655: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/gitea --target_file=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,724: DEBUG - + sed --in-place s@__FINALPATH__@/opt/gitea@g /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,727: DEBUG - + test -n 7.4 2022-08-31 23:25:46,727: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,806: DEBUG - + sed --in-place s@__PHPVERSION__@7.4@g /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,808: DEBUG - + test -n '' 2022-08-31 23:25:46,809: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,810: DEBUG - ++ sort --unique 2022-08-31 23:25:46,811: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2022-08-31 23:25:46,813: DEBUG - + uniques_vars=('failregex') 2022-08-31 23:25:46,813: DEBUG - + local delimit=@ 2022-08-31 23:25:46,814: DEBUG - + for one_var in "${uniques_vars[@]}" 2022-08-31 23:25:46,814: DEBUG - + [[ -v failregex ]] 2022-08-31 23:25:46,814: DEBUG - + match_string=__FAILREGEX__ 2022-08-31 23:25:46,814: DEBUG - + match_string=__FAILREGEX__ 2022-08-31 23:25:46,814: DEBUG - + replace_string='.*Failed authentication attempt for .* from <HOST>' 2022-08-31 23:25:46,814: DEBUG - + replace_string='.*Failed authentication attempt for .* from <HOST>' 2022-08-31 23:25:46,814: DEBUG - + replace_string='.*Failed authentication attempt for .* from <HOST>' 2022-08-31 23:25:46,814: DEBUG - + sed --in-place 's@__FAILREGEX__@.*Failed authentication attempt for .* from <HOST>@g' /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,815: DEBUG - + ynh_store_file_checksum --file=/etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,816: DEBUG - + update_only=0 2022-08-31 23:25:46,833: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_filter.d_gitea.conf 2022-08-31 23:25:46,834: DEBUG - ++ md5sum /etc/fail2ban/filter.d/gitea.conf 2022-08-31 23:25:46,834: DEBUG - ++ cut '--delimiter= ' --fields=1 2022-08-31 23:25:46,837: DEBUG - + ynh_app_setting_set --app=gitea --key=checksum__etc_fail2ban_filter.d_gitea.conf --value=ebbb19f2f2b455d132fe43546242c6cd 2022-08-31 23:25:46,837: DEBUG - + local _globalapp=gitea 2022-08-31 23:25:46,908: DEBUG - + app=gitea 2022-08-31 23:25:46,908: DEBUG - + [[ checksum__etc_fail2ban_filter.d_gitea.conf =~ (unprotected|protected|skipped)_ ]] 2022-08-31 23:25:46,908: DEBUG - + ynh_app_setting set gitea checksum__etc_fail2ban_filter.d_gitea.conf ebbb19f2f2b455d132fe43546242c6cd 2022-08-31 23:25:46,970: DEBUG - + '[' -n '' ']' 2022-08-31 23:25:46,970: DEBUG - + unset backup_file_checksum 2022-08-31 23:25:46,970: DEBUG - + ynh_systemd_action --service_name=fail2ban --action=reload '--line_match=(Started|Reloaded) Fail2Ban Service' --log_path=systemd 2022-08-31 23:25:47,145: DEBUG - + service_name=fail2ban 2022-08-31 23:25:47,146: DEBUG - + action=reload 2022-08-31 23:25:47,146: DEBUG - + line_match='(Started|Reloaded) Fail2Ban Service' 2022-08-31 23:25:47,146: DEBUG - + length=20 2022-08-31 23:25:47,146: DEBUG - + log_path=systemd 2022-08-31 23:25:47,146: DEBUG - + timeout=300 2022-08-31 23:25:47,146: DEBUG - + '[' reload == stop ']' 2022-08-31 23:25:47,146: DEBUG - + [[ -n (Started|Reloaded) Fail2Ban Service ]] 2022-08-31 23:25:47,147: DEBUG - ++ mktemp 2022-08-31 23:25:47,148: DEBUG - + local templog=/tmp/tmp.Qgx7PTkb9j 2022-08-31 23:25:47,149: DEBUG - + '[' systemd == systemd ']' 2022-08-31 23:25:47,149: DEBUG - + local pid_tail=7940 2022-08-31 23:25:47,150: DEBUG - + journalctl --unit=fail2ban --follow --since=-0 --quiet 2022-08-31 23:25:47,150: DEBUG - + '[' reload == reload ']' 2022-08-31 23:25:47,150: DEBUG - + action=reload-or-restart 2022-08-31 23:25:47,150: DEBUG - + systemctl reload-or-restart fail2ban 2022-08-31 23:25:47,340: DEBUG - + [[ -n (Started|Reloaded) Fail2Ban Service ]] 2022-08-31 23:25:48,362: INFO - The service fail2ban has correctly executed the action reload-or-restart. 2022-08-31 23:25:48,363: DEBUG - + break 2022-08-31 23:25:48,363: DEBUG - + '[' 2 -ge 3 ']' 2022-08-31 23:25:48,363: DEBUG - + '[' 2 -eq 300 ']' 2022-08-31 23:25:48,363: DEBUG - + ynh_clean_check_starting 2022-08-31 23:25:48,363: DEBUG - + '[' -n 7940 ']' 2022-08-31 23:25:48,363: DEBUG - + kill -SIGTERM 7940 2022-08-31 23:25:48,364: DEBUG - + '[' -n /tmp/tmp.Qgx7PTkb9j ']' 2022-08-31 23:25:48,364: DEBUG - + ynh_secure_remove --file=/tmp/tmp.Qgx7PTkb9j 2022-08-31 23:25:48,392: DEBUG - ++ journalctl --no-hostname --unit=fail2ban 2022-08-31 23:25:48,393: DEBUG - ++ tail --lines=50 2022-08-31 23:25:48,394: DEBUG - ++ grep 'WARNING.*gitea.*' 2022-08-31 23:25:48,404: DEBUG - + local fail2ban_error= 2022-08-31 23:25:48,463: INFO - [###############+....] > Protecting directory... 2022-08-31 23:25:48,463: DEBUG - + set_permission 2022-08-31 23:25:48,463: DEBUG - + chown -R gitea:gitea /opt/gitea 2022-08-31 23:25:48,464: DEBUG - + chown -R gitea:gitea /home/gitea 2022-08-31 23:25:48,466: WARNING - chown: cannot access '/home/gitea': No such file or directory 2022-08-31 23:25:48,466: DEBUG - + ynh_exit_properly 2022-08-31 23:25:49,973: ERROR - Impossible de restaurer gitea : Une erreur s'est produite dans le script de restauration de l'application