ended_at: 2024-11-30 08:15:00.954602
env:
  YNH_APP_ACTION: upgrade
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_n_kaa4u5
  YNH_APP_CURRENT_VERSION: 0.13.0~ynh3
  YNH_APP_ID: isso
  YNH_APP_INSTANCE_NAME: isso
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 0.13.0~ynh5
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_APP_UPGRADE_TYPE: UPGRADE_PACKAGE
  YNH_ARCH: arm64
  YNH_DEBIAN_VERSION: bookworm
  YNH_DEFAULT_PHP_VERSION: '8.2'
  YNH_HELPERS_VERSION: '2.1'
error: An error occurred inside the app upgrade script
interface: cli
operation: app_upgrade
parent: null
related_to:
- - app
  - isso
started_at: 2024-11-30 08:14:55.318469
success: false
yunohost_version: 12.0.7

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

2024-11-30 09:14:55,324: INFO - Updating ports...
2024-11-30 09:14:55,330: INFO - Updating system_user...
2024-11-30 09:14:55,357: INFO - Updating install_dir...
2024-11-30 09:14:55,362: INFO - Updating data_dir...
2024-11-30 09:14:55,365: INFO - Updating permissions...
2024-11-30 09:14:55,396: DEBUG - Nothing to update in LDAP
2024-11-30 09:14:55,397: DEBUG - Permission 'isso.main' updated
2024-11-30 09:14:55,397: DEBUG - To view the log of the operation 'Update accesses for permission 'isso'', use the command 'yunohost log show 20241130-081455-user_permission_update-isso'
2024-11-30 09:14:55,408: DEBUG - Nothing to update in LDAP
2024-11-30 09:14:55,408: DEBUG - Permission 'isso.main' updated
2024-11-30 09:14:55,410: DEBUG - To view the log of the operation 'Update URL related to permission 'isso'', use the command 'yunohost log show 20241130-081455-permission_url-isso'
2024-11-30 09:14:55,419: DEBUG - Nothing to update in LDAP
2024-11-30 09:14:55,420: DEBUG - Permission 'isso.admin' updated
2024-11-30 09:14:55,420: DEBUG - To view the log of the operation 'Update accesses for permission 'isso'', use the command 'yunohost log show 20241130-081455-user_permission_update-isso'
2024-11-30 09:14:55,430: DEBUG - Nothing to update in LDAP
2024-11-30 09:14:55,430: DEBUG - Permission 'isso.admin' updated
2024-11-30 09:14:55,431: DEBUG - To view the log of the operation 'Update URL related to permission 'isso'', use the command 'yunohost log show 20241130-081455-permission_url-isso'
2024-11-30 09:14:55,441: DEBUG - Nothing to update in LDAP
2024-11-30 09:14:55,442: DEBUG - Permission 'isso.api' updated
2024-11-30 09:14:55,442: DEBUG - To view the log of the operation 'Update accesses for permission 'isso'', use the command 'yunohost log show 20241130-081455-user_permission_update-isso'
2024-11-30 09:14:55,452: DEBUG - Nothing to update in LDAP
2024-11-30 09:14:55,452: DEBUG - Permission 'isso.api' updated
2024-11-30 09:14:55,453: DEBUG - To view the log of the operation 'Update URL related to permission 'isso'', use the command 'yunohost log show 20241130-081455-permission_url-isso'
2024-11-30 09:14:55,458: DEBUG - The permission database has been resynchronized
2024-11-30 09:14:55,494: DEBUG - SSO and portal configurations regenerated
2024-11-30 09:14:55,500: INFO - Updating apt...
2024-11-30 09:14:55,503: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt"  7>&1']'
2024-11-30 09:14:55,505: DEBUG - + source /usr/share/yunohost/helpers
2024-11-30 09:14:55,506: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-11-30 09:14:55,506: DEBUG - +++ cd -- /usr/share/yunohost
2024-11-30 09:14:55,506: DEBUG - +++ pwd
2024-11-30 09:14:55,506: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-11-30 09:14:55,506: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2024-11-30 09:14:55,507: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-11-30 09:14:55,508: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-11-30 09:14:55,519: DEBUG - + ynh_abort_if_errors
2024-11-30 09:14:55,519: DEBUG - + trap ynh_exit_properly EXIT
2024-11-30 09:14:55,519: DEBUG - + ynh_apt_install_dependencies git curl python3 python3-pip python3-venv libpq-dev libsasl2-dev python3-dev libssl-dev libffi-dev python3-cffi
2024-11-30 09:14:55,520: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2024-11-30 09:14:55,520: DEBUG - ++ sed 's/|/ | /'
2024-11-30 09:14:55,522: DEBUG - + local 'dependencies=git, curl, python3, python3-pip, python3-venv, libpq-dev, libsasl2-dev, python3-dev, libssl-dev, libffi-dev, python3-cffi'
2024-11-30 09:14:55,522: DEBUG - ++ ynh_read_manifest version
2024-11-30 09:14:55,523: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_n_kaa4u5/manifest.toml
2024-11-30 09:14:55,523: DEBUG - ++ toml_to_json
2024-11-30 09:14:55,524: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-11-30 09:14:55,524: DEBUG - ++ jq .version --raw-output
2024-11-30 09:14:55,565: DEBUG - + local version=0.13.0~ynh5
2024-11-30 09:14:55,566: DEBUG - + local app_ynh_deps=isso-ynh-deps
2024-11-30 09:14:55,566: DEBUG - + grep '[<=>]'
2024-11-30 09:14:55,568: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2024-11-30 09:14:55,568: DEBUG - ++ sort -u
2024-11-30 09:14:55,569: DEBUG - + local specific_php_version=
2024-11-30 09:14:55,569: DEBUG - + grep --quiet php
2024-11-30 09:14:55,570: DEBUG - ++ _ynh_apt_package_is_installed postgresql-13
2024-11-30 09:14:55,571: DEBUG - ++ local package=postgresql-13
2024-11-30 09:14:55,571: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-13
2024-11-30 09:14:55,571: DEBUG - ++ grep --quiet '^installed$'
2024-11-30 09:14:55,593: DEBUG - ++ echo no
2024-11-30 09:14:55,593: DEBUG - + local psql_installed=no
2024-11-30 09:14:55,593: DEBUG - + [[ true == \t\r\u\e ]]
2024-11-30 09:14:55,593: DEBUG - + YNH_APT_INSTALL_DEPENDENCIES_REPLACE=false
2024-11-30 09:14:55,593: DEBUG - ++ mktemp --directory
2024-11-30 09:14:55,594: DEBUG - + local TMPDIR=/tmp/tmp.AugzZ3qJYi
2024-11-30 09:14:55,594: DEBUG - + mkdir -p /tmp/tmp.AugzZ3qJYi/isso-ynh-deps/DEBIAN
2024-11-30 09:14:55,595: DEBUG - + chmod -R 755 /tmp/tmp.AugzZ3qJYi/isso-ynh-deps
2024-11-30 09:14:55,596: DEBUG - + cat
2024-11-30 09:14:55,596: DEBUG - + _ynh_apt update
2024-11-30 09:14:55,596: DEBUG - + _ynh_wait_dpkg_free
2024-11-30 09:14:55,734: DEBUG - + return 0
2024-11-30 09:14:55,734: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2024-11-30 09:14:55,886: DEBUG - Hit:1 http://archive.raspberrypi.com/debian bookworm InRelease
2024-11-30 09:14:55,896: DEBUG - Hit:3 http://deb.debian.org/debian bookworm InRelease
2024-11-30 09:14:55,932: DEBUG - Hit:4 http://deb.debian.org/debian-security bookworm-security InRelease
2024-11-30 09:14:55,940: DEBUG - Get:5 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
2024-11-30 09:14:55,982: DEBUG - Hit:6 https://packages.sury.org/php bookworm InRelease
2024-11-30 09:14:55,987: DEBUG - Hit:7 http://deb.debian.org/debian bookworm-updates InRelease
2024-11-30 09:14:56,056: DEBUG - Hit:2 https://forge.yunohost.org/debian bookworm InRelease
2024-11-30 09:14:56,436: DEBUG - Fetched 17.1 kB in 1s (26.4 kB/s)
2024-11-30 09:14:57,696: DEBUG - Reading package lists...
2024-11-30 09:14:57,716: DEBUG - + _ynh_wait_dpkg_free
2024-11-30 09:14:57,843: DEBUG - + return 0
2024-11-30 09:14:57,843: DEBUG - + dpkg-deb --build /tmp/tmp.AugzZ3qJYi/isso-ynh-deps /tmp/tmp.AugzZ3qJYi/isso-ynh-deps.deb
2024-11-30 09:14:57,864: DEBUG - + dpkg --force-depends --install /tmp/tmp.AugzZ3qJYi/isso-ynh-deps.deb
2024-11-30 09:14:57,864: DEBUG - + tee /tmp/tmp.AugzZ3qJYi/dpkg_log
2024-11-30 09:14:57,985: DEBUG - (Reading database ... 172862 files and directories currently installed.)
2024-11-30 09:14:57,995: DEBUG - Preparing to unpack .../isso-ynh-deps.deb ...
2024-11-30 09:14:58,001: DEBUG - Unpacking isso-ynh-deps (0.13.0~ynh5) over (0.13.0~ynh3) ...
2024-11-30 09:14:58,021: DEBUG - Setting up isso-ynh-deps (0.13.0~ynh5) ...
2024-11-30 09:14:58,046: DEBUG - + _ynh_apt_install --fix-broken
2024-11-30 09:14:58,047: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2024-11-30 09:14:58,047: DEBUG - + _ynh_wait_dpkg_free
2024-11-30 09:14:58,180: DEBUG - + return 0
2024-11-30 09:14:58,181: 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-11-30 09:14:58,379: DEBUG - Reading package lists...
2024-11-30 09:14:58,878: DEBUG - Building dependency tree...
2024-11-30 09:14:58,879: DEBUG - Reading state information...
2024-11-30 09:14:59,554: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2024-11-30 09:14:59,555: DEBUG - + rm --recursive --force /tmp/tmp.AugzZ3qJYi
2024-11-30 09:14:59,556: DEBUG - + _ynh_apt_package_is_installed isso-ynh-deps
2024-11-30 09:14:59,556: DEBUG - + local package=isso-ynh-deps
2024-11-30 09:14:59,556: DEBUG - + dpkg-query --show '--showformat=${db:Status-Status}' isso-ynh-deps
2024-11-30 09:14:59,556: DEBUG - + grep --quiet '^installed$'
2024-11-30 09:14:59,579: DEBUG - ++ _ynh_apt_package_is_installed postgresql-13
2024-11-30 09:14:59,579: DEBUG - ++ local package=postgresql-13
2024-11-30 09:14:59,579: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-13
2024-11-30 09:14:59,579: DEBUG - ++ grep --quiet '^installed$'
2024-11-30 09:14:59,601: DEBUG - ++ echo no
2024-11-30 09:14:59,601: DEBUG - + local psql_installed2=no
2024-11-30 09:14:59,602: DEBUG - + [[ no != \n\o ]]
2024-11-30 09:14:59,602: DEBUG - + ynh_exit_properly
2024-11-30 09:14:59,602: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2024-11-30 09:14:59,704: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade"  7>&1']'
2024-11-30 09:14:59,706: DEBUG - + source _common.sh
2024-11-30 09:14:59,706: DEBUG - + source /usr/share/yunohost/helpers
2024-11-30 09:14:59,707: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-11-30 09:14:59,707: DEBUG - +++ cd -- /usr/share/yunohost
2024-11-30 09:14:59,707: DEBUG - +++ pwd
2024-11-30 09:14:59,707: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-11-30 09:14:59,707: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2024-11-30 09:14:59,709: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-11-30 09:14:59,709: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-11-30 09:14:59,721: DEBUG - ++ ynh_user_get_info --username=arnauld --key=mail
2024-11-30 09:14:59,744: DEBUG - ++ yunohost user info arnauld --output-as json --quiet
2024-11-30 09:15:00,177: DEBUG - + email=arnauld@maindomain.tld
2024-11-30 09:15:00,180: DEBUG - + ynh_systemctl --service=isso --action=stop --log_path=systemd
2024-11-30 09:15:00,180: INFO - [++..................] > Stopping isso's systemd service...
2024-11-30 09:15:00,257: DEBUG - + service=isso
2024-11-30 09:15:00,257: DEBUG - + action=stop
2024-11-30 09:15:00,257: DEBUG - + wait_until=
2024-11-30 09:15:00,257: DEBUG - + length=20
2024-11-30 09:15:00,257: DEBUG - + log_path=systemd
2024-11-30 09:15:00,257: DEBUG - + timeout=60
2024-11-30 09:15:00,257: DEBUG - + ynh_in_ci_tests
2024-11-30 09:15:00,257: DEBUG - + '[' stop == stop ']'
2024-11-30 09:15:00,257: DEBUG - + systemctl is-active --quiet isso
2024-11-30 09:15:00,262: DEBUG - + return 0
2024-11-30 09:15:00,263: INFO - [##+++...............] > Ensuring downward compatibility...
2024-11-30 09:15:00,264: INFO - [#####+++............] > Upgrading source files...
2024-11-30 09:15:00,265: DEBUG - + pushd /var/www/isso
2024-11-30 09:15:00,265: DEBUG - /var/www/isso /var/cache/yunohost/app_tmp_work_dirs/app_n_kaa4u5/scripts
2024-11-30 09:15:00,265: DEBUG - + ynh_exec_as_app /var/www/isso/venv/bin/pip install --upgrade isso gunicorn
2024-11-30 09:15:00,265: DEBUG - + sudo -u isso env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /var/www/isso/venv/bin/pip install --upgrade isso gunicorn
2024-11-30 09:15:00,348: WARNING - Traceback (most recent call last):
2024-11-30 09:15:00,348: WARNING -   File "/var/www/isso/venv/bin/pip", line 5, in <module>
2024-11-30 09:15:00,348: WARNING -     from pip._internal.cli.main import main
2024-11-30 09:15:00,349: WARNING - ModuleNotFoundError: No module named 'pip'
2024-11-30 09:15:00,352: DEBUG - + ynh_exit_properly
2024-11-30 09:15:00,352: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2024-11-30 09:15:00,954: ERROR - Could not upgrade isso: An error occurred inside the app upgrade script