Closed nicofrand closed 12 months ago
There are several things causing the failure:
See https://framagit.org/kresusapp/kresus/-/issues/1214#note_1996350
ended_at: 2023-07-10 17:38:14.272505 env: BASH_XTRACEFD: '7' NO_BACKUP_UPGRADE: '0' YNH_APP_ACTION: upgrade YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt YNH_APP_CURRENT_VERSION: 0.19.2~ynh2 YNH_APP_ID: kresus YNH_APP_INSTANCE_NAME: kresus YNH_APP_INSTANCE_NUMBER: '1' YNH_APP_MANIFEST_VERSION: 0.19.4~ynh2 YNH_APP_PACKAGING_FORMAT: '1.0' YNH_APP_UPGRADE_TYPE: UPGRADE_APP YNH_ARCH: armhf YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/scripts YNH_DEBIAN_VERSION: bullseye YNH_INTERFACE: cli YNH_STDRETURN: /tmp/tmpiyd9v3rp/stdreturn error: An error occurred inside the app upgrade script interface: cli operation: app_upgrade parent: null related_to: - - app - kresus started_at: 2023-07-10 17:26:05.592072 success: false yunohost_version: 11.1.21.4 ============ 2023-07-10 18:26:05,628: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade" 7>&1']' 2023-07-10 18:26:05,644: DEBUG - + source _common.sh 2023-07-10 18:26:05,645: DEBUG - ++ pkg_dependencies='locales git python3 python3-dev python3-pip python3-selenium libffi-dev libxml2-dev libxslt-dev libyaml-dev libtiff-dev libjpeg-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev libwebp-dev build-essential gcc g++ wget unzip mupdf-tools libnss3-tools python3-nss virtualenv postgresql' 2023-07-10 18:26:05,646: DEBUG - ++ nodejs_version=18 2023-07-10 18:26:05,647: DEBUG - + source /usr/share/yunohost/helpers 2023-07-10 18:26:05,649: DEBUG - +++ set +o 2023-07-10 18:26:05,651: DEBUG - +++ grep xtrace 2023-07-10 18:26:05,656: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2023-07-10 18:26:05,656: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2023-07-10 18:26:05,927: INFO - [+...................] > Loading installation settings... 2023-07-10 18:26:05,929: DEBUG - + app=kresus 2023-07-10 18:26:05,931: DEBUG - ++ ynh_app_setting_get --app=kresus --key=domain 2023-07-10 18:26:05,936: DEBUG - ++ local _globalapp=kresus 2023-07-10 18:26:06,066: DEBUG - ++ app=kresus 2023-07-10 18:26:06,067: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:06,068: DEBUG - ++ ynh_app_setting get kresus domain 2023-07-10 18:26:06,234: DEBUG - + domain=maindomain.tld 2023-07-10 18:26:06,236: DEBUG - ++ ynh_app_setting_get --app=kresus --key=path 2023-07-10 18:26:06,236: DEBUG - ++ local _globalapp=kresus 2023-07-10 18:26:06,333: DEBUG - ++ app=kresus 2023-07-10 18:26:06,334: DEBUG - ++ [[ path =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:06,334: DEBUG - ++ ynh_app_setting get kresus path 2023-07-10 18:26:06,498: DEBUG - + path_url=/kresus 2023-07-10 18:26:06,500: DEBUG - ++ ynh_app_setting_get --app=kresus --key=final_path 2023-07-10 18:26:06,501: DEBUG - ++ local _globalapp=kresus 2023-07-10 18:26:06,589: DEBUG - ++ app=kresus 2023-07-10 18:26:06,590: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:06,591: DEBUG - ++ ynh_app_setting get kresus final_path 2023-07-10 18:26:06,760: DEBUG - + final_path=/var/www/kresus 2023-07-10 18:26:06,762: DEBUG - ++ ynh_app_setting_get --app=kresus --key=port 2023-07-10 18:26:06,763: DEBUG - ++ local _globalapp=kresus 2023-07-10 18:26:06,858: DEBUG - ++ app=kresus 2023-07-10 18:26:06,858: DEBUG - ++ [[ port =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:06,859: DEBUG - ++ ynh_app_setting get kresus port 2023-07-10 18:26:07,045: DEBUG - + port=9876 2023-07-10 18:26:07,058: DEBUG - ++ ynh_app_setting_get --app=kresus --key=salt 2023-07-10 18:26:07,059: DEBUG - ++ local _globalapp=kresus 2023-07-10 18:26:07,150: DEBUG - ++ app=kresus 2023-07-10 18:26:07,150: DEBUG - ++ [[ salt =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:07,151: DEBUG - ++ ynh_app_setting get kresus salt 2023-07-10 18:26:07,323: DEBUG - + salt=e8TwUN6iUjLG0DiPPTyU87e4oiHoPdFnCLXbYHqr 2023-07-10 18:26:07,325: DEBUG - ++ ynh_app_setting_get --app=kresus --key=db_name 2023-07-10 18:26:07,326: DEBUG - ++ local _globalapp=kresus 2023-07-10 18:26:07,418: DEBUG - ++ app=kresus 2023-07-10 18:26:07,419: DEBUG - ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:07,420: DEBUG - ++ ynh_app_setting get kresus db_name 2023-07-10 18:26:07,604: DEBUG - + db_name=kresus 2023-07-10 18:26:07,605: DEBUG - + db_user=kresus 2023-07-10 18:26:07,606: DEBUG - ++ ynh_app_setting_get --app=kresus --key=psqlpwd 2023-07-10 18:26:07,606: DEBUG - ++ local _globalapp=kresus 2023-07-10 18:26:07,696: DEBUG - ++ app=kresus 2023-07-10 18:26:07,697: DEBUG - ++ [[ psqlpwd =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:07,697: DEBUG - ++ ynh_app_setting get kresus psqlpwd 2023-07-10 18:26:07,867: DEBUG - + db_pwd=********** 2023-07-10 18:26:08,102: INFO - [#+..................] > Checking version... 2023-07-10 18:26:08,103: DEBUG - ++ ynh_check_app_version_changed 2023-07-10 18:26:08,104: DEBUG - ++ local return_value=UPGRADE_APP 2023-07-10 18:26:08,105: DEBUG - ++ '[' UPGRADE_APP == UPGRADE_FULL ']' 2023-07-10 18:26:08,105: DEBUG - ++ '[' UPGRADE_APP == UPGRADE_FORCED ']' 2023-07-10 18:26:08,106: DEBUG - ++ '[' UPGRADE_APP == DOWNGRADE_FORCED ']' 2023-07-10 18:26:08,107: DEBUG - ++ echo UPGRADE_APP 2023-07-10 18:26:08,107: DEBUG - + upgrade_type=UPGRADE_APP 2023-07-10 18:26:08,314: INFO - [##+.................] > Backing up the app before upgrading (may take a while)... 2023-07-10 18:26:08,316: DEBUG - + ynh_backup_before_upgrade 2023-07-10 18:26:08,317: DEBUG - + '[' '!' -e /etc/yunohost/apps/kresus/scripts/backup ']' 2023-07-10 18:26:08,318: DEBUG - + backup_number=1 2023-07-10 18:26:08,318: DEBUG - + local old_backup_number=2 2023-07-10 18:26:08,319: DEBUG - + local app_bck=kresus 2023-07-10 18:26:08,319: DEBUG - + NO_BACKUP_UPGRADE=0 2023-07-10 18:26:08,320: DEBUG - + ynh_backup_archive_exists kresus-pre-upgrade1 2023-07-10 18:26:08,321: DEBUG - + yunohost backup list --output-as json --quiet 2023-07-10 18:26:08,322: DEBUG - + jq -e --arg archive kresus-pre-upgrade1 '.archives | index($archive)' 2023-07-10 18:26:09,075: DEBUG - + BACKUP_CORE_ONLY=1 2023-07-10 18:26:09,075: DEBUG - + yunohost backup create --apps kresus --name kresus-pre-upgrade1 --debug 2023-07-10 18:26:09,584: DEBUG - 385 initializing base actions map parser for cli 2023-07-10 18:26:09,587: DEBUG - 388 loading actions map 2023-07-10 18:26:09,589: DEBUG - 391 building parser... 2023-07-10 18:26:09,602: DEBUG - 403 building parser took 0.012s 2023-07-10 18:26:09,606: DEBUG - 407 acquiring lock... 2023-07-10 18:26:09,695: DEBUG - 497 loading python module yunohost.backup took 0.056s 2023-07-10 18:26:09,696: DEBUG - 497 processing action [23120.1]: yunohost.backup.create with args={'name': 'kresus-pre-upgrade1', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['kresus'], 'dry_run': False} 2023-07-10 18:26:09,799: DEBUG - 600 Collecting files to be backed up for kresus... 2023-07-10 18:26:09,849: DEBUG - 650 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_fz0jqqif/scripts/backup" 7>&1']' 2023-07-10 18:26:09,864: DEBUG - 664 + source ../settings/scripts/_common.sh 2023-07-10 18:26:09,865: DEBUG - 665 ++ pkg_dependencies='locales git python3 python3-dev python3-pip python3-selenium libffi-dev libxml2-dev libxslt-dev libyaml-dev libtiff-dev libjpeg-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev libwebp-dev build-essential gcc g++ wget unzip mupdf-tools libnss3-tools python3-nss virtualenv postgresql' 2023-07-10 18:26:09,866: DEBUG - 666 ++ nodejs_version=16 2023-07-10 18:26:09,866: DEBUG - 668 + source /usr/share/yunohost/helpers 2023-07-10 18:26:09,869: DEBUG - 670 +++ set +o 2023-07-10 18:26:09,870: DEBUG - 672 +++ grep xtrace 2023-07-10 18:26:09,876: DEBUG - 678 ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2023-07-10 18:26:09,877: DEBUG - 678 ++ XTRACE_ENABLE='set -o xtrace' 2023-07-10 18:26:09,932: DEBUG - 732 + ynh_abort_if_errors 2023-07-10 18:26:09,938: DEBUG - 738 + trap ynh_exit_properly EXIT 2023-07-10 18:26:09,939: DEBUG - 739 + ynh_print_info '--message=Loading installation settings...' 2023-07-10 18:26:09,961: DEBUG - 762 + echo 'Loading installation settings...' 2023-07-10 18:26:09,962: DEBUG - 764 Loading installation settings... 2023-07-10 18:26:09,963: DEBUG - 765 + app=kresus 2023-07-10 18:26:09,964: DEBUG - 765 ++ ynh_app_setting_get --app=kresus --key=final_path 2023-07-10 18:26:09,964: DEBUG - 766 ++ local _globalapp=kresus 2023-07-10 18:26:10,063: DEBUG - 865 ++ app=kresus 2023-07-10 18:26:10,064: DEBUG - 865 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:10,064: DEBUG - 866 ++ ynh_app_setting get kresus final_path 2023-07-10 18:26:10,212: DEBUG - 1013 + final_path=/var/www/kresus 2023-07-10 18:26:10,213: DEBUG - 1014 ++ ynh_app_setting_get --app=kresus --key=domain 2023-07-10 18:26:10,213: DEBUG - 1015 ++ local _globalapp=kresus 2023-07-10 18:26:10,292: DEBUG - 1093 ++ app=kresus 2023-07-10 18:26:10,292: DEBUG - 1094 ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:10,293: DEBUG - 1094 ++ ynh_app_setting get kresus domain 2023-07-10 18:26:10,462: DEBUG - 1263 + domain=maindomain.tld 2023-07-10 18:26:10,470: DEBUG - 1266 ++ ynh_app_setting_get --app=kresus --key=db_name 2023-07-10 18:26:10,471: DEBUG - 1272 ++ local _globalapp=kresus 2023-07-10 18:26:10,560: DEBUG - 1362 ++ app=kresus 2023-07-10 18:26:10,561: DEBUG - 1362 ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:10,561: DEBUG - 1363 ++ ynh_app_setting get kresus db_name 2023-07-10 18:26:10,738: DEBUG - 1539 + db_name=kresus 2023-07-10 18:26:10,738: DEBUG - 1540 + ynh_print_info '--message=Declaring files to be backed up...' 2023-07-10 18:26:10,767: DEBUG - 1568 Declaring files to be backed up... 2023-07-10 18:26:10,767: DEBUG - 1569 + echo 'Declaring files to be backed up...' 2023-07-10 18:26:10,768: DEBUG - 1570 + ynh_backup --src_path=/var/www/kresus 2023-07-10 18:26:10,870: DEBUG - 1671 + dest_path= 2023-07-10 18:26:10,870: DEBUG - 1672 + is_big=0 2023-07-10 18:26:10,871: DEBUG - 1672 + not_mandatory=0 2023-07-10 18:26:10,871: DEBUG - 1673 + BACKUP_CORE_ONLY=1 2023-07-10 18:26:10,871: DEBUG - 1673 + test -n kresus 2023-07-10 18:26:10,873: DEBUG - 1674 ++ ynh_app_setting_get --app=kresus --key=do_not_backup_data 2023-07-10 18:26:10,873: DEBUG - 1675 ++ local _globalapp=kresus 2023-07-10 18:26:10,959: DEBUG - 1760 ++ app=kresus 2023-07-10 18:26:10,959: DEBUG - 1761 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:10,960: DEBUG - 1761 ++ ynh_app_setting get kresus do_not_backup_data 2023-07-10 18:26:11,170: DEBUG - 1971 + do_not_backup_data= 2023-07-10 18:26:11,172: DEBUG - 1973 + '[' '!' -e /var/www/kresus ']' 2023-07-10 18:26:11,172: DEBUG - 1974 ++ realpath /var/www/kresus 2023-07-10 18:26:11,176: DEBUG - 1977 + src_path=/var/www/kresus 2023-07-10 18:26:11,177: DEBUG - 1978 + [[ -z '' ]] 2023-07-10 18:26:11,178: DEBUG - 1979 + dest_path=var/www/kresus 2023-07-10 18:26:11,178: DEBUG - 1980 + [[ -e var/www/kresus ]] 2023-07-10 18:26:11,179: DEBUG - 1980 + local rel_dir=/apps/kresus/backup 2023-07-10 18:26:11,180: DEBUG - 1981 + rel_dir=/apps/kresus/backup/ 2023-07-10 18:26:11,180: DEBUG - 1982 + dest_path=/apps/kresus/backup/var/www/kresus 2023-07-10 18:26:11,182: DEBUG - 1982 + dest_path=apps/kresus/backup/var/www/kresus 2023-07-10 18:26:11,183: DEBUG - 1983 ++ sed --regexp-extended 's/"/\"\"/g' 2023-07-10 18:26:11,184: DEBUG - 1984 ++ echo /var/www/kresus 2023-07-10 18:26:11,188: DEBUG - 1989 + local src=/var/www/kresus 2023-07-10 18:26:11,190: DEBUG - 1991 ++ echo apps/kresus/backup/var/www/kresus 2023-07-10 18:26:11,191: DEBUG - 1992 ++ sed --regexp-extended 's/"/\"\"/g' 2023-07-10 18:26:11,198: DEBUG - 2000 + local dest=apps/kresus/backup/var/www/kresus 2023-07-10 18:26:11,199: DEBUG - 2000 + echo '"/var/www/kresus","apps/kresus/backup/var/www/kresus"' 2023-07-10 18:26:11,201: DEBUG - 2002 ++ dirname /home/yunohost.backup/tmp/kresus-pre-upgrade1/apps/kresus/backup/var/www/kresus 2023-07-10 18:26:11,205: DEBUG - 2007 + mkdir --parents /home/yunohost.backup/tmp/kresus-pre-upgrade1/apps/kresus/backup/var/www 2023-07-10 18:26:11,212: DEBUG - 2013 + ynh_backup --src_path=/etc/nginx/conf.d/maindomain.tld.d/kresus.conf 2023-07-10 18:26:11,304: DEBUG - 2105 + dest_path= 2023-07-10 18:26:11,305: DEBUG - 2106 + is_big=0 2023-07-10 18:26:11,306: DEBUG - 2107 + not_mandatory=0 2023-07-10 18:26:11,306: DEBUG - 2108 + BACKUP_CORE_ONLY=1 2023-07-10 18:26:11,307: DEBUG - 2109 + test -n kresus 2023-07-10 18:26:11,308: DEBUG - 2109 ++ ynh_app_setting_get --app=kresus --key=do_not_backup_data 2023-07-10 18:26:11,308: DEBUG - 2110 ++ local _globalapp=kresus 2023-07-10 18:26:11,411: DEBUG - 2213 ++ app=kresus 2023-07-10 18:26:11,412: DEBUG - 2214 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:11,413: DEBUG - 2214 ++ ynh_app_setting get kresus do_not_backup_data 2023-07-10 18:26:11,602: DEBUG - 2403 + do_not_backup_data= 2023-07-10 18:26:11,603: DEBUG - 2405 + '[' '!' -e /etc/nginx/conf.d/maindomain.tld.d/kresus.conf ']' 2023-07-10 18:26:11,604: DEBUG - 2405 ++ realpath /etc/nginx/conf.d/maindomain.tld.d/kresus.conf 2023-07-10 18:26:11,608: DEBUG - 2409 + src_path=/etc/nginx/conf.d/maindomain.tld.d/kresus.conf 2023-07-10 18:26:11,609: DEBUG - 2410 + [[ -z '' ]] 2023-07-10 18:26:11,609: DEBUG - 2411 + dest_path=etc/nginx/conf.d/maindomain.tld.d/kresus.conf 2023-07-10 18:26:11,610: DEBUG - 2411 + [[ -e etc/nginx/conf.d/maindomain.tld.d/kresus.conf ]] 2023-07-10 18:26:11,610: DEBUG - 2412 + local rel_dir=/apps/kresus/backup 2023-07-10 18:26:11,611: DEBUG - 2412 + rel_dir=/apps/kresus/backup/ 2023-07-10 18:26:11,611: DEBUG - 2413 + dest_path=/apps/kresus/backup/etc/nginx/conf.d/maindomain.tld.d/kresus.conf 2023-07-10 18:26:11,612: DEBUG - 2413 + dest_path=apps/kresus/backup/etc/nginx/conf.d/maindomain.tld.d/kresus.conf 2023-07-10 18:26:11,614: DEBUG - 2416 ++ echo /etc/nginx/conf.d/maindomain.tld.d/kresus.conf 2023-07-10 18:26:11,615: DEBUG - 2417 ++ sed --regexp-extended 's/"/\"\"/g' 2023-07-10 18:26:11,623: DEBUG - 2425 + local src=/etc/nginx/conf.d/maindomain.tld.d/kresus.conf 2023-07-10 18:26:11,626: DEBUG - 2427 ++ echo apps/kresus/backup/etc/nginx/conf.d/maindomain.tld.d/kresus.conf 2023-07-10 18:26:11,626: DEBUG - 2428 ++ sed --regexp-extended 's/"/\"\"/g' 2023-07-10 18:26:11,634: DEBUG - 2435 + local dest=apps/kresus/backup/etc/nginx/conf.d/maindomain.tld.d/kresus.conf 2023-07-10 18:26:11,635: DEBUG - 2436 + echo '"/etc/nginx/conf.d/maindomain.tld.d/kresus.conf","apps/kresus/backup/etc/nginx/conf.d/maindomain.tld.d/kresus.conf"' 2023-07-10 18:26:11,635: DEBUG - 2437 ++ dirname /home/yunohost.backup/tmp/kresus-pre-upgrade1/apps/kresus/backup/etc/nginx/conf.d/maindomain.tld.d/kresus.conf 2023-07-10 18:26:11,639: DEBUG - 2441 + mkdir --parents /home/yunohost.backup/tmp/kresus-pre-upgrade1/apps/kresus/backup/etc/nginx/conf.d/maindomain.tld.d 2023-07-10 18:26:11,646: DEBUG - 2447 + ynh_backup --src_path=/etc/logrotate.d/kresus 2023-07-10 18:26:11,750: DEBUG - 2552 + dest_path= 2023-07-10 18:26:11,751: DEBUG - 2552 + is_big=0 2023-07-10 18:26:11,752: DEBUG - 2553 + not_mandatory=0 2023-07-10 18:26:11,752: DEBUG - 2554 + BACKUP_CORE_ONLY=1 2023-07-10 18:26:11,753: DEBUG - 2555 + test -n kresus 2023-07-10 18:26:11,754: DEBUG - 2555 ++ ynh_app_setting_get --app=kresus --key=do_not_backup_data 2023-07-10 18:26:11,754: DEBUG - 2556 ++ local _globalapp=kresus 2023-07-10 18:26:11,846: DEBUG - 2648 ++ app=kresus 2023-07-10 18:26:11,847: DEBUG - 2648 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:11,848: DEBUG - 2649 ++ ynh_app_setting get kresus do_not_backup_data 2023-07-10 18:26:12,033: DEBUG - 2833 + do_not_backup_data= 2023-07-10 18:26:12,044: DEBUG - 2845 + '[' '!' -e /etc/logrotate.d/kresus ']' 2023-07-10 18:26:12,048: DEBUG - 2846 ++ realpath /etc/logrotate.d/kresus 2023-07-10 18:26:12,052: DEBUG - 2851 + src_path=/etc/logrotate.d/kresus 2023-07-10 18:26:12,053: DEBUG - 2852 + [[ -z '' ]] 2023-07-10 18:26:12,055: DEBUG - 2854 + dest_path=etc/logrotate.d/kresus 2023-07-10 18:26:12,060: DEBUG - 2855 + [[ -e etc/logrotate.d/kresus ]] 2023-07-10 18:26:12,070: DEBUG - 2867 + local rel_dir=/apps/kresus/backup 2023-07-10 18:26:12,071: DEBUG - 2870 + rel_dir=/apps/kresus/backup/ 2023-07-10 18:26:12,072: DEBUG - 2871 + dest_path=/apps/kresus/backup/etc/logrotate.d/kresus 2023-07-10 18:26:12,073: DEBUG - 2872 + dest_path=apps/kresus/backup/etc/logrotate.d/kresus 2023-07-10 18:26:12,078: DEBUG - 2874 ++ echo /etc/logrotate.d/kresus 2023-07-10 18:26:12,078: DEBUG - 2877 ++ sed --regexp-extended 's/"/\"\"/g' 2023-07-10 18:26:12,079: DEBUG - 2877 + local src=/etc/logrotate.d/kresus 2023-07-10 18:26:12,080: DEBUG - 2880 ++ echo apps/kresus/backup/etc/logrotate.d/kresus 2023-07-10 18:26:12,080: DEBUG - 2881 ++ sed --regexp-extended 's/"/\"\"/g' 2023-07-10 18:26:12,091: DEBUG - 2892 + local dest=apps/kresus/backup/etc/logrotate.d/kresus 2023-07-10 18:26:12,092: DEBUG - 2893 + echo '"/etc/logrotate.d/kresus","apps/kresus/backup/etc/logrotate.d/kresus"' 2023-07-10 18:26:12,092: DEBUG - 2894 ++ dirname /home/yunohost.backup/tmp/kresus-pre-upgrade1/apps/kresus/backup/etc/logrotate.d/kresus 2023-07-10 18:26:12,097: DEBUG - 2898 + mkdir --parents /home/yunohost.backup/tmp/kresus-pre-upgrade1/apps/kresus/backup/etc/logrotate.d 2023-07-10 18:26:12,106: DEBUG - 2905 + ynh_backup --src_path=/etc/systemd/system/kresus.service 2023-07-10 18:26:12,200: DEBUG - 3001 + dest_path= 2023-07-10 18:26:12,200: DEBUG - 3002 + is_big=0 2023-07-10 18:26:12,201: DEBUG - 3002 + not_mandatory=0 2023-07-10 18:26:12,201: DEBUG - 3003 + BACKUP_CORE_ONLY=1 2023-07-10 18:26:12,202: DEBUG - 3003 + test -n kresus 2023-07-10 18:26:12,202: DEBUG - 3004 ++ ynh_app_setting_get --app=kresus --key=do_not_backup_data 2023-07-10 18:26:12,204: DEBUG - 3005 ++ local _globalapp=kresus 2023-07-10 18:26:12,298: DEBUG - 3099 ++ app=kresus 2023-07-10 18:26:12,298: DEBUG - 3100 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:26:12,299: DEBUG - 3100 ++ ynh_app_setting get kresus do_not_backup_data 2023-07-10 18:26:12,486: DEBUG - 3283 + do_not_backup_data= 2023-07-10 18:26:12,487: DEBUG - 3285 + '[' '!' -e /etc/systemd/system/kresus.service ']' 2023-07-10 18:26:12,487: DEBUG - 3286 ++ realpath /etc/systemd/system/kresus.service 2023-07-10 18:26:12,490: DEBUG - 3291 + src_path=/etc/systemd/system/kresus.service 2023-07-10 18:26:12,491: DEBUG - 3292 + [[ -z '' ]] 2023-07-10 18:26:12,492: DEBUG - 3293 + dest_path=etc/systemd/system/kresus.service 2023-07-10 18:26:12,492: DEBUG - 3294 + [[ -e etc/systemd/system/kresus.service ]] 2023-07-10 18:26:12,493: DEBUG - 3294 + local rel_dir=/apps/kresus/backup 2023-07-10 18:26:12,494: DEBUG - 3295 + rel_dir=/apps/kresus/backup/ 2023-07-10 18:26:12,494: DEBUG - 3296 + dest_path=/apps/kresus/backup/etc/systemd/system/kresus.service 2023-07-10 18:26:12,495: DEBUG - 3296 + dest_path=apps/kresus/backup/etc/systemd/system/kresus.service 2023-07-10 18:26:12,502: DEBUG - 3297 ++ sed --regexp-extended 's/"/\"\"/g' 2023-07-10 18:26:12,504: DEBUG - 3305 ++ echo /etc/systemd/system/kresus.service 2023-07-10 18:26:12,506: DEBUG - 3308 + local src=/etc/systemd/system/kresus.service 2023-07-10 18:26:12,508: DEBUG - 3310 ++ echo apps/kresus/backup/etc/systemd/system/kresus.service 2023-07-10 18:26:12,509: DEBUG - 3310 ++ sed --regexp-extended 's/"/\"\"/g' 2023-07-10 18:26:12,516: DEBUG - 3317 + local dest=apps/kresus/backup/etc/systemd/system/kresus.service 2023-07-10 18:26:12,517: DEBUG - 3318 + echo '"/etc/systemd/system/kresus.service","apps/kresus/backup/etc/systemd/system/kresus.service"' 2023-07-10 18:26:12,518: DEBUG - 3319 ++ dirname /home/yunohost.backup/tmp/kresus-pre-upgrade1/apps/kresus/backup/etc/systemd/system/kresus.service 2023-07-10 18:26:12,521: DEBUG - 3322 + mkdir --parents /home/yunohost.backup/tmp/kresus-pre-upgrade1/apps/kresus/backup/etc/systemd/system 2023-07-10 18:26:12,528: DEBUG - 3329 + ynh_print_info '--message=Backing up the PostgreSQL database...' 2023-07-10 18:26:12,556: DEBUG - 3357 Backing up the PostgreSQL database... 2023-07-10 18:26:12,557: DEBUG - 3359 + echo 'Backing up the PostgreSQL database...' 2023-07-10 18:26:12,558: DEBUG - 3359 + ynh_psql_dump_db --database=kresus 2023-07-10 18:26:12,595: DEBUG - 3397 + sudo --login --user=postgres pg_dump kresus 2023-07-10 18:26:13,379: DEBUG - 4180 + ynh_print_info '--message=Backup script completed for kresus. (YunoHost will then actually copy those files to the archive).' 2023-07-10 18:26:13,433: DEBUG - 4232 + echo 'Backup script completed for kresus. (YunoHost will then actually copy those files to the archive).' 2023-07-10 18:26:13,434: DEBUG - 4232 + ynh_exit_properly 2023-07-10 18:26:13,435: DEBUG - 4233 + [[ backup =~ ^install$|^upgrade$|^restore$ ]] 2023-07-10 18:26:13,436: DEBUG - 4234 + exit 0 2023-07-10 18:26:13,436: DEBUG - 4234 Backup script completed for kresus. (YunoHost will then actually copy those files to the archive). 2023-07-10 18:26:14,437: DEBUG - 5237 Backup permission for kresus 2023-07-10 18:26:14,573: DEBUG - 5375 initializing ldap interface 2023-07-10 18:26:14,886: DEBUG - 5678 Creating a backup archive from the collected files... 2023-07-10 18:26:14,886: DEBUG - 5679 The archive will contain about 154.7MB of data. 2023-07-10 18:26:14,887: DEBUG - 5680 Creating the backup TAR archive... 2023-07-10 18:26:38,654: DEBUG - 29455 TAR backup archive created 2023-07-10 18:26:38,654: DEBUG - 29456 Backup created: kresus-pre-upgrade1 2023-07-10 18:26:38,661: DEBUG - 29463 To view the log of the operation 'Create a backup archive', use the command 'yunohost log show 20230710-172609-backup_create' 2023-07-10 18:26:38,683: DEBUG - 29484 action [23120.1] executed in 28.986s 2023-07-10 18:26:38,683: DEBUG - name: kresus-pre-upgrade1 2023-07-10 18:26:38,684: DEBUG - results: 2023-07-10 18:26:38,684: DEBUG - apps: 2023-07-10 18:26:38,685: DEBUG - kresus: Success 2023-07-10 18:26:38,686: DEBUG - system: 2023-07-10 18:26:38,686: DEBUG - size: 162258699 2023-07-10 18:26:38,853: DEBUG - + ynh_backup_archive_exists kresus-pre-upgrade2 2023-07-10 18:26:38,854: DEBUG - + yunohost backup list --output-as json --quiet 2023-07-10 18:26:38,855: DEBUG - + jq -e --arg archive kresus-pre-upgrade2 '.archives | index($archive)' 2023-07-10 18:26:39,624: DEBUG - + yunohost backup delete kresus-pre-upgrade2 2023-07-10 18:26:40,386: DEBUG - + ynh_abort_if_errors 2023-07-10 18:26:40,388: DEBUG - + trap ynh_exit_properly EXIT 2023-07-10 18:26:40,619: INFO - [###+................] > Stopping a systemd service... 2023-07-10 18:26:40,622: DEBUG - + ynh_systemd_action --service_name=kresus --action=stop --log_path=systemd --line_match=Stopped 2023-07-10 18:26:41,125: DEBUG - + service_name=kresus 2023-07-10 18:26:41,126: DEBUG - + action=stop 2023-07-10 18:26:41,127: DEBUG - + line_match=Stopped 2023-07-10 18:26:41,128: DEBUG - + length=20 2023-07-10 18:26:41,128: DEBUG - + log_path=systemd 2023-07-10 18:26:41,129: DEBUG - + timeout=300 2023-07-10 18:26:41,130: DEBUG - + '[' stop == stop ']' 2023-07-10 18:26:41,131: DEBUG - + systemctl is-active --quiet kresus 2023-07-10 18:26:41,149: DEBUG - + [[ -n Stopped ]] 2023-07-10 18:26:41,151: DEBUG - ++ mktemp 2023-07-10 18:26:41,155: DEBUG - + local templog=/tmp/tmp.FKS5MTdHQQ 2023-07-10 18:26:41,155: DEBUG - + '[' systemd == systemd ']' 2023-07-10 18:26:41,157: DEBUG - + local pid_tail=23934 2023-07-10 18:26:41,158: DEBUG - + journalctl --unit=kresus --follow --since=-0 --quiet 2023-07-10 18:26:41,159: DEBUG - + '[' stop == reload ']' 2023-07-10 18:26:41,162: DEBUG - ++ date --utc --rfc-3339=seconds 2023-07-10 18:26:41,163: DEBUG - ++ cut -d+ -f1 2023-07-10 18:26:41,170: DEBUG - + local 'time_start=2023-07-10 17:26:41 UTC' 2023-07-10 18:26:41,171: DEBUG - + systemctl stop kresus 2023-07-10 18:26:41,213: DEBUG - + [[ -n Stopped ]] 2023-07-10 18:26:41,292: INFO - The service kresus has correctly executed the action stop. 2023-07-10 18:26:41,295: DEBUG - + break 2023-07-10 18:26:41,296: DEBUG - + '[' 1 -ge 3 ']' 2023-07-10 18:26:41,296: DEBUG - + '[' 1 -eq 300 ']' 2023-07-10 18:26:41,296: DEBUG - + ynh_clean_check_starting 2023-07-10 18:26:41,297: DEBUG - + '[' -n 23934 ']' 2023-07-10 18:26:41,298: DEBUG - + kill -SIGTERM 23934 2023-07-10 18:26:41,299: DEBUG - + '[' -n /tmp/tmp.FKS5MTdHQQ ']' 2023-07-10 18:26:41,300: DEBUG - + ynh_secure_remove --file=/tmp/tmp.FKS5MTdHQQ 2023-07-10 18:26:41,544: INFO - [####+...............] > Ensuring downward compatibility... 2023-07-10 18:26:41,546: DEBUG - + '[' -z kresus ']' 2023-07-10 18:26:41,547: DEBUG - + '[' -z /var/www/kresus ']' 2023-07-10 18:26:41,547: DEBUG - + '[' -d /home/ynhkresus ']' 2023-07-10 18:26:41,547: DEBUG - + '[' -z e8TwUN6iUjLG0DiPPTyU87e4oiHoPdFnCLXbYHqr ']' 2023-07-10 18:26:41,548: DEBUG - + usermod -d /var/www/kresus kresus 2023-07-10 18:26:41,552: DEBUG - usermod: no changes 2023-07-10 18:26:41,743: DEBUG - + ynh_system_user_create --username=kresus --home_dir=/var/www/kresus 2023-07-10 18:26:41,746: INFO - [#####+..............] > Making sure dedicated system user exists... 2023-07-10 18:26:41,894: DEBUG - + use_shell=0 2023-07-10 18:26:41,894: DEBUG - + home_dir=/var/www/kresus 2023-07-10 18:26:41,895: DEBUG - + groups= 2023-07-10 18:26:41,895: DEBUG - + ynh_system_user_exists kresus 2023-07-10 18:26:41,921: DEBUG - + getent passwd kresus 2023-07-10 18:26:41,925: DEBUG - + '[' UPGRADE_APP == UPGRADE_APP ']' 2023-07-10 18:26:42,128: INFO - [######+.............] > Upgrading source files... 2023-07-10 18:26:42,130: DEBUG - ++ mktemp -d 2023-07-10 18:26:42,134: DEBUG - + tmpdir=/tmp/tmp.h3XmtnYAj3 2023-07-10 18:26:42,134: DEBUG - + cp /var/www/kresus/config.ini /tmp/tmp.h3XmtnYAj3/config.ini 2023-07-10 18:26:42,139: DEBUG - + ynh_secure_remove --file=/var/www/kresus 2023-07-10 18:26:43,496: DEBUG - + ynh_setup_source --dest_dir=/var/www/kresus 2023-07-10 18:26:43,580: DEBUG - + keep= 2023-07-10 18:26:43,580: DEBUG - + full_replace=0 2023-07-10 18:26:43,581: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/manifest.toml 2023-07-10 18:26:43,581: DEBUG - + source_id=app 2023-07-10 18:26:43,582: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/conf/app.src 2023-07-10 18:26:43,582: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/conf/app.src 2023-07-10 18:26:43,583: DEBUG - ++ cut --delimiter== --fields=2- 2023-07-10 18:26:43,587: DEBUG - + local src_url=https://framagit.org/kresusapp/kresus/-/archive/0.19.4/kresus-0.19.4.tar.bz2 2023-07-10 18:26:43,588: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/conf/app.src 2023-07-10 18:26:43,589: DEBUG - ++ cut --delimiter== --fields=2- 2023-07-10 18:26:43,595: DEBUG - + local src_sum=c168beaa37194f9e89c5f89bb163ea77dec8d7ce13fd1517e5c8d2b00a6234a9 2023-07-10 18:26:43,596: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/conf/app.src 2023-07-10 18:26:43,597: DEBUG - ++ cut --delimiter== --fields=2- 2023-07-10 18:26:43,603: DEBUG - + local src_sumprg=sha256sum 2023-07-10 18:26:43,605: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/conf/app.src 2023-07-10 18:26:43,605: DEBUG - ++ cut --delimiter== --fields=2- 2023-07-10 18:26:43,611: DEBUG - + local src_format=tar.bz2 2023-07-10 18:26:43,612: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/conf/app.src 2023-07-10 18:26:43,613: DEBUG - ++ cut --delimiter== --fields=2- 2023-07-10 18:26:43,619: DEBUG - + local src_in_subdir=true 2023-07-10 18:26:43,621: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/conf/app.src 2023-07-10 18:26:43,621: DEBUG - ++ cut --delimiter== --fields=2- 2023-07-10 18:26:43,627: DEBUG - + local src_rename= 2023-07-10 18:26:43,628: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/conf/app.src 2023-07-10 18:26:43,629: DEBUG - ++ cut --delimiter== --fields=2- 2023-07-10 18:26:43,634: DEBUG - + local src_extract=true 2023-07-10 18:26:43,636: DEBUG - ++ grep SOURCE_PLATFORM= /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/conf/app.src 2023-07-10 18:26:43,637: DEBUG - ++ cut --delimiter== --fields=2- 2023-07-10 18:26:43,642: DEBUG - + local src_platform= 2023-07-10 18:26:43,642: DEBUG - + src_sumprg=sha256sum 2023-07-10 18:26:43,642: DEBUG - + src_in_subdir=true 2023-07-10 18:26:43,643: DEBUG - + src_format=tar.bz2 2023-07-10 18:26:43,644: DEBUG - ++ echo tar.bz2 2023-07-10 18:26:43,645: DEBUG - ++ tr '[:upper:]' '[:lower:]' 2023-07-10 18:26:43,650: DEBUG - + src_format=tar.bz2 2023-07-10 18:26:43,650: DEBUG - + src_extract=true 2023-07-10 18:26:43,651: DEBUG - + [[ true != \t\r\u\e ]] 2023-07-10 18:26:43,651: DEBUG - + local local_src=/opt/yunohost-apps-src/kresus/app 2023-07-10 18:26:43,651: DEBUG - ++ dirname /var/cache/yunohost/download/kresus/app 2023-07-10 18:26:43,654: DEBUG - + mkdir -p /var/cache/yunohost/download/kresus 2023-07-10 18:26:43,658: DEBUG - + src_filename=/var/cache/yunohost/download/kresus/app 2023-07-10 18:26:43,659: DEBUG - + '[' tar.bz2 = docker ']' 2023-07-10 18:26:43,659: DEBUG - + test -e /opt/yunohost-apps-src/kresus/app 2023-07-10 18:26:43,659: DEBUG - + '[' -n https://framagit.org/kresusapp/kresus/-/archive/0.19.4/kresus-0.19.4.tar.bz2 ']' 2023-07-10 18:26:43,660: DEBUG - + '[' -e /var/cache/yunohost/download/kresus/app ']' 2023-07-10 18:26:43,660: DEBUG - + '[' '!' -e /var/cache/yunohost/download/kresus/app ']' 2023-07-10 18:26:43,661: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/kresus/app https://framagit.org/kresusapp/kresus/-/archive/0.19.4/kresus-0.19.4.tar.bz2 2023-07-10 18:26:44,442: DEBUG - + out='2023-07-10 18:26:44 URL:https://framagit.org/kresusapp/kresus/-/archive/0.19.4/kresus-0.19.4.tar.bz2 [2626191/2626191] -> "/var/cache/yunohost/download/kresus/app" [1]' 2023-07-10 18:26:44,445: DEBUG - + sha256sum --check --status 2023-07-10 18:26:44,473: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 2023-07-10 18:26:44,476: DEBUG - + '[' -n '' ']' 2023-07-10 18:26:44,477: DEBUG - + mkdir --parents /var/www/kresus 2023-07-10 18:26:44,481: DEBUG - + '[' -n '' ']' 2023-07-10 18:26:44,481: DEBUG - + '[' -n /var/www/kresus ']' 2023-07-10 18:26:44,482: DEBUG - + '[' /var/www/kresus == /var/www/kresus ']' 2023-07-10 18:26:44,482: DEBUG - + _ynh_apply_default_permissions /var/www/kresus 2023-07-10 18:26:44,482: DEBUG - + local target=/var/www/kresus 2023-07-10 18:26:44,483: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2023-07-10 18:26:44,484: DEBUG - ++ tr -d '<>= ' 2023-07-10 18:26:44,528: DEBUG - ++ '[' '!' -e '' ']' 2023-07-10 18:26:44,529: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/manifest.json ']' 2023-07-10 18:26:44,530: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/manifest.json 2023-07-10 18:26:44,530: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/manifest.json 2023-07-10 18:26:44,531: DEBUG - ++ grep -q '\.json$' 2023-07-10 18:26:44,534: DEBUG - ++ jq .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/manifest.json --raw-output 2023-07-10 18:26:44,630: DEBUG - + local ynh_requirement=4.3.0 2023-07-10 18:26:44,631: DEBUG - + dpkg --compare-versions 1.0 ge 2 2023-07-10 18:26:44,635: DEBUG - + '[' -z 4.3.0 ']' 2023-07-10 18:26:44,635: DEBUG - + '[' 4.3.0 == null ']' 2023-07-10 18:26:44,636: DEBUG - + dpkg --compare-versions 4.3.0 ge 4.2 2023-07-10 18:26:44,639: DEBUG - + chmod o-rwx /var/www/kresus 2023-07-10 18:26:44,642: DEBUG - + chmod g-w /var/www/kresus 2023-07-10 18:26:44,645: DEBUG - + chown -R root:root /var/www/kresus 2023-07-10 18:26:44,655: DEBUG - + ynh_system_user_exists kresus 2023-07-10 18:26:44,679: DEBUG - + getent passwd kresus 2023-07-10 18:26:44,683: DEBUG - + chown kresus:kresus /var/www/kresus 2023-07-10 18:26:44,688: DEBUG - + echo /var/www/kresus 2023-07-10 18:26:44,689: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2023-07-10 18:26:44,694: DEBUG - + [[ true == \f\a\l\s\e ]] 2023-07-10 18:26:44,695: DEBUG - + [[ tar.bz2 == \d\o\c\k\e\r ]] 2023-07-10 18:26:44,695: DEBUG - + [[ tar.bz2 == \z\i\p ]] 2023-07-10 18:26:44,695: DEBUG - + local strip= 2023-07-10 18:26:44,695: DEBUG - + '[' true '!=' false ']' 2023-07-10 18:26:44,696: DEBUG - + '[' true == true ']' 2023-07-10 18:26:44,696: DEBUG - + local sub_dirs=1 2023-07-10 18:26:44,697: DEBUG - + strip='--strip-components 1' 2023-07-10 18:26:44,697: DEBUG - + [[ tar.bz2 =~ ^tar.gz|tar.bz2|tar.xz$ ]] 2023-07-10 18:26:44,698: DEBUG - + tar --extract --file=/var/cache/yunohost/download/kresus/app --directory=/var/www/kresus --strip-components 1 2023-07-10 18:26:45,660: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/kresus/app 2023-07-10 18:26:45,713: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/sources/patches/ ']' 2023-07-10 18:26:45,714: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/sources/extra_files/app 2023-07-10 18:26:45,714: DEBUG - + '[' -n '' ']' 2023-07-10 18:26:45,715: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/ 2023-07-10 18:26:45,717: DEBUG - + cp /tmp/tmp.h3XmtnYAj3/config.ini /var/www/kresus/config.ini 2023-07-10 18:26:45,722: DEBUG - + ynh_secure_remove --file=/tmp/tmp.h3XmtnYAj3 2023-07-10 18:26:45,776: DEBUG - + mkdir -p /var/www/kresus/data 2023-07-10 18:26:45,780: DEBUG - + chmod 750 /var/www/kresus 2023-07-10 18:26:45,783: DEBUG - + chmod -R o-rwx /var/www/kresus 2023-07-10 18:26:45,801: DEBUG - + chown -R kresus:www-data /var/www/kresus 2023-07-10 18:26:46,035: INFO - [#######+............] > Upgrading dependencies... 2023-07-10 18:26:46,036: DEBUG - + ynh_exec_warn_less ynh_install_app_dependencies locales git python3 python3-dev python3-pip python3-selenium libffi-dev libxml2-dev libxslt-dev libyaml-dev libtiff-dev libjpeg-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev libwebp-dev build-essential gcc g++ wget unzip mupdf-tools libnss3-tools python3-nss virtualenv postgresql 2023-07-10 18:26:46,037: DEBUG - + [[ 27 -eq 1 ]] 2023-07-10 18:26:46,038: DEBUG - + ynh_install_app_dependencies locales git python3 python3-dev python3-pip python3-selenium libffi-dev libxml2-dev libxslt-dev libyaml-dev libtiff-dev libjpeg-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev libwebp-dev build-essential gcc g++ wget unzip mupdf-tools libnss3-tools python3-nss virtualenv postgresql 2023-07-10 18:26:46,039: DEBUG - + local 'dependencies=locales git python3 python3-dev python3-pip python3-selenium libffi-dev libxml2-dev libxslt-dev libyaml-dev libtiff-dev libjpeg-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev libwebp-dev build-essential gcc g++ wget unzip mupdf-tools libnss3-tools python3-nss virtualenv postgresql' 2023-07-10 18:26:46,040: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2023-07-10 18:26:46,041: DEBUG - ++ echo 'locales git python3 python3-dev python3-pip python3-selenium libffi-dev libxml2-dev libxslt-dev libyaml-dev libtiff-dev libjpeg-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev libwebp-dev build-essential gcc g++ wget unzip mupdf-tools libnss3-tools python3-nss virtualenv postgresql' 2023-07-10 18:26:46,045: DEBUG - + dependencies='locales, git, python3, python3-dev, python3-pip, python3-selenium, libffi-dev, libxml2-dev, libxslt-dev, libyaml-dev, libtiff-dev, libjpeg-dev, libopenjp2-7-dev, zlib1g-dev, libfreetype6-dev, libwebp-dev, build-essential, gcc, g++, wget, unzip, mupdf-tools, libnss3-tools, python3-nss, virtualenv, postgresql' 2023-07-10 18:26:46,046: DEBUG - + local 'dependencies=locales, git, python3, python3-dev, python3-pip, python3-selenium, libffi-dev, libxml2-dev, libxslt-dev, libyaml-dev, libtiff-dev, libjpeg-dev, libopenjp2-7-dev, zlib1g-dev, libfreetype6-dev, libwebp-dev, build-essential, gcc, g++, wget, unzip, mupdf-tools, libnss3-tools, python3-nss, virtualenv, postgresql' 2023-07-10 18:26:46,047: DEBUG - ++ ynh_read_manifest --manifest_key=version 2023-07-10 18:26:46,098: DEBUG - ++ '[' '!' -e '' ']' 2023-07-10 18:26:46,099: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/manifest.json ']' 2023-07-10 18:26:46,099: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/manifest.json 2023-07-10 18:26:46,100: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/manifest.json 2023-07-10 18:26:46,100: DEBUG - ++ grep -q '\.json$' 2023-07-10 18:26:46,104: DEBUG - ++ jq .version /var/cache/yunohost/app_tmp_work_dirs/app_0venqrdt/manifest.json --raw-output 2023-07-10 18:26:46,200: DEBUG - + local version=0.19.4~ynh2 2023-07-10 18:26:46,200: DEBUG - + '[' -z 0.19.4~ynh2 ']' 2023-07-10 18:26:46,201: DEBUG - + '[' 0.19.4~ynh2 == null ']' 2023-07-10 18:26:46,201: DEBUG - + local dep_app=kresus 2023-07-10 18:26:46,202: DEBUG - + [[ locales, git, python3, python3-dev, python3-pip, python3-selenium, libffi-dev, libxml2-dev, libxslt-dev, libyaml-dev, libtiff-dev, libjpeg-dev, libopenjp2-7-dev, zlib1g-dev, libfreetype6-dev, libwebp-dev, build-essential, gcc, g++, wget, unzip, mupdf-tools, libnss3-tools, python3-nss, virtualenv, postgresql =~ [<=>] ]] 2023-07-10 18:26:46,203: DEBUG - ++ echo locales, git, python3, python3-dev, python3-pip, python3-selenium, libffi-dev, libxml2-dev, libxslt-dev, libyaml-dev, libtiff-dev, libjpeg-dev, libopenjp2-7-dev, zlib1g-dev, libfreetype6-dev, libwebp-dev, build-essential, gcc, g++, wget, unzip, mupdf-tools, libnss3-tools, python3-nss, virtualenv, postgresql 2023-07-10 18:26:46,204: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 2023-07-10 18:26:46,204: DEBUG - ++ sort -u 2023-07-10 18:26:46,209: DEBUG - + local specific_php_version= 2023-07-10 18:26:46,210: DEBUG - + grep --quiet php 2023-07-10 18:26:46,215: DEBUG - ++ ynh_package_is_installed postgresql-13 2023-07-10 18:26:46,240: DEBUG - ++ ynh_wait_dpkg_free 2023-07-10 18:26:46,648: DEBUG - ++ return 0 2023-07-10 18:26:46,650: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2023-07-10 18:26:46,651: DEBUG - ++ grep --count 'ok installed' 2023-07-10 18:26:46,712: DEBUG - ++ echo yes 2023-07-10 18:26:46,713: DEBUG - + local psql_installed=yes 2023-07-10 18:26:46,714: DEBUG - + [[ true == \t\r\u\e ]] 2023-07-10 18:26:46,714: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 2023-07-10 18:26:46,715: DEBUG - + cat 2023-07-10 18:26:46,718: DEBUG - + ynh_package_install_from_equivs /tmp/kresus-ynh-deps.control 2023-07-10 18:26:46,721: DEBUG - + local controlfile=/tmp/kresus-ynh-deps.control 2023-07-10 18:26:46,723: DEBUG - ++ grep '^Package: ' /tmp/kresus-ynh-deps.control 2023-07-10 18:26:46,724: DEBUG - ++ cut '--delimiter= ' --fields=2 2023-07-10 18:26:46,728: DEBUG - + local pkgname=kresus-ynh-deps 2023-07-10 18:26:46,730: DEBUG - ++ grep '^Version: ' /tmp/kresus-ynh-deps.control 2023-07-10 18:26:46,732: DEBUG - ++ cut '--delimiter= ' --fields=2 2023-07-10 18:26:46,742: DEBUG - + local pkgversion=0.19.4~ynh2 2023-07-10 18:26:46,744: DEBUG - + [[ -z kresus-ynh-deps ]] 2023-07-10 18:26:46,744: DEBUG - + [[ -z 0.19.4~ynh2 ]] 2023-07-10 18:26:46,745: DEBUG - + ynh_package_update 2023-07-10 18:26:46,746: DEBUG - + ynh_apt update 2023-07-10 18:26:46,747: DEBUG - + ynh_wait_dpkg_free 2023-07-10 18:26:47,138: DEBUG - + return 0 2023-07-10 18:26:47,138: DEBUG - + LC_ALL=C 2023-07-10 18:26:47,139: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-07-10 18:26:47,139: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2023-07-10 18:26:47,408: DEBUG - Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease 2023-07-10 18:26:47,409: DEBUG - Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB] 2023-07-10 18:26:47,410: DEBUG - Get:3 http://forge.yunohost.org/debian bullseye InRelease [18.4 kB] 2023-07-10 18:26:47,477: DEBUG - Hit:4 https://packages.sury.org/php bullseye InRelease 2023-07-10 18:26:48,186: DEBUG - Get:5 http://forge.yunohost.org/debian bullseye/stable armhf Packages [4157 B] 2023-07-10 18:26:48,487: DEBUG - Fetched 37.5 kB in 1s (31.1 kB/s) 2023-07-10 18:26:51,759: DEBUG - Reading package lists... 2023-07-10 18:26:51,853: DEBUG - ++ mktemp --directory 2023-07-10 18:26:51,857: DEBUG - + local TMPDIR=/tmp/tmp.6wSrZck0Ry 2023-07-10 18:26:51,857: DEBUG - + rm -f /usr/share/equivs/template/debian/compat 2023-07-10 18:26:51,860: DEBUG - + ynh_wait_dpkg_free 2023-07-10 18:26:52,226: DEBUG - + return 0 2023-07-10 18:26:52,226: DEBUG - + cp /tmp/kresus-ynh-deps.control /tmp/tmp.6wSrZck0Ry/control 2023-07-10 18:26:52,231: DEBUG - + cd /tmp/tmp.6wSrZck0Ry 2023-07-10 18:26:52,232: DEBUG - + LC_ALL=C 2023-07-10 18:26:52,232: DEBUG - + equivs-build ./control 2023-07-10 18:26:52,717: DEBUG - dpkg-buildpackage: info: source package kresus-ynh-deps 2023-07-10 18:26:52,717: DEBUG - dpkg-buildpackage: info: source version 0.19.4~ynh2 2023-07-10 18:26:52,718: DEBUG - dpkg-buildpackage: info: source distribution unstable 2023-07-10 18:26:52,718: DEBUG - dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@maindomain.tld> 2023-07-10 18:26:52,837: DEBUG - dpkg-source --before-build . 2023-07-10 18:26:52,837: DEBUG - dpkg-buildpackage: info: host architecture armhf 2023-07-10 18:26:53,210: DEBUG - debian/rules clean 2023-07-10 18:26:53,214: DEBUG - dh clean 2023-07-10 18:26:53,504: DEBUG - dh_clean 2023-07-10 18:26:53,615: DEBUG - debian/rules binary 2023-07-10 18:26:53,619: DEBUG - dh binary 2023-07-10 18:26:53,857: DEBUG - dh_update_autotools_config 2023-07-10 18:26:53,954: DEBUG - dh_autoreconf 2023-07-10 18:26:54,111: DEBUG - create-stamp debian/debhelper-build-stamp 2023-07-10 18:26:54,112: DEBUG - dh_prep 2023-07-10 18:26:54,209: DEBUG - dh_install 2023-07-10 18:26:54,324: DEBUG - dh_installdocs 2023-07-10 18:26:54,465: DEBUG - dh_installchangelogs 2023-07-10 18:26:54,760: DEBUG - dh_perl 2023-07-10 18:26:54,886: DEBUG - dh_link 2023-07-10 18:26:55,009: DEBUG - dh_strip_nondeterminism 2023-07-10 18:26:55,230: DEBUG - dh_compress 2023-07-10 18:26:55,365: DEBUG - dh_fixperms 2023-07-10 18:26:55,504: DEBUG - dh_missing 2023-07-10 18:26:55,594: DEBUG - dh_installdeb 2023-07-10 18:26:55,711: DEBUG - dh_gencontrol 2023-07-10 18:26:56,151: DEBUG - dh_md5sums 2023-07-10 18:26:56,266: DEBUG - dh_builddeb 2023-07-10 18:26:56,357: DEBUG - dpkg-deb: building package 'kresus-ynh-deps' in '../kresus-ynh-deps_0.19.4~ynh2_all.deb'. 2023-07-10 18:26:56,420: DEBUG - dpkg-genbuildinfo --build=binary 2023-07-10 18:26:57,878: DEBUG - dpkg-genchanges --build=binary >../kresus-ynh-deps_0.19.4~ynh2_armhf.changes 2023-07-10 18:26:58,178: DEBUG - dpkg-genchanges: info: binary-only upload (no source code included) 2023-07-10 18:26:58,187: DEBUG - dpkg-source --after-build . 2023-07-10 18:26:58,558: DEBUG - dpkg-buildpackage: info: binary-only upload (no source included) 2023-07-10 18:26:58,571: DEBUG - 2023-07-10 18:26:58,572: DEBUG - The package has been created. 2023-07-10 18:26:58,572: DEBUG - Attention, the package has been created in the current directory, 2023-07-10 18:26:58,573: DEBUG - not in ".." as indicated by the message above! 2023-07-10 18:26:58,576: DEBUG - + LC_ALL=C 2023-07-10 18:26:58,576: DEBUG - + tee ./dpkg_log 2023-07-10 18:26:58,577: DEBUG - + dpkg --force-depends --install ./kresus-ynh-deps_0.19.4~ynh2_all.deb 2023-07-10 18:26:58,862: DEBUG - (Reading database ... 90461 files and directories currently installed.) 2023-07-10 18:26:58,871: DEBUG - Preparing to unpack .../kresus-ynh-deps_0.19.4~ynh2_all.deb ... 2023-07-10 18:26:58,899: DEBUG - Unpacking kresus-ynh-deps (0.19.4~ynh2) over (0.19.2~ynh2) ... 2023-07-10 18:26:58,979: DEBUG - Setting up kresus-ynh-deps (0.19.4~ynh2) ... 2023-07-10 18:26:59,054: DEBUG - + ynh_package_install --fix-broken 2023-07-10 18:26:59,054: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2023-07-10 18:26:59,055: DEBUG - + ynh_wait_dpkg_free 2023-07-10 18:26:59,428: DEBUG - + return 0 2023-07-10 18:26:59,429: DEBUG - + LC_ALL=C 2023-07-10 18:26:59,429: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-07-10 18:26:59,429: 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 2023-07-10 18:27:00,167: DEBUG - Reading package lists... 2023-07-10 18:27:00,771: DEBUG - Building dependency tree... 2023-07-10 18:27:00,776: DEBUG - Reading state information... 2023-07-10 18:27:01,741: DEBUG - The following package was automatically installed and is no longer required: 2023-07-10 18:27:01,743: DEBUG - yarn 2023-07-10 18:27:01,744: DEBUG - Use 'sudo apt autoremove' to remove it. 2023-07-10 18:27:01,845: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded. 2023-07-10 18:27:01,848: DEBUG - + [[ -n /tmp/tmp.6wSrZck0Ry ]] 2023-07-10 18:27:01,848: DEBUG - + rm --recursive --force /tmp/tmp.6wSrZck0Ry 2023-07-10 18:27:01,852: DEBUG - + ynh_package_is_installed kresus-ynh-deps 2023-07-10 18:27:01,877: DEBUG - + ynh_wait_dpkg_free 2023-07-10 18:27:02,253: DEBUG - + return 0 2023-07-10 18:27:02,254: DEBUG - + dpkg-query --show '--showformat=${Status}' kresus-ynh-deps 2023-07-10 18:27:02,255: DEBUG - + grep --count 'ok installed' 2023-07-10 18:27:02,311: DEBUG - + rm /tmp/kresus-ynh-deps.control 2023-07-10 18:27:02,315: DEBUG - ++ ynh_package_is_installed postgresql-13 2023-07-10 18:27:02,342: DEBUG - ++ ynh_wait_dpkg_free 2023-07-10 18:27:02,700: DEBUG - ++ return 0 2023-07-10 18:27:02,702: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2023-07-10 18:27:02,703: DEBUG - ++ grep --count 'ok installed' 2023-07-10 18:27:02,760: DEBUG - ++ echo yes 2023-07-10 18:27:02,762: DEBUG - + local psql_installed2=yes 2023-07-10 18:27:02,762: DEBUG - + [[ yes != \y\e\s ]] 2023-07-10 18:27:02,763: DEBUG - + ynh_exec_warn_less ynh_install_nodejs --nodejs_version=18 2023-07-10 18:27:02,763: DEBUG - + [[ 2 -eq 1 ]] 2023-07-10 18:27:02,763: DEBUG - + ynh_install_nodejs --nodejs_version=18 2023-07-10 18:27:02,788: DEBUG - + mkdir --parents /opt/node_n 2023-07-10 18:27:02,791: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-07-10 18:27:02,794: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-07-10 18:27:02,795: DEBUG - ++ sed s@/usr/local/bin:@@ 2023-07-10 18:27:02,800: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin 2023-07-10 18:27:02,801: DEBUG - + test -x /usr/bin/node 2023-07-10 18:27:02,801: DEBUG - + mv /usr/bin/node /usr/bin/node_n 2023-07-10 18:27:02,806: DEBUG - + test -x /usr/bin/npm 2023-07-10 18:27:02,807: DEBUG - + mv /usr/bin/npm /usr/bin/npm_n 2023-07-10 18:27:02,816: DEBUG - + mkdir -p /opt/node_n/bin/ 2023-07-10 18:27:02,820: DEBUG - + cp /usr/share/yunohost/helpers.d/vendor/n/n /opt/node_n/bin/n 2023-07-10 18:27:02,826: DEBUG - + ynh_replace_string '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n 2023-07-10 18:27:03,000: DEBUG - + sed --in-place 's^N_PREFIX=${N_PREFIX-.*}$N_PREFIX=${N_PREFIX-/opt/node_n}g' /opt/node_n/bin/n 2023-07-10 18:27:03,011: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2023-07-10 18:27:03,012: DEBUG - + test -x /usr/bin/node_n 2023-07-10 18:27:03,012: DEBUG - + mv /usr/bin/node_n /usr/bin/node 2023-07-10 18:27:03,018: DEBUG - + test -x /usr/bin/npm_n 2023-07-10 18:27:03,018: DEBUG - + mv /usr/bin/npm_n /usr/bin/npm 2023-07-10 18:27:03,024: DEBUG - ++ uname --machine 2023-07-10 18:27:03,027: DEBUG - + uname=aarch64 2023-07-10 18:27:03,028: DEBUG - + [[ aarch64 =~ aarch64 ]] 2023-07-10 18:27:03,029: DEBUG - + n 18 --arch=arm64 2023-07-10 18:27:03,237: DEBUG - installing : node-v18.16.1 2023-07-10 18:27:03,502: DEBUG - mkdir : /opt/node_n/n/versions/node/18.16.1 2023-07-10 18:27:03,509: DEBUG - fetch : https://nodejs.org/dist/v18.16.1/node-v18.16.1-linux-arm64.tar.xz 2023-07-10 18:27:09,205: DEBUG - copying : node/18.16.1 2023-07-10 18:27:11,643: DEBUG - ERROR: npm v9.5.1 is known not to run on Node.js v12.22.12. You'll need to 2023-07-10 18:27:11,644: DEBUG - upgrade to a newer Node.js version in order to use this version of npm. This 2023-07-10 18:27:11,644: DEBUG - version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || 2023-07-10 18:27:11,645: DEBUG - >=18.0.0`. You can find the latest version at https://nodejs.org/. 2023-07-10 18:27:11,646: DEBUG - 2023-07-10 18:27:11,646: DEBUG - ERROR: 2023-07-10 18:27:11,654: DEBUG - /opt/node_n/lib/node_modules/npm/lib/utils/exit-handler.js:21 2023-07-10 18:27:11,655: DEBUG - const hasLoadedNpm = npm?.config.loaded 2023-07-10 18:27:11,655: DEBUG - ^ 2023-07-10 18:27:11,656: DEBUG - 2023-07-10 18:27:11,656: DEBUG - SyntaxError: Unexpected token '.' 2023-07-10 18:27:11,656: DEBUG - at wrapSafe (internal/modules/cjs/loader.js:915:16) 2023-07-10 18:27:11,657: DEBUG - at Module._compile (internal/modules/cjs/loader.js:963:27) 2023-07-10 18:27:11,657: DEBUG - at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) 2023-07-10 18:27:11,657: DEBUG - at Module.load (internal/modules/cjs/loader.js:863:32) 2023-07-10 18:27:11,658: DEBUG - at Function.Module._load (internal/modules/cjs/loader.js:708:14) 2023-07-10 18:27:11,658: DEBUG - at Module.require (internal/modules/cjs/loader.js:887:19) 2023-07-10 18:27:11,658: DEBUG - at require (internal/modules/cjs/helpers.js:74:18) 2023-07-10 18:27:11,659: DEBUG - at module.exports (/opt/node_n/lib/node_modules/npm/lib/cli.js:81:23) 2023-07-10 18:27:11,659: DEBUG - at Object.<anonymous> (/opt/node_n/lib/node_modules/npm/bin/npm-cli.js:2:25) 2023-07-10 18:27:11,660: DEBUG - at Module._compile (internal/modules/cjs/loader.js:999:30) 2023-07-10 18:27:11,662: DEBUG - /opt/node_n/bin/n: line 744: /opt/node_n/bin/node: No such file or directory 2023-07-10 18:27:11,663: DEBUG - installed : (with npm ) 2023-07-10 18:27:11,667: DEBUG - ++ sort --version-sort 2023-07-10 18:27:11,667: DEBUG - ++ find /opt/node_n/n/versions/node/18 /opt/node_n/n/versions/node/18.16.1 -maxdepth 0 2023-07-10 18:27:11,668: DEBUG - ++ tail --lines=1 2023-07-10 18:27:11,673: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/18.16.1 2023-07-10 18:27:11,674: DEBUG - ++ basename /opt/node_n/n/versions/node/18.16.1 2023-07-10 18:27:11,677: DEBUG - + real_nodejs_version=18.16.1 2023-07-10 18:27:11,678: DEBUG - + '[' '!' -e /opt/node_n/n/versions/node/18 ']' 2023-07-10 18:27:11,678: DEBUG - + echo kresus:18 2023-07-10 18:27:11,679: DEBUG - + tee --append /opt/node_n/ynh_app_version 2023-07-10 18:27:11,682: DEBUG - kresus:18 2023-07-10 18:27:11,687: DEBUG - + ynh_app_setting_set --app=kresus --key=nodejs_version --value=18 2023-07-10 18:27:11,688: DEBUG - + local _globalapp=kresus 2023-07-10 18:27:11,859: DEBUG - + app=kresus 2023-07-10 18:27:11,859: DEBUG - + [[ nodejs_version =~ (unprotected|protected|skipped)_ ]] 2023-07-10 18:27:11,860: DEBUG - + ynh_app_setting set kresus nodejs_version 18
Describe the bug
There are several things causing the failure:
Context
See https://framagit.org/kresusapp/kresus/-/issues/1214#note_1996350
Logs