What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.17
What app is this about: gitea
Describe your issue
Français
:
Bonjour,
Après avoir effectué une migration vers la nouvelle version de YunoHost, j’ai redémarré le serveur. Ensuite, j’ai rencontré des erreurs et il m’a été impossible de restaurer la sauvegarde. J’ai dû restaurer l’intégralité du serveur à partir de la sauvegarde.
Vous trouverez ci-joint les logs.
Merci d’avance pour votre aide.
Anglais
:
Hello,
After performing an upgrade to the latest version of YunoHost, I restarted the server. Afterwards, I encountered errors and was unable to restore the backup. I had to restore the entire server from the backup.
Please find the logs attached.
Thank you in advance for your assistance.
Share relevant logs or error messages
args:
app: gitea
force: false
ignore_yunohost_version: false
label: Gitea
no_remove_on_failure: false
ended_at: 2025-09-08 16:20:43.872894
env:
YNH_APP_ACTION: install
YNH_APP_ARG_DOMAIN: git.maindomain.tld
YNH_APP_ARG_INIT_ADMIN_PERMISSION: admins
YNH_APP_ARG_INIT_MAIN_PERMISSION: visitors
YNH_APP_ARG_PATH: /
YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt
YNH_APP_ID: gitea
YNH_APP_INSTANCE_NAME: gitea
YNH_APP_INSTANCE_NUMBER: '1'
YNH_APP_MANIFEST_VERSION: 1.24.5~ynh1
YNH_APP_PACKAGING_FORMAT: '2.0'
YNH_ARCH: amd64
YNH_DEBIAN_VERSION: bookworm
YNH_DEFAULT_PHP_VERSION: '8.2'
YNH_HELPERS_VERSION: '2.1'
error: Une erreur est survenue dans le script d'installation de l'application
interface: api
operation: app_install
parent: null
related_to:
- - app
- gitea
started_at: 2025-09-08 16:19:11.236221
started_by: ******
success: false
yunohost_version: 12.1.17.1
============
2025-09-08 18:19:12,256: INFO - Installation de gitea…
2025-09-08 18:19:12,261: INFO - Provisioning sources...
2025-09-08 18:19:12,261: DEBUG - Prefetching asset main: https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 ...
2025-09-08 18:19:17,618: INFO - Provisioning system_user...
2025-09-08 18:19:19,095: INFO - Provisioning install_dir...
2025-09-08 18:19:19,100: INFO - Provisioning data_dir...
2025-09-08 18:19:19,103: INFO - Provisioning permissions...
2025-09-08 18:19:19,106: DEBUG - Permission 'gitea.main' mise à jour
2025-09-08 18:19:19,113: DEBUG - Permission 'gitea.main' créée
2025-09-08 18:19:19,122: DEBUG - Permission 'gitea.main' mise à jour
2025-09-08 18:19:19,125: DEBUG - Permission 'gitea.main' mise à jour
2025-09-08 18:19:19,130: DEBUG - Permission 'gitea.admin' mise à jour
2025-09-08 18:19:19,138: DEBUG - Permission 'gitea.admin' créée
2025-09-08 18:19:19,149: DEBUG - Permission 'gitea.admin' mise à jour
2025-09-08 18:19:19,151: DEBUG - Permission 'gitea.admin' mise à jour
2025-09-08 18:19:19,157: DEBUG - Permission 'gitea.container_registry' mise à jour
2025-09-08 18:19:19,165: DEBUG - Permission 'gitea.container_registry' créée
2025-09-08 18:19:19,171: DEBUG - Permission 'gitea.container_registry' mise à jour
2025-09-08 18:19:19,173: DEBUG - Permission 'gitea.container_registry' mise à jour
2025-09-08 18:19:19,252: DEBUG - Creating LDAP perm gitea.admin
2025-09-08 18:19:19,255: DEBUG - Creating LDAP perm gitea.container_registry
2025-09-08 18:19:19,256: DEBUG - Creating LDAP perm gitea.main
2025-09-08 18:19:19,260: DEBUG - Permissions were resynchronized to LDAP
2025-09-08 18:19:19,318: DEBUG - Formating result in 'export' mode
2025-09-08 18:19:19,319: DEBUG - La configuration de SSOwat a été regénérée
2025-09-08 18:19:19,319: INFO - Provisioning ports...
2025-09-08 18:19:19,363: INFO - Provisioning apt...
2025-09-08 18:19:19,373: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt" 7>&1']'
2025-09-08 18:19:19,385: DEBUG - + source /usr/share/yunohost/helpers
2025-09-08 18:19:19,385: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-08 18:19:19,386: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-08 18:19:19,387: DEBUG - +++ pwd
2025-09-08 18:19:19,387: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-08 18:19:19,387: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-09-08 18:19:19,389: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-08 18:19:19,389: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-08 18:19:19,404: DEBUG - + ynh_abort_if_errors
2025-09-08 18:19:19,405: DEBUG - + trap ynh_exit_properly EXIT
2025-09-08 18:19:19,406: DEBUG - + ynh_apt_install_dependencies mariadb-server
2025-09-08 18:19:19,406: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2025-09-08 18:19:19,406: DEBUG - ++ sed 's/|/ | /'
2025-09-08 18:19:19,407: DEBUG - + local dependencies=mariadb-server
2025-09-08 18:19:19,407: DEBUG - ++ ynh_read_manifest version
2025-09-08 18:19:19,407: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_hefwvjjo/manifest.toml
2025-09-08 18:19:19,408: DEBUG - ++ toml_to_json
2025-09-08 18:19:19,408: DEBUG - ++ jq .version --raw-output
2025-09-08 18:19:19,408: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-09-08 18:19:19,450: DEBUG - + local version=1.24.5~ynh1
2025-09-08 18:19:19,450: DEBUG - + local app_ynh_deps=gitea-ynh-deps
2025-09-08 18:19:19,450: DEBUG - + grep '[<=>]'
2025-09-08 18:19:19,452: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2025-09-08 18:19:19,453: DEBUG - ++ sort -u
2025-09-08 18:19:19,454: DEBUG - + local specific_php_version=
2025-09-08 18:19:19,454: DEBUG - + grep --quiet php
2025-09-08 18:19:19,455: DEBUG - ++ _ynh_apt_package_is_installed postgresql-15
2025-09-08 18:19:19,455: DEBUG - ++ local package=postgresql-15
2025-09-08 18:19:19,456: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-15
2025-09-08 18:19:19,456: DEBUG - ++ grep --quiet '^installed$'
2025-09-08 18:19:19,468: DEBUG - ++ echo yes
2025-09-08 18:19:19,468: DEBUG - + local psql_installed=yes
2025-09-08 18:19:19,468: DEBUG - + [[ true == \t\r\u\e ]]
2025-09-08 18:19:19,469: DEBUG - + YNH_APT_INSTALL_DEPENDENCIES_REPLACE=false
2025-09-08 18:19:19,469: DEBUG - ++ mktemp --directory
2025-09-08 18:19:19,470: DEBUG - + local TMPDIR=/tmp/tmp.29ubgiCEnz
2025-09-08 18:19:19,470: DEBUG - + mkdir -p /tmp/tmp.29ubgiCEnz/gitea-ynh-deps/DEBIAN
2025-09-08 18:19:19,471: DEBUG - + chmod -R 755 /tmp/tmp.29ubgiCEnz/gitea-ynh-deps
2025-09-08 18:19:19,472: DEBUG - + cat
2025-09-08 18:19:19,473: DEBUG - + _ynh_apt update
2025-09-08 18:19:19,473: DEBUG - + _ynh_wait_dpkg_free
2025-09-08 18:19:19,590: DEBUG - + return 0
2025-09-08 18:19:19,591: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2025-09-08 18:19:24,765: DEBUG - Hit:1 http://ftp.debian.org/debian bookworm InRelease
2025-09-08 18:19:24,766: DEBUG - Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
2025-09-08 18:19:24,769: DEBUG - Hit:3 http://repo.yunohost.org/debian bookworm InRelease
2025-09-08 18:19:24,793: DEBUG - Hit:4 http://ftp.debian.org/debian bookworm-updates InRelease
2025-09-08 18:19:25,693: DEBUG - Hit:5 https://repo.zabbix.com/zabbix/7.4/release/debian bookworm InRelease
2025-09-08 18:19:25,863: DEBUG - Hit:6 https://repo.zabbix.com/zabbix-tools/debian-ubuntu bookworm InRelease
2025-09-08 18:19:26,026: DEBUG - Hit:7 https://repo.zabbix.com/zabbix/7.4/stable/debian bookworm InRelease
2025-09-08 18:19:27,069: DEBUG - Hit:8 https://dl.yarnpkg.com/debian stable InRelease
2025-09-08 18:19:35,247: DEBUG - Hit:9 https://packages.sury.org/php bookworm InRelease
2025-09-08 18:19:35,763: DEBUG - Reading package lists...
2025-09-08 18:19:35,769: DEBUG - + _ynh_wait_dpkg_free
2025-09-08 18:19:35,885: DEBUG - + return 0
2025-09-08 18:19:35,886: DEBUG - + dpkg-deb --build /tmp/tmp.29ubgiCEnz/gitea-ynh-deps /tmp/tmp.29ubgiCEnz/gitea-ynh-deps.deb
2025-09-08 18:19:35,900: DEBUG - + tee /tmp/tmp.29ubgiCEnz/dpkg_log
2025-09-08 18:19:35,900: DEBUG - + dpkg --force-depends --install /tmp/tmp.29ubgiCEnz/gitea-ynh-deps.deb
2025-09-08 18:19:35,935: DEBUG - Selecting previously unselected package gitea-ynh-deps.
2025-09-08 18:19:35,966: DEBUG - (Reading database ... 79067 files and directories currently installed.)
2025-09-08 18:19:35,968: DEBUG - Preparing to unpack .../gitea-ynh-deps.deb ...
2025-09-08 18:19:35,971: DEBUG - Unpacking gitea-ynh-deps (1.24.5~ynh1) ...
2025-09-08 18:19:35,991: DEBUG - Setting up gitea-ynh-deps (1.24.5~ynh1) ...
2025-09-08 18:19:36,018: DEBUG - + _ynh_apt_install --fix-broken
2025-09-08 18:19:36,019: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-09-08 18:19:36,019: DEBUG - + _ynh_wait_dpkg_free
2025-09-08 18:19:36,170: DEBUG - + return 0
2025-09-08 18:19:36,171: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-09-08 18:19:36,275: DEBUG - Reading package lists...
2025-09-08 18:19:36,390: DEBUG - Building dependency tree...
2025-09-08 18:19:36,391: DEBUG - Reading state information...
2025-09-08 18:19:36,482: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2025-09-08 18:19:36,482: DEBUG - + rm --recursive --force /tmp/tmp.29ubgiCEnz
2025-09-08 18:19:36,484: DEBUG - + _ynh_apt_package_is_installed gitea-ynh-deps
2025-09-08 18:19:36,484: DEBUG - + local package=gitea-ynh-deps
2025-09-08 18:19:36,484: DEBUG - + dpkg-query --show '--showformat=${db:Status-Status}' gitea-ynh-deps
2025-09-08 18:19:36,485: DEBUG - + grep --quiet '^installed$'
2025-09-08 18:19:36,501: DEBUG - ++ _ynh_apt_package_is_installed postgresql-15
2025-09-08 18:19:36,501: DEBUG - ++ local package=postgresql-15
2025-09-08 18:19:36,501: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-15
2025-09-08 18:19:36,502: DEBUG - ++ grep --quiet '^installed$'
2025-09-08 18:19:36,510: DEBUG - ++ echo yes
2025-09-08 18:19:36,510: DEBUG - + local psql_installed2=yes
2025-09-08 18:19:36,510: DEBUG - + [[ yes != \y\e\s ]]
2025-09-08 18:19:36,511: DEBUG - + ynh_exit_properly
2025-09-08 18:19:36,511: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2025-09-08 18:19:36,612: INFO - Provisioning database...
2025-09-08 18:19:36,640: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_database" 7>&1']'
2025-09-08 18:19:36,650: DEBUG - + source /usr/share/yunohost/helpers
2025-09-08 18:19:36,650: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-08 18:19:36,651: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-08 18:19:36,651: DEBUG - +++ pwd
2025-09-08 18:19:36,652: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-08 18:19:36,652: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-09-08 18:19:36,653: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-08 18:19:36,654: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-08 18:19:36,668: DEBUG - + ynh_abort_if_errors
2025-09-08 18:19:36,669: DEBUG - + trap ynh_exit_properly EXIT
2025-09-08 18:19:36,669: DEBUG - + ynh_mysql_create_db gitea gitea **********
2025-09-08 18:19:36,669: DEBUG - + local db=gitea
2025-09-08 18:19:36,670: DEBUG - + local 'sql=CREATE DATABASE gitea;'
2025-09-08 18:19:36,670: DEBUG - + [[ 3 -gt 1 ]]
2025-09-08 18:19:36,670: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON gitea.* TO '\''gitea'\''@'\''localhost'\'''
2025-09-08 18:19:36,670: DEBUG - + [[ -n ********** ]]
2025-09-08 18:19:36,671: DEBUG - + sql+=' IDENTIFIED BY '\''**********'\'''
2025-09-08 18:19:36,671: DEBUG - + sql+=' WITH GRANT OPTION;'
2025-09-08 18:19:36,671: DEBUG - + mysql -B
2025-09-08 18:19:36,799: DEBUG - + ynh_exit_properly
2025-09-08 18:19:36,800: DEBUG - + [[ provision_database =~ ^install$|^upgrade$|^restore$ ]]
2025-09-08 18:19:36,906: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']'
2025-09-08 18:19:36,916: DEBUG - + source _common.sh
2025-09-08 18:19:36,916: DEBUG - ++ systemd_match_start_line='Starting new Web server: tcp:127.0.0.1:'
2025-09-08 18:19:36,917: DEBUG - +++ yunohost settings get security.ssh.ssh_port
2025-09-08 18:19:37,337: DEBUG - ++ ssh_port=444
2025-09-08 18:19:37,337: DEBUG - + source /usr/share/yunohost/helpers
2025-09-08 18:19:37,338: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-09-08 18:19:37,338: DEBUG - +++ cd -- /usr/share/yunohost
2025-09-08 18:19:37,339: DEBUG - +++ pwd
2025-09-08 18:19:37,339: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-08 18:19:37,339: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-09-08 18:19:37,340: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-09-08 18:19:37,341: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-09-08 18:19:37,355: DEBUG - + ynh_app_setting_set --key=protect_against_basic_auth_spoofing --value=false
2025-09-08 18:19:37,429: INFO - [++..................] > Creating base directory...
2025-09-08 18:19:37,430: DEBUG - ++ ls -A /home/yunohost.app/gitea
2025-09-08 18:19:37,431: DEBUG - + '[' -n '' ']'
2025-09-08 18:19:37,431: DEBUG - + mkdir -p /var/www/gitea/data
2025-09-08 18:19:37,431: DEBUG - + mkdir -p /var/www/gitea/custom/conf
2025-09-08 18:19:37,432: DEBUG - + mkdir -p /var/log/gitea
2025-09-08 18:19:37,433: DEBUG - + mkdir -p /home/yunohost.app/gitea/.ssh
2025-09-08 18:19:37,435: DEBUG - + mkdir -p /home/yunohost.app/gitea/repositories
2025-09-08 18:19:37,436: DEBUG - + mkdir -p /home/yunohost.app/gitea/data/avatars
2025-09-08 18:19:37,437: DEBUG - + mkdir -p /home/yunohost.app/gitea/data/attachments
2025-09-08 18:19:37,439: INFO - [##+++...............] > Installing sources files and data directories...
2025-09-08 18:19:37,440: DEBUG - + ynh_setup_source --dest_dir=/var/www/gitea
2025-09-08 18:19:37,462: DEBUG - + keep=
2025-09-08 18:19:37,462: DEBUG - + full_replace=0
2025-09-08 18:19:37,462: DEBUG - + source_id=main
2025-09-08 18:19:37,463: DEBUG - + '[' -e /var/www/gitea/composer.phar ']'
2025-09-08 18:19:37,463: DEBUG - ++ ynh_read_manifest 'resources.sources["main"]'
2025-09-08 18:19:37,464: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/manifest.toml
2025-09-08 18:19:37,464: DEBUG - ++ toml_to_json
2025-09-08 18:19:37,464: DEBUG - ++ jq '.resources.sources["main"]' --raw-output
2025-09-08 18:19:37,464: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-09-08 18:19:37,498: DEBUG - + local 'sources_json={
2025-09-08 18:19:37,498: DEBUG - "extract": false,
2025-09-08 18:19:37,498: DEBUG - "rename": "gitea",
2025-09-08 18:19:37,499: DEBUG - "armhf": {
2025-09-08 18:19:37,499: DEBUG - "url": "https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-arm-6",
2025-09-08 18:19:37,499: DEBUG - "sha256": "2ac143c6880eeec33f8ae993a5685c99a4469713022d3cd2f2991f12e9c397a4"
2025-09-08 18:19:37,499: DEBUG - },
2025-09-08 18:19:37,500: DEBUG - "arm64": {
2025-09-08 18:19:37,500: DEBUG - "url": "https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-arm64",
2025-09-08 18:19:37,500: DEBUG - "sha256": "c9f40c81108336fa6552c33fb8f18c735cf2e2138f9c56ab018a498ebe7b4cc8"
2025-09-08 18:19:37,501: DEBUG - },
2025-09-08 18:19:37,501: DEBUG - "i386": {
2025-09-08 18:19:37,501: DEBUG - "url": "https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-386",
2025-09-08 18:19:37,501: DEBUG - "sha256": "f0f8c7d3bb3ad62067428edd55d76620332423715a3fa7166f09bbe063ac6796"
2025-09-08 18:19:37,502: DEBUG - },
2025-09-08 18:19:37,502: DEBUG - "amd64": {
2025-09-08 18:19:37,502: DEBUG - "url": "https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64",
2025-09-08 18:19:37,503: DEBUG - "sha256": "59029c97fe491b93c19705ba313f6b2397a8fe70cb2bd6fc021925f3cfb8e03d"
2025-09-08 18:19:37,503: DEBUG - },
2025-09-08 18:19:37,503: DEBUG - "autoupdate": {
2025-09-08 18:19:37,504: DEBUG - "strategy": "latest_github_release",
2025-09-08 18:19:37,504: DEBUG - "asset": {
2025-09-08 18:19:37,504: DEBUG - "armhf": "^gitea-.*-linux-arm-6$",
2025-09-08 18:19:37,505: DEBUG - "arm64": "^gitea-.*-linux-arm64$",
2025-09-08 18:19:37,505: DEBUG - "i386": "^gitea-.*-linux-386$",
2025-09-08 18:19:37,505: DEBUG - "amd64": "^gitea-.*-linux-amd64$"
2025-09-08 18:19:37,505: DEBUG - }
2025-09-08 18:19:37,506: DEBUG - }
2025-09-08 18:19:37,506: DEBUG - }'
2025-09-08 18:19:37,506: DEBUG - + jq -re .url
2025-09-08 18:19:37,517: DEBUG - null
2025-09-08 18:19:37,517: DEBUG - + local arch_prefix=.amd64
2025-09-08 18:19:37,553: DEBUG - + local src_url=https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64
2025-09-08 18:19:37,577: DEBUG - + local src_sum=59029c97fe491b93c19705ba313f6b2397a8fe70cb2bd6fc021925f3cfb8e03d
2025-09-08 18:19:37,596: DEBUG - + local src_format=
2025-09-08 18:19:37,634: DEBUG - + local src_in_subdir=
2025-09-08 18:19:37,634: DEBUG - + src_in_subdir=true
2025-09-08 18:19:37,669: DEBUG - + local src_extract=false
2025-09-08 18:19:37,698: DEBUG - + local src_platform=
2025-09-08 18:19:37,734: DEBUG - + local src_rename=gitea
2025-09-08 18:19:37,735: DEBUG - + [[ -n https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 ]]
2025-09-08 18:19:37,735: DEBUG - + [[ -n 59029c97fe491b93c19705ba313f6b2397a8fe70cb2bd6fc021925f3cfb8e03d ]]
2025-09-08 18:19:37,735: DEBUG - + [[ -z '' ]]
2025-09-08 18:19:37,736: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*\.zip$ ]]
2025-09-08 18:19:37,736: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*/zipball/.*$ ]]
2025-09-08 18:19:37,736: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*\.tar\.gz$ ]]
2025-09-08 18:19:37,737: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*\.tgz$ ]]
2025-09-08 18:19:37,737: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*/tar\.gz/.*$ ]]
2025-09-08 18:19:37,737: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*/tarball/.*$ ]]
2025-09-08 18:19:37,738: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*\.tar\.xz$ ]]
2025-09-08 18:19:37,738: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*\.tar\.zst$ ]]
2025-09-08 18:19:37,738: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*\.tar\.bz2$ ]]
2025-09-08 18:19:37,739: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*\.tar$ ]]
2025-09-08 18:19:37,739: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*\.xz$ ]]
2025-09-08 18:19:37,739: DEBUG - + [[ https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 =~ ^.*\.zst$ ]]
2025-09-08 18:19:37,740: DEBUG - + [[ -z false ]]
2025-09-08 18:19:37,740: DEBUG - + src_format=tar.gz
2025-09-08 18:19:37,741: DEBUG - ++ echo tar.gz
2025-09-08 18:19:37,741: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2025-09-08 18:19:37,741: DEBUG - + src_format=tar.gz
2025-09-08 18:19:37,742: DEBUG - + src_extract=false
2025-09-08 18:19:37,742: DEBUG - + [[ false != \t\r\u\e ]]
2025-09-08 18:19:37,742: DEBUG - + [[ false != \f\a\l\s\e ]]
2025-09-08 18:19:37,742: DEBUG - ++ dirname /var/cache/yunohost/download/gitea/main
2025-09-08 18:19:37,743: DEBUG - + mkdir -p /var/cache/yunohost/download/gitea
2025-09-08 18:19:37,743: DEBUG - + src_filename=/var/cache/yunohost/download/gitea/main
2025-09-08 18:19:37,744: DEBUG - + '[' tar.gz = docker ']'
2025-09-08 18:19:37,744: DEBUG - + '[' -n https://github.com/go-gitea/gitea/releases/download/v1.24.5/gitea-1.24.5-linux-amd64 ']'
2025-09-08 18:19:37,744: DEBUG - + '[' -e /var/cache/yunohost/download/gitea/main ']'
2025-09-08 18:19:37,745: DEBUG - + sha256sum --check --status
2025-09-08 18:19:38,169: DEBUG - + '[' '!' -e /var/cache/yunohost/download/gitea/main ']'
2025-09-08 18:19:38,170: DEBUG - + sha256sum --check --status
2025-09-08 18:19:38,575: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-09-08 18:19:38,576: DEBUG - + '[' -n '' ']'
2025-09-08 18:19:38,576: DEBUG - + mkdir --parents /var/www/gitea
2025-09-08 18:19:38,577: DEBUG - + [[ false == \f\a\l\s\e ]]
2025-09-08 18:19:38,577: DEBUG - + [[ -z gitea ]]
2025-09-08 18:19:38,578: DEBUG - + mv /var/cache/yunohost/download/gitea/main /var/www/gitea/gitea
2025-09-08 18:19:38,578: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/patches/main ']'
2025-09-08 18:19:38,578: DEBUG - + '[' -n '' ']'
2025-09-08 18:19:38,579: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-09-08 18:19:38,579: DEBUG - + '[' -n /var/www/gitea ']'
2025-09-08 18:19:38,580: DEBUG - + '[' /var/www/gitea == /var/www/gitea ']'
2025-09-08 18:19:38,580: DEBUG - + _ynh_apply_default_permissions /var/www/gitea
2025-09-08 18:19:38,580: DEBUG - + local target=/var/www/gitea
2025-09-08 18:19:38,581: DEBUG - + ynh_system_user_exists --username=gitea
2025-09-08 18:19:38,588: DEBUG - + getent passwd gitea
2025-09-08 18:19:38,591: DEBUG - + '[' -f /var/www/gitea ']'
2025-09-08 18:19:38,591: DEBUG - + '[' /var/www/gitea == /var/www/gitea ']'
2025-09-08 18:19:38,591: DEBUG - ++ ynh_read_manifest resources.install_dir.group
2025-09-08 18:19:38,592: DEBUG - ++ sed s/null//g
2025-09-08 18:19:38,592: DEBUG - ++ toml_to_json
2025-09-08 18:19:38,592: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-09-08 18:19:38,592: DEBUG - ++ cut -f1 -d:
2025-09-08 18:19:38,592: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/manifest.toml
2025-09-08 18:19:38,593: DEBUG - ++ sed s/__APP__/gitea/g
2025-09-08 18:19:38,593: DEBUG - ++ jq .resources.install_dir.group --raw-output
2025-09-08 18:19:38,633: DEBUG - + local group=gitea
2025-09-08 18:19:38,633: DEBUG - + [[ -z gitea ]]
2025-09-08 18:19:38,634: DEBUG - + chmod -R u=rwX,g=rX,o=--- /var/www/gitea
2025-09-08 18:19:38,634: DEBUG - + chown -R gitea:gitea /var/www/gitea
2025-09-08 18:19:38,636: DEBUG - + return
2025-09-08 18:19:38,636: DEBUG - + _set_permissions
2025-09-08 18:19:38,637: DEBUG - + chown -R gitea:gitea /var/www/gitea
2025-09-08 18:19:38,637: DEBUG - + chmod -R u=rwX,g=rX,o= /var/www/gitea
2025-09-08 18:19:38,638: DEBUG - + chmod +x /var/www/gitea/gitea
2025-09-08 18:19:38,638: DEBUG - + chown -R gitea:gitea /home/yunohost.app/gitea
2025-09-08 18:19:38,639: DEBUG - + chmod u=rwx,g=rx,o= /home/yunohost.app/gitea
2025-09-08 18:19:38,640: DEBUG - + find /home/yunohost.app/gitea '(' '!' -perm -o= -o '!' -user gitea -o '!' -group gitea ')' -exec chown gitea:gitea '{}' ';' -exec chmod u=rwX,g=rX,o= '{}' ';'
2025-09-08 18:19:38,641: DEBUG - + chmod -R u=rwX,g=,o= /home/yunohost.app/gitea/.ssh
2025-09-08 18:19:38,643: INFO - [#####+++............] > Configuring application, step 1/2...
2025-09-08 18:19:38,643: DEBUG - + set_settings_default
2025-09-08 18:19:38,644: DEBUG - ++ ynh_exec_as_app /var/www/gitea/gitea generate secret INTERNAL_TOKEN
2025-09-08 18:19:38,644: DEBUG - ++ sudo -u gitea env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 /var/www/gitea/gitea generate secret INTERNAL_TOKEN
2025-09-08 18:19:38,736: DEBUG - + ynh_app_setting_set_default --key=internal_token --value=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE3NTczNDgzNzh9.UXL-6W5CbdESRLf_Pbs6D7a3S-P74Vak2QDKPbXp-KA
2025-09-08 18:19:38,772: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:38,772: DEBUG - + eval 'internal_token=**********
2025-09-08 18:19:38,772: DEBUG - ++ internal_token=**********
2025-09-08 18:19:38,823: DEBUG - ++ ynh_exec_as_app /var/www/gitea/gitea generate secret SECRET_KEY
2025-09-08 18:19:38,824: DEBUG - ++ sudo -u gitea env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 /var/www/gitea/gitea generate secret SECRET_KEY
2025-09-08 18:19:38,928: DEBUG - + ynh_app_setting_set_default --key=secret_key --value=PNBn93lPDvpcOxiLuocpgqkvECHF0vZ9ASS4lCrKA0wOGHCKbeynInoRwIVzaGv7
2025-09-08 18:19:38,966: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:38,966: DEBUG - + eval 'secret_key=**********
2025-09-08 18:19:38,968: DEBUG - ++ secret_key=**********
2025-09-08 18:19:39,018: DEBUG - ++ ynh_exec_as_app /var/www/gitea/gitea generate secret JWT_SECRET
2025-09-08 18:19:39,018: DEBUG - ++ sudo -u gitea env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 /var/www/gitea/gitea generate secret JWT_SECRET
2025-09-08 18:19:39,120: DEBUG - + ynh_app_setting_set_default --key=lfs_jwt_secret --value=dUdUoegtVX832nrAJH3b7Ovgz2rnddiXazbPqpfngPk
2025-09-08 18:19:39,157: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:39,157: DEBUG - + eval 'lfs_jwt_secret=**********
2025-09-08 18:19:39,158: DEBUG - ++ lfs_jwt_secret=**********
2025-09-08 18:19:39,210: DEBUG - ++ ynh_exec_as_app /var/www/gitea/gitea generate secret JWT_SECRET
2025-09-08 18:19:39,210: DEBUG - ++ sudo -u gitea env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 /var/www/gitea/gitea generate secret JWT_SECRET
2025-09-08 18:19:39,310: DEBUG - + ynh_app_setting_set_default --key=jwt_secret --value=KfnNYAFzwkVKe0QA99gSOLY8a-8rd8KoHFIAGI3Y6gU
2025-09-08 18:19:39,344: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:39,344: DEBUG - + eval 'jwt_secret=**********
2025-09-08 18:19:39,345: DEBUG - ++ jwt_secret=**********
2025-09-08 18:19:39,396: DEBUG - + ynh_app_setting_set_default --key=require_signin_view --value=false
2025-09-08 18:19:39,430: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:39,430: DEBUG - + eval 'require_signin_view=**********
2025-09-08 18:19:39,431: DEBUG - ++ require_signin_view=false
2025-09-08 18:19:39,472: DEBUG - + ynh_app_setting_set_default --key=disable_users_page --value=false
2025-09-08 18:19:39,511: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:39,511: DEBUG - + eval 'disable_users_page=**********
2025-09-08 18:19:39,512: DEBUG - ++ disable_users_page=false
2025-09-08 18:19:39,565: DEBUG - + ynh_app_setting_set_default --key=disable_organizations_page --value=false
2025-09-08 18:19:39,602: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:39,603: DEBUG - + eval 'disable_organizations_page=**********
2025-09-08 18:19:39,603: DEBUG - ++ disable_organizations_page=false
2025-09-08 18:19:39,642: DEBUG - + ynh_app_setting_set_default --key=disable_code_page --value=false
2025-09-08 18:19:39,680: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:39,680: DEBUG - + eval 'disable_code_page=**********
2025-09-08 18:19:39,681: DEBUG - ++ disable_code_page=false
2025-09-08 18:19:39,728: DEBUG - + ynh_app_setting_set_default --key=show_user_email --value=true
2025-09-08 18:19:39,770: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:39,770: DEBUG - + eval 'show_user_email=**********
2025-09-08 18:19:39,771: DEBUG - ++ show_user_email=true
2025-09-08 18:19:39,827: DEBUG - + ynh_app_setting_set_default --key=default_keep_email_private --value=false
2025-09-08 18:19:39,867: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:39,867: DEBUG - + eval 'default_keep_email_private=**********
2025-09-08 18:19:39,868: DEBUG - ++ default_keep_email_private=false
2025-09-08 18:19:39,922: DEBUG - + ynh_app_setting_set_default --key=repos_indexer_enabled --value=false
2025-09-08 18:19:39,953: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:39,954: DEBUG - + eval 'repos_indexer_enabled=**********
2025-09-08 18:19:39,954: DEBUG - ++ repos_indexer_enabled=false
2025-09-08 18:19:39,989: DEBUG - + ynh_app_setting_set_default --key=actions_enabled --value=false
2025-09-08 18:19:40,026: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:40,026: DEBUG - + eval 'actions_enabled=**********
2025-09-08 18:19:40,026: DEBUG - ++ actions_enabled=false
2025-09-08 18:19:40,072: DEBUG - + ynh_app_setting_set_default --key=webhook_allowed_hosts --value=
2025-09-08 18:19:40,108: DEBUG - + '[' -z '' ']'
2025-09-08 18:19:40,108: DEBUG - + eval 'webhook_allowed_hosts=**********
2025-09-08 18:19:40,109: DEBUG - ++ webhook_allowed_hosts=
2025-09-08 18:19:40,164: DEBUG - + ynh_config_add --template=app.ini --destination=/var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,202: DEBUG - + jinja=0
2025-09-08 18:19:40,203: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/app.ini ']'
2025-09-08 18:19:40,203: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/app.ini
2025-09-08 18:19:40,203: DEBUG - + ynh_backup_if_checksum_is_different /var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,267: DEBUG - + touch /var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,268: DEBUG - + chmod 640 /var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,269: DEBUG - + _ynh_apply_default_permissions /var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,269: DEBUG - + local target=/var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,269: DEBUG - + ynh_system_user_exists --username=gitea
2025-09-08 18:19:40,279: DEBUG - + getent passwd gitea
2025-09-08 18:19:40,280: DEBUG - + '[' -f /var/www/gitea/custom/conf/app.ini ']'
2025-09-08 18:19:40,281: DEBUG - + is_in_dir /var/www/gitea/custom/conf/app.ini /var/www/gitea
2025-09-08 18:19:40,281: DEBUG - + '[' -n /var/www/gitea ']'
2025-09-08 18:19:40,281: DEBUG - ++ realpath /var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,283: DEBUG - + local child=/var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,283: DEBUG - ++ realpath /var/www/gitea
2025-09-08 18:19:40,284: DEBUG - + local parent=/var/www/gitea
2025-09-08 18:19:40,285: DEBUG - + [[ /var/www/gitea/custom/conf/app.ini =~ ^/var/www/gitea ]]
2025-09-08 18:19:40,285: DEBUG - + chmod 600 /var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,286: DEBUG - + chown gitea:gitea /var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,287: DEBUG - + return
2025-09-08 18:19:40,287: DEBUG - + [[ 0 == 1 ]]
2025-09-08 18:19:40,288: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/app.ini /var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,289: DEBUG - + _ynh_replace_vars /var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,289: DEBUG - + local file=/var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,289: DEBUG - + local -a uniques_vars
2025-09-08 18:19:40,290: DEBUG - + mapfile -t uniques_vars
2025-09-08 18:19:40,290: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,290: DEBUG - ++ sort --unique
2025-09-08 18:19:40,290: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-09-08 18:19:40,333: DEBUG - + ynh_store_file_checksum /var/www/gitea/custom/conf/app.ini
2025-09-08 18:19:40,426: INFO - [########+++.........] > Adding system configurations related to gitea...
2025-09-08 18:19:40,426: DEBUG - + ynh_config_add_nginx
2025-09-08 18:19:40,427: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,427: DEBUG - + ynh_config_add --template=nginx.conf --destination=/etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,462: DEBUG - + jinja=0
2025-09-08 18:19:40,462: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/nginx.conf ']'
2025-09-08 18:19:40,463: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/nginx.conf
2025-09-08 18:19:40,463: DEBUG - + ynh_backup_if_checksum_is_different /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,534: DEBUG - + touch /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,535: DEBUG - + chmod 640 /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,536: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,536: DEBUG - + local target=/etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,537: DEBUG - + ynh_system_user_exists --username=gitea
2025-09-08 18:19:40,547: DEBUG - + getent passwd gitea
2025-09-08 18:19:40,548: DEBUG - + '[' -f /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf ']'
2025-09-08 18:19:40,549: DEBUG - + is_in_dir /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf /var/www/gitea
2025-09-08 18:19:40,549: DEBUG - + '[' -n /var/www/gitea ']'
2025-09-08 18:19:40,550: DEBUG - ++ realpath /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,551: DEBUG - + local child=/etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,551: DEBUG - ++ realpath /var/www/gitea
2025-09-08 18:19:40,552: DEBUG - + local parent=/var/www/gitea
2025-09-08 18:19:40,553: DEBUG - + [[ /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf =~ ^/var/www/gitea ]]
2025-09-08 18:19:40,553: DEBUG - + is_in_dir /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf /home/yunohost.app/gitea
2025-09-08 18:19:40,554: DEBUG - + '[' -n /home/yunohost.app/gitea ']'
2025-09-08 18:19:40,554: DEBUG - ++ realpath /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,555: DEBUG - + local child=/etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,555: DEBUG - ++ realpath /home/yunohost.app/gitea
2025-09-08 18:19:40,556: DEBUG - + local parent=/home/yunohost.app/gitea
2025-09-08 18:19:40,556: DEBUG - + [[ /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf =~ ^/home/yunohost.app/gitea ]]
2025-09-08 18:19:40,557: DEBUG - + is_in_dir /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf /etc/gitea
2025-09-08 18:19:40,557: DEBUG - + '[' -n /etc/gitea ']'
2025-09-08 18:19:40,558: DEBUG - ++ realpath /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,558: DEBUG - + local child=/etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,559: DEBUG - ++ realpath /etc/gitea
2025-09-08 18:19:40,560: DEBUG - + local parent=/etc/gitea
2025-09-08 18:19:40,561: DEBUG - + [[ /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf =~ ^/etc/gitea ]]
2025-09-08 18:19:40,561: DEBUG - + '[' /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf == /var/www/gitea ']'
2025-09-08 18:19:40,561: DEBUG - + '[' /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf == /home/yunohost.app/gitea ']'
2025-09-08 18:19:40,562: DEBUG - + chmod 400 /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,562: DEBUG - + chown root:root /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,563: DEBUG - + [[ 0 == 1 ]]
2025-09-08 18:19:40,564: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/nginx.conf /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,565: DEBUG - + _ynh_replace_vars /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,565: DEBUG - + local file=/etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,566: DEBUG - + local -a uniques_vars
2025-09-08 18:19:40,566: DEBUG - + mapfile -t uniques_vars
2025-09-08 18:19:40,566: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,567: DEBUG - ++ sort --unique
2025-09-08 18:19:40,568: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-09-08 18:19:40,574: DEBUG - + ynh_store_file_checksum /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,666: DEBUG - + '[' / '!=' / ']'
2025-09-08 18:19:40,666: DEBUG - + ynh_replace '--match=^#root_path_only' --replace= --file=/etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,716: DEBUG - + sed -i '/fastcgi_param\s*REMOTE_USER/d' /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,717: DEBUG - + ynh_store_file_checksum /etc/nginx/conf.d/git.maindomain.tld.d/gitea.conf
2025-09-08 18:19:40,807: DEBUG - + ynh_systemctl --service=nginx --action=reload
2025-09-08 18:19:40,868: DEBUG - + service=nginx
2025-09-08 18:19:40,869: DEBUG - + action=reload
2025-09-08 18:19:40,869: DEBUG - + wait_until=
2025-09-08 18:19:40,869: DEBUG - + length=20
2025-09-08 18:19:40,870: DEBUG - + log_path=/var/log/nginx/nginx.log
2025-09-08 18:19:40,871: DEBUG - + timeout=60
2025-09-08 18:19:40,871: DEBUG - + ynh_in_ci_tests
2025-09-08 18:19:40,872: DEBUG - + '[' reload == stop ']'
2025-09-08 18:19:40,873: DEBUG - + '[' reload == reload ']'
2025-09-08 18:19:40,873: DEBUG - + action=reload-or-restart
2025-09-08 18:19:40,873: DEBUG - ++ cut -d+ -f1
2025-09-08 18:19:40,874: DEBUG - ++ date --utc --rfc-3339=seconds
2025-09-08 18:19:40,874: DEBUG - + local 'time_start=2025-09-08 16:19:40 UTC'
2025-09-08 18:19:40,874: DEBUG - + systemctl reload-or-restart nginx
2025-09-08 18:19:41,088: DEBUG - + ynh_config_add_systemd
2025-09-08 18:19:41,091: DEBUG - + return
2025-09-08 18:19:41,092: DEBUG - + service=gitea
2025-09-08 18:19:41,092: DEBUG - + template=systemd.service
2025-09-08 18:19:41,092: DEBUG - + ynh_config_add --template=systemd.service --destination=/etc/systemd/system/gitea.service
2025-09-08 18:19:41,125: DEBUG - + jinja=0
2025-09-08 18:19:41,125: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/systemd.service ']'
2025-09-08 18:19:41,126: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/systemd.service
2025-09-08 18:19:41,126: DEBUG - + ynh_backup_if_checksum_is_different /etc/systemd/system/gitea.service
2025-09-08 18:19:41,190: DEBUG - + touch /etc/systemd/system/gitea.service
2025-09-08 18:19:41,191: DEBUG - + chmod 640 /etc/systemd/system/gitea.service
2025-09-08 18:19:41,192: DEBUG - + _ynh_apply_default_permissions /etc/systemd/system/gitea.service
2025-09-08 18:19:41,192: DEBUG - + local target=/etc/systemd/system/gitea.service
2025-09-08 18:19:41,193: DEBUG - + ynh_system_user_exists --username=gitea
2025-09-08 18:19:41,202: DEBUG - + getent passwd gitea
2025-09-08 18:19:41,203: DEBUG - + '[' -f /etc/systemd/system/gitea.service ']'
2025-09-08 18:19:41,203: DEBUG - + is_in_dir /etc/systemd/system/gitea.service /var/www/gitea
2025-09-08 18:19:41,204: DEBUG - + '[' -n /var/www/gitea ']'
2025-09-08 18:19:41,204: DEBUG - ++ realpath /etc/systemd/system/gitea.service
2025-09-08 18:19:41,205: DEBUG - + local child=/etc/systemd/system/gitea.service
2025-09-08 18:19:41,205: DEBUG - ++ realpath /var/www/gitea
2025-09-08 18:19:41,206: DEBUG - + local parent=/var/www/gitea
2025-09-08 18:19:41,207: DEBUG - + [[ /etc/systemd/system/gitea.service =~ ^/var/www/gitea ]]
2025-09-08 18:19:41,207: DEBUG - + is_in_dir /etc/systemd/system/gitea.service /home/yunohost.app/gitea
2025-09-08 18:19:41,207: DEBUG - + '[' -n /home/yunohost.app/gitea ']'
2025-09-08 18:19:41,208: DEBUG - ++ realpath /etc/systemd/system/gitea.service
2025-09-08 18:19:41,208: DEBUG - + local child=/etc/systemd/system/gitea.service
2025-09-08 18:19:41,208: DEBUG - ++ realpath /home/yunohost.app/gitea
2025-09-08 18:19:41,209: DEBUG - + local parent=/home/yunohost.app/gitea
2025-09-08 18:19:41,209: DEBUG - + [[ /etc/systemd/system/gitea.service =~ ^/home/yunohost.app/gitea ]]
2025-09-08 18:19:41,210: DEBUG - + is_in_dir /etc/systemd/system/gitea.service /etc/gitea
2025-09-08 18:19:41,210: DEBUG - + '[' -n /etc/gitea ']'
2025-09-08 18:19:41,210: DEBUG - ++ realpath /etc/systemd/system/gitea.service
2025-09-08 18:19:41,211: DEBUG - + local child=/etc/systemd/system/gitea.service
2025-09-08 18:19:41,211: DEBUG - ++ realpath /etc/gitea
2025-09-08 18:19:41,212: DEBUG - + local parent=/etc/gitea
2025-09-08 18:19:41,213: DEBUG - + [[ /etc/systemd/system/gitea.service =~ ^/etc/gitea ]]
2025-09-08 18:19:41,213: DEBUG - + '[' /etc/systemd/system/gitea.service == /var/www/gitea ']'
2025-09-08 18:19:41,213: DEBUG - + '[' /etc/systemd/system/gitea.service == /home/yunohost.app/gitea ']'
2025-09-08 18:19:41,214: DEBUG - + chmod 400 /etc/systemd/system/gitea.service
2025-09-08 18:19:41,214: DEBUG - + chown root:root /etc/systemd/system/gitea.service
2025-09-08 18:19:41,215: DEBUG - + [[ 0 == 1 ]]
2025-09-08 18:19:41,215: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/systemd.service /etc/systemd/system/gitea.service
2025-09-08 18:19:41,217: DEBUG - + _ynh_replace_vars /etc/systemd/system/gitea.service
2025-09-08 18:19:41,217: DEBUG - + local file=/etc/systemd/system/gitea.service
2025-09-08 18:19:41,217: DEBUG - + local -a uniques_vars
2025-09-08 18:19:41,218: DEBUG - + mapfile -t uniques_vars
2025-09-08 18:19:41,218: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/systemd/system/gitea.service
2025-09-08 18:19:41,218: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-09-08 18:19:41,218: DEBUG - ++ sort --unique
2025-09-08 18:19:41,224: DEBUG - + ynh_store_file_checksum /etc/systemd/system/gitea.service
2025-09-08 18:19:41,316: DEBUG - + systemctl enable gitea --quiet
2025-09-08 18:19:41,530: DEBUG - + systemctl daemon-reload
2025-09-08 18:19:41,737: DEBUG - + yunohost service add gitea --log=/var/log/gitea/gitea.log
2025-09-08 18:19:41,957: DEBUG - SUCCESS Le service 'gitea' a été ajouté
2025-09-08 18:19:41,972: DEBUG - + ynh_config_add_logrotate /var/log/gitea
2025-09-08 18:19:41,973: DEBUG - + local logfile=/var/log/gitea
2025-09-08 18:19:41,973: DEBUG - + set -o noglob
2025-09-08 18:19:41,973: DEBUG - + [[ -z /var/log/gitea ]]
2025-09-08 18:19:41,974: DEBUG - + [[ /var/log/gitea != \l\o\g ]]
2025-09-08 18:19:41,974: DEBUG - + [[ /var/log/gitea != \t\x\t ]]
2025-09-08 18:19:41,974: DEBUG - + logfile='/var/log/gitea/*.log'
2025-09-08 18:19:41,974: DEBUG - + set +o noglob
2025-09-08 18:19:41,974: DEBUG - + for stuff in $logfile
2025-09-08 18:19:41,975: DEBUG - ++ dirname /var/log/gitea/gitea.log
2025-09-08 18:19:41,975: DEBUG - + local dir=/var/log/gitea
2025-09-08 18:19:41,975: DEBUG - + mkdir --parents /var/log/gitea
2025-09-08 18:19:41,976: DEBUG - + chmod 750 /var/log/gitea
2025-09-08 18:19:41,977: DEBUG - + chown gitea:gitea /var/log/gitea
2025-09-08 18:19:41,979: DEBUG - + for stuff in $logfile
2025-09-08 18:19:41,979: DEBUG - ++ dirname /var/log/gitea/router.log
2025-09-08 18:19:41,980: DEBUG - + local dir=/var/log/gitea
2025-09-08 18:19:41,981: DEBUG - + mkdir --parents /var/log/gitea
2025-09-08 18:19:41,982: DEBUG - + chmod 750 /var/log/gitea
2025-09-08 18:19:41,984: DEBUG - + chown gitea:gitea /var/log/gitea
2025-09-08 18:19:41,985: DEBUG - + for stuff in $logfile
2025-09-08 18:19:41,986: DEBUG - ++ dirname /var/log/gitea/xorm.log
2025-09-08 18:19:41,987: DEBUG - + local dir=/var/log/gitea
2025-09-08 18:19:41,987: DEBUG - + mkdir --parents /var/log/gitea
2025-09-08 18:19:41,988: DEBUG - + chmod 750 /var/log/gitea
2025-09-08 18:19:41,990: DEBUG - + chown gitea:gitea /var/log/gitea
2025-09-08 18:19:41,991: DEBUG - ++ mktemp
2025-09-08 18:19:41,993: DEBUG - + local tempconf=/tmp/tmp.okeoylw5EE
2025-09-08 18:19:41,993: DEBUG - + cat
2025-09-08 18:19:41,995: DEBUG - + [[ true == \t\r\u\e ]]
2025-09-08 18:19:41,995: DEBUG - + cat /tmp/tmp.okeoylw5EE
2025-09-08 18:19:41,996: DEBUG - + FIRST_CALL_TO_LOGROTATE=false
2025-09-08 18:19:41,996: DEBUG - + chmod 644 /etc/logrotate.d/gitea
2025-09-08 18:19:41,997: DEBUG - + ynh_config_add_fail2ban --logpath=/var/log/gitea/gitea.log '--failregex=.*Failed authentication attempt for .* from <HOST>'
2025-09-08 18:19:42,024: DEBUG - + [[ -n .*Failed authentication attempt for .* from <HOST> ]]
2025-09-08 18:19:42,024: DEBUG - + test -n /var/log/gitea/gitea.log
2025-09-08 18:19:42,025: DEBUG - [__APP__]
2025-09-08 18:19:42,026: DEBUG - enabled = true
2025-09-08 18:19:42,026: DEBUG - port = http,https
2025-09-08 18:19:42,026: DEBUG - filter = __APP__
2025-09-08 18:19:42,027: DEBUG - logpath = __LOGPATH__
2025-09-08 18:19:42,027: DEBUG - maxretry = 5
2025-09-08 18:19:42,027: DEBUG - '
2025-09-08 18:19:42,028: DEBUG - [INCLUDES]
2025-09-08 18:19:42,028: DEBUG - before = common.conf
2025-09-08 18:19:42,029: DEBUG - [Definition]
2025-09-08 18:19:42,029: DEBUG - failregex = __FAILREGEX__
2025-09-08 18:19:42,030: DEBUG - ignoreregex =
2025-09-08 18:19:42,030: DEBUG - '
2025-09-08 18:19:42,030: DEBUG - + ynh_config_add --template=f2b_jail.conf --destination=/etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,061: DEBUG - + jinja=0
2025-09-08 18:19:42,061: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/f2b_jail.conf ']'
2025-09-08 18:19:42,062: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/f2b_jail.conf
2025-09-08 18:19:42,062: DEBUG - + ynh_backup_if_checksum_is_different /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,129: DEBUG - + touch /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,129: DEBUG - + chmod 640 /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,131: DEBUG - + _ynh_apply_default_permissions /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,131: DEBUG - + local target=/etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,131: DEBUG - + ynh_system_user_exists --username=gitea
2025-09-08 18:19:42,139: DEBUG - + getent passwd gitea
2025-09-08 18:19:42,140: DEBUG - + '[' -f /etc/fail2ban/jail.d/gitea.conf ']'
2025-09-08 18:19:42,141: DEBUG - + is_in_dir /etc/fail2ban/jail.d/gitea.conf /var/www/gitea
2025-09-08 18:19:42,141: DEBUG - + '[' -n /var/www/gitea ']'
2025-09-08 18:19:42,142: DEBUG - ++ realpath /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,142: DEBUG - + local child=/etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,143: DEBUG - ++ realpath /var/www/gitea
2025-09-08 18:19:42,144: DEBUG - + local parent=/var/www/gitea
2025-09-08 18:19:42,144: DEBUG - + [[ /etc/fail2ban/jail.d/gitea.conf =~ ^/var/www/gitea ]]
2025-09-08 18:19:42,144: DEBUG - + is_in_dir /etc/fail2ban/jail.d/gitea.conf /home/yunohost.app/gitea
2025-09-08 18:19:42,145: DEBUG - + '[' -n /home/yunohost.app/gitea ']'
2025-09-08 18:19:42,145: DEBUG - ++ realpath /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,145: DEBUG - + local child=/etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,145: DEBUG - ++ realpath /home/yunohost.app/gitea
2025-09-08 18:19:42,147: DEBUG - + local parent=/home/yunohost.app/gitea
2025-09-08 18:19:42,147: DEBUG - + [[ /etc/fail2ban/jail.d/gitea.conf =~ ^/home/yunohost.app/gitea ]]
2025-09-08 18:19:42,147: DEBUG - + is_in_dir /etc/fail2ban/jail.d/gitea.conf /etc/gitea
2025-09-08 18:19:42,147: DEBUG - + '[' -n /etc/gitea ']'
2025-09-08 18:19:42,148: DEBUG - ++ realpath /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,148: DEBUG - + local child=/etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,149: DEBUG - ++ realpath /etc/gitea
2025-09-08 18:19:42,150: DEBUG - + local parent=/etc/gitea
2025-09-08 18:19:42,150: DEBUG - + [[ /etc/fail2ban/jail.d/gitea.conf =~ ^/etc/gitea ]]
2025-09-08 18:19:42,150: DEBUG - + '[' /etc/fail2ban/jail.d/gitea.conf == /var/www/gitea ']'
2025-09-08 18:19:42,150: DEBUG - + '[' /etc/fail2ban/jail.d/gitea.conf == /home/yunohost.app/gitea ']'
2025-09-08 18:19:42,151: DEBUG - + chmod 400 /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,151: DEBUG - + chown root:root /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,152: DEBUG - + [[ 0 == 1 ]]
2025-09-08 18:19:42,152: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/f2b_jail.conf /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,154: DEBUG - + _ynh_replace_vars /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,154: DEBUG - + local file=/etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,154: DEBUG - + local -a uniques_vars
2025-09-08 18:19:42,155: DEBUG - + mapfile -t uniques_vars
2025-09-08 18:19:42,155: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,155: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-09-08 18:19:42,156: DEBUG - ++ sort --unique
2025-09-08 18:19:42,162: DEBUG - + ynh_store_file_checksum /etc/fail2ban/jail.d/gitea.conf
2025-09-08 18:19:42,255: DEBUG - + ynh_config_add --template=f2b_filter.conf --destination=/etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,292: DEBUG - + jinja=0
2025-09-08 18:19:42,293: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/f2b_filter.conf ']'
2025-09-08 18:19:42,293: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/f2b_filter.conf
2025-09-08 18:19:42,293: DEBUG - + ynh_backup_if_checksum_is_different /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,350: DEBUG - + touch /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,351: DEBUG - + chmod 640 /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,352: DEBUG - + _ynh_apply_default_permissions /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,353: DEBUG - + local target=/etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,353: DEBUG - + ynh_system_user_exists --username=gitea
2025-09-08 18:19:42,362: DEBUG - + getent passwd gitea
2025-09-08 18:19:42,364: DEBUG - + '[' -f /etc/fail2ban/filter.d/gitea.conf ']'
2025-09-08 18:19:42,364: DEBUG - + is_in_dir /etc/fail2ban/filter.d/gitea.conf /var/www/gitea
2025-09-08 18:19:42,364: DEBUG - + '[' -n /var/www/gitea ']'
2025-09-08 18:19:42,365: DEBUG - ++ realpath /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,366: DEBUG - + local child=/etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,366: DEBUG - ++ realpath /var/www/gitea
2025-09-08 18:19:42,367: DEBUG - + local parent=/var/www/gitea
2025-09-08 18:19:42,368: DEBUG - + [[ /etc/fail2ban/filter.d/gitea.conf =~ ^/var/www/gitea ]]
2025-09-08 18:19:42,368: DEBUG - + is_in_dir /etc/fail2ban/filter.d/gitea.conf /home/yunohost.app/gitea
2025-09-08 18:19:42,368: DEBUG - + '[' -n /home/yunohost.app/gitea ']'
2025-09-08 18:19:42,369: DEBUG - ++ realpath /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,369: DEBUG - + local child=/etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,370: DEBUG - ++ realpath /home/yunohost.app/gitea
2025-09-08 18:19:42,371: DEBUG - + local parent=/home/yunohost.app/gitea
2025-09-08 18:19:42,371: DEBUG - + [[ /etc/fail2ban/filter.d/gitea.conf =~ ^/home/yunohost.app/gitea ]]
2025-09-08 18:19:42,372: DEBUG - + is_in_dir /etc/fail2ban/filter.d/gitea.conf /etc/gitea
2025-09-08 18:19:42,372: DEBUG - + '[' -n /etc/gitea ']'
2025-09-08 18:19:42,372: DEBUG - ++ realpath /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,373: DEBUG - + local child=/etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,373: DEBUG - ++ realpath /etc/gitea
2025-09-08 18:19:42,375: DEBUG - + local parent=/etc/gitea
2025-09-08 18:19:42,375: DEBUG - + [[ /etc/fail2ban/filter.d/gitea.conf =~ ^/etc/gitea ]]
2025-09-08 18:19:42,376: DEBUG - + '[' /etc/fail2ban/filter.d/gitea.conf == /var/www/gitea ']'
2025-09-08 18:19:42,376: DEBUG - + '[' /etc/fail2ban/filter.d/gitea.conf == /home/yunohost.app/gitea ']'
2025-09-08 18:19:42,376: DEBUG - + chmod 400 /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,376: DEBUG - + chown root:root /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,377: DEBUG - + [[ 0 == 1 ]]
2025-09-08 18:19:42,378: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_sqcnd5pt/conf/f2b_filter.conf /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,379: DEBUG - + _ynh_replace_vars /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,379: DEBUG - + local file=/etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,379: DEBUG - + local -a uniques_vars
2025-09-08 18:19:42,380: DEBUG - + mapfile -t uniques_vars
2025-09-08 18:19:42,380: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,380: DEBUG - ++ sort --unique
2025-09-08 18:19:42,381: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-09-08 18:19:42,385: DEBUG - + ynh_store_file_checksum /etc/fail2ban/filter.d/gitea.conf
2025-09-08 18:19:42,482: DEBUG - ++ dirname /var/log/gitea/gitea.log
2025-09-08 18:19:42,483: DEBUG - + local logdir=/var/log/gitea
2025-09-08 18:19:42,483: DEBUG - + '[' '!' -d /var/log/gitea ']'
2025-09-08 18:19:42,484: DEBUG - + '[' '!' -f /var/log/gitea/gitea.log ']'
2025-09-08 18:19:42,484: DEBUG - + ynh_systemctl --service=fail2ban --action=reload '--wait_until=(Started|Reloaded) fail2ban.service' --log_path=systemd
2025-09-08 18:19:42,604: DEBUG - + service=fail2ban
2025-09-08 18:19:42,605: DEBUG - + action=reload
2025-09-08 18:19:42,605: DEBUG - + wait_until='(Started|Reloaded) fail2ban.service'
2025-09-08 18:19:42,605: DEBUG - + length=20
2025-09-08 18:19:42,606: DEBUG - + log_path=systemd
2025-09-08 18:19:42,606: DEBUG - + timeout=60
2025-09-08 18:19:42,607: DEBUG - + ynh_in_ci_tests
2025-09-08 18:19:42,607: DEBUG - + '[' reload == stop ']'
2025-09-08 18:19:42,608: DEBUG - + [[ -n (Started|Reloaded) fail2ban.service ]]
2025-09-08 18:19:42,608: DEBUG - ++ mktemp
2025-09-08 18:19:42,608: DEBUG - + local templog=/tmp/tmp.PCV8MjwIif
2025-09-08 18:19:42,609: DEBUG - + '[' systemd == systemd ']'
2025-09-08 18:19:42,609: DEBUG - + local pid_tail=19313
2025-09-08 18:19:42,609: DEBUG - + journalctl --unit=fail2ban --follow --since=-0 --quiet
2025-09-08 18:19:42,610: DEBUG - + '[' reload == reload ']'
2025-09-08 18:19:42,610: DEBUG - + action=reload-or-restart
2025-09-08 18:19:42,610: DEBUG - ++ date --utc --rfc-3339=seconds
2025-09-08 18:19:42,610: DEBUG - ++ cut -d+ -f1
2025-09-08 18:19:42,611: DEBUG - + local 'time_start=2025-09-08 16:19:42 UTC'
2025-09-08 18:19:42,611: DEBUG - + systemctl reload-or-restart fail2ban
2025-09-08 18:19:42,751: DEBUG - + [[ -n (Started|Reloaded) fail2ban.service ]]
2025-09-08 18:19:42,764: INFO - The service fail2ban has correctly executed the action reload-or-restart.
2025-09-08 18:19:42,764: DEBUG - + '[' 1 -ge 3 ']'
2025-09-08 18:19:42,766: DEBUG - + '[' 1 -eq 60 ']'
2025-09-08 18:19:42,766: DEBUG - + _ynh_clean_check_starting
2025-09-08 18:19:42,766: DEBUG - + '[' -n 19313 ']'
2025-09-08 18:19:42,767: DEBUG - + kill -SIGTERM 19313
2025-09-08 18:19:42,767: DEBUG - + '[' -n /tmp/tmp.PCV8MjwIif ']'
2025-09-08 18:19:42,767: DEBUG - + ynh_safe_rm /tmp/tmp.PCV8MjwIif
2025-09-08 18:19:42,768: DEBUG - + local target=/tmp/tmp.PCV8MjwIif
2025-09-08 18:19:42,772: DEBUG - ++ journalctl --no-hostname --unit=fail2ban
2025-09-08 18:19:42,772: DEBUG - ++ tail --lines=50
2025-09-08 18:19:42,773: DEBUG - ++ grep 'WARNING.*gitea.*'
2025-09-08 18:19:42,814: DEBUG - + local fail2ban_error=
2025-09-08 18:19:42,816: INFO - [###########+++......] > Configuring application, step 2/2...
2025-09-08 18:19:42,816: DEBUG - + _set_permissions
2025-09-08 18:19:42,817: DEBUG - + chown -R gitea:gitea /var/www/gitea
2025-09-08 18:19:42,817: DEBUG - + chmod -R u=rwX,g=rX,o= /var/www/gitea
2025-09-08 18:19:42,818: DEBUG - + chmod +x /var/www/gitea/gitea
2025-09-08 18:19:42,819: DEBUG - + chown -R gitea:gitea /home/yunohost.app/gitea
2025-09-08 18:19:42,820: DEBUG - + chmod u=rwx,g=rx,o= /home/yunohost.app/gitea
2025-09-08 18:19:42,821: DEBUG - + find /home/yunohost.app/gitea '(' '!' -perm -o= -o '!' -user gitea -o '!' -group gitea ')' -exec chown gitea:gitea '{}' ';' -exec chmod u=rwX,g=rX,o= '{}' ';'
2025-09-08 18:19:42,822: DEBUG - + chmod -R u=rwX,g=,o= /home/yunohost.app/gitea/.ssh
2025-09-08 18:19:42,823: DEBUG - + ynh_systemctl --service=gitea --action=start --log_path=/var/log/gitea/gitea.log '--wait_until=Starting new Web server: tcp:127.0.0.1:'
2025-09-08 18:19:42,933: DEBUG - + service=gitea
2025-09-08 18:19:42,934: DEBUG - + action=start
2025-09-08 18:19:42,934: DEBUG - + wait_until='Starting new Web server: tcp:127.0.0.1:'
2025-09-08 18:19:42,934: DEBUG - + length=20
2025-09-08 18:19:42,934: DEBUG - + log_path=/var/log/gitea/gitea.log
2025-09-08 18:19:42,935: DEBUG - + timeout=60
2025-09-08 18:19:42,935: DEBUG - + ynh_in_ci_tests
2025-09-08 18:19:42,936: DEBUG - + '[' start == stop ']'
2025-09-08 18:19:42,936: DEBUG - + [[ -n Starting new Web server: tcp:127.0.0.1: ]]
2025-09-08 18:19:42,936: DEBUG - ++ mktemp
2025-09-08 18:19:42,937: DEBUG - + local templog=/tmp/tmp.EhtwpB2Lh9
2025-09-08 18:19:42,937: DEBUG - + '[' /var/log/gitea/gitea.log == systemd ']'
2025-09-08 18:19:42,937: DEBUG - + local pid_tail=19505
2025-09-08 18:19:42,937: DEBUG - + '[' start == reload ']'
2025-09-08 18:19:42,938: DEBUG - + tail --follow=name --retry --lines=0 /var/log/gitea/gitea.log
2025-09-08 18:19:42,938: DEBUG - ++ date --utc --rfc-3339=seconds
2025-09-08 18:19:42,938: DEBUG - ++ cut -d+ -f1
2025-09-08 18:19:42,939: DEBUG - + local 'time_start=2025-09-08 16:19:42 UTC'
2025-09-08 18:19:42,939: DEBUG - + systemctl start gitea
2025-09-08 18:19:42,982: DEBUG - + [[ -n Starting new Web server: tcp:127.0.0.1: ]]
2025-09-08 18:20:12,108: WARNING - (this may take some time)
2025-09-08 18:20:43,236: DEBUG - + '[' 60 -ge 3 ']'
2025-09-08 18:20:43,236: DEBUG -
2025-09-08 18:20:43,237: WARNING - The service gitea didn't fully executed the action start before the timeout.
2025-09-08 18:20:43,237: DEBUG - + '[' 60 -eq 60 ']'
2025-09-08 18:20:43,238: WARNING - Please find here an extract of the end of the log of the service gitea:
2025-09-08 18:20:43,239: DEBUG - + ynh_print_warn 'The service gitea didn'\''t fully executed the action start before the timeout.'
2025-09-08 18:20:43,240: DEBUG - + ynh_print_warn 'Please find here an extract of the end of the log of the service gitea:'
2025-09-08 18:20:43,241: DEBUG - + journalctl --quiet --no-hostname --no-pager --lines=20 --unit=gitea
2025-09-08 18:20:43,249: WARNING - sep 08 18:19:43 gitea[19510]: 2025/09/08 18:19:43 modules/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local
2025-09-08 18:20:43,250: DEBUG - + '[' -e /var/log/gitea/gitea.log ']'
2025-09-08 18:20:43,250: WARNING - sep 08 18:19:43 gitea[19510]: 2025/09/08 18:19:43 modules/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /home/yunohost.app/gitea/data/repo-archive
2025-09-08 18:20:43,252: DEBUG - + ynh_print_warn ===
2025-09-08 18:20:43,252: WARNING - sep 08 18:19:43 gitea[19510]: 2025/09/08 18:19:43 modules/storage/storage.go:208:initPackages() [I] Initialising Packages storage with type: local
2025-09-08 18:20:43,253: DEBUG - + echo ===
2025-09-08 18:20:43,253: WARNING - sep 08 18:19:43 gitea[19510]: 2025/09/08 18:19:43 modules/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /home/yunohost.app/gitea/data/packages
2025-09-08 18:20:43,255: DEBUG - + tail --lines=20 /var/log/gitea/gitea.log
2025-09-08 18:20:43,255: WARNING - sep 08 18:19:43 gitea[19510]: 2025/09/08 18:19:43 routers/init.go:139:InitWebInstalled() [I] SQLite3 support is enabled
2025-09-08 18:20:43,256: DEBUG - + '[' start == reload ']'
2025-09-08 18:20:43,256: WARNING - sep 08 18:19:43 gitea[19510]: 2025/09/08 18:19:43 routers/common/db.go:24:InitDBEngine() [I] Beginning ORM engine initialization.
2025-09-08 18:20:43,258: DEBUG - + '[' start == start ']'
2025-09-08 18:20:43,258: WARNING - sep 08 18:19:43 gitea[19510]: 2025/09/08 18:19:43 routers/common/db.go:31:InitDBEngine() [I] ORM engine initialization attempt #1/10...
2025-09-08 18:20:43,259: DEBUG - + systemctl --quiet is-active gitea
2025-09-08 18:20:43,259: WARNING - sep 08 18:19:43 gitea[19510]: 2025/09/08 18:19:43 models/db/collation.go:179:preprocessDatabaseCollation() [W] Current database has been altered to use collation "utf8mb4_uca1400_as_cs"
2025-09-08 18:20:43,261: DEBUG - + _ynh_clean_check_starting
2025-09-08 18:20:43,261: WARNING - sep 08 18:19:47 gitea[19510]: 2025/09/08 18:19:47 routers/init.go:145:InitWebInstalled() [I] ORM engine initialization successful!
2025-09-08 18:20:43,261: DEBUG - + '[' -n 19505 ']'
2025-09-08 18:20:43,262: WARNING - sep 08 18:19:50 gitea[19510]: 2025/09/08 18:19:50 .../indexer/issues/indexer.go:77:InitIssueIndexer.1() [I] PID 19510: Initializing Issue Indexer: bleve
2025-09-08 18:20:43,263: DEBUG - + kill -SIGTERM 19505
2025-09-08 18:20:43,264: WARNING - sep 08 18:19:50 gitea[19510]: 2025/09/08 18:19:50 .../indexer/stats/indexer.go:41:populateRepoIndexer() [I] Populating the repo stats indexer with existing repositories
2025-09-08 18:20:43,264: DEBUG - + '[' -n /tmp/tmp.EhtwpB2Lh9 ']'
2025-09-08 18:20:43,265: WARNING - sep 08 18:19:50 gitea[19510]: 2025/09/08 18:19:50 routers/init.go:86:syncAppConfForGit() [I] AppPath changed from '' to '/var/www/gitea/gitea'
2025-09-08 18:20:43,266: DEBUG - + ynh_safe_rm /tmp/tmp.EhtwpB2Lh9
2025-09-08 18:20:43,266: WARNING - sep 08 18:19:50 gitea[19510]: 2025/09/08 18:19:50 routers/init.go:91:syncAppConfForGit() [I] CustomConf changed from '' to '/var/www/gitea/custom/conf/app.ini'
2025-09-08 18:20:43,267: DEBUG - + local target=/tmp/tmp.EhtwpB2Lh9
2025-09-08 18:20:43,267: WARNING - sep 08 18:19:50 gitea[19510]: 2025/09/08 18:19:50 routers/init.go:97:syncAppConfForGit() [I] re-sync repository hooks ...
2025-09-08 18:20:43,268: WARNING - sep 08 18:19:50 gitea[19510]: 2025/09/08 18:19:50 routers/init.go:100:syncAppConfForGit() [I] re-write ssh public keys ...
2025-09-08 18:20:43,269: DEBUG - + return 1
2025-09-08 18:20:43,269: WARNING - sep 08 18:19:50 gitea[19510]: 2025/09/08 18:19:50 .../indexer/issues/indexer.go:154:InitIssueIndexer.2() [I] Issue Indexer Initialization took 6.652379ms
2025-09-08 18:20:43,270: DEBUG - + ynh_exit_properly
2025-09-08 18:20:43,270: WARNING - sep 08 18:19:50 gitea[19510]: 2025/09/08 18:19:50 cmd/web.go:323:listen() [I] Listen: http://127.0.0.1:6000
2025-09-08 18:20:43,271: WARNING - sep 08 18:19:50 gitea[19510]: 2025/09/08 18:19:50 cmd/web.go:327:listen() [I] AppURL(ROOT_URL): https://git.maindomain.tld/
2025-09-08 18:20:43,272: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2025-09-08 18:20:43,273: WARNING - sep 08 18:19:50 gitea[19510]: 2025/09/08 18:19:50 cmd/web.go:330:listen() [I] LFS server enabled
2025-09-08 18:20:43,273: WARNING - sep 08 18:19:50 gitea[19510]: 2025/09/08 18:19:50 modules/graceful/server.go:50:NewServer() [I] Starting new Web server: tcp:127.0.0.1:6000 on PID: 19510
2025-09-08 18:20:43,275: WARNING - ===
2025-09-08 18:20:43,276: WARNING - 2025/03/22 17:40:23 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /home/yunohost.app/gitea/data/repo-avatars
2025-09-08 18:20:43,277: WARNING - 2025/03/22 17:40:23 ...s/storage/storage.go:186:initLFS() [I] Initialising LFS storage with type: local
2025-09-08 18:20:43,278: WARNING - 2025/03/22 17:40:23 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /home/yunohost.app/gitea/data/lfs
2025-09-08 18:20:43,280: WARNING - 2025/03/22 17:40:23 ...s/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local
2025-09-08 18:20:43,280: WARNING - 2025/03/22 17:40:23 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /home/yunohost.app/gitea/data/repo-archive
2025-09-08 18:20:43,281: WARNING - 2025/03/22 17:40:23 ...s/storage/storage.go:208:initPackages() [I] Initialising Packages storage with type: local
2025-09-08 18:20:43,282: WARNING - 2025/03/22 17:40:23 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /home/yunohost.app/gitea/data/packages
2025-09-08 18:20:43,283: WARNING - 2025/03/22 17:40:23 routers/init.go:139:InitWebInstalled() [I] SQLite3 support is enabled
2025-09-08 18:20:43,284: WARNING - 2025/03/22 17:40:23 routers/common/db.go:23:InitDBEngine() [I] Beginning ORM engine initialization.
2025-09-08 18:20:43,284: WARNING - 2025/03/22 17:40:23 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #1/10...
2025-09-08 18:20:43,286: WARNING - 2025/03/22 17:40:24 ...dels/db/collation.go:185:preprocessDatabaseCollation() [W] Current database is using a case-insensitive collation "utf8mb4_general_ci", although Gitea could work with it, there might be some rare cases which don't work as expected.
2025-09-08 18:20:43,286: WARNING - 2025/03/22 17:40:24 routers/init.go:145:InitWebInstalled() [I] ORM engine initialization successful!
2025-09-08 18:20:43,287: WARNING - 2025/03/22 17:40:24 ...er/issues/indexer.go:76:func1() [I] PID 882: Initializing Issue Indexer: bleve
2025-09-08 18:20:43,288: WARNING - 2025/03/22 17:40:24 ...xer/stats/indexer.go:41:populateRepoIndexer() [I] Populating the repo stats indexer with existing repositories
2025-09-08 18:20:43,289: WARNING - 2025/03/22 17:40:24 ...er/issues/indexer.go:153:func2() [I] Issue Indexer Initialization took 2.608357ms
2025-09-08 18:20:43,289: WARNING - 2025/03/22 17:40:24 ...xer/stats/indexer.go:87:populateRepoIndexer() [I] Done (re)populating the repo stats indexer with existing repositories
2025-09-08 18:20:43,290: WARNING - 2025/03/22 17:40:25 cmd/web.go:315:listen() [I] Listen: http://127.0.0.1:6000
2025-09-08 18:20:43,291: WARNING - 2025/03/22 17:40:25 cmd/web.go:319:listen() [I] AppURL(ROOT_URL): https://git.maindomain.tld/
2025-09-08 18:20:43,292: WARNING - 2025/03/22 17:40:25 cmd/web.go:322:listen() [I] LFS server enabled
2025-09-08 18:20:43,292: WARNING - 2025/03/22 17:40:25 ...s/graceful/server.go:50:NewServer() [I] Starting new Web server: tcp:127.0.0.1:6000 on PID: 882
2025-09-08 18:20:43,872: ERROR - Impossible d'installer gitea : Une erreur est survenue dans le script d'installation de l'application