ended_at: 2024-05-13 06:34:27.290192
env:
  YNH_APP_ACTION: upgrade
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm
  YNH_APP_CURRENT_VERSION: 2024.04.26.21.42.29~ynh1
  YNH_APP_ID: searxng
  YNH_APP_INSTANCE_NAME: searxng
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 2024.05.10.13.42.17~ynh1
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_APP_UPGRADE_TYPE: UPGRADE_APP
  YNH_ARCH: amd64
  YNH_DEBIAN_VERSION: bullseye
error: null
interface: api
operation: app_upgrade
parent: null
related_to:
- - app
  - searxng
started_at: 2024-05-13 06:33:39.050017
success: true
yunohost_version: 11.2.11.3

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

2024-05-13 08:33:39,063: INFO - Updating system_user...
2024-05-13 08:33:39,113: INFO - Updating install_dir...
2024-05-13 08:33:39,134: INFO - Updating permissions...
2024-05-13 08:33:39,558: DEBUG - Nothing to update in LDAP
2024-05-13 08:33:39,732: DEBUG - Permission 'searxng.main' mise à jour
2024-05-13 08:33:39,732: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20240513-063339-user_permission_update-searxng" style="text-decoration:underline"> Mise à jour des accès pour la permission 'searxng' </a>'
2024-05-13 08:33:40,212: DEBUG - Nothing to update in LDAP
2024-05-13 08:33:40,212: DEBUG - Permission 'searxng.main' mise à jour
2024-05-13 08:33:40,443: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20240513-063340-permission_url-searxng" style="text-decoration:underline"> Mise à jour de l'URL associée à l'autorisation 'searxng' </a>'
2024-05-13 08:33:40,651: DEBUG - The permission database has been resynchronized
2024-05-13 08:33:40,932: DEBUG - La configuration de SSOwat a été regénérée
2024-05-13 08:33:40,941: INFO - Updating apt...
2024-05-13 08:33:40,953: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt"  7>&1']'
2024-05-13 08:33:40,967: DEBUG - + source /usr/share/yunohost/helpers
2024-05-13 08:33:40,969: DEBUG - +++ set +o
2024-05-13 08:33:40,973: DEBUG - +++ grep xtrace
2024-05-13 08:33:40,976: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-05-13 08:33:40,976: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-05-13 08:33:41,013: DEBUG - + ynh_abort_if_errors
2024-05-13 08:33:41,014: DEBUG - + trap ynh_exit_properly EXIT
2024-05-13 08:33:41,014: DEBUG - + ynh_install_app_dependencies git build-essential libxslt-dev python3-dev python3-venv python3-cffi python3-babel zlib1g-dev libffi-dev libssl-dev python3-lxml uwsgi uwsgi-plugin-python3 shellcheck
2024-05-13 08:33:41,014: DEBUG - + local 'dependencies=git build-essential libxslt-dev python3-dev python3-venv python3-cffi python3-babel zlib1g-dev libffi-dev libssl-dev python3-lxml uwsgi uwsgi-plugin-python3 shellcheck'
2024-05-13 08:33:41,015: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2024-05-13 08:33:41,019: DEBUG - ++ echo 'git build-essential libxslt-dev python3-dev python3-venv python3-cffi python3-babel zlib1g-dev libffi-dev libssl-dev python3-lxml uwsgi uwsgi-plugin-python3 shellcheck'
2024-05-13 08:33:41,020: DEBUG - + dependencies='git, build-essential, libxslt-dev, python3-dev, python3-venv, python3-cffi, python3-babel, zlib1g-dev, libffi-dev, libssl-dev, python3-lxml, uwsgi, uwsgi-plugin-python3, shellcheck'
2024-05-13 08:33:41,020: DEBUG - + local 'dependencies=git, build-essential, libxslt-dev, python3-dev, python3-venv, python3-cffi, python3-babel, zlib1g-dev, libffi-dev, libssl-dev, python3-lxml, uwsgi, uwsgi-plugin-python3, shellcheck'
2024-05-13 08:33:41,021: DEBUG - ++ ynh_read_manifest --manifest_key=version
2024-05-13 08:33:41,039: DEBUG - ++ '[' '!' -e '' ']'
2024-05-13 08:33:41,040: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_r3asbxs3/manifest.json ']'
2024-05-13 08:33:41,040: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_r3asbxs3/manifest.toml ']'
2024-05-13 08:33:41,040: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_r3asbxs3/manifest.toml
2024-05-13 08:33:41,040: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_r3asbxs3/manifest.toml
2024-05-13 08:33:41,040: DEBUG - ++ grep -q '\.json$'
2024-05-13 08:33:41,041: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_r3asbxs3/manifest.toml
2024-05-13 08:33:41,042: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-05-13 08:33:41,049: DEBUG - ++ jq .version --raw-output
2024-05-13 08:33:41,102: DEBUG - + local version=2024.04.26.21.42.29~ynh1
2024-05-13 08:33:41,103: DEBUG - + '[' -z 2024.04.26.21.42.29~ynh1 ']'
2024-05-13 08:33:41,103: DEBUG - + '[' 2024.04.26.21.42.29~ynh1 == null ']'
2024-05-13 08:33:41,103: DEBUG - + local dep_app=searxng
2024-05-13 08:33:41,103: DEBUG - + [[ git, build-essential, libxslt-dev, python3-dev, python3-venv, python3-cffi, python3-babel, zlib1g-dev, libffi-dev, libssl-dev, python3-lxml, uwsgi, uwsgi-plugin-python3, shellcheck =~ [<=>] ]]
2024-05-13 08:33:41,103: DEBUG - ++ echo git, build-essential, libxslt-dev, python3-dev, python3-venv, python3-cffi, python3-babel, zlib1g-dev, libffi-dev, libssl-dev, python3-lxml, uwsgi, uwsgi-plugin-python3, shellcheck
2024-05-13 08:33:41,104: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2024-05-13 08:33:41,104: DEBUG - ++ sort -u
2024-05-13 08:33:41,111: DEBUG - + local specific_php_version=
2024-05-13 08:33:41,112: DEBUG - + grep --quiet php
2024-05-13 08:33:41,113: DEBUG - ++ ynh_package_is_installed postgresql-13
2024-05-13 08:33:41,123: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2024-05-13 08:33:41,123: DEBUG - ++ grep --count 'ok installed'
2024-05-13 08:33:41,141: DEBUG - ++ echo yes
2024-05-13 08:33:41,142: DEBUG - + local psql_installed=yes
2024-05-13 08:33:41,142: DEBUG - + [[ true == \t\r\u\e ]]
2024-05-13 08:33:41,142: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false
2024-05-13 08:33:41,142: DEBUG - + cat
2024-05-13 08:33:41,144: DEBUG - + ynh_package_install_from_equivs /tmp/searxng-ynh-deps.control
2024-05-13 08:33:41,144: DEBUG - + local controlfile=/tmp/searxng-ynh-deps.control
2024-05-13 08:33:41,145: DEBUG - ++ cut '--delimiter= ' --fields=2
2024-05-13 08:33:41,145: DEBUG - ++ grep '^Package: ' /tmp/searxng-ynh-deps.control
2024-05-13 08:33:41,147: DEBUG - + local pkgname=searxng-ynh-deps
2024-05-13 08:33:41,147: DEBUG - ++ grep '^Version: ' /tmp/searxng-ynh-deps.control
2024-05-13 08:33:41,150: DEBUG - ++ cut '--delimiter= ' --fields=2
2024-05-13 08:33:41,151: DEBUG - + local pkgversion=2024.04.26.21.42.29~ynh1
2024-05-13 08:33:41,151: DEBUG - + [[ -z searxng-ynh-deps ]]
2024-05-13 08:33:41,151: DEBUG - + [[ -z 2024.04.26.21.42.29~ynh1 ]]
2024-05-13 08:33:41,151: DEBUG - + ynh_package_update
2024-05-13 08:33:41,151: DEBUG - + ynh_apt update
2024-05-13 08:33:41,151: DEBUG - + ynh_wait_dpkg_free
2024-05-13 08:33:41,323: DEBUG - + return 0
2024-05-13 08:33:41,323: DEBUG - + LC_ALL=C
2024-05-13 08:33:41,323: DEBUG - + DEBIAN_FRONTEND=noninteractive
2024-05-13 08:33:41,323: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2024-05-13 08:33:41,430: DEBUG - Hit:1 http://asi-fs-d.contabo.net/debian bullseye InRelease
2024-05-13 08:33:41,430: DEBUG - Hit:2 http://asi-fs-d.contabo.net/debian bullseye-updates InRelease
2024-05-13 08:33:41,440: DEBUG - Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
2024-05-13 08:33:41,450: DEBUG - Hit:4 http://forge.yunohost.org/debian bullseye InRelease
2024-05-13 08:33:41,548: DEBUG - Hit:5 https://packages.sury.org/php bullseye InRelease
2024-05-13 08:33:43,070: DEBUG - Reading package lists...
2024-05-13 08:33:43,089: DEBUG - ++ mktemp --directory
2024-05-13 08:33:43,091: DEBUG - + local TMPDIR=/tmp/tmp.16sMf50eEu
2024-05-13 08:33:43,092: DEBUG - + rm -f /usr/share/equivs/template/debian/compat
2024-05-13 08:33:43,093: DEBUG - + ynh_wait_dpkg_free
2024-05-13 08:33:43,226: DEBUG - + return 0
2024-05-13 08:33:43,227: DEBUG - + cp /tmp/searxng-ynh-deps.control /tmp/tmp.16sMf50eEu/control
2024-05-13 08:33:43,229: DEBUG - + cd /tmp/tmp.16sMf50eEu
2024-05-13 08:33:43,230: DEBUG - + LC_ALL=C
2024-05-13 08:33:43,230: DEBUG - + equivs-build ./control
2024-05-13 08:33:43,435: DEBUG - dpkg-buildpackage: info: source package searxng-ynh-deps
2024-05-13 08:33:43,435: DEBUG - dpkg-buildpackage: info: source version 2024.04.26.21.42.29~ynh1
2024-05-13 08:33:43,436: DEBUG - dpkg-buildpackage: info: source distribution unstable
2024-05-13 08:33:43,436: DEBUG - dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@vmi810493.contaboserver.net>
2024-05-13 08:33:43,487: DEBUG -  dpkg-source --before-build .
2024-05-13 08:33:43,487: DEBUG - dpkg-buildpackage: info: host architecture amd64
2024-05-13 08:33:43,633: DEBUG -  debian/rules clean
2024-05-13 08:33:43,637: DEBUG - dh clean
2024-05-13 08:33:43,751: DEBUG -    dh_clean
2024-05-13 08:33:43,799: DEBUG -  debian/rules binary
2024-05-13 08:33:43,803: DEBUG - dh binary
2024-05-13 08:33:43,875: DEBUG -    dh_update_autotools_config
2024-05-13 08:33:43,911: DEBUG -    dh_autoreconf
2024-05-13 08:33:43,954: DEBUG -    create-stamp debian/debhelper-build-stamp
2024-05-13 08:33:43,954: DEBUG -    dh_prep
2024-05-13 08:33:43,989: DEBUG -    dh_install
2024-05-13 08:33:44,029: DEBUG -    dh_installdocs
2024-05-13 08:33:44,074: DEBUG -    dh_installchangelogs
2024-05-13 08:33:44,193: DEBUG -    dh_perl
2024-05-13 08:33:44,234: DEBUG -    dh_link
2024-05-13 08:33:44,276: DEBUG -    dh_strip_nondeterminism
2024-05-13 08:33:44,361: DEBUG -    dh_compress
2024-05-13 08:33:44,413: DEBUG -    dh_fixperms
2024-05-13 08:33:44,476: DEBUG -    dh_missing
2024-05-13 08:33:44,510: DEBUG -    dh_installdeb
2024-05-13 08:33:44,578: DEBUG -    dh_gencontrol
2024-05-13 08:33:44,747: DEBUG -    dh_md5sums
2024-05-13 08:33:44,797: DEBUG -    dh_builddeb
2024-05-13 08:33:44,829: DEBUG - dpkg-deb: building package 'searxng-ynh-deps' in '../searxng-ynh-deps_2024.04.26.21.42.29~ynh1_all.deb'.
2024-05-13 08:33:44,870: DEBUG -  dpkg-genbuildinfo --build=binary
2024-05-13 08:33:45,422: DEBUG -  dpkg-genchanges --build=binary >../searxng-ynh-deps_2024.04.26.21.42.29~ynh1_amd64.changes
2024-05-13 08:33:45,518: DEBUG - dpkg-genchanges: info: binary-only upload (no source code included)
2024-05-13 08:33:45,522: DEBUG -  dpkg-source --after-build .
2024-05-13 08:33:45,638: DEBUG - dpkg-buildpackage: info: binary-only upload (no source included)
2024-05-13 08:33:45,641: DEBUG - 
2024-05-13 08:33:45,642: DEBUG - The package has been created.
2024-05-13 08:33:45,642: DEBUG - Attention, the package has been created in the current directory,
2024-05-13 08:33:45,642: DEBUG - not in ".." as indicated by the message above!
2024-05-13 08:33:45,643: DEBUG - + LC_ALL=C
2024-05-13 08:33:45,643: DEBUG - + dpkg --force-depends --install ./searxng-ynh-deps_2024.04.26.21.42.29~ynh1_all.deb
2024-05-13 08:33:45,643: DEBUG - + tee ./dpkg_log
2024-05-13 08:33:45,739: DEBUG - (Reading database ... 71191 files and directories currently installed.)
2024-05-13 08:33:45,744: DEBUG - Preparing to unpack .../searxng-ynh-deps_2024.04.26.21.42.29~ynh1_all.deb ...
2024-05-13 08:33:45,749: DEBUG - Unpacking searxng-ynh-deps (2024.04.26.21.42.29~ynh1) over (2024.04.24.13.17.17~ynh1) ...
2024-05-13 08:33:45,774: DEBUG - Setting up searxng-ynh-deps (2024.04.26.21.42.29~ynh1) ...
2024-05-13 08:33:45,794: DEBUG - + ynh_package_install --fix-broken
2024-05-13 08:33:45,795: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2024-05-13 08:33:45,795: DEBUG - + ynh_wait_dpkg_free
2024-05-13 08:33:45,927: DEBUG - + return 0
2024-05-13 08:33:45,927: DEBUG - + LC_ALL=C
2024-05-13 08:33:45,927: DEBUG - + DEBIAN_FRONTEND=noninteractive
2024-05-13 08:33:45,927: 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
2024-05-13 08:33:46,097: DEBUG - Reading package lists...
2024-05-13 08:33:46,423: DEBUG - Building dependency tree...
2024-05-13 08:33:46,424: DEBUG - Reading state information...
2024-05-13 08:33:46,945: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2024-05-13 08:33:46,948: DEBUG - + [[ -n /tmp/tmp.16sMf50eEu ]]
2024-05-13 08:33:46,949: DEBUG - + rm --recursive --force /tmp/tmp.16sMf50eEu
2024-05-13 08:33:46,950: DEBUG - + ynh_package_is_installed searxng-ynh-deps
2024-05-13 08:33:46,969: DEBUG - + dpkg-query --show '--showformat=${Status}' searxng-ynh-deps
2024-05-13 08:33:46,971: DEBUG - + grep --count 'ok installed'
2024-05-13 08:33:46,992: DEBUG - + rm /tmp/searxng-ynh-deps.control
2024-05-13 08:33:46,994: DEBUG - ++ ynh_package_is_installed postgresql-13
2024-05-13 08:33:47,014: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2024-05-13 08:33:47,015: DEBUG - ++ grep --count 'ok installed'
2024-05-13 08:33:47,026: DEBUG - ++ echo yes
2024-05-13 08:33:47,029: DEBUG - + local psql_installed2=yes
2024-05-13 08:33:47,029: DEBUG - + [[ yes != \y\e\s ]]
2024-05-13 08:33:47,029: DEBUG - + ynh_exit_properly
2024-05-13 08:33:47,030: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2024-05-13 08:33:48,036: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade"  7>&1']'
2024-05-13 08:33:48,046: DEBUG - + source _common.sh
2024-05-13 08:33:48,047: DEBUG - ++ repo_fullpath=https://github.com/searxng/searxng
2024-05-13 08:33:48,047: DEBUG - ++ commit_sha=ffb1001f803359a590bbbaf62da6b1fa1456ed16
2024-05-13 08:33:48,047: DEBUG - + source /usr/share/yunohost/helpers
2024-05-13 08:33:48,048: DEBUG - +++ set +o
2024-05-13 08:33:48,048: DEBUG - +++ grep xtrace
2024-05-13 08:33:48,050: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-05-13 08:33:48,050: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-05-13 08:33:48,072: DEBUG - ++ ynh_check_app_version_changed
2024-05-13 08:33:48,072: DEBUG - ++ local return_value=UPGRADE_APP
2024-05-13 08:33:48,072: DEBUG - ++ '[' UPGRADE_APP == UPGRADE_SAME ']'
2024-05-13 08:33:48,072: DEBUG - ++ '[' UPGRADE_APP == DOWNGRADE ']'
2024-05-13 08:33:48,072: DEBUG - ++ echo UPGRADE_APP
2024-05-13 08:33:48,073: DEBUG - + upgrade_type=UPGRADE_APP
2024-05-13 08:33:48,176: INFO - [++..................] > Ensuring downward compatibility...
2024-05-13 08:33:48,177: DEBUG - + '[' -e /var/www/searxng/searx ']'
2024-05-13 08:33:48,177: DEBUG - + ynh_delete_file_checksum --file=etc/nginx_conf.d/maindomain.tld/searxng.conf
2024-05-13 08:33:48,186: DEBUG - + local checksum_setting_name=checksum_etc_nginx_conf.d_maindomain.tld_searxng.conf
2024-05-13 08:33:48,186: DEBUG - + ynh_app_setting_delete --app=searxng --key=checksum_etc_nginx_conf.d_maindomain.tld_searxng.conf
2024-05-13 08:33:48,186: DEBUG - + local _globalapp=searxng
2024-05-13 08:33:48,224: DEBUG - + app=searxng
2024-05-13 08:33:48,224: DEBUG - + [[ checksum_etc_nginx_conf.d_maindomain.tld_searxng.conf =~ (unprotected|skipped|protected)_ ]]
2024-05-13 08:33:48,224: DEBUG - + ynh_app_setting delete searxng checksum_etc_nginx_conf.d_maindomain.tld_searxng.conf
2024-05-13 08:33:48,365: INFO - [##+++...............] > Stopping a systemd service...
2024-05-13 08:33:48,366: DEBUG - + ynh_systemd_action --service_name=uwsgi-app@searxng.service --action=stop --log_path=/var/log/uwsgi/searxng/searxng.log
2024-05-13 08:33:48,509: DEBUG - + service_name=uwsgi-app@searxng.service
2024-05-13 08:33:48,509: DEBUG - + action=stop
2024-05-13 08:33:48,509: DEBUG - + line_match=
2024-05-13 08:33:48,509: DEBUG - + length=20
2024-05-13 08:33:48,509: DEBUG - + log_path=/var/log/uwsgi/searxng/searxng.log
2024-05-13 08:33:48,510: DEBUG - + timeout=300
2024-05-13 08:33:48,510: DEBUG - + '[' stop == stop ']'
2024-05-13 08:33:48,510: DEBUG - + systemctl is-active --quiet uwsgi-app@searxng.service
2024-05-13 08:33:48,516: DEBUG - + '[' stop == reload ']'
2024-05-13 08:33:48,516: DEBUG - ++ cut -d+ -f1
2024-05-13 08:33:48,517: DEBUG - ++ date --utc --rfc-3339=seconds
2024-05-13 08:33:48,521: DEBUG - + local 'time_start=2024-05-13 06:33:48 UTC'
2024-05-13 08:33:48,522: DEBUG - + systemctl stop uwsgi-app@searxng.service
2024-05-13 08:33:49,565: DEBUG - + '[' UPGRADE_APP == UPGRADE_APP ']'
2024-05-13 08:33:49,701: INFO - [#####+++............] > Upgrading source files...
2024-05-13 08:33:49,702: DEBUG - + ynh_secure_remove --file=/var/www/searxng/searxng-src
2024-05-13 08:33:49,796: DEBUG - + ynh_exec_fully_quiet git clone -n https://github.com/searxng/searxng /var/www/searxng/searxng-src
2024-05-13 08:33:49,797: DEBUG - + [[ 5 -eq 1 ]]
2024-05-13 08:33:49,797: DEBUG - + git clone -n https://github.com/searxng/searxng /var/www/searxng/searxng-src
2024-05-13 08:33:56,450: DEBUG - + pushd /var/www/searxng/searxng-src
2024-05-13 08:33:56,450: DEBUG - /var/www/searxng/searxng-src /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/scripts
2024-05-13 08:33:56,450: DEBUG - + ynh_exec_fully_quiet git checkout ffb1001f803359a590bbbaf62da6b1fa1456ed16
2024-05-13 08:33:56,450: DEBUG - + [[ 3 -eq 1 ]]
2024-05-13 08:33:56,450: DEBUG - + git checkout ffb1001f803359a590bbbaf62da6b1fa1456ed16
2024-05-13 08:33:56,603: DEBUG - + popd
2024-05-13 08:33:56,603: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/scripts
2024-05-13 08:33:56,603: DEBUG - + ynh_secure_remove --file=/var/www/searxng/searxng-pyenv
2024-05-13 08:33:56,787: DEBUG - + python3 -m venv --system-site-packages /var/www/searxng/searxng-pyenv
2024-05-13 08:34:00,333: DEBUG - + source /var/www/searxng/searxng-pyenv/bin/activate
2024-05-13 08:34:00,333: DEBUG - ++ deactivate nondestructive
2024-05-13 08:34:00,334: DEBUG - ++ '[' -n '' ']'
2024-05-13 08:34:00,334: DEBUG - ++ '[' -n '' ']'
2024-05-13 08:34:00,335: DEBUG - ++ '[' -n /bin/bash -o -n '' ']'
2024-05-13 08:34:00,335: DEBUG - ++ hash -r
2024-05-13 08:34:00,335: DEBUG - ++ '[' -n '' ']'
2024-05-13 08:34:00,335: DEBUG - ++ unset VIRTUAL_ENV
2024-05-13 08:34:00,335: DEBUG - ++ '[' '!' nondestructive = nondestructive ']'
2024-05-13 08:34:00,335: DEBUG - ++ VIRTUAL_ENV=/var/www/searxng/searxng-pyenv
2024-05-13 08:34:00,335: DEBUG - ++ export VIRTUAL_ENV
2024-05-13 08:34:00,335: DEBUG - ++ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-05-13 08:34:00,335: DEBUG - ++ PATH=/var/www/searxng/searxng-pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-05-13 08:34:00,335: DEBUG - ++ export PATH
2024-05-13 08:34:00,335: DEBUG - ++ '[' -n '' ']'
2024-05-13 08:34:00,336: DEBUG - ++ '[' -z '' ']'
2024-05-13 08:34:00,336: DEBUG - ++ _OLD_VIRTUAL_PS1=
2024-05-13 08:34:00,336: DEBUG - ++ PS1='(searxng-pyenv) '
2024-05-13 08:34:00,336: DEBUG - ++ export PS1
2024-05-13 08:34:00,336: DEBUG - ++ '[' -n /bin/bash -o -n '' ']'
2024-05-13 08:34:00,336: DEBUG - ++ hash -r
2024-05-13 08:34:00,336: DEBUG - + pip3 install -U pip setuptools wheel pyyaml --no-cache-dir
2024-05-13 08:34:02,301: DEBUG - Requirement already satisfied: pip in /var/www/searxng/searxng-pyenv/lib/python3.9/site-packages (20.3.4)
2024-05-13 08:34:02,828: DEBUG - Collecting pip
2024-05-13 08:34:02,901: DEBUG -   Downloading pip-24.0-py3-none-any.whl (2.1 MB)
2024-05-13 08:34:03,058: DEBUG - Requirement already satisfied: setuptools in /var/www/searxng/searxng-pyenv/lib/python3.9/site-packages (44.1.1)
2024-05-13 08:34:04,478: DEBUG - Collecting setuptools
2024-05-13 08:34:04,491: DEBUG -   Downloading setuptools-69.5.1-py3-none-any.whl (894 kB)
2024-05-13 08:34:04,562: DEBUG - Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2)
2024-05-13 08:34:04,818: DEBUG - Collecting wheel
2024-05-13 08:34:04,833: DEBUG -   Downloading wheel-0.43.0-py3-none-any.whl (65 kB)
2024-05-13 08:34:04,837: DEBUG - Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (5.3.1)
2024-05-13 08:34:05,067: DEBUG - Collecting pyyaml
2024-05-13 08:34:05,078: DEBUG -   Downloading PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (738 kB)
2024-05-13 08:34:05,438: DEBUG - Installing collected packages: wheel, setuptools, pyyaml, pip
2024-05-13 08:34:05,438: DEBUG -   Attempting uninstall: wheel
2024-05-13 08:34:05,439: DEBUG -     Found existing installation: wheel 0.34.2
2024-05-13 08:34:05,439: DEBUG -     Not uninstalling wheel at /usr/lib/python3/dist-packages, outside environment /var/www/searxng/searxng-pyenv
2024-05-13 08:34:05,439: DEBUG -     Can't uninstall 'wheel'. No files were found to uninstall.
2024-05-13 08:34:05,503: DEBUG -   Attempting uninstall: setuptools
2024-05-13 08:34:05,503: DEBUG -     Found existing installation: setuptools 44.1.1
2024-05-13 08:34:05,554: DEBUG -     Uninstalling setuptools-44.1.1:
2024-05-13 08:34:05,566: DEBUG -       Successfully uninstalled setuptools-44.1.1
2024-05-13 08:34:06,215: DEBUG -   Attempting uninstall: pyyaml
2024-05-13 08:34:06,224: DEBUG -     Found existing installation: PyYAML 5.3.1
2024-05-13 08:34:06,224: DEBUG -     Not uninstalling pyyaml at /usr/lib/python3/dist-packages, outside environment /var/www/searxng/searxng-pyenv
2024-05-13 08:34:06,225: DEBUG -     Can't uninstall 'PyYAML'. No files were found to uninstall.
2024-05-13 08:34:06,300: DEBUG -   Attempting uninstall: pip
2024-05-13 08:34:06,301: DEBUG -     Found existing installation: pip 20.3.4
2024-05-13 08:34:06,398: DEBUG -     Uninstalling pip-20.3.4:
2024-05-13 08:34:06,402: DEBUG -       Successfully uninstalled pip-20.3.4
2024-05-13 08:34:07,703: DEBUG - Successfully installed pip-24.0 pyyaml-6.0.1 setuptools-69.5.1 wheel-0.43.0
2024-05-13 08:34:07,848: DEBUG - + ynh_exec_fully_quiet pip3 install -e /var/www/searxng/searxng-src
2024-05-13 08:34:07,848: DEBUG - + [[ 4 -eq 1 ]]
2024-05-13 08:34:07,848: DEBUG - + pip3 install -e /var/www/searxng/searxng-src
2024-05-13 08:34:20,148: DEBUG - + chmod 750 /var/www/searxng
2024-05-13 08:34:20,151: DEBUG - + chmod -R o-rwx /var/www/searxng
2024-05-13 08:34:20,197: DEBUG - + chown -R searxng: /var/www/searxng
2024-05-13 08:34:20,375: INFO - [########+++.........] > Upgrading system configurations related to searxng...
2024-05-13 08:34:20,377: DEBUG - + ynh_add_nginx_config
2024-05-13 08:34:20,377: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,377: DEBUG - + ynh_add_config --template=nginx.conf --destination=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,419: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/conf/nginx.conf ']'
2024-05-13 08:34:20,419: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/conf/nginx.conf
2024-05-13 08:34:20,419: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,428: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf
2024-05-13 08:34:20,429: DEBUG - ++ ynh_app_setting_get --app=searxng --key=checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf
2024-05-13 08:34:20,429: DEBUG - ++ local _globalapp=searxng
2024-05-13 08:34:20,465: DEBUG - ++ app=searxng
2024-05-13 08:34:20,465: DEBUG - ++ [[ checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf =~ (unprotected|protected|skipped)_ ]]
2024-05-13 08:34:20,465: DEBUG - ++ ynh_app_setting get searxng checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf
2024-05-13 08:34:20,531: DEBUG - + local checksum_value=b7eea1388cfab5bcdd21237b24dffa0a
2024-05-13 08:34:20,532: DEBUG - + backup_file_checksum=
2024-05-13 08:34:20,532: DEBUG - + '[' -n b7eea1388cfab5bcdd21237b24dffa0a ']'
2024-05-13 08:34:20,532: DEBUG - + '[' -e /etc/nginx/conf.d/maindomain.tld.d/searxng.conf ']'
2024-05-13 08:34:20,532: DEBUG - + md5sum --check --status
2024-05-13 08:34:20,534: DEBUG - + touch /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,535: DEBUG - + chown root:root /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,537: DEBUG - + chmod 640 /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,538: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/conf/nginx.conf /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,541: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,541: DEBUG - + local target=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,543: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost
2024-05-13 08:34:20,547: DEBUG - ++ tr -d '<>= '
2024-05-13 08:34:20,566: DEBUG - ++ '[' '!' -e '' ']'
2024-05-13 08:34:20,567: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/manifest.json ']'
2024-05-13 08:34:20,567: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/manifest.toml ']'
2024-05-13 08:34:20,567: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/manifest.toml
2024-05-13 08:34:20,567: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/manifest.toml
2024-05-13 08:34:20,567: DEBUG - ++ grep -q '\.json$'
2024-05-13 08:34:20,571: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/manifest.toml
2024-05-13 08:34:20,571: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-05-13 08:34:20,571: DEBUG - ++ jq .requirements.yunohost --raw-output
2024-05-13 08:34:20,627: DEBUG - + local ynh_requirement=null
2024-05-13 08:34:20,628: DEBUG - + dpkg --compare-versions 2.0 ge 2
2024-05-13 08:34:20,630: DEBUG - + chmod o-rwx /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,631: DEBUG - + chmod g-w /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,632: DEBUG - + chown -R root:root /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,634: DEBUG - + ynh_system_user_exists searxng
2024-05-13 08:34:20,649: DEBUG - + getent passwd searxng
2024-05-13 08:34:20,650: DEBUG - + chown searxng:searxng /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,656: DEBUG - + echo /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,656: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system'
2024-05-13 08:34:20,659: DEBUG - + chmod 400 /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,660: DEBUG - + chown root:root /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,662: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,678: DEBUG - + test -n /searxng
2024-05-13 08:34:20,678: DEBUG - + local path_url_slash_less=/searxng
2024-05-13 08:34:20,678: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/searxng/ --target_file=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,770: DEBUG - + sed --in-place $'s\001__PATH__/\001/searxng/\001g' /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,774: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/searxng --target_file=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,854: DEBUG - + sed --in-place $'s\001__PATH__\001/searxng\001g' /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,857: DEBUG - + test -n searxng
2024-05-13 08:34:20,857: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=searxng --target_file=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,940: DEBUG - + sed --in-place $'s\001__NAME__\001searxng\001g' /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:20,943: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=searxng --target_file=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:21,025: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001searxng\001g' /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:21,027: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=searxng --target_file=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:21,114: DEBUG - + sed --in-place $'s\001__USER__\001searxng\001g' /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:21,116: DEBUG - + test -n ''
2024-05-13 08:34:21,116: DEBUG - + dpkg --compare-versions 2.0 lt 2
2024-05-13 08:34:21,117: DEBUG - + test -n ''
2024-05-13 08:34:21,119: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:21,119: DEBUG - ++ sort --unique
2024-05-13 08:34:21,119: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2024-05-13 08:34:21,123: DEBUG - + uniques_vars=('app')
2024-05-13 08:34:21,125: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:21,126: DEBUG - + update_only=0
2024-05-13 08:34:21,151: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf
2024-05-13 08:34:21,152: DEBUG - ++ md5sum /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:21,153: DEBUG - ++ cut '--delimiter= ' --fields=1
2024-05-13 08:34:21,156: DEBUG - + ynh_app_setting_set --app=searxng --key=checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf --value=b7eea1388cfab5bcdd21237b24dffa0a
2024-05-13 08:34:21,156: DEBUG - + local _globalapp=searxng
2024-05-13 08:34:21,267: DEBUG - + app=searxng
2024-05-13 08:34:21,267: DEBUG - + [[ checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf =~ (unprotected|protected|skipped)_ ]]
2024-05-13 08:34:21,268: DEBUG - + ynh_app_setting set searxng checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf b7eea1388cfab5bcdd21237b24dffa0a
2024-05-13 08:34:21,333: DEBUG - + '[' -n '' ']'
2024-05-13 08:34:21,333: DEBUG - + unset backup_file_checksum
2024-05-13 08:34:21,334: DEBUG - + '[' /searxng '!=' / ']'
2024-05-13 08:34:21,334: DEBUG - + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:21,415: DEBUG - + sed --in-place 's^#sub_path_onlyg' /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:21,417: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:21,419: DEBUG - + update_only=0
2024-05-13 08:34:21,442: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf
2024-05-13 08:34:21,442: DEBUG - ++ md5sum /etc/nginx/conf.d/maindomain.tld.d/searxng.conf
2024-05-13 08:34:21,444: DEBUG - ++ cut '--delimiter= ' --fields=1
2024-05-13 08:34:21,447: DEBUG - + ynh_app_setting_set --app=searxng --key=checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf --value=b7eea1388cfab5bcdd21237b24dffa0a
2024-05-13 08:34:21,447: DEBUG - + local _globalapp=searxng
2024-05-13 08:34:21,527: DEBUG - + app=searxng
2024-05-13 08:34:21,527: DEBUG - + [[ checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf =~ (unprotected|protected|skipped)_ ]]
2024-05-13 08:34:21,528: DEBUG - + ynh_app_setting set searxng checksum__etc_nginx_conf.d_maindomain.tld.d_searxng.conf b7eea1388cfab5bcdd21237b24dffa0a
2024-05-13 08:34:21,593: DEBUG - + '[' -n '' ']'
2024-05-13 08:34:21,593: DEBUG - + unset backup_file_checksum
2024-05-13 08:34:21,594: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2024-05-13 08:34:21,680: DEBUG - + service_name=nginx
2024-05-13 08:34:21,681: DEBUG - + action=reload
2024-05-13 08:34:21,681: DEBUG - + line_match=
2024-05-13 08:34:21,681: DEBUG - + length=20
2024-05-13 08:34:21,681: DEBUG - + log_path=/var/log/nginx/nginx.log
2024-05-13 08:34:21,681: DEBUG - + timeout=300
2024-05-13 08:34:21,681: DEBUG - + '[' reload == stop ']'
2024-05-13 08:34:21,682: DEBUG - + '[' reload == reload ']'
2024-05-13 08:34:21,682: DEBUG - + action=reload-or-restart
2024-05-13 08:34:21,682: DEBUG - ++ date --utc --rfc-3339=seconds
2024-05-13 08:34:21,682: DEBUG - ++ cut -d+ -f1
2024-05-13 08:34:21,686: DEBUG - + local 'time_start=2024-05-13 06:34:21 UTC'
2024-05-13 08:34:21,686: DEBUG - + systemctl reload-or-restart nginx
2024-05-13 08:34:21,895: DEBUG - + ynh_add_uwsgi_service
2024-05-13 08:34:21,895: DEBUG - + ynh_check_global_uwsgi_config
2024-05-13 08:34:21,895: DEBUG - + uwsgi --version
2024-05-13 08:34:21,895: INFO - [###########+++......] > Updating a configuration file...
2024-05-13 08:34:21,913: DEBUG - 2.0.19.1-debian
2024-05-13 08:34:21,913: DEBUG - + cat
2024-05-13 08:34:21,922: DEBUG - + systemctl daemon-reload
2024-05-13 08:34:22,188: DEBUG - + local finaluwsgiini=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,188: DEBUG - + usermod --append --groups www-data searxng
2024-05-13 08:34:22,197: DEBUG - + ynh_add_config --template=uwsgi.ini --destination=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,221: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/conf/uwsgi.ini ']'
2024-05-13 08:34:22,221: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/conf/uwsgi.ini
2024-05-13 08:34:22,222: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,231: DEBUG - + local checksum_setting_name=checksum__etc_uwsgi_apps-available_searxng.ini
2024-05-13 08:34:22,232: DEBUG - ++ ynh_app_setting_get --app=searxng --key=checksum__etc_uwsgi_apps-available_searxng.ini
2024-05-13 08:34:22,234: DEBUG - ++ local _globalapp=searxng
2024-05-13 08:34:22,263: DEBUG - ++ app=searxng
2024-05-13 08:34:22,263: DEBUG - ++ [[ checksum__etc_uwsgi_apps-available_searxng.ini =~ (unprotected|protected|skipped)_ ]]
2024-05-13 08:34:22,264: DEBUG - ++ ynh_app_setting get searxng checksum__etc_uwsgi_apps-available_searxng.ini
2024-05-13 08:34:22,318: DEBUG - + local checksum_value=32b872d2b0203a9e102e86bfd5a058e1
2024-05-13 08:34:22,318: DEBUG - + backup_file_checksum=
2024-05-13 08:34:22,318: DEBUG - + '[' -n 32b872d2b0203a9e102e86bfd5a058e1 ']'
2024-05-13 08:34:22,318: DEBUG - + '[' -e /etc/uwsgi/apps-available/searxng.ini ']'
2024-05-13 08:34:22,318: DEBUG - + md5sum --check --status
2024-05-13 08:34:22,321: DEBUG - + touch /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,322: DEBUG - + chown root:root /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,329: DEBUG - + chmod 640 /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,329: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/conf/uwsgi.ini /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,331: DEBUG - + _ynh_apply_default_permissions /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,331: DEBUG - + local target=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,332: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost
2024-05-13 08:34:22,332: DEBUG - ++ tr -d '<>= '
2024-05-13 08:34:22,352: DEBUG - ++ '[' '!' -e '' ']'
2024-05-13 08:34:22,352: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/manifest.json ']'
2024-05-13 08:34:22,352: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/manifest.toml ']'
2024-05-13 08:34:22,352: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/manifest.toml
2024-05-13 08:34:22,352: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/manifest.toml
2024-05-13 08:34:22,352: DEBUG - ++ grep -q '\.json$'
2024-05-13 08:34:22,355: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_357s1chm/manifest.toml
2024-05-13 08:34:22,355: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-05-13 08:34:22,355: DEBUG - ++ jq .requirements.yunohost --raw-output
2024-05-13 08:34:22,406: DEBUG - + local ynh_requirement=null
2024-05-13 08:34:22,407: DEBUG - + dpkg --compare-versions 2.0 ge 2
2024-05-13 08:34:22,412: DEBUG - + chmod o-rwx /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,414: DEBUG - + chmod g-w /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,415: DEBUG - + chown -R root:root /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,417: DEBUG - + ynh_system_user_exists searxng
2024-05-13 08:34:22,440: DEBUG - + getent passwd searxng
2024-05-13 08:34:22,444: DEBUG - + chown searxng:searxng /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,480: DEBUG - + echo /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,481: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system'
2024-05-13 08:34:22,488: DEBUG - + ynh_replace_vars --file=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,510: DEBUG - + test -n /searxng
2024-05-13 08:34:22,511: DEBUG - + local path_url_slash_less=/searxng
2024-05-13 08:34:22,511: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/searxng/ --target_file=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,623: DEBUG - + sed --in-place $'s\001__PATH__/\001/searxng/\001g' /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,625: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/searxng --target_file=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,707: DEBUG - + sed --in-place $'s\001__PATH__\001/searxng\001g' /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,709: DEBUG - + test -n searxng
2024-05-13 08:34:22,709: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=searxng --target_file=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,776: DEBUG - + sed --in-place $'s\001__NAME__\001searxng\001g' /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,778: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=searxng --target_file=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,860: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001searxng\001g' /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,862: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=searxng --target_file=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,939: DEBUG - + sed --in-place $'s\001__USER__\001searxng\001g' /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,941: DEBUG - + test -n ''
2024-05-13 08:34:22,941: DEBUG - + dpkg --compare-versions 2.0 lt 2
2024-05-13 08:34:22,943: DEBUG - + test -n ''
2024-05-13 08:34:22,944: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,944: DEBUG - ++ sort --unique
2024-05-13 08:34:22,946: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2024-05-13 08:34:22,949: DEBUG - + uniques_vars=('app' 'install_dir')
2024-05-13 08:34:22,955: DEBUG - + ynh_store_file_checksum --file=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,955: DEBUG - + update_only=0
2024-05-13 08:34:22,979: DEBUG - + local checksum_setting_name=checksum__etc_uwsgi_apps-available_searxng.ini
2024-05-13 08:34:22,980: DEBUG - ++ md5sum /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:22,980: DEBUG - ++ cut '--delimiter= ' --fields=1
2024-05-13 08:34:22,983: DEBUG - + ynh_app_setting_set --app=searxng --key=checksum__etc_uwsgi_apps-available_searxng.ini --value=32b872d2b0203a9e102e86bfd5a058e1
2024-05-13 08:34:22,984: DEBUG - + local _globalapp=searxng
2024-05-13 08:34:23,104: DEBUG - + app=searxng
2024-05-13 08:34:23,104: DEBUG - + [[ checksum__etc_uwsgi_apps-available_searxng.ini =~ (unprotected|protected|skipped)_ ]]
2024-05-13 08:34:23,105: DEBUG - + ynh_app_setting set searxng checksum__etc_uwsgi_apps-available_searxng.ini 32b872d2b0203a9e102e86bfd5a058e1
2024-05-13 08:34:23,171: DEBUG - + '[' -n '' ']'
2024-05-13 08:34:23,172: DEBUG - + unset backup_file_checksum
2024-05-13 08:34:23,172: DEBUG - + ynh_store_file_checksum --file=/etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:23,172: DEBUG - + update_only=0
2024-05-13 08:34:23,200: DEBUG - + local checksum_setting_name=checksum__etc_uwsgi_apps-available_searxng.ini
2024-05-13 08:34:23,201: DEBUG - ++ md5sum /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:23,202: DEBUG - ++ cut '--delimiter= ' --fields=1
2024-05-13 08:34:23,209: DEBUG - + ynh_app_setting_set --app=searxng --key=checksum__etc_uwsgi_apps-available_searxng.ini --value=32b872d2b0203a9e102e86bfd5a058e1
2024-05-13 08:34:23,210: DEBUG - + local _globalapp=searxng
2024-05-13 08:34:23,333: DEBUG - + app=searxng
2024-05-13 08:34:23,334: DEBUG - + [[ checksum__etc_uwsgi_apps-available_searxng.ini =~ (unprotected|protected|skipped)_ ]]
2024-05-13 08:34:23,335: DEBUG - + ynh_app_setting set searxng checksum__etc_uwsgi_apps-available_searxng.ini 32b872d2b0203a9e102e86bfd5a058e1
2024-05-13 08:34:23,408: DEBUG - + '[' -n '' ']'
2024-05-13 08:34:23,409: DEBUG - + unset backup_file_checksum
2024-05-13 08:34:23,409: DEBUG - + chown searxng:root /etc/uwsgi/apps-available/searxng.ini
2024-05-13 08:34:23,411: DEBUG - + mkdir -p /var/log/uwsgi/searxng
2024-05-13 08:34:23,413: DEBUG - + chown searxng:root /var/log/uwsgi/searxng
2024-05-13 08:34:23,415: DEBUG - + chmod -R u=rwX,g=rX,o= /var/log/uwsgi/searxng
2024-05-13 08:34:23,417: DEBUG - + mkdir -p /etc/systemd/system/uwsgi-app@searxng.service.d
2024-05-13 08:34:23,420: DEBUG - + '[' -e ../conf/uwsgi-app@override.service ']'
2024-05-13 08:34:23,420: DEBUG - + systemctl daemon-reload
2024-05-13 08:34:23,617: DEBUG - + ynh_systemd_action --service_name=uwsgi-app@searxng.service --action=enable
2024-05-13 08:34:23,827: DEBUG - + service_name=uwsgi-app@searxng.service
2024-05-13 08:34:23,827: DEBUG - + action=enable
2024-05-13 08:34:23,827: DEBUG - + line_match=
2024-05-13 08:34:23,827: DEBUG - + length=20
2024-05-13 08:34:23,827: DEBUG - + log_path=/var/log/uwsgi-app@searxng.service/uwsgi-app@searxng.service.log
2024-05-13 08:34:23,827: DEBUG - + timeout=300
2024-05-13 08:34:23,827: DEBUG - + '[' enable == stop ']'
2024-05-13 08:34:23,828: DEBUG - + '[' enable == reload ']'
2024-05-13 08:34:23,828: DEBUG - ++ cut -d+ -f1
2024-05-13 08:34:23,828: DEBUG - ++ date --utc --rfc-3339=seconds
2024-05-13 08:34:23,832: DEBUG - + local 'time_start=2024-05-13 06:34:23 UTC'
2024-05-13 08:34:23,832: DEBUG - + systemctl enable uwsgi-app@searxng.service
2024-05-13 08:34:24,068: DEBUG - + yunohost service add uwsgi-app@searxng '--description=uWSGI service for searxng' --log /var/log/uwsgi/searxng/searxng.log
2024-05-13 08:34:24,489: DEBUG - The service 'uwsgi-app@searxng' was added
2024-05-13 08:34:24,657: INFO - [##############+++...] > Starting a systemd service...
2024-05-13 08:34:24,658: DEBUG - + ynh_systemd_action --service_name=uwsgi-app@searxng.service --action=start '--line_match=spawned uWSGI master process' --log_path=/var/log/uwsgi/searxng/searxng.log
2024-05-13 08:34:24,823: DEBUG - + service_name=uwsgi-app@searxng.service
2024-05-13 08:34:24,824: DEBUG - + action=start
2024-05-13 08:34:24,824: DEBUG - + line_match='spawned uWSGI master process'
2024-05-13 08:34:24,824: DEBUG - + length=20
2024-05-13 08:34:24,824: DEBUG - + log_path=/var/log/uwsgi/searxng/searxng.log
2024-05-13 08:34:24,824: DEBUG - + timeout=300
2024-05-13 08:34:24,824: DEBUG - + '[' start == stop ']'
2024-05-13 08:34:24,824: DEBUG - + [[ -n spawned uWSGI master process ]]
2024-05-13 08:34:24,827: DEBUG - ++ mktemp
2024-05-13 08:34:24,827: DEBUG - + local templog=/tmp/tmp.eKaf1agiht
2024-05-13 08:34:24,827: DEBUG - + '[' /var/log/uwsgi/searxng/searxng.log == systemd ']'
2024-05-13 08:34:24,827: DEBUG - + local pid_tail=1645665
2024-05-13 08:34:24,828: DEBUG - + tail --follow=name --retry --lines=0 /var/log/uwsgi/searxng/searxng.log
2024-05-13 08:34:24,828: DEBUG - + '[' start == reload ']'
2024-05-13 08:34:24,828: DEBUG - ++ date --utc --rfc-3339=seconds
2024-05-13 08:34:24,828: DEBUG - ++ cut -d+ -f1
2024-05-13 08:34:24,829: DEBUG - + local 'time_start=2024-05-13 06:34:24 UTC'
2024-05-13 08:34:24,829: DEBUG - + systemctl start uwsgi-app@searxng.service
2024-05-13 08:34:24,968: DEBUG - + [[ -n spawned uWSGI master process ]]
2024-05-13 08:34:24,988: DEBUG - + break
2024-05-13 08:34:24,988: DEBUG - + '[' 1 -ge 3 ']'
2024-05-13 08:34:24,988: DEBUG - + '[' 1 -eq 300 ']'
2024-05-13 08:34:24,988: DEBUG - + ynh_clean_check_starting
2024-05-13 08:34:24,988: DEBUG - + '[' -n 1645665 ']'
2024-05-13 08:34:24,988: DEBUG - + kill -SIGTERM 1645665
2024-05-13 08:34:24,989: DEBUG - + '[' -n /tmp/tmp.eKaf1agiht ']'
2024-05-13 08:34:24,989: DEBUG - + ynh_secure_remove --file=/tmp/tmp.eKaf1agiht
2024-05-13 08:34:24,989: INFO - The service uwsgi-app@searxng.service has correctly executed the action start.
2024-05-13 08:34:25,096: INFO - [####################] > Upgrade of searxng completed
2024-05-13 08:34:25,097: DEBUG - + ynh_exit_properly
2024-05-13 08:34:25,097: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2024-05-13 08:34:26,099: DEBUG - Checking that required services are up and running...
2024-05-13 08:34:27,287: SUCCESS - searxng mis à jour