ended_at: 2022-11-08 14:13:03.161319 env: BASH_XTRACEFD: '7' NO_BACKUP_UPGRADE: '0' YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_03xgu4ap YNH_APP_CURRENT_VERSION: 3.4.2~ynh1 YNH_APP_ID: jupyterlab YNH_APP_INSTANCE_NAME: jupyterlab YNH_APP_INSTANCE_NUMBER: '1' YNH_APP_MANIFEST_VERSION: 3.5.0~ynh1 YNH_APP_UPGRADE_TYPE: UPGRADE_APP YNH_ARCH: amd64 YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_03xgu4ap/scripts YNH_INTERFACE: api YNH_STDRETURN: /tmp/tmptasnqg0c/stdreturn error: An error occurred inside the app upgrade script interface: api operation: app_upgrade parent: null related_to: - - app - jupyterlab started_at: 2022-11-08 14:09:13.076518 success: false yunohost_version: 11.0.10.2 ============ 2022-11-08 14:09:13,090: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade" 7>&1']' 2022-11-08 14:09:13,099: DEBUG - + source _common.sh 2022-11-08 14:09:13,100: DEBUG - ++ pkg_dependencies='python3-dev python3-pip' 2022-11-08 14:09:13,100: DEBUG - ++ nodejs_version=16 2022-11-08 14:09:13,101: DEBUG - ++ jupyterlab_version=3.5.0 2022-11-08 14:09:13,101: DEBUG - + source /usr/share/yunohost/helpers 2022-11-08 14:09:13,101: DEBUG - +++ set +o 2022-11-08 14:09:13,102: DEBUG - +++ grep xtrace 2022-11-08 14:09:13,106: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2022-11-08 14:09:13,106: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2022-11-08 14:09:13,309: DEBUG - + app=jupyterlab 2022-11-08 14:09:13,309: INFO - [....................] > Loading installation settings... 2022-11-08 14:09:13,310: DEBUG - ++ ynh_app_setting_get --app=jupyterlab --key=domain 2022-11-08 14:09:13,311: DEBUG - ++ local _globalapp=jupyterlab 2022-11-08 14:09:13,353: DEBUG - ++ app=jupyterlab 2022-11-08 14:09:13,354: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:13,354: DEBUG - ++ ynh_app_setting get jupyterlab domain 2022-11-08 14:09:13,430: DEBUG - + domain=lab.domain2.tld 2022-11-08 14:09:13,430: DEBUG - ++ ynh_app_setting_get --app=jupyterlab --key=path 2022-11-08 14:09:13,431: DEBUG - ++ local _globalapp=jupyterlab 2022-11-08 14:09:13,486: DEBUG - ++ app=jupyterlab 2022-11-08 14:09:13,486: DEBUG - ++ [[ path =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:13,486: DEBUG - ++ ynh_app_setting get jupyterlab path 2022-11-08 14:09:13,560: DEBUG - + path_url=/ 2022-11-08 14:09:13,560: DEBUG - ++ ynh_app_setting_get --app=jupyterlab --key=admin 2022-11-08 14:09:13,560: DEBUG - ++ local _globalapp=jupyterlab 2022-11-08 14:09:13,599: DEBUG - ++ app=jupyterlab 2022-11-08 14:09:13,600: DEBUG - ++ [[ admin =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:13,600: DEBUG - ++ ynh_app_setting get jupyterlab admin 2022-11-08 14:09:13,652: DEBUG - + admin=mydoom 2022-11-08 14:09:13,653: DEBUG - ++ ynh_app_setting_get --app=jupyterlab --key=final_path 2022-11-08 14:09:13,653: DEBUG - ++ local _globalapp=jupyterlab 2022-11-08 14:09:13,708: DEBUG - ++ app=jupyterlab 2022-11-08 14:09:13,709: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:13,709: DEBUG - ++ ynh_app_setting get jupyterlab final_path 2022-11-08 14:09:13,773: DEBUG - + final_path=/opt/jupyterlab 2022-11-08 14:09:13,774: DEBUG - ++ ynh_app_setting_get --app=jupyterlab --key=port 2022-11-08 14:09:13,774: DEBUG - ++ local _globalapp=jupyterlab 2022-11-08 14:09:13,822: DEBUG - ++ app=jupyterlab 2022-11-08 14:09:13,823: DEBUG - ++ [[ port =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:13,823: DEBUG - ++ ynh_app_setting get jupyterlab port 2022-11-08 14:09:13,883: DEBUG - + port=8080 2022-11-08 14:09:13,884: DEBUG - ++ ynh_app_setting_get --app=jupyterlab --key=port_hub 2022-11-08 14:09:13,884: DEBUG - ++ local _globalapp=jupyterlab 2022-11-08 14:09:13,924: DEBUG - ++ app=jupyterlab 2022-11-08 14:09:13,924: DEBUG - ++ [[ port_hub =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:13,925: DEBUG - ++ ynh_app_setting get jupyterlab port_hub 2022-11-08 14:09:13,975: DEBUG - + port_hub=8081 2022-11-08 14:09:13,976: DEBUG - ++ ynh_app_setting_get --app=jupyterlab --key=port_http_proxy 2022-11-08 14:09:13,977: DEBUG - ++ local _globalapp=jupyterlab 2022-11-08 14:09:14,027: DEBUG - ++ app=jupyterlab 2022-11-08 14:09:14,027: DEBUG - ++ [[ port_http_proxy =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:14,028: DEBUG - ++ ynh_app_setting get jupyterlab port_http_proxy 2022-11-08 14:09:14,078: DEBUG - + port_http_proxy=8082 2022-11-08 14:09:14,079: DEBUG - ++ ynh_app_setting_get --app=jupyterlab --key=enable_terminal 2022-11-08 14:09:14,079: DEBUG - ++ local _globalapp=jupyterlab 2022-11-08 14:09:14,137: DEBUG - ++ app=jupyterlab 2022-11-08 14:09:14,138: DEBUG - ++ [[ enable_terminal =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:14,138: DEBUG - ++ ynh_app_setting get jupyterlab enable_terminal 2022-11-08 14:09:14,198: DEBUG - + enable_terminal=1 2022-11-08 14:09:14,257: INFO - [....................] > Checking version... 2022-11-08 14:09:14,258: DEBUG - ++ ynh_check_app_version_changed 2022-11-08 14:09:14,258: DEBUG - ++ local return_value=UPGRADE_APP 2022-11-08 14:09:14,259: DEBUG - ++ '[' UPGRADE_APP == UPGRADE_FULL ']' 2022-11-08 14:09:14,259: DEBUG - ++ '[' UPGRADE_APP == UPGRADE_FORCED ']' 2022-11-08 14:09:14,259: DEBUG - ++ '[' UPGRADE_APP == DOWNGRADE_FORCED ']' 2022-11-08 14:09:14,259: DEBUG - ++ echo UPGRADE_APP 2022-11-08 14:09:14,259: DEBUG - + upgrade_type=UPGRADE_APP 2022-11-08 14:09:14,400: INFO - [+++.................] > Backing up the app before upgrading (may take a while)... 2022-11-08 14:09:14,401: DEBUG - + ynh_backup_before_upgrade 2022-11-08 14:09:14,401: DEBUG - + '[' '!' -e /etc/yunohost/apps/jupyterlab/scripts/backup ']' 2022-11-08 14:09:14,401: DEBUG - + backup_number=1 2022-11-08 14:09:14,402: DEBUG - + local old_backup_number=2 2022-11-08 14:09:14,402: DEBUG - + local app_bck=jupyterlab 2022-11-08 14:09:14,402: DEBUG - + NO_BACKUP_UPGRADE=0 2022-11-08 14:09:14,402: DEBUG - + ynh_backup_archive_exists jupyterlab-pre-upgrade1 2022-11-08 14:09:14,403: DEBUG - + jq -e --arg archive jupyterlab-pre-upgrade1 '.archives | index($archive)' 2022-11-08 14:09:14,403: DEBUG - + yunohost backup list --output-as json --quiet 2022-11-08 14:09:14,808: DEBUG - + backup_number=2 2022-11-08 14:09:14,808: DEBUG - + old_backup_number=1 2022-11-08 14:09:14,809: DEBUG - + BACKUP_CORE_ONLY=1 2022-11-08 14:09:14,809: DEBUG - + yunohost backup create --apps jupyterlab --name jupyterlab-pre-upgrade2 --debug 2022-11-08 14:09:14,969: DEBUG - 111 initializing base actions map parser for cli 2022-11-08 14:09:14,969: DEBUG - 112 loading actions map 2022-11-08 14:09:14,970: DEBUG - 113 building parser... 2022-11-08 14:09:14,973: DEBUG - 116 building parser took 0.003s 2022-11-08 14:09:14,974: DEBUG - 117 acquiring lock... 2022-11-08 14:09:14,998: DEBUG - 141 loading python module yunohost.backup took 0.014s 2022-11-08 14:09:14,999: DEBUG - 141 processing action [18539.1]: yunohost.backup.create with args={'name': 'jupyterlab-pre-upgrade2', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['jupyterlab'], 'dry_run': False} 2022-11-08 14:09:15,056: DEBUG - 198 Collecting files to be backed up for jupyterlab... 2022-11-08 14:09:15,090: DEBUG - 233 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_1tbnuhx8/scripts/backup" 7>&1']' 2022-11-08 14:09:15,101: DEBUG - 242 + source ../settings/scripts/_common.sh 2022-11-08 14:09:15,101: DEBUG - 243 ++ pkg_dependencies='python3-dev python3-pip libffi-dev libzmq3-dev' 2022-11-08 14:09:15,102: DEBUG - 243 ++ nodejs_version=16 2022-11-08 14:09:15,102: DEBUG - 243 ++ jupyterlab_version=3.4.2 2022-11-08 14:09:15,102: DEBUG - 244 + source /usr/share/yunohost/helpers 2022-11-08 14:09:15,105: DEBUG - 247 +++ set +o 2022-11-08 14:09:15,106: DEBUG - 249 +++ grep xtrace 2022-11-08 14:09:15,108: DEBUG - 251 ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2022-11-08 14:09:15,108: DEBUG - 252 ++ XTRACE_ENABLE='set -o xtrace' 2022-11-08 14:09:15,140: DEBUG - 283 + ynh_abort_if_errors 2022-11-08 14:09:15,141: DEBUG - 284 + trap ynh_exit_properly EXIT 2022-11-08 14:09:15,141: DEBUG - 284 + ynh_print_info '--message=Loading installation settings...' 2022-11-08 14:09:15,154: DEBUG - 297 + echo 'Loading installation settings...' 2022-11-08 14:09:15,154: DEBUG - 297 + app=jupyterlab 2022-11-08 14:09:15,156: DEBUG - 298 Loading installation settings... 2022-11-08 14:09:15,156: DEBUG - 298 ++ ynh_app_setting_get --app=jupyterlab --key=final_path 2022-11-08 14:09:15,156: DEBUG - 298 ++ local _globalapp=jupyterlab 2022-11-08 14:09:15,196: DEBUG - 338 ++ app=jupyterlab 2022-11-08 14:09:15,196: DEBUG - 339 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:15,197: DEBUG - 340 ++ ynh_app_setting get jupyterlab final_path 2022-11-08 14:09:15,277: DEBUG - 418 + final_path=/opt/jupyterlab 2022-11-08 14:09:15,277: DEBUG - 418 ++ ynh_app_setting_get --app=jupyterlab --key=domain 2022-11-08 14:09:15,277: DEBUG - 419 ++ local _globalapp=jupyterlab 2022-11-08 14:09:15,317: DEBUG - 460 ++ app=jupyterlab 2022-11-08 14:09:15,317: DEBUG - 460 ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:15,318: DEBUG - 461 ++ ynh_app_setting get jupyterlab domain 2022-11-08 14:09:15,368: DEBUG - 511 + domain=lab.domain2.tld 2022-11-08 14:09:15,369: DEBUG - 512 + ynh_print_info '--message=Declaring files to be backed up...' 2022-11-08 14:09:15,382: DEBUG - 525 + echo 'Declaring files to be backed up...' 2022-11-08 14:09:15,384: DEBUG - 526 Declaring files to be backed up... 2022-11-08 14:09:15,384: DEBUG - 527 + ynh_backup --src_path=/opt/jupyterlab 2022-11-08 14:09:15,434: DEBUG - 576 + dest_path= 2022-11-08 14:09:15,434: DEBUG - 577 + is_big=0 2022-11-08 14:09:15,434: DEBUG - 577 + not_mandatory=0 2022-11-08 14:09:15,434: DEBUG - 577 + BACKUP_CORE_ONLY=1 2022-11-08 14:09:15,434: DEBUG - 577 + test -n jupyterlab 2022-11-08 14:09:15,435: DEBUG - 578 ++ ynh_app_setting_get --app=jupyterlab --key=do_not_backup_data 2022-11-08 14:09:15,436: DEBUG - 579 ++ local _globalapp=jupyterlab 2022-11-08 14:09:15,491: DEBUG - 634 ++ app=jupyterlab 2022-11-08 14:09:15,491: DEBUG - 634 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:15,491: DEBUG - 634 ++ ynh_app_setting get jupyterlab do_not_backup_data 2022-11-08 14:09:15,548: DEBUG - 691 + do_not_backup_data= 2022-11-08 14:09:15,549: DEBUG - 692 + '[' '!' -e /opt/jupyterlab ']' 2022-11-08 14:09:15,549: DEBUG - 692 ++ realpath /opt/jupyterlab 2022-11-08 14:09:15,552: DEBUG - 694 + src_path=/opt/jupyterlab 2022-11-08 14:09:15,552: DEBUG - 695 + [[ -z '' ]] 2022-11-08 14:09:15,552: DEBUG - 695 + dest_path=opt/jupyterlab 2022-11-08 14:09:15,553: DEBUG - 695 + [[ -e opt/jupyterlab ]] 2022-11-08 14:09:15,553: DEBUG - 695 + local rel_dir=/apps/jupyterlab/backup 2022-11-08 14:09:15,553: DEBUG - 695 + rel_dir=/apps/jupyterlab/backup/ 2022-11-08 14:09:15,553: DEBUG - 695 + dest_path=/apps/jupyterlab/backup/opt/jupyterlab 2022-11-08 14:09:15,553: DEBUG - 695 + dest_path=apps/jupyterlab/backup/opt/jupyterlab 2022-11-08 14:09:15,553: DEBUG - 696 ++ sed --regexp-extended 's/"/\"\"/g' 2022-11-08 14:09:15,554: DEBUG - 697 ++ echo /opt/jupyterlab 2022-11-08 14:09:15,555: DEBUG - 698 + local src=/opt/jupyterlab 2022-11-08 14:09:15,556: DEBUG - 699 ++ sed --regexp-extended 's/"/\"\"/g' 2022-11-08 14:09:15,557: DEBUG - 700 ++ echo apps/jupyterlab/backup/opt/jupyterlab 2022-11-08 14:09:15,560: DEBUG - 703 + local dest=apps/jupyterlab/backup/opt/jupyterlab 2022-11-08 14:09:15,560: DEBUG - 703 + echo '"/opt/jupyterlab","apps/jupyterlab/backup/opt/jupyterlab"' 2022-11-08 14:09:15,561: DEBUG - 704 ++ dirname /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/opt/jupyterlab 2022-11-08 14:09:15,564: DEBUG - 707 + mkdir --parents /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/opt 2022-11-08 14:09:15,569: DEBUG - 712 + ynh_backup --src_path=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:09:15,617: DEBUG - 760 + dest_path= 2022-11-08 14:09:15,617: DEBUG - 760 + is_big=0 2022-11-08 14:09:15,617: DEBUG - 760 + not_mandatory=0 2022-11-08 14:09:15,619: DEBUG - 760 + BACKUP_CORE_ONLY=1 2022-11-08 14:09:15,619: DEBUG - 761 + test -n jupyterlab 2022-11-08 14:09:15,619: DEBUG - 761 ++ ynh_app_setting_get --app=jupyterlab --key=do_not_backup_data 2022-11-08 14:09:15,619: DEBUG - 761 ++ local _globalapp=jupyterlab 2022-11-08 14:09:15,670: DEBUG - 812 ++ app=jupyterlab 2022-11-08 14:09:15,670: DEBUG - 813 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:15,671: DEBUG - 813 ++ ynh_app_setting get jupyterlab do_not_backup_data 2022-11-08 14:09:15,725: DEBUG - 867 + do_not_backup_data= 2022-11-08 14:09:15,725: DEBUG - 868 + '[' '!' -e /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf ']' 2022-11-08 14:09:15,726: DEBUG - 868 ++ realpath /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:09:15,727: DEBUG - 870 + src_path=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:09:15,729: DEBUG - 871 + [[ -z '' ]] 2022-11-08 14:09:15,729: DEBUG - 871 + dest_path=etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:09:15,729: DEBUG - 872 + [[ -e etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf ]] 2022-11-08 14:09:15,729: DEBUG - 872 + local rel_dir=/apps/jupyterlab/backup 2022-11-08 14:09:15,729: DEBUG - 872 + rel_dir=/apps/jupyterlab/backup/ 2022-11-08 14:09:15,729: DEBUG - 872 + dest_path=/apps/jupyterlab/backup/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:09:15,729: DEBUG - 872 + dest_path=apps/jupyterlab/backup/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:09:15,729: DEBUG - 872 ++ sed --regexp-extended 's/"/\"\"/g' 2022-11-08 14:09:15,730: DEBUG - 873 ++ echo /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:09:15,734: DEBUG - 877 + local src=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:09:15,735: DEBUG - 878 ++ echo apps/jupyterlab/backup/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:09:15,736: DEBUG - 879 ++ sed --regexp-extended 's/"/\"\"/g' 2022-11-08 14:09:15,739: DEBUG - 882 + local dest=apps/jupyterlab/backup/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:09:15,739: DEBUG - 882 + echo '"/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf","apps/jupyterlab/backup/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf"' 2022-11-08 14:09:15,739: DEBUG - 883 ++ dirname /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:09:15,742: DEBUG - 885 + mkdir --parents /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/etc/nginx/conf.d/lab.domain2.tld.d 2022-11-08 14:09:15,745: DEBUG - 887 + ynh_backup --src_path=/etc/systemd/system/jupyterlab.service 2022-11-08 14:09:15,786: DEBUG - 929 + dest_path= 2022-11-08 14:09:15,786: DEBUG - 929 + is_big=0 2022-11-08 14:09:15,787: DEBUG - 929 + not_mandatory=0 2022-11-08 14:09:15,787: DEBUG - 930 + BACKUP_CORE_ONLY=1 2022-11-08 14:09:15,787: DEBUG - 930 + test -n jupyterlab 2022-11-08 14:09:15,787: DEBUG - 930 ++ ynh_app_setting_get --app=jupyterlab --key=do_not_backup_data 2022-11-08 14:09:15,788: DEBUG - 931 ++ local _globalapp=jupyterlab 2022-11-08 14:09:15,833: DEBUG - 976 ++ app=jupyterlab 2022-11-08 14:09:15,834: DEBUG - 976 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:09:15,835: DEBUG - 977 ++ ynh_app_setting get jupyterlab do_not_backup_data 2022-11-08 14:09:15,912: DEBUG - 1055 + do_not_backup_data= 2022-11-08 14:09:15,913: DEBUG - 1056 + '[' '!' -e /etc/systemd/system/jupyterlab.service ']' 2022-11-08 14:09:15,914: DEBUG - 1056 ++ realpath /etc/systemd/system/jupyterlab.service 2022-11-08 14:09:15,916: DEBUG - 1058 + src_path=/etc/systemd/system/jupyterlab.service 2022-11-08 14:09:15,916: DEBUG - 1058 + [[ -z '' ]] 2022-11-08 14:09:15,916: DEBUG - 1058 + dest_path=etc/systemd/system/jupyterlab.service 2022-11-08 14:09:15,917: DEBUG - 1059 + [[ -e etc/systemd/system/jupyterlab.service ]] 2022-11-08 14:09:15,917: DEBUG - 1059 + local rel_dir=/apps/jupyterlab/backup 2022-11-08 14:09:15,917: DEBUG - 1059 + rel_dir=/apps/jupyterlab/backup/ 2022-11-08 14:09:15,917: DEBUG - 1059 + dest_path=/apps/jupyterlab/backup/etc/systemd/system/jupyterlab.service 2022-11-08 14:09:15,917: DEBUG - 1059 + dest_path=apps/jupyterlab/backup/etc/systemd/system/jupyterlab.service 2022-11-08 14:09:15,917: DEBUG - 1061 ++ sed --regexp-extended 's/"/\"\"/g' 2022-11-08 14:09:15,918: DEBUG - 1061 ++ echo /etc/systemd/system/jupyterlab.service 2022-11-08 14:09:15,922: DEBUG - 1065 + local src=/etc/systemd/system/jupyterlab.service 2022-11-08 14:09:15,924: DEBUG - 1067 ++ echo apps/jupyterlab/backup/etc/systemd/system/jupyterlab.service 2022-11-08 14:09:15,924: DEBUG - 1067 ++ sed --regexp-extended 's/"/\"\"/g' 2022-11-08 14:09:15,927: DEBUG - 1070 + local dest=apps/jupyterlab/backup/etc/systemd/system/jupyterlab.service 2022-11-08 14:09:15,928: DEBUG - 1071 + echo '"/etc/systemd/system/jupyterlab.service","apps/jupyterlab/backup/etc/systemd/system/jupyterlab.service"' 2022-11-08 14:09:15,928: DEBUG - 1071 ++ dirname /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/etc/systemd/system/jupyterlab.service 2022-11-08 14:09:15,929: DEBUG - 1073 + mkdir --parents /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/etc/systemd/system 2022-11-08 14:09:15,932: DEBUG - 1075 + ynh_print_info '--message=Backup script completed for jupyterlab. (YunoHost will then actually copy those files to the archive).' 2022-11-08 14:09:15,944: DEBUG - 1087 + echo 'Backup script completed for jupyterlab. (YunoHost will then actually copy those files to the archive).' 2022-11-08 14:09:15,945: DEBUG - 1088 + ynh_exit_properly 2022-11-08 14:09:15,945: DEBUG - 1088 Backup script completed for jupyterlab. (YunoHost will then actually copy those files to the archive). 2022-11-08 14:09:15,947: DEBUG - 1090 + exit 0 2022-11-08 14:09:16,951: DEBUG - 2093 Backup permission for jupyterlab 2022-11-08 14:09:17,058: DEBUG - 2200 initializing ldap interface 2022-11-08 14:09:21,436: DEBUG - 6579 Creating a backup archive from the collected files... 2022-11-08 14:09:21,437: DEBUG - 6580 The archive will contain about 990.9MiB of data. 2022-11-08 14:09:21,438: DEBUG - 6580 Creating the backup TAR archive... 2022-11-08 14:10:46,332: DEBUG - 91474 TAR backup archive created 2022-11-08 14:10:46,334: DEBUG - 91475 Backup created 2022-11-08 14:10:46,336: DEBUG - 91480 To view the log of the operation 'Create a backup archive', use the command 'yunohost log show 20221108-140915-backup_create' 2022-11-08 14:10:46,354: DEBUG - 91497 action [18539.1] executed in 91.355s 2022-11-08 14:10:46,354: DEBUG - name: jupyterlab-pre-upgrade2 2022-11-08 14:10:46,355: DEBUG - results: 2022-11-08 14:10:46,355: DEBUG - apps: 2022-11-08 14:10:46,355: DEBUG - jupyterlab: Success 2022-11-08 14:10:46,355: DEBUG - system: 2022-11-08 14:10:46,355: DEBUG - size: 1039074199 2022-11-08 14:10:46,656: DEBUG - + ynh_backup_archive_exists jupyterlab-pre-upgrade1 2022-11-08 14:10:46,657: DEBUG - + yunohost backup list --output-as json --quiet 2022-11-08 14:10:46,658: DEBUG - + jq -e --arg archive jupyterlab-pre-upgrade1 '.archives | index($archive)' 2022-11-08 14:10:46,982: DEBUG - + yunohost backup delete jupyterlab-pre-upgrade1 2022-11-08 14:10:47,220: DEBUG - + ynh_abort_if_errors 2022-11-08 14:10:47,221: DEBUG - + trap ynh_exit_properly EXIT 2022-11-08 14:10:47,352: INFO - [###.................] > Stopping a systemd service... 2022-11-08 14:10:47,355: DEBUG - + ynh_systemd_action --service_name=jupyterlab --action=stop 2022-11-08 14:10:47,521: DEBUG - + service_name=jupyterlab 2022-11-08 14:10:47,522: DEBUG - + action=stop 2022-11-08 14:10:47,522: DEBUG - + line_match= 2022-11-08 14:10:47,522: DEBUG - + length=20 2022-11-08 14:10:47,522: DEBUG - + log_path=/var/log/jupyterlab/jupyterlab.log 2022-11-08 14:10:47,523: DEBUG - + timeout=300 2022-11-08 14:10:47,523: DEBUG - + '[' stop == stop ']' 2022-11-08 14:10:47,523: DEBUG - + systemctl is-active --quiet jupyterlab 2022-11-08 14:10:47,538: DEBUG - + '[' stop == reload ']' 2022-11-08 14:10:47,538: DEBUG - + systemctl stop jupyterlab 2022-11-08 14:10:51,473: INFO - [###.................] > Ensuring downward compatibility... 2022-11-08 14:10:51,475: DEBUG - + '[' -z /opt/jupyterlab ']' 2022-11-08 14:10:51,475: DEBUG - + ynh_legacy_permissions_exists 2022-11-08 14:10:51,475: DEBUG - + for permission in "skipped" "unprotected" "protected" 2022-11-08 14:10:51,475: DEBUG - + ynh_permission_exists --permission=legacy_skipped_uris 2022-11-08 14:10:51,491: DEBUG - + jq -e --arg perm jupyterlab.legacy_skipped_uris '.permissions[$perm]' 2022-11-08 14:10:51,492: DEBUG - + yunohost user permission list jupyterlab --output-as json --quiet 2022-11-08 14:10:51,850: DEBUG - + for permission in "skipped" "unprotected" "protected" 2022-11-08 14:10:51,851: DEBUG - + ynh_permission_exists --permission=legacy_unprotected_uris 2022-11-08 14:10:51,865: DEBUG - + yunohost user permission list jupyterlab --output-as json --quiet 2022-11-08 14:10:51,866: DEBUG - + jq -e --arg perm jupyterlab.legacy_unprotected_uris '.permissions[$perm]' 2022-11-08 14:10:52,177: DEBUG - + for permission in "skipped" "unprotected" "protected" 2022-11-08 14:10:52,178: DEBUG - + ynh_permission_exists --permission=legacy_protected_uris 2022-11-08 14:10:52,190: DEBUG - + jq -e --arg perm jupyterlab.legacy_protected_uris '.permissions[$perm]' 2022-11-08 14:10:52,191: DEBUG - + yunohost user permission list jupyterlab --output-as json --quiet 2022-11-08 14:10:52,493: DEBUG - + return 1 2022-11-08 14:10:52,619: INFO - [###.................] > Upgrading NGINX web server configuration... 2022-11-08 14:10:52,620: DEBUG - + ynh_add_nginx_config 2022-11-08 14:10:52,620: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,620: DEBUG - + ynh_add_config --template=nginx.conf --destination=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,672: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_03xgu4ap/conf/nginx.conf ']' 2022-11-08 14:10:52,672: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_03xgu4ap/conf/nginx.conf 2022-11-08 14:10:52,673: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,689: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf 2022-11-08 14:10:52,690: DEBUG - ++ ynh_app_setting_get --app=jupyterlab --key=checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf 2022-11-08 14:10:52,690: DEBUG - ++ local _globalapp=jupyterlab 2022-11-08 14:10:52,742: DEBUG - ++ app=jupyterlab 2022-11-08 14:10:52,742: DEBUG - ++ [[ checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:10:52,743: DEBUG - ++ ynh_app_setting get jupyterlab checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf 2022-11-08 14:10:52,805: DEBUG - + local checksum_value=2557997522f70e570aa3809c27784fd3 2022-11-08 14:10:52,805: DEBUG - + backup_file_checksum= 2022-11-08 14:10:52,805: DEBUG - + '[' -n 2557997522f70e570aa3809c27784fd3 ']' 2022-11-08 14:10:52,805: DEBUG - + '[' -e /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf ']' 2022-11-08 14:10:52,805: DEBUG - + md5sum --check --status 2022-11-08 14:10:52,809: DEBUG - + touch /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,811: DEBUG - + chown root:root /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,814: DEBUG - + chmod 640 /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,817: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_03xgu4ap/conf/nginx.conf /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,822: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,823: DEBUG - + local target=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,824: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_03xgu4ap/manifest.json 2022-11-08 14:10:52,824: DEBUG - ++ tr -d '>= ' 2022-11-08 14:10:52,871: DEBUG - + local ynh_requirement=11.0.9 2022-11-08 14:10:52,872: DEBUG - + '[' -z 11.0.9 ']' 2022-11-08 14:10:52,872: DEBUG - + '[' 11.0.9 == null ']' 2022-11-08 14:10:52,873: DEBUG - + dpkg --compare-versions 11.0.9 ge 4.2 2022-11-08 14:10:52,875: DEBUG - + chmod o-rwx /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,877: DEBUG - + chmod g-w /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,878: DEBUG - + chown -R root:root /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,881: DEBUG - + ynh_system_user_exists jupyterlab 2022-11-08 14:10:52,895: DEBUG - + getent passwd jupyterlab 2022-11-08 14:10:52,906: DEBUG - + echo /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,907: DEBUG - + grep -q '^/etc/cron' 2022-11-08 14:10:52,909: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:52,925: DEBUG - + test -n / 2022-11-08 14:10:52,925: DEBUG - + local path_url_slash_less= 2022-11-08 14:10:52,925: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,067: DEBUG - + sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,072: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,180: DEBUG - + sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,184: DEBUG - + test -n jupyterlab 2022-11-08 14:10:53,185: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=jupyterlab --target_file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,316: DEBUG - + sed --in-place s@__NAME__@jupyterlab@g /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,319: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=jupyterlab --target_file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,440: DEBUG - + sed --in-place s@__NAMETOCHANGE__@jupyterlab@g /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,442: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=jupyterlab --target_file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,546: DEBUG - + sed --in-place s@__USER__@jupyterlab@g /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,548: DEBUG - + test -n /opt/jupyterlab 2022-11-08 14:10:53,548: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/jupyterlab --target_file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,635: DEBUG - + sed --in-place s@__FINALPATH__@/opt/jupyterlab@g /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,638: DEBUG - + test -n 7.4 2022-11-08 14:10:53,638: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,735: DEBUG - + sed --in-place s@__PHPVERSION__@7.4@g /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,737: DEBUG - + test -n '' 2022-11-08 14:10:53,738: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,738: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2022-11-08 14:10:53,741: DEBUG - ++ sort --unique 2022-11-08 14:10:53,746: DEBUG - + uniques_vars=('port') 2022-11-08 14:10:53,746: DEBUG - + local delimit=@ 2022-11-08 14:10:53,746: DEBUG - + for one_var in "${uniques_vars[@]}" 2022-11-08 14:10:53,746: DEBUG - + [[ -v port ]] 2022-11-08 14:10:53,747: DEBUG - + match_string=__PORT__ 2022-11-08 14:10:53,747: DEBUG - + match_string=__PORT__ 2022-11-08 14:10:53,747: DEBUG - + replace_string=8080 2022-11-08 14:10:53,747: DEBUG - + replace_string=8080 2022-11-08 14:10:53,747: DEBUG - + replace_string=8080 2022-11-08 14:10:53,747: DEBUG - + sed --in-place s@__PORT__@8080@g /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,748: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,749: DEBUG - + update_only=0 2022-11-08 14:10:53,782: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf 2022-11-08 14:10:53,783: DEBUG - ++ md5sum /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:53,783: DEBUG - ++ cut '--delimiter= ' --fields=1 2022-11-08 14:10:53,788: DEBUG - + ynh_app_setting_set --app=jupyterlab --key=checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf --value=2557997522f70e570aa3809c27784fd3 2022-11-08 14:10:53,789: DEBUG - + local _globalapp=jupyterlab 2022-11-08 14:10:53,898: DEBUG - + app=jupyterlab 2022-11-08 14:10:53,900: DEBUG - + [[ checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:10:53,900: DEBUG - + ynh_app_setting set jupyterlab checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf 2557997522f70e570aa3809c27784fd3 2022-11-08 14:10:53,956: DEBUG - + '[' -n '' ']' 2022-11-08 14:10:53,956: DEBUG - + unset backup_file_checksum 2022-11-08 14:10:53,956: DEBUG - + '[' / '!=' / ']' 2022-11-08 14:10:53,956: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:54,069: DEBUG - + sed --in-place 's@^#root_path_only@@g' /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:54,071: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:54,073: DEBUG - + update_only=0 2022-11-08 14:10:54,097: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf 2022-11-08 14:10:54,099: DEBUG - ++ md5sum /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:10:54,100: DEBUG - ++ cut '--delimiter= ' --fields=1 2022-11-08 14:10:54,106: DEBUG - + ynh_app_setting_set --app=jupyterlab --key=checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf --value=2557997522f70e570aa3809c27784fd3 2022-11-08 14:10:54,106: DEBUG - + local _globalapp=jupyterlab 2022-11-08 14:10:54,199: DEBUG - + app=jupyterlab 2022-11-08 14:10:54,200: DEBUG - + [[ checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:10:54,200: DEBUG - + ynh_app_setting set jupyterlab checksum__etc_nginx_conf.d_lab.domain2.tld.d_jupyterlab.conf 2557997522f70e570aa3809c27784fd3 2022-11-08 14:10:54,256: DEBUG - + '[' -n '' ']' 2022-11-08 14:10:54,257: DEBUG - + unset backup_file_checksum 2022-11-08 14:10:54,257: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload 2022-11-08 14:10:54,391: DEBUG - + service_name=nginx 2022-11-08 14:10:54,391: DEBUG - + action=reload 2022-11-08 14:10:54,391: DEBUG - + line_match= 2022-11-08 14:10:54,391: DEBUG - + length=20 2022-11-08 14:10:54,391: DEBUG - + log_path=/var/log/nginx/nginx.log 2022-11-08 14:10:54,391: DEBUG - + timeout=300 2022-11-08 14:10:54,391: DEBUG - + '[' reload == stop ']' 2022-11-08 14:10:54,392: DEBUG - + '[' reload == reload ']' 2022-11-08 14:10:54,392: DEBUG - + action=reload-or-restart 2022-11-08 14:10:54,392: DEBUG - + systemctl reload-or-restart nginx 2022-11-08 14:10:54,656: DEBUG - + ynh_install_app_dependencies python3-dev python3-pip 2022-11-08 14:10:54,656: DEBUG - + local 'dependencies=python3-dev python3-pip' 2022-11-08 14:10:54,656: INFO - [###++++++...........] > Upgrading dependencies... 2022-11-08 14:10:54,661: DEBUG - ++ echo 'python3-dev python3-pip' 2022-11-08 14:10:54,661: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2022-11-08 14:10:54,664: DEBUG - + dependencies='python3-dev, python3-pip' 2022-11-08 14:10:54,664: DEBUG - + local 'dependencies=python3-dev, python3-pip' 2022-11-08 14:10:54,664: DEBUG - + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_03xgu4ap/manifest.json 2022-11-08 14:10:54,664: DEBUG - ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_03xgu4ap/manifest.json 2022-11-08 14:10:54,705: DEBUG - + local version=3.5.0~ynh1 2022-11-08 14:10:54,705: DEBUG - + '[' -z 3.5.0~ynh1 ']' 2022-11-08 14:10:54,705: DEBUG - + '[' 3.5.0~ynh1 == null ']' 2022-11-08 14:10:54,705: DEBUG - + local dep_app=jupyterlab 2022-11-08 14:10:54,706: DEBUG - + [[ python3-dev, python3-pip =~ [<=>] ]] 2022-11-08 14:10:54,707: DEBUG - ++ echo python3-dev, python3-pip 2022-11-08 14:10:54,707: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 2022-11-08 14:10:54,708: DEBUG - ++ sort -u 2022-11-08 14:10:54,713: DEBUG - + local specific_php_version= 2022-11-08 14:10:54,713: DEBUG - + grep --quiet php 2022-11-08 14:10:54,716: DEBUG - ++ ynh_package_is_installed postgresql-13 2022-11-08 14:10:54,729: DEBUG - ++ ynh_wait_dpkg_free 2022-11-08 14:10:54,867: DEBUG - ++ return 0 2022-11-08 14:10:54,867: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2022-11-08 14:10:54,868: DEBUG - ++ grep --count 'ok installed' 2022-11-08 14:10:54,900: DEBUG - ++ echo yes 2022-11-08 14:10:54,902: DEBUG - + local psql_installed=yes 2022-11-08 14:10:54,902: DEBUG - + [[ true == \t\r\u\e ]] 2022-11-08 14:10:54,902: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 2022-11-08 14:10:54,902: DEBUG - + cat 2022-11-08 14:10:54,904: DEBUG - + ynh_package_install_from_equivs /tmp/jupyterlab-ynh-deps.control 2022-11-08 14:10:54,904: DEBUG - + local controlfile=/tmp/jupyterlab-ynh-deps.control 2022-11-08 14:10:54,905: DEBUG - ++ cut '--delimiter= ' --fields=2 2022-11-08 14:10:54,906: DEBUG - ++ grep '^Package: ' /tmp/jupyterlab-ynh-deps.control 2022-11-08 14:10:54,909: DEBUG - + local pkgname=jupyterlab-ynh-deps 2022-11-08 14:10:54,910: DEBUG - ++ grep '^Version: ' /tmp/jupyterlab-ynh-deps.control 2022-11-08 14:10:54,910: DEBUG - ++ cut '--delimiter= ' --fields=2 2022-11-08 14:10:54,914: DEBUG - + local pkgversion=3.5.0~ynh1 2022-11-08 14:10:54,914: DEBUG - + [[ -z jupyterlab-ynh-deps ]] 2022-11-08 14:10:54,914: DEBUG - + [[ -z 3.5.0~ynh1 ]] 2022-11-08 14:10:54,914: DEBUG - + ynh_package_update 2022-11-08 14:10:54,914: DEBUG - + ynh_apt update 2022-11-08 14:10:54,914: DEBUG - + ynh_wait_dpkg_free 2022-11-08 14:10:55,033: DEBUG - + return 0 2022-11-08 14:10:55,034: DEBUG - + LC_ALL=C 2022-11-08 14:10:55,034: DEBUG - + DEBIAN_FRONTEND=noninteractive 2022-11-08 14:10:55,034: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2022-11-08 14:10:55,251: DEBUG - Hit:1 http://deb.debian.org/debian bullseye InRelease 2022-11-08 14:10:55,252: DEBUG - Get:2 http://security.debian.org bullseye-security InRelease [48.4 kB] 2022-11-08 14:10:55,252: DEBUG - Hit:3 http://mirror.hetzner.com/debian/packages bullseye InRelease 2022-11-08 14:10:55,264: DEBUG - Hit:4 http://deb.debian.org/debian bullseye-updates InRelease 2022-11-08 14:10:55,268: DEBUG - Hit:5 http://mirror.hetzner.com/debian/packages bullseye-updates InRelease 2022-11-08 14:10:55,293: DEBUG - Hit:6 http://mirror.hetzner.com/debian/security bullseye-security InRelease 2022-11-08 14:10:55,332: DEBUG - Hit:7 https://packages.sury.org/php bullseye InRelease 2022-11-08 14:10:55,397: DEBUG - Hit:8 http://forge.yunohost.org/debian bullseye InRelease 2022-11-08 14:10:56,586: DEBUG - Fetched 48.4 kB in 1s (33.3 kB/s) 2022-11-08 14:10:57,822: DEBUG - Reading package lists... 2022-11-08 14:10:57,839: DEBUG - ++ mktemp --directory 2022-11-08 14:10:57,841: DEBUG - + local TMPDIR=/tmp/tmp.qc54VGUhwZ 2022-11-08 14:10:57,842: DEBUG - + rm -f /usr/share/equivs/template/debian/compat 2022-11-08 14:10:57,844: DEBUG - + ynh_wait_dpkg_free 2022-11-08 14:10:57,964: DEBUG - + return 0 2022-11-08 14:10:57,965: DEBUG - + cp /tmp/jupyterlab-ynh-deps.control /tmp/tmp.qc54VGUhwZ/control 2022-11-08 14:10:57,967: DEBUG - + cd /tmp/tmp.qc54VGUhwZ 2022-11-08 14:10:57,967: DEBUG - + LC_ALL=C 2022-11-08 14:10:57,967: DEBUG - + equivs-build ./control 2022-11-08 14:10:58,333: DEBUG - dpkg-buildpackage: info: source package jupyterlab-ynh-deps 2022-11-08 14:10:58,333: DEBUG - dpkg-buildpackage: info: source version 3.5.0~ynh1 2022-11-08 14:10:58,333: DEBUG - dpkg-buildpackage: info: source distribution unstable 2022-11-08 14:10:58,334: DEBUG - dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@maindomain.tld> 2022-11-08 14:10:58,402: DEBUG - dpkg-source --before-build . 2022-11-08 14:10:58,403: DEBUG - dpkg-buildpackage: info: host architecture amd64 2022-11-08 14:10:58,540: DEBUG - debian/rules clean 2022-11-08 14:10:58,543: DEBUG - dh clean 2022-11-08 14:10:58,698: DEBUG - dh_clean 2022-11-08 14:10:58,755: DEBUG - debian/rules binary 2022-11-08 14:10:58,757: DEBUG - dh binary 2022-11-08 14:10:58,855: DEBUG - dh_update_autotools_config 2022-11-08 14:10:58,909: DEBUG - dh_autoreconf 2022-11-08 14:10:58,979: DEBUG - create-stamp debian/debhelper-build-stamp 2022-11-08 14:10:58,979: DEBUG - dh_prep 2022-11-08 14:10:59,021: DEBUG - dh_install 2022-11-08 14:10:59,062: DEBUG - dh_installdocs 2022-11-08 14:10:59,105: DEBUG - dh_installchangelogs 2022-11-08 14:10:59,227: DEBUG - dh_perl 2022-11-08 14:10:59,294: DEBUG - dh_link 2022-11-08 14:10:59,343: DEBUG - dh_strip_nondeterminism 2022-11-08 14:10:59,459: DEBUG - dh_compress 2022-11-08 14:10:59,537: DEBUG - dh_fixperms 2022-11-08 14:10:59,610: DEBUG - dh_missing 2022-11-08 14:10:59,652: DEBUG - dh_installdeb 2022-11-08 14:10:59,707: DEBUG - dh_gencontrol 2022-11-08 14:10:59,906: DEBUG - dh_md5sums 2022-11-08 14:10:59,960: DEBUG - dh_builddeb 2022-11-08 14:11:00,006: DEBUG - dpkg-deb: building package 'jupyterlab-ynh-deps' in '../jupyterlab-ynh-deps_3.5.0~ynh1_all.deb'. 2022-11-08 14:11:00,042: DEBUG - dpkg-genbuildinfo --build=binary 2022-11-08 14:11:01,195: DEBUG - dpkg-genchanges --build=binary >../jupyterlab-ynh-deps_3.5.0~ynh1_amd64.changes 2022-11-08 14:11:01,291: DEBUG - dpkg-genchanges: info: binary-only upload (no source code included) 2022-11-08 14:11:01,295: DEBUG - dpkg-source --after-build . 2022-11-08 14:11:01,433: DEBUG - dpkg-buildpackage: info: binary-only upload (no source included) 2022-11-08 14:11:01,439: DEBUG - 2022-11-08 14:11:01,440: DEBUG - The package has been created. 2022-11-08 14:11:01,440: DEBUG - Attention, the package has been created in the current directory, 2022-11-08 14:11:01,440: DEBUG - not in ".." as indicated by the message above! 2022-11-08 14:11:01,441: DEBUG - + LC_ALL=C 2022-11-08 14:11:01,441: DEBUG - + tee ./dpkg_log 2022-11-08 14:11:01,442: DEBUG - + dpkg --force-depends --install ./jupyterlab-ynh-deps_3.5.0~ynh1_all.deb 2022-11-08 14:11:01,943: DEBUG - (Reading database ... 136666 files and directories currently installed.) 2022-11-08 14:11:01,950: DEBUG - Preparing to unpack .../jupyterlab-ynh-deps_3.5.0~ynh1_all.deb ... 2022-11-08 14:11:01,955: DEBUG - Unpacking jupyterlab-ynh-deps (3.5.0~ynh1) over (3.4.2~ynh1) ... 2022-11-08 14:11:01,980: DEBUG - Setting up jupyterlab-ynh-deps (3.5.0~ynh1) ... 2022-11-08 14:11:02,019: DEBUG - + ynh_package_install --fix-broken 2022-11-08 14:11:02,020: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2022-11-08 14:11:02,020: DEBUG - + ynh_wait_dpkg_free 2022-11-08 14:11:02,131: DEBUG - + return 0 2022-11-08 14:11:02,132: DEBUG - + LC_ALL=C 2022-11-08 14:11:02,132: DEBUG - + DEBIAN_FRONTEND=noninteractive 2022-11-08 14:11:02,132: 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 2022-11-08 14:11:02,286: DEBUG - Reading package lists... 2022-11-08 14:11:02,505: DEBUG - Building dependency tree... 2022-11-08 14:11:02,507: DEBUG - Reading state information... 2022-11-08 14:11:02,735: DEBUG - The following packages were automatically installed and are no longer required: 2022-11-08 14:11:02,736: DEBUG - bind9-utils bind9utils comerr-dev dnsutils icu-devtools krb5-multidev 2022-11-08 14:11:02,736: DEBUG - libbsd-dev libffi-dev libgssrpc4 libicu-dev libicu63 libkadm5clnt-mit12 2022-11-08 14:11:02,737: DEBUG - libkadm5srv-mit12 libkdb5-10 libkrb5-dev libllvm7 libmd-dev libnorm-dev 2022-11-08 14:11:02,738: DEBUG - libpgm-dev libreadline7 libsodium-dev libxml2-dev libzmq3-dev php-gettext 2022-11-08 14:11:02,738: DEBUG - php7.3-curl php7.3-fpm php7.3-gd php7.3-intl php7.3-ldap php7.3-mysql php7.4 2022-11-08 14:11:02,738: DEBUG - postgresql-11 postgresql-client-11 python3-ply python3-publicsuffix 2022-11-08 14:11:02,739: DEBUG - Use 'apt autoremove' to remove them. 2022-11-08 14:11:02,778: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2022-11-08 14:11:02,779: DEBUG - + [[ -n /tmp/tmp.qc54VGUhwZ ]] 2022-11-08 14:11:02,779: DEBUG - + rm --recursive --force /tmp/tmp.qc54VGUhwZ 2022-11-08 14:11:02,781: DEBUG - + ynh_package_is_installed jupyterlab-ynh-deps 2022-11-08 14:11:02,791: DEBUG - + ynh_wait_dpkg_free 2022-11-08 14:11:02,903: DEBUG - + return 0 2022-11-08 14:11:02,903: DEBUG - + dpkg-query --show '--showformat=${Status}' jupyterlab-ynh-deps 2022-11-08 14:11:02,904: DEBUG - + grep --count 'ok installed' 2022-11-08 14:11:02,921: DEBUG - + rm /tmp/jupyterlab-ynh-deps.control 2022-11-08 14:11:02,925: DEBUG - ++ ynh_package_is_installed postgresql-13 2022-11-08 14:11:02,940: DEBUG - ++ ynh_wait_dpkg_free 2022-11-08 14:11:03,057: DEBUG - ++ return 0 2022-11-08 14:11:03,058: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2022-11-08 14:11:03,059: DEBUG - ++ grep --count 'ok installed' 2022-11-08 14:11:03,079: DEBUG - ++ echo yes 2022-11-08 14:11:03,080: DEBUG - + local psql_installed2=yes 2022-11-08 14:11:03,081: DEBUG - + [[ yes != \y\e\s ]] 2022-11-08 14:11:03,081: DEBUG - + ynh_exec_warn_less ynh_install_nodejs --nodejs_version=16 2022-11-08 14:11:03,081: DEBUG - + [[ 2 -eq 1 ]] 2022-11-08 14:11:03,081: DEBUG - + ynh_install_nodejs --nodejs_version=16 2022-11-08 14:11:03,093: DEBUG - + mkdir --parents /opt/node_n 2022-11-08 14:11:03,097: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2022-11-08 14:11:03,098: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2022-11-08 14:11:03,098: DEBUG - ++ sed s@/usr/local/bin:@@ 2022-11-08 14:11:03,101: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin 2022-11-08 14:11:03,102: DEBUG - + test -x /usr/bin/node 2022-11-08 14:11:03,102: DEBUG - + mv /usr/bin/node /usr/bin/node_n 2022-11-08 14:11:03,105: DEBUG - + test -x /usr/bin/npm 2022-11-08 14:11:03,106: DEBUG - + mv /usr/bin/npm /usr/bin/npm_n 2022-11-08 14:11:03,108: DEBUG - + /opt/node_n/bin/n --version 2022-11-08 14:11:03,119: DEBUG - ++ /opt/node_n/bin/n --version 2022-11-08 14:11:03,132: DEBUG - + dpkg --compare-versions v8.0.1 lt 8.2.0 2022-11-08 14:11:03,135: DEBUG - dpkg: warning: version 'v8.0.1' has bad syntax: version number does not start with digit 2022-11-08 14:11:03,135: 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 2022-11-08 14:11:03,230: DEBUG - + sed --in-place 's@^N_PREFIX=${N_PREFIX-.*}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g' /opt/node_n/bin/n 2022-11-08 14:11:03,233: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2022-11-08 14:11:03,233: DEBUG - + test -x /usr/bin/node_n 2022-11-08 14:11:03,234: DEBUG - + mv /usr/bin/node_n /usr/bin/node 2022-11-08 14:11:03,235: DEBUG - + test -x /usr/bin/npm_n 2022-11-08 14:11:03,236: DEBUG - + mv /usr/bin/npm_n /usr/bin/npm 2022-11-08 14:11:03,238: DEBUG - ++ uname --machine 2022-11-08 14:11:03,241: DEBUG - + uname=x86_64 2022-11-08 14:11:03,242: DEBUG - + [[ x86_64 =~ aarch64 ]] 2022-11-08 14:11:03,242: DEBUG - + [[ x86_64 =~ arm64 ]] 2022-11-08 14:11:03,242: DEBUG - + n 16 2022-11-08 14:11:03,386: DEBUG - installing : node-v16.18.1 2022-11-08 14:11:03,469: DEBUG - mkdir : /opt/node_n/n/versions/node/16.18.1 2022-11-08 14:11:03,475: DEBUG - fetch : https://nodejs.org/dist/v16.18.1/node-v16.18.1-linux-x64.tar.xz 2022-11-08 14:11:07,425: DEBUG - installed : v16.18.1 (with npm 8.19.2) 2022-11-08 14:11:07,428: DEBUG - ++ find /opt/node_n/n/versions/node/16 /opt/node_n/n/versions/node/16.15.0 /opt/node_n/n/versions/node/16.18.1 -maxdepth 0 2022-11-08 14:11:07,429: DEBUG - ++ sort --version-sort 2022-11-08 14:11:07,430: DEBUG - ++ tail --lines=1 2022-11-08 14:11:07,433: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/16.18.1 2022-11-08 14:11:07,434: DEBUG - ++ basename /opt/node_n/n/versions/node/16.18.1 2022-11-08 14:11:07,437: DEBUG - + real_nodejs_version=16.18.1 2022-11-08 14:11:07,437: DEBUG - + '[' '!' -e /opt/node_n/n/versions/node/16 ']' 2022-11-08 14:11:07,437: DEBUG - + echo jupyterlab:16 2022-11-08 14:11:07,437: DEBUG - + tee --append /opt/node_n/ynh_app_version 2022-11-08 14:11:07,439: DEBUG - jupyterlab:16 2022-11-08 14:11:07,440: DEBUG - + ynh_app_setting_set --app=jupyterlab --key=nodejs_version --value=16 2022-11-08 14:11:07,440: DEBUG - + local _globalapp=jupyterlab 2022-11-08 14:11:07,544: DEBUG - + app=jupyterlab 2022-11-08 14:11:07,545: DEBUG - + [[ nodejs_version =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:11:07,545: DEBUG - + ynh_app_setting set jupyterlab nodejs_version 16 2022-11-08 14:11:07,599: DEBUG - + ynh_cron_upgrade_node 2022-11-08 14:11:07,599: DEBUG - + cat 2022-11-08 14:11:07,602: DEBUG - + chmod +x /opt/node_n/node_update.sh 2022-11-08 14:11:07,603: DEBUG - + cat 2022-11-08 14:11:07,606: DEBUG - + chmod +x /etc/cron.daily/node_update 2022-11-08 14:11:07,608: DEBUG - + ynh_use_nodejs 2022-11-08 14:11:07,608: DEBUG - ++ ynh_app_setting_get --app=jupyterlab --key=nodejs_version 2022-11-08 14:11:07,608: DEBUG - ++ local _globalapp=jupyterlab 2022-11-08 14:11:07,654: DEBUG - ++ app=jupyterlab 2022-11-08 14:11:07,654: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:11:07,655: DEBUG - ++ ynh_app_setting get jupyterlab nodejs_version 2022-11-08 14:11:07,714: DEBUG - + nodejs_version=16 2022-11-08 14:11:07,714: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/16/bin 2022-11-08 14:11:07,714: DEBUG - + shopt -s expand_aliases 2022-11-08 14:11:07,715: DEBUG - + ynh_node=/opt/node_n/n/versions/node/16/bin/node 2022-11-08 14:11:07,715: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/16/bin/node 2022-11-08 14:11:07,715: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/16/bin/npm 2022-11-08 14:11:07,715: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/16/bin/npm 2022-11-08 14:11:07,716: DEBUG - + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: != *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\6\/\b\i\n* ]] 2022-11-08 14:11:07,716: DEBUG - + PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2022-11-08 14:11:07,716: DEBUG - + node_PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2022-11-08 14:11:07,717: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2022-11-08 14:11:07,717: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2022-11-08 14:11:07,718: DEBUG - + ynh_use_nodejs 2022-11-08 14:11:07,718: DEBUG - ++ ynh_app_setting_get --app=jupyterlab --key=nodejs_version 2022-11-08 14:11:07,718: DEBUG - ++ local _globalapp=jupyterlab 2022-11-08 14:11:07,775: DEBUG - ++ app=jupyterlab 2022-11-08 14:11:07,775: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:11:07,775: DEBUG - ++ ynh_app_setting get jupyterlab nodejs_version 2022-11-08 14:11:07,854: DEBUG - + nodejs_version=16 2022-11-08 14:11:07,854: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/16/bin 2022-11-08 14:11:07,854: DEBUG - + shopt -s expand_aliases 2022-11-08 14:11:07,854: DEBUG - + ynh_node=/opt/node_n/n/versions/node/16/bin/node 2022-11-08 14:11:07,855: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/16/bin/node 2022-11-08 14:11:07,855: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/16/bin/npm 2022-11-08 14:11:07,855: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/16/bin/npm 2022-11-08 14:11:07,855: DEBUG - + [[ :/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: != *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\6\/\b\i\n* ]] 2022-11-08 14:11:07,855: DEBUG - + node_PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2022-11-08 14:11:07,855: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2022-11-08 14:11:07,855: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2022-11-08 14:11:07,855: DEBUG - + /opt/node_n/n/versions/node/16/bin/npm install -g configurable-http-proxy 2022-11-08 14:11:12,352: DEBUG - 2022-11-08 14:11:12,352: DEBUG - changed 39 packages, and audited 40 packages in 4s 2022-11-08 14:11:12,352: DEBUG - 2022-11-08 14:11:12,353: DEBUG - 3 packages are looking for funding 2022-11-08 14:11:12,353: DEBUG - run `npm fund` for details 2022-11-08 14:11:12,353: DEBUG - 2022-11-08 14:11:12,353: DEBUG - found 0 vulnerabilities 2022-11-08 14:11:12,355: WARNING - npm notice 2022-11-08 14:11:12,357: WARNING - npm notice New minor version of npm available! 8.5.5 -> 8.19.3 2022-11-08 14:11:12,358: WARNING - npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.19.3> 2022-11-08 14:11:12,360: WARNING - npm notice Run `npm install -g npm@8.19.3` to update! 2022-11-08 14:11:12,361: WARNING - npm notice 2022-11-08 14:11:12,369: DEBUG - + python3 -m pip install pipenv 2022-11-08 14:11:14,890: DEBUG - Collecting pipenv 2022-11-08 14:11:15,043: DEBUG - Downloading pipenv-2022.11.5-py2.py3-none-any.whl (2.9 MB) 2022-11-08 14:11:15,704: DEBUG - Collecting virtualenv 2022-11-08 14:11:15,735: DEBUG - Downloading virtualenv-20.16.6-py3-none-any.whl (8.8 MB) 2022-11-08 14:11:15,893: DEBUG - Requirement already satisfied: setuptools>=36.2.1 in /usr/lib/python3/dist-packages (from pipenv) (52.0.0) 2022-11-08 14:11:15,945: DEBUG - Collecting virtualenv-clone>=0.2.5 2022-11-08 14:11:15,949: DEBUG - Using cached virtualenv_clone-0.5.7-py3-none-any.whl (6.6 kB) 2022-11-08 14:11:15,953: DEBUG - Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from pipenv) (2020.6.20) 2022-11-08 14:11:16,050: DEBUG - Collecting platformdirs<3,>=2.4 2022-11-08 14:11:16,085: DEBUG - Downloading platformdirs-2.5.3-py3-none-any.whl (14 kB) 2022-11-08 14:11:16,146: DEBUG - Collecting filelock<4,>=3.4.1 2022-11-08 14:11:16,173: DEBUG - Downloading filelock-3.8.0-py3-none-any.whl (10 kB) 2022-11-08 14:11:16,223: DEBUG - Collecting distlib<1,>=0.3.6 2022-11-08 14:11:16,250: DEBUG - Downloading distlib-0.3.6-py2.py3-none-any.whl (468 kB) 2022-11-08 14:11:16,512: DEBUG - Installing collected packages: platformdirs, filelock, distlib, virtualenv-clone, virtualenv, pipenv 2022-11-08 14:11:18,847: DEBUG - Successfully installed distlib-0.3.6 filelock-3.8.0 pipenv-2022.11.5 platformdirs-2.5.3 virtualenv-20.16.6 virtualenv-clone-0.5.7 2022-11-08 14:11:18,960: DEBUG - + '[' UPGRADE_APP == UPGRADE_APP ']' 2022-11-08 14:11:19,033: INFO - [#########++++++++++.] > Building app... 2022-11-08 14:11:19,034: DEBUG - + pushd /opt/jupyterlab 2022-11-08 14:11:19,034: DEBUG - /opt/jupyterlab /var/cache/yunohost/app_tmp_work_dirs/app_03xgu4ap/scripts 2022-11-08 14:11:19,034: DEBUG - + mkdir -p .venv 2022-11-08 14:11:19,034: DEBUG - + PIPENV_VENV_IN_PROJECT=enabled 2022-11-08 14:11:19,035: DEBUG - + PIPENV_SKIP_LOCK=true 2022-11-08 14:11:19,035: DEBUG - + ynh_exec_warn_less python3 -m pipenv install jupyterlab==3.5.0 jupyterhub notebook jupyterhub-ldapauthenticator pyzmq 2022-11-08 14:11:19,035: DEBUG - + [[ 9 -eq 1 ]] 2022-11-08 14:11:19,035: DEBUG - + python3 -m pipenv install jupyterlab==3.5.0 jupyterhub notebook jupyterhub-ldapauthenticator pyzmq 2022-11-08 14:11:19,777: DEBUG - Installing jupyterlab==3.5.0... 2022-11-08 14:11:35,433: DEBUG - ⠋ Installing... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... ⠴ Installing jupyterlab... ⠦ Installing jupyterlab... ⠧ Installing jupyterlab... ⠇ Installing jupyterlab... ⠏ Installing jupyterlab... ⠋ Installing jupyterlab... ⠙ Installing jupyterlab... ⠹ Installing jupyterlab... ⠸ Installing jupyterlab... ⠼ Installing jupyterlab... Adding jupyterlab to Pipfile's [packages]... 2022-11-08 14:11:35,497: DEBUG - ✔ Installation Succeeded 2022-11-08 14:11:35,500: DEBUG - Installing jupyterhub... 2022-11-08 14:11:40,137: DEBUG - ⠋ Installing... ⠙ Installing jupyterhub... ⠹ Installing jupyterhub... ⠸ Installing jupyterhub... ⠼ Installing jupyterhub... ⠴ Installing jupyterhub... ⠦ Installing jupyterhub... ⠧ Installing jupyterhub... ⠇ Installing jupyterhub... ⠏ Installing jupyterhub... ⠋ Installing jupyterhub... ⠙ Installing jupyterhub... ⠹ Installing jupyterhub... ⠸ Installing jupyterhub... ⠼ Installing jupyterhub... ⠴ Installing jupyterhub... ⠦ Installing jupyterhub... ⠧ Installing jupyterhub... ⠇ Installing jupyterhub... ⠏ Installing jupyterhub... ⠋ Installing jupyterhub... ⠙ Installing jupyterhub... ⠹ Installing jupyterhub... ⠸ Installing jupyterhub... ⠼ Installing jupyterhub... ⠴ Installing jupyterhub... ⠦ Installing jupyterhub... ⠧ Installing jupyterhub... ⠇ Installing jupyterhub... ⠏ Installing jupyterhub... ⠋ Installing jupyterhub... ⠙ Installing jupyterhub... ⠹ Installing jupyterhub... ⠸ Installing jupyterhub... ⠼ Installing jupyterhub... ⠴ Installing jupyterhub... ⠦ Installing jupyterhub... ⠧ Installing jupyterhub... ⠇ Installing jupyterhub... ⠏ Installing jupyterhub... ⠋ Installing jupyterhub... ⠙ Installing jupyterhub... ⠹ Installing jupyterhub... ⠸ Installing jupyterhub... ⠼ Installing jupyterhub... ⠴ Installing jupyterhub... ⠦ Installing jupyterhub... ⠧ Installing jupyterhub... ⠇ Installing jupyterhub... ⠏ Installing jupyterhub... ⠋ Installing jupyterhub... ⠙ Installing jupyterhub... ⠹ Installing jupyterhub... ⠸ Installing jupyterhub... ⠼ Installing jupyterhub... ⠴ Installing jupyterhub... ⠦ Installing jupyterhub... ⠧ Installing jupyterhub... Error: An error occurred while installing jupyterhub! 2022-11-08 14:11:40,138: DEBUG - Error text: Collecting jupyterhub 2022-11-08 14:11:40,138: DEBUG - Downloading jupyterhub-3.0.0-py3-none-any.whl (3.8 MB) 2022-11-08 14:11:40,138: DEBUG - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 20.3 MB/s eta 0:00:00 2022-11-08 14:11:40,139: DEBUG - Requirement already satisfied: oauthlib>=3.0 in /usr/lib/python3/dist-packages (from jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (3.1.0) 2022-11-08 14:11:40,139: DEBUG - Collecting pamela 2022-11-08 14:11:40,139: DEBUG - Using cached pamela-1.0.0-py2.py3-none-any.whl (5.8 kB) 2022-11-08 14:11:40,139: DEBUG - Requirement already satisfied: python-dateutil in /usr/local/lib/python3.9/dist-packages (from jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (2.8.2) 2022-11-08 14:11:40,139: DEBUG - Collecting SQLAlchemy>=1.1 2022-11-08 14:11:40,139: DEBUG - Downloading SQLAlchemy-1.4.43-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB) 2022-11-08 14:11:40,139: DEBUG - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 52.9 MB/s eta 0:00:00 2022-11-08 14:11:40,139: DEBUG - Requirement already satisfied: traitlets>=4.3.2 in /usr/local/lib/python3.9/dist-packages (from jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (5.5.0) 2022-11-08 14:11:40,139: DEBUG - Collecting jupyter-telemetry>=0.1.0 2022-11-08 14:11:40,139: DEBUG - Using cached jupyter_telemetry-0.1.0-py3-none-any.whl (7.1 kB) 2022-11-08 14:11:40,139: DEBUG - Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (2.25.1) 2022-11-08 14:11:40,139: DEBUG - Requirement already satisfied: jinja2>=2.11.0 in /usr/local/lib/python3.9/dist-packages (from jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (3.1.2) 2022-11-08 14:11:40,139: DEBUG - Collecting alembic>=1.4 2022-11-08 14:11:40,140: DEBUG - Downloading alembic-1.8.1-py3-none-any.whl (209 kB) 2022-11-08 14:11:40,140: DEBUG - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 209.8/209.8 kB 38.4 MB/s eta 0:00:00 2022-11-08 14:11:40,140: DEBUG - Collecting async-generator>=1.9 2022-11-08 14:11:40,140: DEBUG - Using cached async_generator-1.10-py3-none-any.whl (18 kB) 2022-11-08 14:11:40,140: DEBUG - Requirement already satisfied: tornado>=5.1 in /usr/local/lib/python3.9/dist-packages (from jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (6.2) 2022-11-08 14:11:40,140: DEBUG - Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (20.9) 2022-11-08 14:11:40,140: DEBUG - Requirement already satisfied: prometheus-client>=0.4.0 in /usr/local/lib/python3.9/dist-packages (from jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (0.15.0) 2022-11-08 14:11:40,140: DEBUG - Requirement already satisfied: importlib-metadata>=3.6 in /usr/local/lib/python3.9/dist-packages (from jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (5.0.0) 2022-11-08 14:11:40,140: DEBUG - Collecting certipy>=0.1.2 2022-11-08 14:11:40,140: DEBUG - Using cached certipy-0.1.3-py3-none-any.whl (22 kB) 2022-11-08 14:11:40,140: DEBUG - Collecting Mako 2022-11-08 14:11:40,140: DEBUG - Downloading Mako-1.2.3-py3-none-any.whl (78 kB) 2022-11-08 14:11:40,140: DEBUG - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.7/78.7 kB 15.9 MB/s eta 0:00:00 2022-11-08 14:11:40,141: DEBUG - Requirement already satisfied: pyopenssl in /usr/lib/python3/dist-packages (from certipy>=0.1.2->jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (20.0.1) 2022-11-08 14:11:40,141: DEBUG - Requirement already satisfied: zipp>=0.5 in /usr/lib/python3/dist-packages (from importlib-metadata>=3.6->jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (1.0.0) 2022-11-08 14:11:40,141: DEBUG - Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-packages (from jinja2>=2.11.0->jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (2.1.1) 2022-11-08 14:11:40,141: DEBUG - Requirement already satisfied: jsonschema in /usr/lib/python3/dist-packages (from jupyter-telemetry>=0.1.0->jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (3.2.0) 2022-11-08 14:11:40,141: DEBUG - Collecting python-json-logger 2022-11-08 14:11:40,141: DEBUG - Downloading python_json_logger-2.0.4-py3-none-any.whl (7.8 kB) 2022-11-08 14:11:40,141: DEBUG - Collecting ruamel.yaml 2022-11-08 14:11:40,141: DEBUG - Using cached ruamel.yaml-0.17.21-py3-none-any.whl (109 kB) 2022-11-08 14:11:40,141: DEBUG - Collecting greenlet!=0.4.17 2022-11-08 14:11:40,141: DEBUG - Downloading greenlet-2.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (535 kB) 2022-11-08 14:11:40,141: DEBUG - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 535.9/535.9 kB 61.9 MB/s eta 0:00:00 2022-11-08 14:11:40,141: DEBUG - Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil->jupyterhub->-r /tmp/pipenv-_hkpnbsh-requirements/pipenv-ukncbqf6-requirement.txt (line 1)) (1.16.0) 2022-11-08 14:11:40,141: DEBUG - Collecting ruamel.yaml.clib>=0.2.6 2022-11-08 14:11:40,141: DEBUG - Downloading ruamel.yaml.clib-0.2.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (519 kB) 2022-11-08 14:11:40,142: DEBUG - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 519.4/519.4 kB 40.1 MB/s eta 0:00:00 2022-11-08 14:11:40,142: DEBUG - Installing collected packages: pamela, ruamel.yaml.clib, python-json-logger, Mako, greenlet, certipy, async-generator, SQLAlchemy, ruamel.yaml, jupyter-telemetry, alembic, jupyterhub 2022-11-08 14:11:40,142: DEBUG - Attempting uninstall: greenlet 2022-11-08 14:11:40,142: DEBUG - Found existing installation: greenlet 0.4.17 2022-11-08 14:11:40,142: DEBUG - 2022-11-08 14:11:40,142: DEBUG - ERROR: Cannot uninstall 'greenlet'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. 2022-11-08 14:11:40,142: DEBUG - 2022-11-08 14:11:40,185: DEBUG - ✘ Installation Failed 2022-11-08 14:11:40,341: DEBUG - + ynh_exit_properly 2022-11-08 14:11:40,848: DEBUG - + ynh_clean_setup 2022-11-08 14:11:40,848: DEBUG - + ynh_clean_check_starting 2022-11-08 14:11:40,849: DEBUG - + '[' -n '' ']' 2022-11-08 14:11:40,849: DEBUG - + '[' -n '' ']' 2022-11-08 14:11:40,849: DEBUG - + ynh_restore_upgradebackup 2022-11-08 14:11:40,849: DEBUG - + ynh_print_err '--message=Upgrade failed.' 2022-11-08 14:11:40,873: DEBUG - + ynh_print_log '[Error] Upgrade failed.' 2022-11-08 14:11:40,873: DEBUG - + echo -e '[Error] Upgrade failed.' 2022-11-08 14:11:40,874: WARNING - [Error] Upgrade failed. 2022-11-08 14:11:40,875: DEBUG - + local app_bck=jupyterlab 2022-11-08 14:11:40,875: DEBUG - + NO_BACKUP_UPGRADE=0 2022-11-08 14:11:40,875: DEBUG - + ynh_backup_archive_exists jupyterlab-pre-upgrade2 2022-11-08 14:11:40,876: DEBUG - + jq -e --arg archive jupyterlab-pre-upgrade2 '.archives | index($archive)' 2022-11-08 14:11:40,876: DEBUG - + yunohost backup list --output-as json --quiet 2022-11-08 14:11:41,090: DEBUG - + yunohost app remove jupyterlab 2022-11-08 14:11:41,284: DEBUG - Removing jupyterlab... 2022-11-08 14:11:41,625: DEBUG - [+...................] > Loading installation settings... 2022-11-08 14:11:42,379: DEBUG - [#++.................] > Removing jupyterlab service integration...--weight=2 2022-11-08 14:11:42,819: DEBUG - [###+++..............] > Stopping and removing the systemd service... 2022-11-08 14:11:43,721: DEBUG - [######++............] > Removing app main directory... 2022-11-08 14:11:45,561: DEBUG - [########++..........] > Removing NGINX web server configuration... 2022-11-08 14:11:45,977: DEBUG - [##########++++++....] > Removing dependencies... 2022-11-08 14:12:01,415: WARNING - Building PostgreSQL dictionaries from installed myspell/hunspell packages... 2022-11-08 14:12:01,417: WARNING - Removing obsolete dictionary files: 2022-11-08 14:12:05,629: DEBUG - [####################] > Removal of jupyterlab completed 2022-11-08 14:12:06,636: DEBUG - jupyterlab uninstalled 2022-11-08 14:12:06,970: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:06,993: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:06,997: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,015: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,043: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,075: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,303: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,333: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,363: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,666: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,692: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,718: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,910: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,938: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:07,965: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:08,202: DEBUG - The operation 'Remove the 'jupyterlab' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20221108-141141-app_remove-jupyterlab' to get help 2022-11-08 14:12:08,216: WARNING - This action broke dpkg/APT (the system package managers)... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a`. 2022-11-08 14:12:08,281: DEBUG - + yunohost backup restore jupyterlab-pre-upgrade2 --apps jupyterlab --force --debug 2022-11-08 14:12:08,474: DEBUG - 145 initializing base actions map parser for cli 2022-11-08 14:12:08,474: DEBUG - 146 loading actions map 2022-11-08 14:12:08,475: DEBUG - 147 building parser... 2022-11-08 14:12:08,478: DEBUG - 150 building parser took 0.003s 2022-11-08 14:12:08,479: DEBUG - 151 acquiring lock... 2022-11-08 14:12:08,505: DEBUG - 176 loading python module yunohost.backup took 0.015s 2022-11-08 14:12:08,505: DEBUG - 177 processing action [28645.1]: yunohost.backup.restore with args={'name': 'jupyterlab-pre-upgrade2', 'system': None, 'apps': ['jupyterlab'], 'force': True} 2022-11-08 14:12:08,506: DEBUG - 178 Preparing archive for restoration... 2022-11-08 14:12:08,507: DEBUG - 178 Extracting needed files from the archive... 2022-11-08 14:12:42,097: DEBUG - 33767 restoring from backup 'jupyterlab-pre-upgrade2' created on 2022-11-08 14:09:15 2022-11-08 14:12:42,130: DEBUG - 33801 Restoring jupyterlab... 2022-11-08 14:12:42,137: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,147: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,152: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,160: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,167: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,172: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,176: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,180: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,184: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,191: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,195: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,201: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,317: DEBUG - 33989 initializing ldap interface 2022-11-08 14:12:42,495: DEBUG - 34167 Permission 'jupyterlab.main' updated 2022-11-08 14:12:42,552: DEBUG - 34224 To view the log of the operation 'Update URL related to permission 'jupyterlab'', use the command 'yunohost log show 20221108-141242-permission_url-jupyterlab' 2022-11-08 14:12:42,677: DEBUG - 34349 Permission 'jupyterlab.main' created 2022-11-08 14:12:42,678: DEBUG - 34349 To view the log of the operation 'Create permission 'jupyterlab'', use the command 'yunohost log show 20221108-141242-permission_create-jupyterlab' 2022-11-08 14:12:42,756: DEBUG - 34426 The permission database has been resynchronized 2022-11-08 14:12:42,822: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,846: DEBUG - 34518 SSOwat configuration regenerated 2022-11-08 14:12:42,847: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,852: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:12:42,859: DEBUG - 34530 Loading migration 0021_migrate_to_bullseye... 2022-11-08 14:12:42,861: DEBUG - 34533 Loading migration 0023_postgresql_11_to_13... 2022-11-08 14:12:42,862: DEBUG - 34534 Loading migration 0022_php73_to_php74_pools... 2022-11-08 14:12:42,863: DEBUG - 34535 Loading migration 0024_rebuild_python_venv... 2022-11-08 14:12:42,893: DEBUG - 34565 Restoring the app 'jupyterlab'... 2022-11-08 14:12:42,932: DEBUG - 34603 Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_bn3cnyua/restore" 7>&1']' 2022-11-08 14:12:42,945: DEBUG - 34617 + source ../settings/scripts/_common.sh 2022-11-08 14:12:42,946: DEBUG - 34617 ++ pkg_dependencies='python3-dev python3-pip libffi-dev libzmq3-dev' 2022-11-08 14:12:42,946: DEBUG - 34617 ++ nodejs_version=16 2022-11-08 14:12:42,946: DEBUG - 34617 ++ jupyterlab_version=3.4.2 2022-11-08 14:12:42,946: DEBUG - 34617 + source /usr/share/yunohost/helpers 2022-11-08 14:12:42,947: DEBUG - 34618 +++ set +o 2022-11-08 14:12:42,947: DEBUG - 34618 +++ grep xtrace 2022-11-08 14:12:42,950: DEBUG - 34621 ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2022-11-08 14:12:42,950: DEBUG - 34621 ++ XTRACE_ENABLE='set -o xtrace' 2022-11-08 14:12:42,996: DEBUG - 34668 + ynh_abort_if_errors 2022-11-08 14:12:42,997: DEBUG - 34669 + trap ynh_exit_properly EXIT 2022-11-08 14:12:43,121: DEBUG - 34792 + echo '[....................] > Loading installation settings...' 2022-11-08 14:12:43,122: DEBUG - 34793 [....................] > Loading installation settings... 2022-11-08 14:12:43,122: DEBUG - 34794 + app=jupyterlab 2022-11-08 14:12:43,122: DEBUG - 34794 ++ ynh_app_setting_get --app=jupyterlab --key=domain 2022-11-08 14:12:43,122: DEBUG - 34794 ++ local _globalapp=jupyterlab 2022-11-08 14:12:43,170: DEBUG - 34842 ++ app=jupyterlab 2022-11-08 14:12:43,171: DEBUG - 34842 ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:12:43,171: DEBUG - 34843 ++ ynh_app_setting get jupyterlab domain 2022-11-08 14:12:43,264: DEBUG - 34934 + domain=lab.domain2.tld 2022-11-08 14:12:43,267: DEBUG - 34935 ++ ynh_app_setting_get --app=jupyterlab --key=path 2022-11-08 14:12:43,267: DEBUG - 34937 ++ local _globalapp=jupyterlab 2022-11-08 14:12:43,316: DEBUG - 34988 ++ app=jupyterlab 2022-11-08 14:12:43,317: DEBUG - 34988 ++ [[ path =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:12:43,317: DEBUG - 34988 ++ ynh_app_setting get jupyterlab path 2022-11-08 14:12:43,384: DEBUG - 35056 + path_url=/ 2022-11-08 14:12:43,386: DEBUG - 35057 ++ ynh_app_setting_get --app=jupyterlab --key=final_path 2022-11-08 14:12:43,386: DEBUG - 35057 ++ local _globalapp=jupyterlab 2022-11-08 14:12:43,434: DEBUG - 35105 ++ app=jupyterlab 2022-11-08 14:12:43,434: DEBUG - 35105 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:12:43,435: DEBUG - 35106 ++ ynh_app_setting get jupyterlab final_path 2022-11-08 14:12:43,500: DEBUG - 35171 + final_path=/opt/jupyterlab 2022-11-08 14:12:43,501: DEBUG - 35172 ++ ynh_app_setting_get --app=jupyterlab --key=admin 2022-11-08 14:12:43,501: DEBUG - 35173 ++ local _globalapp=jupyterlab 2022-11-08 14:12:43,540: DEBUG - 35212 ++ app=jupyterlab 2022-11-08 14:12:43,541: DEBUG - 35212 ++ [[ admin =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:12:43,541: DEBUG - 35212 ++ ynh_app_setting get jupyterlab admin 2022-11-08 14:12:43,605: DEBUG - 35276 + admin=mydoom 2022-11-08 14:12:43,715: DEBUG - 35387 + echo '[....................] > Validating restoration parameters...' 2022-11-08 14:12:43,716: DEBUG - 35387 + test '!' -d /opt/jupyterlab 2022-11-08 14:12:43,716: DEBUG - 35388 [....................] > Validating restoration parameters... 2022-11-08 14:12:43,787: DEBUG - 35458 + echo '[....................] > Restoring the NGINX web server configuration...' 2022-11-08 14:12:43,787: DEBUG - 35459 [....................] > Restoring the NGINX web server configuration... 2022-11-08 14:12:43,787: DEBUG - 35459 + ynh_restore_file --origin_path=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:12:43,822: DEBUG - 35493 + origin_path=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:12:43,823: DEBUG - 35494 + dest_path=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:12:43,823: DEBUG - 35494 + not_mandatory=0 2022-11-08 14:12:43,823: DEBUG - 35494 + local archive_path=/home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:12:43,823: DEBUG - 35494 + '[' '!' -d /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf ']' 2022-11-08 14:12:43,823: DEBUG - 35494 + '[' '!' -f /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf ']' 2022-11-08 14:12:43,824: DEBUG - 35495 + [[ -e /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf ]] 2022-11-08 14:12:43,824: DEBUG - 35496 ++ dirname /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:12:43,826: DEBUG - 35497 + mkdir --parents /etc/nginx/conf.d/lab.domain2.tld.d 2022-11-08 14:12:43,830: DEBUG - 35501 + mountpoint --quiet /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2 2022-11-08 14:12:43,836: DEBUG - 35507 + mv /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:12:43,840: DEBUG - 35512 + [[ /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]] 2022-11-08 14:12:43,840: DEBUG - 35512 + grep 'php7.3.*sock' /etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:12:43,963: DEBUG - 35632 + echo '[+...................] > Restoring the app main directory...' 2022-11-08 14:12:43,964: DEBUG - 35632 + ynh_restore_file --origin_path=/opt/jupyterlab 2022-11-08 14:12:43,966: DEBUG - 35635 [+...................] > Restoring the app main directory... 2022-11-08 14:12:44,006: DEBUG - 35676 + origin_path=/opt/jupyterlab 2022-11-08 14:12:44,006: DEBUG - 35677 + dest_path=/opt/jupyterlab 2022-11-08 14:12:44,006: DEBUG - 35677 + not_mandatory=0 2022-11-08 14:12:44,007: DEBUG - 35677 + local archive_path=/home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/opt/jupyterlab 2022-11-08 14:12:44,007: DEBUG - 35677 + '[' '!' -d /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/opt/jupyterlab ']' 2022-11-08 14:12:44,007: DEBUG - 35677 + [[ -e /opt/jupyterlab ]] 2022-11-08 14:12:44,008: DEBUG - 35679 ++ dirname /opt/jupyterlab 2022-11-08 14:12:44,008: DEBUG - 35680 + mkdir --parents /opt 2022-11-08 14:12:44,009: DEBUG - 35681 + mountpoint --quiet /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2 2022-11-08 14:12:44,012: DEBUG - 35684 + mv /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/backup/opt/jupyterlab /opt/jupyterlab 2022-11-08 14:12:44,014: DEBUG - 35686 + [[ /opt/jupyterlab == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]] 2022-11-08 14:12:44,014: DEBUG - 35686 + chown -R root: /opt/jupyterlab/ 2022-11-08 14:12:44,588: DEBUG - 36259 + chown -R mydoom: /opt/jupyterlab/.venv/ 2022-11-08 14:12:45,285: DEBUG - 36957 + echo '[#++++++++++++++++...] > Reinstalling dependencies...' 2022-11-08 14:12:45,287: DEBUG - 36958 [#++++++++++++++++...] > Reinstalling dependencies... 2022-11-08 14:12:45,287: DEBUG - 36958 + ynh_install_app_dependencies python3-dev python3-pip libffi-dev libzmq3-dev 2022-11-08 14:12:45,287: DEBUG - 36958 + local 'dependencies=python3-dev python3-pip libffi-dev libzmq3-dev' 2022-11-08 14:12:45,288: DEBUG - 36959 ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2022-11-08 14:12:45,289: DEBUG - 36960 ++ echo 'python3-dev python3-pip libffi-dev libzmq3-dev' 2022-11-08 14:12:45,290: DEBUG - 36962 + dependencies='python3-dev, python3-pip, libffi-dev, libzmq3-dev' 2022-11-08 14:12:45,291: DEBUG - 36962 + local 'dependencies=python3-dev, python3-pip, libffi-dev, libzmq3-dev' 2022-11-08 14:12:45,291: DEBUG - 36963 + local manifest_path=/home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/settings/manifest.json 2022-11-08 14:12:45,292: DEBUG - 36963 ++ jq -r .version /home/yunohost.backup/tmp/jupyterlab-pre-upgrade2/apps/jupyterlab/settings/manifest.json 2022-11-08 14:12:45,350: DEBUG - 37021 + local version=3.4.2~ynh1 2022-11-08 14:12:45,350: DEBUG - 37021 + '[' -z 3.4.2~ynh1 ']' 2022-11-08 14:12:45,351: DEBUG - 37022 + '[' 3.4.2~ynh1 == null ']' 2022-11-08 14:12:45,351: DEBUG - 37022 + local dep_app=jupyterlab 2022-11-08 14:12:45,351: DEBUG - 37022 + [[ python3-dev, python3-pip, libffi-dev, libzmq3-dev =~ [<=>] ]] 2022-11-08 14:12:45,351: DEBUG - 37022 ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 2022-11-08 14:12:45,351: DEBUG - 37023 ++ sort -u 2022-11-08 14:12:45,354: DEBUG - 37026 ++ echo python3-dev, python3-pip, libffi-dev, libzmq3-dev 2022-11-08 14:12:45,357: DEBUG - 37028 + local specific_php_version= 2022-11-08 14:12:45,357: DEBUG - 37028 + grep --quiet php 2022-11-08 14:12:45,360: DEBUG - 37032 ++ ynh_package_is_installed postgresql-13 2022-11-08 14:12:45,376: DEBUG - 37047 ++ ynh_wait_dpkg_free 2022-11-08 14:12:45,497: DEBUG - 37168 ++ return 0 2022-11-08 14:12:45,498: DEBUG - 37169 ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2022-11-08 14:12:45,498: DEBUG - 37170 ++ grep --count 'ok installed' 2022-11-08 14:12:45,535: DEBUG - 37206 ++ echo yes 2022-11-08 14:12:45,537: DEBUG - 37207 + local psql_installed=yes 2022-11-08 14:12:45,537: DEBUG - 37208 + [[ true == \t\r\u\e ]] 2022-11-08 14:12:45,537: DEBUG - 37208 + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 2022-11-08 14:12:45,537: DEBUG - 37208 + cat 2022-11-08 14:12:45,538: DEBUG - 37210 + ynh_package_install_from_equivs /tmp/jupyterlab-ynh-deps.control 2022-11-08 14:12:45,539: DEBUG - 37210 + local controlfile=/tmp/jupyterlab-ynh-deps.control 2022-11-08 14:12:45,540: DEBUG - 37211 ++ cut '--delimiter= ' --fields=2 2022-11-08 14:12:45,541: DEBUG - 37212 ++ grep '^Package: ' /tmp/jupyterlab-ynh-deps.control 2022-11-08 14:12:45,546: DEBUG - 37217 + local pkgname=jupyterlab-ynh-deps 2022-11-08 14:12:45,547: DEBUG - 37219 ++ cut '--delimiter= ' --fields=2 2022-11-08 14:12:45,547: DEBUG - 37219 ++ grep '^Version: ' /tmp/jupyterlab-ynh-deps.control 2022-11-08 14:12:45,551: DEBUG - 37222 + local pkgversion=3.4.2~ynh1 2022-11-08 14:12:45,552: DEBUG - 37223 + [[ -z jupyterlab-ynh-deps ]] 2022-11-08 14:12:45,552: DEBUG - 37223 + [[ -z 3.4.2~ynh1 ]] 2022-11-08 14:12:45,552: DEBUG - 37223 + ynh_package_update 2022-11-08 14:12:45,552: DEBUG - 37223 + ynh_apt update 2022-11-08 14:12:45,552: DEBUG - 37223 + ynh_wait_dpkg_free 2022-11-08 14:12:45,670: DEBUG - 37341 + return 0 2022-11-08 14:12:45,671: DEBUG - 37342 + LC_ALL=C 2022-11-08 14:12:45,672: DEBUG - 37343 + DEBIAN_FRONTEND=noninteractive 2022-11-08 14:12:45,672: DEBUG - 37343 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2022-11-08 14:12:45,926: DEBUG - 37597 Hit:1 http://security.debian.org bullseye-security InRelease 2022-11-08 14:12:45,926: DEBUG - 37598 Hit:2 http://mirror.hetzner.com/debian/packages bullseye InRelease 2022-11-08 14:12:45,929: DEBUG - 37600 Hit:3 http://deb.debian.org/debian bullseye InRelease 2022-11-08 14:12:45,933: DEBUG - 37604 Hit:4 http://forge.yunohost.org/debian bullseye InRelease 2022-11-08 14:12:45,935: DEBUG - 37606 Hit:5 http://mirror.hetzner.com/debian/packages bullseye-updates InRelease 2022-11-08 14:12:45,951: DEBUG - 37623 Hit:6 http://deb.debian.org/debian bullseye-updates InRelease 2022-11-08 14:12:45,960: DEBUG - 37632 Hit:7 http://mirror.hetzner.com/debian/security bullseye-security InRelease 2022-11-08 14:12:46,018: DEBUG - 37690 Hit:8 https://packages.sury.org/php bullseye InRelease 2022-11-08 14:12:48,499: DEBUG - 40169 Reading package lists... 2022-11-08 14:12:48,517: DEBUG - 40188 ++ mktemp --directory 2022-11-08 14:12:48,519: DEBUG - 40190 + local TMPDIR=/tmp/tmp.DK3wOcv2Yg 2022-11-08 14:12:48,519: DEBUG - 40191 + rm -f /usr/share/equivs/template/debian/compat 2022-11-08 14:12:48,520: DEBUG - 40192 + ynh_wait_dpkg_free 2022-11-08 14:12:48,632: DEBUG - 40303 + return 0 2022-11-08 14:12:48,632: DEBUG - 40303 + cp /tmp/jupyterlab-ynh-deps.control /tmp/tmp.DK3wOcv2Yg/control 2022-11-08 14:12:48,634: DEBUG - 40306 + cd /tmp/tmp.DK3wOcv2Yg 2022-11-08 14:12:48,634: DEBUG - 40306 + LC_ALL=C 2022-11-08 14:12:48,635: DEBUG - 40307 + equivs-build ./control 2022-11-08 14:12:48,942: DEBUG - 40613 dpkg-buildpackage: info: source package jupyterlab-ynh-deps 2022-11-08 14:12:48,942: DEBUG - 40613 dpkg-buildpackage: info: source version 3.4.2~ynh1 2022-11-08 14:12:48,942: DEBUG - 40613 dpkg-buildpackage: info: source distribution unstable 2022-11-08 14:12:48,943: DEBUG - 40613 dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@maindomain.tld> 2022-11-08 14:12:49,008: DEBUG - 40679 dpkg-source --before-build . 2022-11-08 14:12:49,008: DEBUG - 40679 dpkg-buildpackage: info: host architecture amd64 2022-11-08 14:12:49,164: DEBUG - 40835 debian/rules clean 2022-11-08 14:12:49,170: DEBUG - 40841 dh clean 2022-11-08 14:12:49,294: DEBUG - 40965 dh_clean 2022-11-08 14:12:49,335: DEBUG - 41006 debian/rules binary 2022-11-08 14:12:49,337: DEBUG - 41008 dh binary 2022-11-08 14:12:49,441: DEBUG - 41112 dh_update_autotools_config 2022-11-08 14:12:49,483: DEBUG - 41154 dh_autoreconf 2022-11-08 14:12:49,553: DEBUG - 41224 create-stamp debian/debhelper-build-stamp 2022-11-08 14:12:49,553: DEBUG - 41225 dh_prep 2022-11-08 14:12:49,595: DEBUG - 41266 dh_install 2022-11-08 14:12:49,636: DEBUG - 41307 dh_installdocs 2022-11-08 14:12:49,688: DEBUG - 41360 dh_installchangelogs 2022-11-08 14:12:49,820: DEBUG - 41491 dh_perl 2022-11-08 14:12:49,861: DEBUG - 41532 dh_link 2022-11-08 14:12:49,914: DEBUG - 41586 dh_strip_nondeterminism 2022-11-08 14:12:50,017: DEBUG - 41688 dh_compress 2022-11-08 14:12:50,073: DEBUG - 41745 dh_fixperms 2022-11-08 14:12:50,143: DEBUG - 41815 dh_missing 2022-11-08 14:12:50,190: DEBUG - 41861 dh_installdeb 2022-11-08 14:12:50,243: DEBUG - 41915 dh_gencontrol 2022-11-08 14:12:50,422: DEBUG - 42093 dh_md5sums 2022-11-08 14:12:50,480: DEBUG - 42151 dh_builddeb 2022-11-08 14:12:50,522: DEBUG - 42194 dpkg-deb: building package 'jupyterlab-ynh-deps' in '../jupyterlab-ynh-deps_3.4.2~ynh1_all.deb'. 2022-11-08 14:12:50,554: DEBUG - 42225 dpkg-genbuildinfo --build=binary 2022-11-08 14:12:51,274: DEBUG - 42946 dpkg-genchanges --build=binary >../jupyterlab-ynh-deps_3.4.2~ynh1_amd64.changes 2022-11-08 14:12:51,379: DEBUG - 43050 dpkg-genchanges: info: binary-only upload (no source code included) 2022-11-08 14:12:51,383: DEBUG - 43055 dpkg-source --after-build . 2022-11-08 14:12:51,510: DEBUG - 43181 dpkg-buildpackage: info: binary-only upload (no source included) 2022-11-08 14:12:51,517: DEBUG - 43188 2022-11-08 14:12:51,518: DEBUG - 43188 The package has been created. 2022-11-08 14:12:51,518: DEBUG - 43189 Attention, the package has been created in the current directory, 2022-11-08 14:12:51,518: DEBUG - 43189 not in ".." as indicated by the message above! 2022-11-08 14:12:51,519: DEBUG - 43190 + tee ./dpkg_log 2022-11-08 14:12:51,520: DEBUG - 43191 + LC_ALL=C 2022-11-08 14:12:51,520: DEBUG - 43191 + dpkg --force-depends --install ./jupyterlab-ynh-deps_3.4.2~ynh1_all.deb 2022-11-08 14:12:51,578: DEBUG - 43249 Selecting previously unselected package jupyterlab-ynh-deps. 2022-11-08 14:12:51,993: DEBUG - 43664 (Reading database ... 133534 files and directories currently installed.) 2022-11-08 14:12:52,003: DEBUG - 43674 Preparing to unpack .../jupyterlab-ynh-deps_3.4.2~ynh1_all.deb ... 2022-11-08 14:12:52,005: DEBUG - 43676 Unpacking jupyterlab-ynh-deps (3.4.2~ynh1) ... 2022-11-08 14:12:52,037: DEBUG - 43708 dpkg: jupyterlab-ynh-deps: dependency problems, but configuring anyway as you requested: 2022-11-08 14:12:52,038: DEBUG - 43709 jupyterlab-ynh-deps depends on libffi-dev; however: 2022-11-08 14:12:52,038: DEBUG - 43709 Package libffi-dev is not installed. 2022-11-08 14:12:52,038: DEBUG - 43709 jupyterlab-ynh-deps depends on libzmq3-dev; however: 2022-11-08 14:12:52,038: DEBUG - 43709 Package libzmq3-dev is not installed. 2022-11-08 14:12:52,038: DEBUG - 43709 2022-11-08 14:12:52,038: DEBUG - 43709 Setting up jupyterlab-ynh-deps (3.4.2~ynh1) ... 2022-11-08 14:12:52,085: DEBUG - 43756 + ynh_package_install --fix-broken 2022-11-08 14:12:52,086: DEBUG - 43757 + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2022-11-08 14:12:52,086: DEBUG - 43757 + ynh_wait_dpkg_free 2022-11-08 14:12:52,211: DEBUG - 43882 + return 0 2022-11-08 14:12:52,211: DEBUG - 43882 + LC_ALL=C 2022-11-08 14:12:52,211: DEBUG - 43882 + DEBIAN_FRONTEND=noninteractive 2022-11-08 14:12:52,211: DEBUG - 43882 + 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 2022-11-08 14:12:52,375: DEBUG - 44047 Reading package lists... 2022-11-08 14:12:52,610: DEBUG - 44282 Building dependency tree... 2022-11-08 14:12:52,611: DEBUG - 44283 Reading state information... 2022-11-08 14:12:52,738: DEBUG - 44409 Correcting dependencies... Done 2022-11-08 14:12:52,913: DEBUG - 44585 The following packages will be REMOVED: 2022-11-08 14:12:52,914: DEBUG - 44586 jupyterlab-ynh-deps 2022-11-08 14:12:52,928: WARNING - 44599 E: Packages need to be removed but remove is disabled. 2022-11-08 14:12:52,930: DEBUG - 44600 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 2022-11-08 14:12:52,930: DEBUG - 44602 ++ cat /tmp/tmp.DK3wOcv2Yg/dpkg_log 2022-11-08 14:12:52,931: DEBUG - 44603 ++ grep -oP '(?<=-ynh-deps depends on ).*(?=; however)' 2022-11-08 14:12:52,933: DEBUG - 44604 ++ tr '\n' ' ' 2022-11-08 14:12:52,934: DEBUG - 44606 + local 'problematic_dependencies=libffi-dev libzmq3-dev ' 2022-11-08 14:12:52,935: DEBUG - 44607 + [[ -n libffi-dev libzmq3-dev ]] 2022-11-08 14:12:52,936: DEBUG - 44607 + grep -v 'fix-broken\|Reading state info' 2022-11-08 14:12:52,936: DEBUG - 44608 + sed --quiet '/Reading state info/,$p' 2022-11-08 14:12:52,937: DEBUG - 44609 + ynh_package_install libffi-dev libzmq3-dev --dry-run 2022-11-08 14:12:52,938: DEBUG - 44610 + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install libffi-dev libzmq3-dev --dry-run 2022-11-08 14:12:52,938: DEBUG - 44610 + ynh_wait_dpkg_free 2022-11-08 14:12:53,051: DEBUG - 44722 + return 0 2022-11-08 14:12:53,052: DEBUG - 44722 + LC_ALL=C 2022-11-08 14:12:53,052: DEBUG - 44723 + DEBIAN_FRONTEND=noninteractive 2022-11-08 14:12:53,052: DEBUG - 44723 + 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 libffi-dev libzmq3-dev --dry-run 2022-11-08 14:12:53,448: WARNING - 45120 The following packages have unmet dependencies: 2022-11-08 14:12:53,449: WARNING - 45120 libzmq3-dev : Depends: libpgm-dev (>= 5.2.122~dfsg) but it is not going to be installed 2022-11-08 14:12:53,450: WARNING - 45120 Depends: libsodium-dev but it is not going to be installed 2022-11-08 14:12:53,450: WARNING - 45121 Depends: libnorm-dev but it is not going to be installed 2022-11-08 14:12:53,451: WARNING - 45121 Depends: libkrb5-dev but it is not going to be installed 2022-11-08 14:12:53,451: WARNING - 45121 Depends: libbsd-dev but it is not going to be installed 2022-11-08 14:12:53,452: DEBUG - 45123 + ynh_die '--message=Unable to install dependencies' 2022-11-08 14:12:53,487: DEBUG - 45156 + echo 'Unable to install dependencies' 2022-11-08 14:12:53,487: DEBUG - 45156 + exit 1 2022-11-08 14:12:53,487: DEBUG - 45156 + ynh_exit_properly 2022-11-08 14:12:53,488: WARNING - 45157 Unable to install dependencies 2022-11-08 14:12:53,994: DEBUG - 45666 + ynh_clean_setup 2022-11-08 14:12:53,994: DEBUG - 45666 + ynh_clean_check_starting 2022-11-08 14:12:53,995: DEBUG - 45666 + '[' -n '' ']' 2022-11-08 14:12:53,995: DEBUG - 45667 + '[' -n '' ']' 2022-11-08 14:12:53,995: DEBUG - 45667 + exit 1 2022-11-08 14:12:55,001: WARNING - 46672 Could not restore jupyterlab: An error occured inside the app restore script 2022-11-08 14:12:55,003: DEBUG - 46674 The operation 'Restore 'jupyterlab' from a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20221108-141242-backup_restore_app-jupyterlab' to get help 2022-11-08 14:12:55,036: WARNING - 46707 Here's an extract of the logs before the crash. It might help debugging the error: 2022-11-08 14:12:55,038: DEBUG - 46707 DEBUG - ++ tr '\n' ' ' 2022-11-08 14:12:55,038: DEBUG - 46707 DEBUG - + local 'problematic_dependencies=libffi-dev libzmq3-dev ' 2022-11-08 14:12:55,038: DEBUG - 46708 DEBUG - + [[ -n libffi-dev libzmq3-dev ]] 2022-11-08 14:12:55,039: DEBUG - 46708 DEBUG - + grep -v 'fix-broken\|Reading state info' 2022-11-08 14:12:55,039: DEBUG - 46708 DEBUG - + sed --quiet '/Reading state info/,$p' 2022-11-08 14:12:55,039: DEBUG - 46708 DEBUG - + ynh_package_install libffi-dev libzmq3-dev --dry-run 2022-11-08 14:12:55,039: DEBUG - 46708 DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install libffi-dev libzmq3-dev --dry-run 2022-11-08 14:12:55,040: DEBUG - 46708 DEBUG - + ynh_wait_dpkg_free 2022-11-08 14:12:55,040: DEBUG - 46708 DEBUG - + return 0 2022-11-08 14:12:55,041: DEBUG - 46708 DEBUG - + LC_ALL=C 2022-11-08 14:12:55,041: DEBUG - 46708 DEBUG - + DEBIAN_FRONTEND=noninteractive 2022-11-08 14:12:55,041: DEBUG - 46708 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 libffi-dev libzmq3-dev --dry-run 2022-11-08 14:12:55,041: DEBUG - 46708 WARNING - The following packages have unmet dependencies: 2022-11-08 14:12:55,042: DEBUG - 46708 WARNING - libzmq3-dev : Depends: libpgm-dev (>= 5.2.122~dfsg) but it is not going to be installed 2022-11-08 14:12:55,042: DEBUG - 46708 WARNING - Depends: libsodium-dev but it is not going to be installed 2022-11-08 14:12:55,042: DEBUG - 46708 WARNING - Depends: libnorm-dev but it is not going to be installed 2022-11-08 14:12:55,042: DEBUG - 46708 WARNING - Depends: libkrb5-dev but it is not going to be installed 2022-11-08 14:12:55,042: DEBUG - 46709 WARNING - Depends: libbsd-dev but it is not going to be installed 2022-11-08 14:12:55,043: DEBUG - 46709 DEBUG - + ynh_die '--message=Unable to install dependencies' 2022-11-08 14:12:55,043: DEBUG - 46709 DEBUG - + ynh_exit_properly 2022-11-08 14:12:55,059: DEBUG - 46730 Executing command '['sh', '-c', '/bin/bash -x "./remove" 7>&1']' 2022-11-08 14:12:55,069: DEBUG - 46740 + source _common.sh 2022-11-08 14:12:55,070: DEBUG - 46741 ++ pkg_dependencies='python3-dev python3-pip libffi-dev libzmq3-dev' 2022-11-08 14:12:55,071: DEBUG - 46742 ++ nodejs_version=16 2022-11-08 14:12:55,071: DEBUG - 46742 ++ jupyterlab_version=3.4.2 2022-11-08 14:12:55,071: DEBUG - 46742 + source /usr/share/yunohost/helpers 2022-11-08 14:12:55,072: DEBUG - 46744 +++ set +o 2022-11-08 14:12:55,073: DEBUG - 46745 +++ grep xtrace 2022-11-08 14:12:55,076: DEBUG - 46748 ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2022-11-08 14:12:55,077: DEBUG - 46749 ++ XTRACE_ENABLE='set -o xtrace' 2022-11-08 14:12:55,245: DEBUG - 46915 + echo '[+...................] > Loading installation settings...' 2022-11-08 14:12:55,245: DEBUG - 46916 [+...................] > Loading installation settings... 2022-11-08 14:12:55,246: DEBUG - 46918 + app=jupyterlab 2022-11-08 14:12:55,247: DEBUG - 46918 ++ ynh_app_setting_get --app=jupyterlab --key=domain 2022-11-08 14:12:55,247: DEBUG - 46919 ++ local _globalapp=jupyterlab 2022-11-08 14:12:55,298: DEBUG - 46969 ++ app=jupyterlab 2022-11-08 14:12:55,298: DEBUG - 46970 ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:12:55,299: DEBUG - 46970 ++ ynh_app_setting get jupyterlab domain 2022-11-08 14:12:55,353: DEBUG - 47025 + domain=lab.domain2.tld 2022-11-08 14:12:55,355: DEBUG - 47026 ++ ynh_app_setting_get --app=jupyterlab --key=final_path 2022-11-08 14:12:55,355: DEBUG - 47027 ++ local _globalapp=jupyterlab 2022-11-08 14:12:55,412: DEBUG - 47083 ++ app=jupyterlab 2022-11-08 14:12:55,413: DEBUG - 47084 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:12:55,413: DEBUG - 47085 ++ ynh_app_setting get jupyterlab final_path 2022-11-08 14:12:55,487: DEBUG - 47158 + final_path=/opt/jupyterlab 2022-11-08 14:12:55,488: DEBUG - 47159 + ynh_exec_warn_less yunohost service status jupyterlab 2022-11-08 14:12:55,488: DEBUG - 47159 + [[ 4 -eq 1 ]] 2022-11-08 14:12:55,489: DEBUG - 47160 + yunohost service status jupyterlab 2022-11-08 14:12:56,122: DEBUG - 47793 + echo '[#++++...............] > Stopping and removing the systemd service...' 2022-11-08 14:12:56,122: DEBUG - 47793 + ynh_remove_systemd_config 2022-11-08 14:12:56,123: DEBUG - 47795 + local service=jupyterlab 2022-11-08 14:12:56,123: DEBUG - 47795 + local finalsystemdconf=/etc/systemd/system/jupyterlab.service 2022-11-08 14:12:56,123: DEBUG - 47795 + '[' -e /etc/systemd/system/jupyterlab.service ']' 2022-11-08 14:12:56,124: DEBUG - 47795 [#++++...............] > Stopping and removing the systemd service... 2022-11-08 14:12:56,242: DEBUG - 47912 + echo '[#####+..............] > Removing app main directory...' 2022-11-08 14:12:56,242: DEBUG - 47913 [#####+..............] > Removing app main directory... 2022-11-08 14:12:56,242: DEBUG - 47913 + ynh_secure_remove --file=/opt/jupyterlab 2022-11-08 14:12:58,060: DEBUG - 49732 + echo '[######++............] > Removing NGINX web server configuration...' 2022-11-08 14:12:58,061: DEBUG - 49732 [######++............] > Removing NGINX web server configuration... 2022-11-08 14:12:58,061: DEBUG - 49732 + ynh_remove_nginx_config 2022-11-08 14:12:58,061: DEBUG - 49732 + ynh_secure_remove --file=/etc/nginx/conf.d/lab.domain2.tld.d/jupyterlab.conf 2022-11-08 14:12:58,097: DEBUG - 49768 + ynh_systemd_action --service_name=nginx --action=reload 2022-11-08 14:12:58,228: DEBUG - 49900 + service_name=nginx 2022-11-08 14:12:58,229: DEBUG - 49900 + action=reload 2022-11-08 14:12:58,229: DEBUG - 49900 + line_match= 2022-11-08 14:12:58,229: DEBUG - 49900 + length=20 2022-11-08 14:12:58,229: DEBUG - 49900 + log_path=/var/log/nginx/nginx.log 2022-11-08 14:12:58,229: DEBUG - 49901 + timeout=300 2022-11-08 14:12:58,229: DEBUG - 49901 + '[' reload == stop ']' 2022-11-08 14:12:58,229: DEBUG - 49901 + '[' reload == reload ']' 2022-11-08 14:12:58,230: DEBUG - 49901 + action=reload-or-restart 2022-11-08 14:12:58,230: DEBUG - 49901 + systemctl reload-or-restart nginx 2022-11-08 14:12:58,511: DEBUG - 50183 + echo '[########+++++++.....] > Removing dependencies...' 2022-11-08 14:12:58,511: DEBUG - 50183 [########+++++++.....] > Removing dependencies... 2022-11-08 14:12:58,512: DEBUG - 50184 + ynh_remove_app_dependencies 2022-11-08 14:12:58,513: DEBUG - 50184 + local dep_app=jupyterlab 2022-11-08 14:12:58,513: DEBUG - 50184 + local current_dependencies= 2022-11-08 14:12:58,513: DEBUG - 50184 + ynh_package_is_installed --package=jupyterlab-ynh-deps 2022-11-08 14:12:58,527: DEBUG - 50198 + ynh_wait_dpkg_free 2022-11-08 14:12:58,641: DEBUG - 50312 + return 0 2022-11-08 14:12:58,641: DEBUG - 50313 + grep --count 'ok installed' 2022-11-08 14:12:58,642: DEBUG - 50313 + dpkg-query --show '--showformat=${Status}' jupyterlab-ynh-deps 2022-11-08 14:12:58,659: DEBUG - 50330 ++ dpkg-query --show '--showformat=${Depends}' jupyterlab-ynh-deps 2022-11-08 14:12:58,675: DEBUG - 50346 + current_dependencies='python3-dev, python3-pip, libffi-dev, libzmq3-dev ' 2022-11-08 14:12:58,676: DEBUG - 50347 + current_dependencies='python3-dev, python3-pip, libffi-dev, libzmq3-dev ' 2022-11-08 14:12:58,676: DEBUG - 50347 + apt-mark showhold 2022-11-08 14:12:58,677: DEBUG - 50349 + grep -q -w jupyterlab-ynh-deps 2022-11-08 14:12:58,750: DEBUG - 50420 + ynh_package_autopurge jupyterlab-ynh-deps 2022-11-08 14:12:58,750: DEBUG - 50420 + ynh_apt autoremove --purge jupyterlab-ynh-deps 2022-11-08 14:12:58,750: DEBUG - 50421 + ynh_wait_dpkg_free 2022-11-08 14:12:58,863: DEBUG - 50533 + return 0 2022-11-08 14:12:58,863: DEBUG - 50534 + LC_ALL=C 2022-11-08 14:12:58,863: DEBUG - 50534 + DEBIAN_FRONTEND=noninteractive 2022-11-08 14:12:58,863: DEBUG - 50534 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge jupyterlab-ynh-deps 2022-11-08 14:12:58,909: DEBUG - 50581 Reading package lists... 2022-11-08 14:12:59,124: DEBUG - 50796 Building dependency tree... 2022-11-08 14:12:59,125: DEBUG - 50797 Reading state information... 2022-11-08 14:12:59,351: DEBUG - 51022 The following packages will be REMOVED: 2022-11-08 14:12:59,352: DEBUG - 51023 jupyterlab-ynh-deps* 2022-11-08 14:12:59,905: DEBUG - 51576 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 2022-11-08 14:12:59,906: DEBUG - 51577 After this operation, 9216 B disk space will be freed. 2022-11-08 14:13:00,045: DEBUG - 51716 (Reading database ... 133537 files and directories currently installed.) 2022-11-08 14:13:00,050: DEBUG - 51721 Removing jupyterlab-ynh-deps (3.4.2~ynh1) ... 2022-11-08 14:13:00,356: DEBUG - 52027 + ynh_remove_nodejs 2022-11-08 14:13:00,356: DEBUG - 52028 ++ ynh_app_setting_get --app=jupyterlab --key=nodejs_version 2022-11-08 14:13:00,357: DEBUG - 52028 ++ local _globalapp=jupyterlab 2022-11-08 14:13:00,419: DEBUG - 52090 ++ app=jupyterlab 2022-11-08 14:13:00,420: DEBUG - 52091 ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]] 2022-11-08 14:13:00,421: DEBUG - 52092 ++ ynh_app_setting get jupyterlab nodejs_version 2022-11-08 14:13:00,510: DEBUG - 52182 + nodejs_version=16 2022-11-08 14:13:00,511: DEBUG - 52182 + sed --in-place /jupyterlab:16/d /opt/node_n/ynh_app_version 2022-11-08 14:13:00,514: DEBUG - 52185 + grep --quiet 16 /opt/node_n/ynh_app_version 2022-11-08 14:13:00,517: DEBUG - 52189 + '[' '!' -s /opt/node_n/ynh_app_version ']' 2022-11-08 14:13:00,650: DEBUG - 52321 + echo '[####################] > Removal of jupyterlab completed' 2022-11-08 14:13:00,651: DEBUG - 52322 [####################] > Removal of jupyterlab completed 2022-11-08 14:13:01,653: DEBUG - 53325 To view the log of the operation 'Remove 'jupyterlab' after a failed restore from a backup archive', use the command 'yunohost log show 20221108-141255-remove_on_failed_restore-jupyterlab' 2022-11-08 14:13:01,815: DEBUG - 53487 The permission database has been resynchronized 2022-11-08 14:13:01,865: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:13:01,884: DEBUG - 53556 SSOwat configuration regenerated 2022-11-08 14:13:01,885: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:13:01,889: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:13:01,892: DEBUG - 53564 Permission 'jupyterlab.main' deleted 2022-11-08 14:13:01,893: DEBUG - 53565 To view the log of the operation 'Delete permission 'jupyterlab'', use the command 'yunohost log show 20221108-141301-permission_delete-jupyterlab' 2022-11-08 14:13:01,901: WARNING - 53573 The operation 'Restore 'jupyterlab' from a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20221108-141242-backup_restore_app-jupyterlab' to get help 2022-11-08 14:13:01,944: DEBUG - 53616 The permission database has been resynchronized 2022-11-08 14:13:02,006: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:13:02,027: DEBUG - 53698 SSOwat configuration regenerated 2022-11-08 14:13:02,028: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:13:02,032: WARNING - sh: 0: getcwd() failed: No such file or directory 2022-11-08 14:13:02,038: DEBUG - 53710 action [28645.1] executed in 53.533s 2022-11-08 14:13:02,038: WARNING - 53710 Nothing was restored 2022-11-08 14:13:02,123: DEBUG - + [[ -d /etc/yunohost/apps/jupyterlab ]] 2022-11-08 14:13:02,123: DEBUG - + ynh_die '--message=Uhoh ... Yunohost failed to restore the app to the way it was before the failed upgrade :|' 2022-11-08 14:13:02,155: WARNING - Uhoh ... Yunohost failed to restore the app to the way it was before the failed upgrade :| 2022-11-08 14:13:03,160: ERROR - Could not upgrade jupyterlab: An error occurred inside the app upgrade script