YunoHost-Apps / funkwhale_ynh

A modern, convivial and free music server on YunoHost
https://funkwhale.audio/
GNU Affero General Public License v3.0
73 stars 22 forks source link

Installation Error (Rpi 3B) #96

Closed psharma04 closed 4 years ago

psharma04 commented 4 years ago

Installation fails on a clean YunoHost install on a Raspberry Pi 3B. Log: 2019-12-14 09:50:59,418: INFO - Installing application funkwhale… 2019-12-14 09:50:59,723: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmpoT49fv/stdinfo YNH_APP_INSTANCE_NAME=funkwhale YNH_APP_ARG_ADMIN=rbxii3 YNH_INTERFACE=api YNH_APP_ID=funkwhale YNH_STDRETURN=/tmp/tmpZ8paI_/stdreturn YNH_APP_ARG_DOMAIN=rbxii3.nohost.me BASH_XTRACEFD=7 /bin/bash -x "./install" rbxii3.nohost.me rbxii3 1 funkwhale 7>&1'… 2019-12-14 09:50:59,724: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmpoT49fv/stdinfo YNH_APP_INSTANCE_NAME=funkwhale YNH_APP_ARG_ADMIN=rbxii3 YNH_INTERFACE=api YNH_APP_ID=funkwhale YNH_STDRETURN=/tmp/tmpZ8paI_/stdreturn YNH_APP_ARG_DOMAIN=rbxii3.nohost.me BASH_XTRACEFD=7 /bin/bash -x "./install" rbxii3.nohost.me rbxii3 1 funkwhale 7>&1']' 2019-12-14 09:50:59,759: DEBUG - + source _common.sh 2019-12-14 09:50:59,762: DEBUG - ++ pkg_dependencies='build-essential curl ffmpeg libjpeg-dev libmagic-dev libpq-dev postgresql postgresql-contrib python3-dev virtualenv redis-server libldap2-dev libsasl2-dev zlib1g-dev libffi-dev libssl-dev' 2019-12-14 09:50:59,764: DEBUG - + source /usr/share/yunohost/helpers 2019-12-14 09:50:59,765: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d 2019-12-14 09:50:59,766: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,766: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']' 2019-12-14 09:50:59,767: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt 2019-12-14 09:50:59,768: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,769: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']' 2019-12-14 09:50:59,770: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup 2019-12-14 09:50:59,771: DEBUG - +++ CAN_BIND=1 2019-12-14 09:50:59,872: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,873: INFO - Validating installation parameters... 2019-12-14 09:50:59,877: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']' 2019-12-14 09:50:59,878: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban 2019-12-14 09:50:59,878: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,879: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']' 2019-12-14 09:50:59,880: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts 2019-12-14 09:50:59,881: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,882: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']' 2019-12-14 09:50:59,883: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging 2019-12-14 09:50:59,884: DEBUG - +++ increment_progression=0 2019-12-14 09:50:59,885: DEBUG - +++ previous_weight=0 2019-12-14 09:50:59,885: DEBUG - +++ max_progression=-1 2019-12-14 09:50:59,887: DEBUG - +++ progress_scale=20 2019-12-14 09:50:59,888: DEBUG - +++ progress_string2='####################' 2019-12-14 09:50:59,888: DEBUG - +++ progress_string1=++++++++++++++++++++ 2019-12-14 09:50:59,889: DEBUG - +++ progress_string0=.................... 2019-12-14 09:50:59,890: DEBUG - ++++ date +%s 2019-12-14 09:50:59,891: DEBUG - +++ base_time=1576317059 2019-12-14 09:50:59,892: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,893: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']' 2019-12-14 09:50:59,894: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate 2019-12-14 09:50:59,895: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,896: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']' 2019-12-14 09:50:59,898: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql 2019-12-14 09:50:59,899: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql 2019-12-14 09:50:59,899: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,900: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']' 2019-12-14 09:50:59,901: DEBUG - ++ . /usr/share/yunohost/helpers.d/network 2019-12-14 09:50:59,902: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,903: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']' 2019-12-14 09:50:59,904: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx 2019-12-14 09:50:59,905: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,906: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']' 2019-12-14 09:50:59,906: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs 2019-12-14 09:50:59,907: DEBUG - +++ n_install_dir=/opt/node_n 2019-12-14 09:50:59,908: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node 2019-12-14 09:50:59,909: DEBUG - +++ export N_PREFIX=/opt/node_n 2019-12-14 09:50:59,909: DEBUG - +++ N_PREFIX=/opt/node_n 2019-12-14 09:50:59,910: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,910: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']' 2019-12-14 09:50:59,911: DEBUG - ++ . /usr/share/yunohost/helpers.d/php 2019-12-14 09:50:59,911: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,912: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']' 2019-12-14 09:50:59,913: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql 2019-12-14 09:50:59,913: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql 2019-12-14 09:50:59,914: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,915: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']' 2019-12-14 09:50:59,916: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting 2019-12-14 09:50:59,917: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,918: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']' 2019-12-14 09:50:59,919: DEBUG - ++ . /usr/share/yunohost/helpers.d/string 2019-12-14 09:50:59,920: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,920: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']' 2019-12-14 09:50:59,921: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd 2019-12-14 09:50:59,921: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,922: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']' 2019-12-14 09:50:59,923: DEBUG - ++ . /usr/share/yunohost/helpers.d/user 2019-12-14 09:50:59,923: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2019-12-14 09:50:59,924: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']' 2019-12-14 09:50:59,924: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils 2019-12-14 09:50:59,925: DEBUG - + ynh_abort_if_errors 2019-12-14 09:50:59,926: DEBUG - + set -eu 2019-12-14 09:50:59,926: DEBUG - + trap ynh_exit_properly EXIT 2019-12-14 09:50:59,927: DEBUG - + domain=rbxii3.nohost.me 2019-12-14 09:50:59,928: DEBUG - + path_url=/ 2019-12-14 09:50:59,928: DEBUG - + is_public=1 2019-12-14 09:50:59,929: DEBUG - + admin=rbxii3 2019-12-14 09:50:59,930: DEBUG - + app=funkwhale 2019-12-14 09:50:59,930: DEBUG - + ynh_print_info '--message=Validating installation parameters...' 2019-12-14 09:50:59,931: DEBUG - + local legacy_args=m 2019-12-14 09:50:59,932: DEBUG - + args_array=([m]=message=) 2019-12-14 09:50:59,932: DEBUG - + declare -Ar args_array 2019-12-14 09:50:59,933: DEBUG - + local message 2019-12-14 09:50:59,933: DEBUG - + ynh_handle_getopts_args '--message=Validating installation parameters...' 2019-12-14 09:50:59,934: DEBUG - + set +x 2019-12-14 09:50:59,934: DEBUG - + echo 'Validating installation parameters...' 2019-12-14 09:50:59,935: DEBUG - + final_path=/var/www/funkwhale 2019-12-14 09:50:59,936: DEBUG - + test '!' -e /var/www/funkwhale 2019-12-14 09:50:59,938: DEBUG - + ynh_webpath_register --app=funkwhale --domain=rbxii3.nohost.me --path_url=/ 2019-12-14 09:50:59,939: DEBUG - + local legacy_args=adp 2019-12-14 09:50:59,940: DEBUG - + args_array=([a]=app= [d]=domain= [p]=path_url=) 2019-12-14 09:50:59,941: DEBUG - + declare -Ar args_array 2019-12-14 09:50:59,942: DEBUG - + local app 2019-12-14 09:50:59,943: DEBUG - + local domain 2019-12-14 09:50:59,943: DEBUG - + local path_url 2019-12-14 09:50:59,944: DEBUG - + ynh_handle_getopts_args --app=funkwhale --domain=rbxii3.nohost.me --path_url=/ 2019-12-14 09:50:59,945: DEBUG - + set +x 2019-12-14 09:50:59,946: DEBUG - + sudo yunohost app register-url funkwhale rbxii3.nohost.me / 2019-12-14 09:51:01,452: DEBUG - + ynh_print_info '--message=Storing installation settings...' 2019-12-14 09:51:01,453: DEBUG - + local legacy_args=m 2019-12-14 09:51:01,453: DEBUG - + args_array=([m]=message=) 2019-12-14 09:51:01,454: DEBUG - + declare -Ar args_array 2019-12-14 09:51:01,454: DEBUG - + local message 2019-12-14 09:51:01,455: DEBUG - + ynh_handle_getopts_args '--message=Storing installation settings...' 2019-12-14 09:51:01,455: DEBUG - + set +x 2019-12-14 09:51:01,456: DEBUG - + echo 'Storing installation settings...' 2019-12-14 09:51:01,457: DEBUG - + ynh_app_setting_set --app=funkwhale --key=domain --value=rbxii3.nohost.me 2019-12-14 09:51:01,458: DEBUG - + local legacy_args=akv 2019-12-14 09:51:01,459: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2019-12-14 09:51:01,460: DEBUG - + declare -Ar args_array 2019-12-14 09:51:01,461: DEBUG - + local app 2019-12-14 09:51:01,462: DEBUG - + local key 2019-12-14 09:51:01,462: DEBUG - + local value 2019-12-14 09:51:01,463: DEBUG - + ynh_handle_getopts_args --app=funkwhale --key=domain --value=rbxii3.nohost.me 2019-12-14 09:51:01,464: DEBUG - + set +x 2019-12-14 09:51:01,565: DEBUG - + ynh_app_setting set funkwhale domain rbxii3.nohost.me 2019-12-14 09:51:01,566: INFO - Storing installation settings... 2019-12-14 09:51:01,568: DEBUG - + ACTION=set 2019-12-14 09:51:01,569: DEBUG - + APP=funkwhale 2019-12-14 09:51:01,569: DEBUG - + KEY=domain 2019-12-14 09:51:01,571: DEBUG - + VALUE=rbxii3.nohost.me 2019-12-14 09:51:01,572: DEBUG - + python - 2019-12-14 09:51:01,975: DEBUG - + ynh_app_setting_set --app=funkwhale --key=path --value=/ 2019-12-14 09:51:01,976: DEBUG - + local legacy_args=akv 2019-12-14 09:51:01,978: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2019-12-14 09:51:01,979: DEBUG - + declare -Ar args_array 2019-12-14 09:51:01,980: DEBUG - + local app 2019-12-14 09:51:01,981: DEBUG - + local key 2019-12-14 09:51:01,982: DEBUG - + local value 2019-12-14 09:51:01,982: DEBUG - + ynh_handle_getopts_args --app=funkwhale --key=path --value=/ 2019-12-14 09:51:01,983: DEBUG - + set +x 2019-12-14 09:51:01,983: DEBUG - + ynh_app_setting set funkwhale path / 2019-12-14 09:51:01,984: DEBUG - + ACTION=set 2019-12-14 09:51:01,984: DEBUG - + APP=funkwhale 2019-12-14 09:51:01,985: DEBUG - + KEY=path 2019-12-14 09:51:01,986: DEBUG - + VALUE=/ 2019-12-14 09:51:01,986: DEBUG - + python - 2019-12-14 09:51:02,388: DEBUG - + ynh_app_setting_set --app=funkwhale --key=is_public --value=1 2019-12-14 09:51:02,390: DEBUG - + local legacy_args=akv 2019-12-14 09:51:02,391: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2019-12-14 09:51:02,392: DEBUG - + declare -Ar args_array 2019-12-14 09:51:02,393: DEBUG - + local app 2019-12-14 09:51:02,394: DEBUG - + local key 2019-12-14 09:51:02,395: DEBUG - + local value 2019-12-14 09:51:02,396: DEBUG - + ynh_handle_getopts_args --app=funkwhale --key=is_public --value=1 2019-12-14 09:51:02,397: DEBUG - + set +x 2019-12-14 09:51:02,398: DEBUG - + ynh_app_setting set funkwhale is_public 1 2019-12-14 09:51:02,398: DEBUG - + ACTION=set 2019-12-14 09:51:02,399: DEBUG - + APP=funkwhale 2019-12-14 09:51:02,400: DEBUG - + KEY=is_public 2019-12-14 09:51:02,400: DEBUG - + VALUE=1 2019-12-14 09:51:02,401: DEBUG - + python - 2019-12-14 09:51:02,804: DEBUG - + ynh_app_setting_set --app=funkwhale --key=admin --value=rbxii3 2019-12-14 09:51:02,805: DEBUG - + local legacy_args=akv 2019-12-14 09:51:02,806: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2019-12-14 09:51:02,807: DEBUG - + declare -Ar args_array 2019-12-14 09:51:02,808: DEBUG - + local app 2019-12-14 09:51:02,809: DEBUG - + local key 2019-12-14 09:51:02,809: DEBUG - + local value 2019-12-14 09:51:02,810: DEBUG - + ynh_handle_getopts_args --app=funkwhale --key=admin --value=rbxii3 2019-12-14 09:51:02,811: DEBUG - + set +x 2019-12-14 09:51:02,812: DEBUG - + ynh_app_setting set funkwhale admin rbxii3 2019-12-14 09:51:02,813: DEBUG - + ACTION=set 2019-12-14 09:51:02,813: DEBUG - + APP=funkwhale 2019-12-14 09:51:02,814: DEBUG - + KEY=admin 2019-12-14 09:51:02,815: DEBUG - + VALUE=rbxii3 2019-12-14 09:51:02,816: DEBUG - + python - 2019-12-14 09:51:03,218: DEBUG - + ynh_print_info '--message=Configuring firewall...' 2019-12-14 09:51:03,219: DEBUG - + local legacy_args=m 2019-12-14 09:51:03,220: DEBUG - + args_array=([m]=message=) 2019-12-14 09:51:03,221: DEBUG - + declare -Ar args_array 2019-12-14 09:51:03,222: DEBUG - + local message 2019-12-14 09:51:03,223: DEBUG - + ynh_handle_getopts_args '--message=Configuring firewall...' 2019-12-14 09:51:03,224: DEBUG - + set +x 2019-12-14 09:51:03,225: DEBUG - + echo 'Configuring firewall...' 2019-12-14 09:51:03,227: DEBUG - ++ ynh_find_port --port=5000 2019-12-14 09:51:03,228: DEBUG - ++ local legacy_args=p 2019-12-14 09:51:03,229: DEBUG - ++ args_array=([p]=port=) 2019-12-14 09:51:03,230: DEBUG - ++ declare -Ar args_array 2019-12-14 09:51:03,231: DEBUG - ++ local port 2019-12-14 09:51:03,232: DEBUG - ++ ynh_handle_getopts_args --port=5000 2019-12-14 09:51:03,233: DEBUG - ++ set +x 2019-12-14 09:51:03,334: DEBUG - ++ test -n 5000 2019-12-14 09:51:03,335: INFO - Configuring firewall... 2019-12-14 09:51:03,338: DEBUG - ++ netcat -z 127.0.0.1 5000 2019-12-14 09:51:03,339: DEBUG - ++ echo 5000 2019-12-14 09:51:03,340: DEBUG - + port=5000 2019-12-14 09:51:03,340: DEBUG - + ynh_app_setting_set --app=funkwhale --key=port --value=5000 2019-12-14 09:51:03,341: DEBUG - + local legacy_args=akv 2019-12-14 09:51:03,342: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2019-12-14 09:51:03,342: DEBUG - + declare -Ar args_array 2019-12-14 09:51:03,343: DEBUG - + local app 2019-12-14 09:51:03,343: DEBUG - + local key 2019-12-14 09:51:03,344: DEBUG - + local value 2019-12-14 09:51:03,344: DEBUG - + ynh_handle_getopts_args --app=funkwhale --key=port --value=5000 2019-12-14 09:51:03,345: DEBUG - + set +x 2019-12-14 09:51:03,345: DEBUG - + ynh_app_setting set funkwhale port 5000 2019-12-14 09:51:03,346: DEBUG - + ACTION=set 2019-12-14 09:51:03,347: DEBUG - + APP=funkwhale 2019-12-14 09:51:03,347: DEBUG - + KEY=port 2019-12-14 09:51:03,348: DEBUG - + VALUE=5000 2019-12-14 09:51:03,348: DEBUG - + python - 2019-12-14 09:51:03,750: DEBUG - + ynh_print_info '--message=Installing dependencies...' 2019-12-14 09:51:03,751: INFO - Installing dependencies... 2019-12-14 09:51:03,753: DEBUG - + local legacy_args=m 2019-12-14 09:51:03,754: DEBUG - + args_array=([m]=message=) 2019-12-14 09:51:03,755: DEBUG - + declare -Ar args_array 2019-12-14 09:51:03,755: DEBUG - + local message 2019-12-14 09:51:03,756: DEBUG - + ynh_handle_getopts_args '--message=Installing dependencies...' 2019-12-14 09:51:03,757: DEBUG - + set +x 2019-12-14 09:51:03,758: DEBUG - + echo 'Installing dependencies...' 2019-12-14 09:51:03,758: DEBUG - + ynh_install_app_dependencies build-essential curl ffmpeg libjpeg-dev libmagic-dev libpq-dev postgresql postgresql-contrib python3-dev virtualenv redis-server libldap2-dev libsasl2-dev zlib1g-dev libffi-dev libssl-dev 2019-12-14 09:51:03,759: DEBUG - + local 'dependencies=build-essential curl ffmpeg libjpeg-dev libmagic-dev libpq-dev postgresql postgresql-contrib python3-dev virtualenv redis-server libldap2-dev libsasl2-dev zlib1g-dev libffi-dev libssl-dev' 2019-12-14 09:51:03,760: DEBUG - + local 'dependencies=build-essential, curl, ffmpeg, libjpeg-dev, libmagic-dev, libpq-dev, postgresql, postgresql-contrib, python3-dev, virtualenv, redis-server, libldap2-dev, libsasl2-dev, zlib1g-dev, libffi-dev, libssl-dev' 2019-12-14 09:51:03,760: DEBUG - + local 'dependencies=build-essential, curl, ffmpeg, libjpeg-dev, libmagic-dev, libpq-dev, postgresql, postgresql-contrib, python3-dev, virtualenv, redis-server, libldap2-dev, libsasl2-dev, zlib1g-dev, libffi-dev, libssl-dev' 2019-12-14 09:51:03,761: DEBUG - + local manifest_path=../manifest.json 2019-12-14 09:51:03,762: DEBUG - + '[' '!' -e ../manifest.json ']' 2019-12-14 09:51:03,763: DEBUG - ++ grep '\"version\": ' ../manifest.json 2019-12-14 09:51:03,764: DEBUG - ++ cut -d '"' -f 4 2019-12-14 09:51:03,765: DEBUG - + local version=0.20.1~ynh5 2019-12-14 09:51:03,765: DEBUG - + '[' 11 -eq 0 ']' 2019-12-14 09:51:03,766: DEBUG - + local dep_app=funkwhale 2019-12-14 09:51:03,767: DEBUG - + grep -q php 2019-12-14 09:51:03,768: DEBUG - + echo build-essential, curl, ffmpeg, libjpeg-dev, libmagic-dev, libpq-dev, postgresql, postgresql-contrib, python3-dev, virtualenv, redis-server, libldap2-dev, libsasl2-dev, zlib1g-dev, libffi-dev, libssl-dev 2019-12-14 09:51:03,768: DEBUG - + cat 2019-12-14 09:51:03,769: DEBUG - + ynh_package_install_from_equivs /tmp/funkwhale-ynh-deps.control 2019-12-14 09:51:03,770: DEBUG - + local controlfile=/tmp/funkwhale-ynh-deps.control 2019-12-14 09:51:03,770: DEBUG - ++ grep '^Package: ' /tmp/funkwhale-ynh-deps.control 2019-12-14 09:51:03,771: DEBUG - ++ cut '-d ' -f 2 2019-12-14 09:51:03,771: DEBUG - + local pkgname=funkwhale-ynh-deps 2019-12-14 09:51:03,772: DEBUG - ++ grep '^Version: ' /tmp/funkwhale-ynh-deps.control 2019-12-14 09:51:03,773: DEBUG - ++ cut '-d ' -f 2 2019-12-14 09:51:03,773: DEBUG - + local pkgversion=0.20.1~ynh5 2019-12-14 09:51:03,774: DEBUG - + [[ -z funkwhale-ynh-deps ]] 2019-12-14 09:51:03,774: DEBUG - + [[ -z 0.20.1~ynh5 ]] 2019-12-14 09:51:03,775: DEBUG - + ynh_package_update 2019-12-14 09:51:03,776: DEBUG - + ynh_apt update 2019-12-14 09:51:03,777: DEBUG - + ynh_wait_dpkg_free 2019-12-14 09:51:03,777: DEBUG - + local try 2019-12-14 09:51:03,778: DEBUG - ++ seq 1 17 2019-12-14 09:51:03,778: DEBUG - + for try inseq 1 17 2019-12-14 09:51:03,779: DEBUG - + sudo lsof /var/lib/dpkg/lock 2019-12-14 09:51:04,081: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2019-12-14 09:51:04,082: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2019-12-14 09:51:04,083: DEBUG - + read dpkg_file 2019-12-14 09:51:04,084: DEBUG - + echo '' 2019-12-14 09:51:04,084: DEBUG - + grep -Pq '^[[:digit:]]+$' 2019-12-14 09:51:04,085: DEBUG - + read dpkg_file 2019-12-14 09:51:04,086: DEBUG - + return 0 2019-12-14 09:51:04,087: DEBUG - + DEBIAN_FRONTEND=noninteractive 2019-12-14 09:51:04,088: DEBUG - + apt-get -y update 2019-12-14 09:51:05,092: DEBUG - Hit:1 http://archive.raspberrypi.org/debian stretch InRelease 2019-12-14 09:51:05,093: DEBUG - Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease 2019-12-14 09:51:06,199: DEBUG - Hit:3 http://forge.yunohost.org/debian stretch InRelease 2019-12-14 09:51:10,813: DEBUG - Reading package lists... 2019-12-14 09:51:10,915: DEBUG - ++ mktemp -d 2019-12-14 09:51:10,916: DEBUG - + local TMPDIR=/tmp/tmp.iEyG0j7xHi 2019-12-14 09:51:10,917: DEBUG - + echo 10 2019-12-14 09:51:10,918: DEBUG - + ynh_wait_dpkg_free 2019-12-14 09:51:10,919: DEBUG - + local try 2019-12-14 09:51:10,920: DEBUG - ++ seq 1 17 2019-12-14 09:51:10,921: DEBUG - + for try inseq 1 17 2019-12-14 09:51:10,921: DEBUG - + sudo lsof /var/lib/dpkg/lock 2019-12-14 09:51:11,223: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2019-12-14 09:51:11,224: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2019-12-14 09:51:11,225: DEBUG - + read dpkg_file 2019-12-14 09:51:11,227: DEBUG - + echo '' 2019-12-14 09:51:11,228: DEBUG - + grep -Pq '^[[:digit:]]+$' 2019-12-14 09:51:11,229: DEBUG - + read dpkg_file 2019-12-14 09:51:11,229: DEBUG - + return 0 2019-12-14 09:51:11,230: DEBUG - + cp /tmp/funkwhale-ynh-deps.control /tmp/tmp.iEyG0j7xHi/control 2019-12-14 09:51:11,231: DEBUG - + cd /tmp/tmp.iEyG0j7xHi 2019-12-14 09:51:11,232: DEBUG - + equivs-build ./control 2019-12-14 09:51:13,941: DEBUG - + dpkg --force-depends -i ./funkwhale-ynh-deps_0.20.1~ynh5_all.deb 2019-12-14 09:51:14,143: DEBUG - Selecting previously unselected package funkwhale-ynh-deps. 2019-12-14 09:51:14,144: DEBUG - (Reading database ... 52654 files and directories currently installed.) 2019-12-14 09:51:14,144: DEBUG - Preparing to unpack .../funkwhale-ynh-deps_0.20.1~ynh5_all.deb ... 2019-12-14 09:51:14,245: DEBUG - Unpacking funkwhale-ynh-deps (0.20.1~ynh5) ... 2019-12-14 09:51:14,348: DEBUG - dpkg: funkwhale-ynh-deps: dependency problems, but configuring anyway as you requested: 2019-12-14 09:51:14,349: DEBUG - funkwhale-ynh-deps depends on libjpeg-dev; however: 2019-12-14 09:51:14,349: DEBUG - Package libjpeg-dev is not installed. 2019-12-14 09:51:14,350: DEBUG - funkwhale-ynh-deps depends on libmagic-dev; however: 2019-12-14 09:51:14,350: DEBUG - Package libmagic-dev is not installed. 2019-12-14 09:51:14,351: DEBUG - funkwhale-ynh-deps depends on libpq-dev; however: 2019-12-14 09:51:14,351: DEBUG - Package libpq-dev is not installed. 2019-12-14 09:51:14,352: DEBUG - funkwhale-ynh-deps depends on postgresql; however: 2019-12-14 09:51:14,352: DEBUG - Package postgresql is not installed. 2019-12-14 09:51:14,353: DEBUG - funkwhale-ynh-deps depends on virtualenv; however: 2019-12-14 09:51:14,353: DEBUG - Package virtualenv is not installed. 2019-12-14 09:51:14,354: DEBUG - funkwhale-ynh-deps depends on libldap2-dev; however: 2019-12-14 09:51:14,355: DEBUG - Package libldap2-dev is not installed. 2019-12-14 09:51:14,355: DEBUG - funkwhale-ynh-deps depends on libsasl2-dev; however: 2019-12-14 09:51:14,356: DEBUG - Package libsasl2-dev is not installed. 2019-12-14 09:51:14,356: DEBUG - funkwhale-ynh-deps depends on libffi-dev; however: 2019-12-14 09:51:14,357: DEBUG - Package libffi-dev is not installed. 2019-12-14 09:51:14,357: DEBUG - funkwhale-ynh-deps depends on libssl-dev; however: 2019-12-14 09:51:14,358: DEBUG - Package libssl-dev is not installed. 2019-12-14 09:51:14,358: DEBUG - 2019-12-14 09:51:14,359: DEBUG - Setting up funkwhale-ynh-deps (0.20.1~ynh5) ... 2019-12-14 09:51:14,464: DEBUG - + ynh_package_install -f 2019-12-14 09:51:14,465: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2019-12-14 09:51:14,467: DEBUG - + ynh_wait_dpkg_free 2019-12-14 09:51:14,468: DEBUG - + local try 2019-12-14 09:51:14,469: DEBUG - ++ seq 1 17 2019-12-14 09:51:14,470: DEBUG - + for try inseq 1 17 2019-12-14 09:51:14,471: DEBUG - + sudo lsof /var/lib/dpkg/lock 2019-12-14 09:51:14,773: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2019-12-14 09:51:14,774: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2019-12-14 09:51:14,775: DEBUG - + read dpkg_file 2019-12-14 09:51:14,776: DEBUG - + echo '' 2019-12-14 09:51:14,777: DEBUG - + grep -Pq '^[[:digit:]]+$' 2019-12-14 09:51:14,777: DEBUG - + read dpkg_file 2019-12-14 09:51:14,778: DEBUG - + return 0 2019-12-14 09:51:14,779: DEBUG - + DEBIAN_FRONTEND=noninteractive 2019-12-14 09:51:14,779: DEBUG - + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2019-12-14 09:51:23,010: DEBUG - Reading package lists... 2019-12-14 09:51:23,814: DEBUG - Building dependency tree... 2019-12-14 09:51:23,815: DEBUG - Reading state information... 2019-12-14 09:51:24,618: DEBUG - Correcting dependencies... Done 2019-12-14 09:51:25,622: DEBUG - The following additional packages will be installed: 2019-12-14 09:51:25,623: DEBUG - libffi-dev libjpeg-dev libjpeg62-turbo-dev libldap2-dev libmagic-dev 2019-12-14 09:51:25,624: DEBUG - libpq-dev libsasl2-dev libssl-dev libssl-doc postgresql python3-virtualenv 2019-12-14 09:51:25,625: DEBUG - virtualenv 2019-12-14 09:51:25,626: DEBUG - Suggested packages: 2019-12-14 09:51:25,626: DEBUG - postgresql-doc-9.6 postgresql-doc 2019-12-14 09:51:25,728: DEBUG - The following NEW packages will be installed: 2019-12-14 09:51:25,729: DEBUG - libffi-dev libjpeg-dev libjpeg62-turbo-dev libldap2-dev libmagic-dev 2019-12-14 09:51:25,729: DEBUG - libpq-dev libsasl2-dev libssl-dev libssl-doc postgresql python3-virtualenv 2019-12-14 09:51:25,730: DEBUG - virtualenv 2019-12-14 09:51:29,041: DEBUG - 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded. 2019-12-14 09:51:29,042: DEBUG - Need to get 0 B/4,283 kB of archives. 2019-12-14 09:51:29,043: DEBUG - After this operation, 13.9 MB of additional disk space will be used. 2019-12-14 09:51:29,946: DEBUG - Selecting previously unselected package libffi-dev:armhf. 2019-12-14 09:51:30,049: DEBUG - (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 52658 files and directories currently installed.) 2019-12-14 09:51:30,053: DEBUG - Preparing to unpack .../00-libffi-dev_3.2.1-6_armhf.deb ... 2019-12-14 09:51:30,154: DEBUG - Unpacking libffi-dev:armhf (3.2.1-6) ... 2019-12-14 09:51:30,657: DEBUG - Selecting previously unselected package libjpeg62-turbo-dev:armhf. 2019-12-14 09:51:30,658: DEBUG - Preparing to unpack .../01-libjpeg62-turbo-dev_1%3a1.5.1-2_armhf.deb ... 2019-12-14 09:51:30,759: DEBUG - Unpacking libjpeg62-turbo-dev:armhf (1:1.5.1-2) ... 2019-12-14 09:51:31,063: DEBUG - Selecting previously unselected package libjpeg-dev. 2019-12-14 09:51:31,064: DEBUG - Preparing to unpack .../02-libjpeg-dev_1%3a1.5.1-2_all.deb ... 2019-12-14 09:51:31,165: DEBUG - Unpacking libjpeg-dev (1:1.5.1-2) ... 2019-12-14 09:51:31,466: DEBUG - Selecting previously unselected package libmagic-dev:armhf. 2019-12-14 09:51:31,467: DEBUG - Preparing to unpack .../03-libmagic-dev_1%3a5.30-1+deb9u3_armhf.deb ... 2019-12-14 09:51:31,569: DEBUG - Unpacking libmagic-dev:armhf (1:5.30-1+deb9u3) ... 2019-12-14 09:51:31,872: DEBUG - Selecting previously unselected package libpq-dev. 2019-12-14 09:51:31,974: DEBUG - Preparing to unpack .../04-libpq-dev_9.6.13-0+deb9u1_armhf.deb ... 2019-12-14 09:51:31,976: DEBUG - Unpacking libpq-dev (9.6.13-0+deb9u1) ... 2019-12-14 09:51:32,379: DEBUG - Selecting previously unselected package libsasl2-dev. 2019-12-14 09:51:32,380: DEBUG - Preparing to unpack .../05-libsasl2-dev_2.1.27~101-g0780600+dfsg-3_armhf.deb ... 2019-12-14 09:51:32,481: DEBUG - Unpacking libsasl2-dev (2.1.27~101-g0780600+dfsg-3) ... 2019-12-14 09:51:33,085: DEBUG - Selecting previously unselected package libssl-dev:armhf. 2019-12-14 09:51:33,188: DEBUG - Preparing to unpack .../06-libssl-dev_1.1.0l-1~deb9u1_armhf.deb ... 2019-12-14 09:51:33,191: DEBUG - Unpacking libssl-dev:armhf (1.1.0l-1~deb9u1) ... 2019-12-14 09:51:33,794: DEBUG - Selecting previously unselected package libssl-doc. 2019-12-14 09:51:33,795: DEBUG - Preparing to unpack .../07-libssl-doc_1.1.0l-1~deb9u1_all.deb ... 2019-12-14 09:51:33,796: DEBUG - Unpacking libssl-doc (1.1.0l-1~deb9u1) ... 2019-12-14 09:51:35,401: DEBUG - Selecting previously unselected package postgresql. 2019-12-14 09:51:35,503: DEBUG - Preparing to unpack .../08-postgresql_9.6+181+deb9u3_all.deb ... 2019-12-14 09:51:35,505: DEBUG - Unpacking postgresql (9.6+181+deb9u3) ... 2019-12-14 09:51:35,707: DEBUG - Selecting previously unselected package python3-virtualenv. 2019-12-14 09:51:35,809: DEBUG - Preparing to unpack .../09-python3-virtualenv_15.1.0+ds-1_all.deb ... 2019-12-14 09:51:35,811: DEBUG - Unpacking python3-virtualenv (15.1.0+ds-1) ... 2019-12-14 09:51:35,912: DEBUG - Selecting previously unselected package virtualenv. 2019-12-14 09:51:35,913: DEBUG - Preparing to unpack .../10-virtualenv_15.1.0+ds-1_all.deb ... 2019-12-14 09:51:35,913: DEBUG - Unpacking virtualenv (15.1.0+ds-1) ... 2019-12-14 09:51:36,014: DEBUG - Selecting previously unselected package libldap2-dev:armhf. 2019-12-14 09:51:36,015: DEBUG - Preparing to unpack .../11-libldap2-dev_2.4.44+dfsg-5+deb9u1_armhf.deb ... 2019-12-14 09:51:36,016: DEBUG - Unpacking libldap2-dev:armhf (2.4.44+dfsg-5+deb9u1) ... 2019-12-14 09:51:36,518: DEBUG - Setting up libldap2-dev:armhf (2.4.44+dfsg-5+deb9u1) ... 2019-12-14 09:51:36,520: DEBUG - Setting up libpq-dev (9.6.13-0+deb9u1) ... 2019-12-14 09:51:36,522: DEBUG - Setting up libmagic-dev:armhf (1:5.30-1+deb9u3) ... 2019-12-14 09:51:36,624: DEBUG - Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ... 2019-12-14 09:51:37,027: DEBUG - Setting up libssl-dev:armhf (1.1.0l-1~deb9u1) ... 2019-12-14 09:51:37,028: DEBUG - Setting up libffi-dev:armhf (3.2.1-6) ... 2019-12-14 09:51:37,132: DEBUG - Setting up libsasl2-dev (2.1.27~101-g0780600+dfsg-3) ... 2019-12-14 09:51:37,133: DEBUG - Setting up postgresql (9.6+181+deb9u3) ... 2019-12-14 09:51:37,134: DEBUG - Setting up python3-virtualenv (15.1.0+ds-1) ... 2019-12-14 09:51:38,138: DEBUG - Processing triggers for man-db (2.7.6.1-2) ... 2019-12-14 09:51:38,941: DEBUG - Setting up libssl-doc (1.1.0l-1~deb9u1) ... 2019-12-14 09:51:38,942: DEBUG - Setting up libjpeg62-turbo-dev:armhf (1:1.5.1-2) ... 2019-12-14 09:51:39,043: DEBUG - Setting up virtualenv (15.1.0+ds-1) ... 2019-12-14 09:51:39,044: DEBUG - Setting up libjpeg-dev (1:1.5.1-2) ... 2019-12-14 09:51:39,847: DEBUG - + [[ -n /tmp/tmp.iEyG0j7xHi ]] 2019-12-14 09:51:39,848: DEBUG - + rm -rf /tmp/tmp.iEyG0j7xHi 2019-12-14 09:51:39,849: DEBUG - + ynh_package_is_installed funkwhale-ynh-deps 2019-12-14 09:51:39,850: DEBUG - + local legacy_args=p 2019-12-14 09:51:39,850: DEBUG - + args_array=([p]=package=) 2019-12-14 09:51:39,851: DEBUG - + declare -Ar args_array 2019-12-14 09:51:39,853: DEBUG - + local package 2019-12-14 09:51:39,854: DEBUG - + ynh_handle_getopts_args funkwhale-ynh-deps 2019-12-14 09:51:39,855: DEBUG - + set +x 2019-12-14 09:51:39,856: DEBUG - + echo '! Helper used in legacy mode !' 2019-12-14 09:51:39,857: DEBUG - + set +x 2019-12-14 09:51:39,958: DEBUG - + ynh_wait_dpkg_free 2019-12-14 09:51:39,959: DEBUG - + local try 2019-12-14 09:51:39,959: DEBUG - ++ seq 1 17 2019-12-14 09:51:39,960: DEBUG - + for try inseq 1 17 2019-12-14 09:51:39,960: DEBUG - + sudo lsof /var/lib/dpkg/lock 2019-12-14 09:51:40,262: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2019-12-14 09:51:40,263: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2019-12-14 09:51:40,263: DEBUG - + read dpkg_file 2019-12-14 09:51:40,264: DEBUG - + echo '' 2019-12-14 09:51:40,264: DEBUG - + grep -Pq '^[[:digit:]]+$' 2019-12-14 09:51:40,265: DEBUG - + read dpkg_file 2019-12-14 09:51:40,266: DEBUG - + return 0 2019-12-14 09:51:40,266: DEBUG - + dpkg-query -W -f '${Status}' funkwhale-ynh-deps 2019-12-14 09:51:40,267: DEBUG - + grep -c 'ok installed' 2019-12-14 09:51:40,368: DEBUG - + rm /tmp/funkwhale-ynh-deps.control 2019-12-14 09:51:40,369: DEBUG - + ynh_app_setting_set --app=funkwhale --key=apt_dependencies '--value=build-essential, curl, ffmpeg, libjpeg-dev, libmagic-dev, libpq-dev, postgresql, postgresql-contrib, python3-dev, virtualenv, redis-server, libldap2-dev, libsasl2-dev, zlib1g-dev, libffi-dev, libssl-dev' 2019-12-14 09:51:40,370: DEBUG - + local legacy_args=akv 2019-12-14 09:51:40,371: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2019-12-14 09:51:40,372: DEBUG - + declare -Ar args_array 2019-12-14 09:51:40,372: DEBUG - + local app 2019-12-14 09:51:40,373: DEBUG - + local key 2019-12-14 09:51:40,374: DEBUG - + local value 2019-12-14 09:51:40,375: DEBUG - + ynh_handle_getopts_args --app=funkwhale --key=apt_dependencies '--value=build-essential, curl, ffmpeg, libjpeg-dev, libmagic-dev, libpq-dev, postgresql, postgresql-contrib, python3-dev, virtualenv, redis-server, libldap2-dev, libsasl2-dev, zlib1g-dev, libffi-dev, libssl-dev' 2019-12-14 09:51:40,376: DEBUG - + set +x 2019-12-14 09:51:40,377: DEBUG - + ynh_app_setting set funkwhale apt_dependencies 'build-essential, curl, ffmpeg, libjpeg-dev, libmagic-dev, libpq-dev, postgresql, postgresql-contrib, python3-dev, virtualenv, redis-server, libldap2-dev, libsasl2-dev, zlib1g-dev, libffi-dev, libssl-dev' 2019-12-14 09:51:40,378: DEBUG - + ACTION=set 2019-12-14 09:51:40,378: DEBUG - + APP=funkwhale 2019-12-14 09:51:40,379: DEBUG - + KEY=apt_dependencies 2019-12-14 09:51:40,380: DEBUG - + VALUE='build-essential, curl, ffmpeg, libjpeg-dev, libmagic-dev, libpq-dev, postgresql, postgresql-contrib, python3-dev, virtualenv, redis-server, libldap2-dev, libsasl2-dev, zlib1g-dev, libffi-dev, libssl-dev' 2019-12-14 09:51:40,381: DEBUG - + python - 2019-12-14 09:51:40,883: DEBUG - + ynh_print_info '--message=Creating a PostgreSQL database...' 2019-12-14 09:51:40,884: INFO - Creating a PostgreSQL database... 2019-12-14 09:51:40,886: DEBUG - + local legacy_args=m 2019-12-14 09:51:40,887: DEBUG - + args_array=([m]=message=) 2019-12-14 09:51:40,888: DEBUG - + declare -Ar args_array 2019-12-14 09:51:40,889: DEBUG - + local message 2019-12-14 09:51:40,889: DEBUG - + ynh_handle_getopts_args '--message=Creating a PostgreSQL database...' 2019-12-14 09:51:40,890: DEBUG - + set +x 2019-12-14 09:51:40,891: DEBUG - + echo 'Creating a PostgreSQL database...' 2019-12-14 09:51:40,892: DEBUG - + ynh_psql_test_if_first_run 2019-12-14 09:51:40,893: DEBUG - + '[' -f /etc/yunohost/psql ']' 2019-12-14 09:51:40,893: DEBUG - + echo 'PostgreSQL is already installed, no need to create master password' 2019-12-14 09:51:40,894: DEBUG - PostgreSQL is already installed, no need to create master password 2019-12-14 09:51:40,895: DEBUG - ++ ynh_sanitize_dbid funkwhale 2019-12-14 09:51:40,897: DEBUG - ++ local legacy_args=n 2019-12-14 09:51:40,897: DEBUG - ++ args_array=([n]=db_name=) 2019-12-14 09:51:40,898: DEBUG - ++ declare -Ar args_array 2019-12-14 09:51:40,899: DEBUG - ++ local db_name 2019-12-14 09:51:40,900: DEBUG - ++ ynh_handle_getopts_args funkwhale 2019-12-14 09:51:40,901: DEBUG - ++ set +x 2019-12-14 09:51:40,901: DEBUG - ++ echo '! Helper used in legacy mode !' 2019-12-14 09:51:40,902: DEBUG - ++ set +x 2019-12-14 09:51:40,903: DEBUG - ++ echo funkwhale 2019-12-14 09:51:40,904: DEBUG - + db_name=funkwhale 2019-12-14 09:51:40,905: DEBUG - + db_user=funkwhale 2019-12-14 09:51:40,905: DEBUG - ++ ynh_string_random 2019-12-14 09:51:40,906: DEBUG - ++ local legacy_args=l 2019-12-14 09:51:40,907: DEBUG - ++ args_array=([l]=length=) 2019-12-14 09:51:40,908: DEBUG - ++ declare -Ar args_array 2019-12-14 09:51:40,909: DEBUG - ++ local length 2019-12-14 09:51:40,909: DEBUG - ++ ynh_handle_getopts_args 2019-12-14 09:51:40,910: DEBUG - ++ set +x 2019-12-14 09:51:40,911: DEBUG - ++ length=24 2019-12-14 09:51:40,912: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000 2019-12-14 09:51:40,913: DEBUG - ++ tr -c -d A-Za-z0-9 2019-12-14 09:51:40,913: DEBUG - ++ sed -n 's/\(.\{24\}\).*/\1/p' 2019-12-14 09:51:40,914: DEBUG - + db_pwd=********** 2019-12-14 09:51:40,915: DEBUG - + ynh_app_setting_set --app=funkwhale --key=db_name --value=funkwhale 2019-12-14 09:51:40,915: DEBUG - + local legacy_args=akv 2019-12-14 09:51:40,916: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2019-12-14 09:51:40,917: DEBUG - + declare -Ar args_array 2019-12-14 09:51:40,918: DEBUG - + local app 2019-12-14 09:51:40,919: DEBUG - + local key 2019-12-14 09:51:40,920: DEBUG - + local value 2019-12-14 09:51:40,920: DEBUG - + ynh_handle_getopts_args --app=funkwhale --key=db_name --value=funkwhale 2019-12-14 09:51:40,921: DEBUG - + set +x 2019-12-14 09:51:40,922: DEBUG - + ynh_app_setting set funkwhale db_name funkwhale 2019-12-14 09:51:40,923: DEBUG - + ACTION=set 2019-12-14 09:51:40,924: DEBUG - + APP=funkwhale 2019-12-14 09:51:40,924: DEBUG - + KEY=db_name 2019-12-14 09:51:40,925: DEBUG - + VALUE=funkwhale 2019-12-14 09:51:40,926: DEBUG - + python - 2019-12-14 09:51:41,328: DEBUG - + ynh_app_setting_set --app=funkwhale --key=psqlpwd --value=********** 2019-12-14 09:51:41,329: DEBUG - + local legacy_args=akv 2019-12-14 09:51:41,330: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2019-12-14 09:51:41,331: DEBUG - + declare -Ar args_array 2019-12-14 09:51:41,332: DEBUG - + local app 2019-12-14 09:51:41,333: DEBUG - + local key 2019-12-14 09:51:41,334: DEBUG - + local value 2019-12-14 09:51:41,335: DEBUG - + ynh_handle_getopts_args --app=funkwhale --key=psqlpwd --value=********** 2019-12-14 09:51:41,337: DEBUG - + set +x 2019-12-14 09:51:41,338: DEBUG - + ynh_app_setting set funkwhale psqlpwd ********** 2019-12-14 09:51:41,338: DEBUG - + ACTION=set 2019-12-14 09:51:41,339: DEBUG - + APP=funkwhale 2019-12-14 09:51:41,340: DEBUG - + KEY=psqlpwd 2019-12-14 09:51:41,341: DEBUG - + VALUE=********** 2019-12-14 09:51:41,342: DEBUG - + python - 2019-12-14 09:51:41,845: DEBUG - + ynh_psql_setup_db --db_name=funkwhale --db_user=funkwhale --db_pwd=********** 2019-12-14 09:51:41,847: DEBUG - + local legacy_args=unp 2019-12-14 09:51:41,848: DEBUG - + args_array=([u]=db_user= [n]=db_name= [p]=db_pwd=) 2019-12-14 09:51:41,848: DEBUG - + declare -Ar args_array 2019-12-14 09:51:41,849: DEBUG - + local db_user 2019-12-14 09:51:41,850: DEBUG - + local db_name 2019-12-14 09:51:41,851: DEBUG - + db_pwd= 2019-12-14 09:51:41,853: DEBUG - + ynh_handle_getopts_args --db_name=funkwhale --db_user=funkwhale --db_pwd=********** 2019-12-14 09:51:41,854: DEBUG - + set +x 2019-12-14 09:51:41,856: DEBUG - ++ ynh_string_random 2019-12-14 09:51:41,857: DEBUG - ++ local legacy_args=l 2019-12-14 09:51:41,858: DEBUG - ++ args_array=([l]=length=) 2019-12-14 09:51:41,859: DEBUG - ++ declare -Ar args_array 2019-12-14 09:51:41,860: DEBUG - ++ local length 2019-12-14 09:51:41,862: DEBUG - ++ ynh_handle_getopts_args 2019-12-14 09:51:41,864: DEBUG - ++ set +x 2019-12-14 09:51:41,865: DEBUG - ++ length=24 2019-12-14 09:51:41,866: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000 2019-12-14 09:51:41,867: DEBUG - ++ tr -c -d A-Za-z0-9 2019-12-14 09:51:41,869: DEBUG - ++ sed -n 's/\(.\{24\}\).*/\1/p' 2019-12-14 09:51:41,870: DEBUG - + local new_db_pwd=********** 2019-12-14 09:51:41,871: DEBUG - + db_pwd=********** 2019-12-14 09:51:41,872: DEBUG - + ynh_psql_user_exists --user=funkwhale 2019-12-14 09:51:41,873: DEBUG - + local legacy_args=u 2019-12-14 09:51:41,874: DEBUG - + args_array=([u]=user=) 2019-12-14 09:51:41,875: DEBUG - + declare -Ar args_array 2019-12-14 09:51:41,877: DEBUG - + local user 2019-12-14 09:51:41,878: DEBUG - + ynh_handle_getopts_args --user=funkwhale 2019-12-14 09:51:41,880: DEBUG - + set +x 2019-12-14 09:51:41,881: DEBUG - + grep --quiet funkwhale 2019-12-14 09:51:41,882: DEBUG - ++ sudo cat /etc/yunohost/psql 2019-12-14 09:51:41,984: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql -tAc 'SELECT rolname FROM pg_roles WHERE rolname='\''funkwhale'\'';' 2019-12-14 09:51:42,397: DEBUG - + return 1 2019-12-14 09:51:42,397: DEBUG - + ynh_psql_create_user funkwhale ********** 2019-12-14 09:51:42,398: DEBUG - + local user=funkwhale 2019-12-14 09:51:42,399: DEBUG - + local pwd=********** 2019-12-14 09:51:42,399: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE USER funkwhale WITH ENCRYPTED PASSWORD '\''**********'\''' 2019-12-14 09:51:42,400: DEBUG - + local legacy_args=sd 2019-12-14 09:51:42,400: DEBUG - + args_array=([s]=sql= [d]=database=) 2019-12-14 09:51:42,401: DEBUG - + declare -Ar args_array 2019-12-14 09:51:42,401: DEBUG - + local sql 2019-12-14 09:51:42,402: DEBUG - + local database 2019-12-14 09:51:42,402: DEBUG - + ynh_handle_getopts_args '--sql=CREATE USER funkwhale WITH ENCRYPTED PASSWORD '\''**********'\''' 2019-12-14 09:51:42,403: DEBUG - + set +x 2019-12-14 09:51:42,504: DEBUG - + database= 2019-12-14 09:51:42,505: DEBUG - ++ sudo cat /etc/yunohost/psql 2019-12-14 09:51:42,507: DEBUG - + ynh_psql_connect_as --user=postgres --password=********** --database= 2019-12-14 09:51:42,507: DEBUG - + local legacy_args=upd 2019-12-14 09:51:42,508: DEBUG - + args_array=([u]=user= [p]=password= [d]=database=) 2019-12-14 09:51:42,509: DEBUG - + declare -Ar args_array 2019-12-14 09:51:42,510: DEBUG - + local user 2019-12-14 09:51:42,511: DEBUG - + local password 2019-12-14 09:51:42,512: DEBUG - + local database 2019-12-14 09:51:42,513: DEBUG - + ynh_handle_getopts_args --user=postgres --password=********** --database= 2019-12-14 09:51:42,514: DEBUG - + set +x 2019-12-14 09:51:42,615: DEBUG - + database= 2019-12-14 09:51:42,616: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql '' 2019-12-14 09:51:43,019: DEBUG - CREATE ROLE 2019-12-14 09:51:43,020: DEBUG - + ynh_psql_create_db funkwhale funkwhale 2019-12-14 09:51:43,021: DEBUG - + local db=funkwhale 2019-12-14 09:51:43,021: DEBUG - + local user=funkwhale 2019-12-14 09:51:43,022: DEBUG - + local 'sql=CREATE DATABASE funkwhale;' 2019-12-14 09:51:43,023: DEBUG - + '[' -n funkwhale ']' 2019-12-14 09:51:43,024: DEBUG - + sql+='GRANT ALL PRIVILEGES ON DATABASE funkwhale TO funkwhale WITH GRANT OPTION;' 2019-12-14 09:51:43,025: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE DATABASE funkwhale;GRANT ALL PRIVILEGES ON DATABASE funkwhale TO funkwhale WITH GRANT OPTION;' 2019-12-14 09:51:43,026: DEBUG - + local legacy_args=sd 2019-12-14 09:51:43,027: DEBUG - + args_array=([s]=sql= [d]=database=) 2019-12-14 09:51:43,028: DEBUG - + declare -Ar args_array 2019-12-14 09:51:43,028: DEBUG - + local sql 2019-12-14 09:51:43,029: DEBUG - + local database 2019-12-14 09:51:43,029: DEBUG - + ynh_handle_getopts_args '--sql=CREATE DATABASE funkwhale;GRANT ALL PRIVILEGES ON DATABASE funkwhale TO funkwhale WITH GRANT OPTION;' 2019-12-14 09:51:43,030: DEBUG - + set +x 2019-12-14 09:51:43,031: DEBUG - + database= 2019-12-14 09:51:43,031: DEBUG - ++ sudo cat /etc/yunohost/psql 2019-12-14 09:51:43,132: DEBUG - + ynh_psql_connect_as --user=postgres --password=********** --database= 2019-12-14 09:51:43,133: DEBUG - + local legacy_args=upd 2019-12-14 09:51:43,134: DEBUG - + args_array=([u]=user= [p]=password= [d]=database=) 2019-12-14 09:51:43,135: DEBUG - + declare -Ar args_array 2019-12-14 09:51:43,136: DEBUG - + local user 2019-12-14 09:51:43,137: DEBUG - + local password 2019-12-14 09:51:43,138: DEBUG - + local database 2019-12-14 09:51:43,138: DEBUG - + ynh_handle_getopts_args --user=postgres --password=********** --database= 2019-12-14 09:51:43,139: DEBUG - + set +x 2019-12-14 09:51:43,140: DEBUG - + database= 2019-12-14 09:51:43,140: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql '' 2019-12-14 09:51:45,048: DEBUG - CREATE DATABASE 2019-12-14 09:51:45,052: DEBUG - GRANT 2019-12-14 09:51:45,154: DEBUG - + ynh_app_setting_set --app=funkwhale --key=psqlpwd --value=********** 2019-12-14 09:51:45,157: DEBUG - + local legacy_args=akv 2019-12-14 09:51:45,158: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2019-12-14 09:51:45,160: DEBUG - + declare -Ar args_array 2019-12-14 09:51:45,162: DEBUG - + local app 2019-12-14 09:51:45,163: DEBUG - + local key 2019-12-14 09:51:45,165: DEBUG - + local value 2019-12-14 09:51:45,166: DEBUG - + ynh_handle_getopts_args --app=funkwhale --key=psqlpwd --value=********** 2019-12-14 09:51:45,167: DEBUG - + set +x 2019-12-14 09:51:45,168: DEBUG - + ynh_app_setting set funkwhale psqlpwd ********** 2019-12-14 09:51:45,169: DEBUG - + ACTION=set 2019-12-14 09:51:45,170: DEBUG - + APP=funkwhale 2019-12-14 09:51:45,171: DEBUG - + KEY=psqlpwd 2019-12-14 09:51:45,171: DEBUG - + VALUE=********** 2019-12-14 09:51:45,172: DEBUG - + python - 2019-12-14 09:51:45,574: DEBUG - + ynh_print_info '--message=Setting up source files...' 2019-12-14 09:51:45,575: DEBUG - + local legacy_args=m 2019-12-14 09:51:45,577: DEBUG - + args_array=([m]=message=) 2019-12-14 09:51:45,577: DEBUG - + declare -Ar args_array 2019-12-14 09:51:45,578: DEBUG - + local message 2019-12-14 09:51:45,580: DEBUG - + ynh_handle_getopts_args '--message=Setting up source files...' 2019-12-14 09:51:45,580: DEBUG - + set +x 2019-12-14 09:51:45,682: DEBUG - + echo 'Setting up source files...' 2019-12-14 09:51:45,683: INFO - Setting up source files... 2019-12-14 09:51:45,684: DEBUG - + ynh_app_setting_set --app=funkwhale --key=final_path --value=/var/www/funkwhale 2019-12-14 09:51:45,685: DEBUG - + local legacy_args=akv 2019-12-14 09:51:45,686: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2019-12-14 09:51:45,687: DEBUG - + declare -Ar args_array 2019-12-14 09:51:45,687: DEBUG - + local app 2019-12-14 09:51:45,688: DEBUG - + local key 2019-12-14 09:51:45,688: DEBUG - + local value 2019-12-14 09:51:45,689: DEBUG - + ynh_handle_getopts_args --app=funkwhale --key=final_path --value=/var/www/funkwhale 2019-12-14 09:51:45,689: DEBUG - + set +x 2019-12-14 09:51:45,690: DEBUG - + ynh_app_setting set funkwhale final_path /var/www/funkwhale 2019-12-14 09:51:45,690: DEBUG - + ACTION=set 2019-12-14 09:51:45,691: DEBUG - + APP=funkwhale 2019-12-14 09:51:45,692: DEBUG - + KEY=final_path 2019-12-14 09:51:45,692: DEBUG - + VALUE=/var/www/funkwhale 2019-12-14 09:51:45,693: DEBUG - + python - 2019-12-14 09:51:46,095: DEBUG - + ynh_setup_source --dest_dir=/var/www/funkwhale/code 2019-12-14 09:51:46,096: DEBUG - + local legacy_args=ds 2019-12-14 09:51:46,097: DEBUG - + args_array=([d]=dest_dir= [s]=source_id=) 2019-12-14 09:51:46,098: DEBUG - + declare -Ar args_array 2019-12-14 09:51:46,099: DEBUG - + local dest_dir 2019-12-14 09:51:46,100: DEBUG - + local source_id 2019-12-14 09:51:46,101: DEBUG - + ynh_handle_getopts_args --dest_dir=/var/www/funkwhale/code 2019-12-14 09:51:46,103: DEBUG - + set +x 2019-12-14 09:51:46,103: DEBUG - + source_id=app 2019-12-14 09:51:46,104: DEBUG - + local src_file_path=/var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app.src 2019-12-14 09:51:46,105: DEBUG - + '[' '!' -e /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app.src ']' 2019-12-14 09:51:46,105: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app.src 2019-12-14 09:51:46,106: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:46,106: DEBUG - + local src_url=https://dev.funkwhale.audio/funkwhale/funkwhale/-/archive/0.20.1/funkwhale-0.20.1.tar.gz 2019-12-14 09:51:46,107: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app.src 2019-12-14 09:51:46,107: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:46,108: DEBUG - + local src_sum=4fe4c9069957060b3ab31cbc39f01d621aed01c39fc0177628fd96777fdffc7e 2019-12-14 09:51:46,109: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app.src 2019-12-14 09:51:46,109: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:46,110: DEBUG - + local src_sumprg=sha256sum 2019-12-14 09:51:46,110: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app.src 2019-12-14 09:51:46,111: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:46,111: DEBUG - + local src_format=tar.bz2 2019-12-14 09:51:46,112: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app.src 2019-12-14 09:51:46,112: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:46,113: DEBUG - + local src_extract= 2019-12-14 09:51:46,113: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app.src 2019-12-14 09:51:46,114: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:46,114: DEBUG - + local src_in_subdir=true 2019-12-14 09:51:46,115: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app.src 2019-12-14 09:51:46,115: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:46,117: DEBUG - + local src_filename= 2019-12-14 09:51:46,118: DEBUG - + src_sumprg=sha256sum 2019-12-14 09:51:46,119: DEBUG - + src_in_subdir=true 2019-12-14 09:51:46,120: DEBUG - + src_format=tar.bz2 2019-12-14 09:51:46,122: DEBUG - ++ echo tar.bz2 2019-12-14 09:51:46,123: DEBUG - ++ tr '[:upper:]' '[:lower:]' 2019-12-14 09:51:46,124: DEBUG - + src_format=tar.bz2 2019-12-14 09:51:46,125: DEBUG - + src_extract=true 2019-12-14 09:51:46,127: DEBUG - + '[' '' = '' ']' 2019-12-14 09:51:46,128: DEBUG - + src_filename=app.tar.bz2 2019-12-14 09:51:46,128: DEBUG - + local local_src=/opt/yunohost-apps-src/funkwhale/app.tar.bz2 2019-12-14 09:51:46,129: DEBUG - + test -e /opt/yunohost-apps-src/funkwhale/app.tar.bz2 2019-12-14 09:51:46,130: DEBUG - ++ wget -nv -O app.tar.bz2 https://dev.funkwhale.audio/funkwhale/funkwhale/-/archive/0.20.1/funkwhale-0.20.1.tar.gz 2019-12-14 09:51:51,245: DEBUG - + local 'out=2019-12-14 09:51:51 URL:https://dev.funkwhale.audio/funkwhale/funkwhale/-/archive/0.20.1/funkwhale-0.20.1.tar.gz [4673716] -> "app.tar.bz2" [1]' 2019-12-14 09:51:51,246: DEBUG - + echo '4fe4c9069957060b3ab31cbc39f01d621aed01c39fc0177628fd96777fdffc7e app.tar.bz2' 2019-12-14 09:51:51,246: DEBUG - + sha256sum -c --status 2019-12-14 09:51:51,348: DEBUG - + mkdir -p /var/www/funkwhale/code 2019-12-14 09:51:51,348: DEBUG - + true 2019-12-14 09:51:51,349: DEBUG - + '[' tar.bz2 = zip ']' 2019-12-14 09:51:51,350: DEBUG - + local strip= 2019-12-14 09:51:51,350: DEBUG - + '[' true '!=' false ']' 2019-12-14 09:51:51,351: DEBUG - + '[' true == true ']' 2019-12-14 09:51:51,351: DEBUG - + local sub_dirs=1 2019-12-14 09:51:51,352: DEBUG - + strip='--strip-components 1' 2019-12-14 09:51:51,352: DEBUG - + [[ tar.bz2 =~ ^tar.gz|tar.bz2|tar.xz$ ]] 2019-12-14 09:51:51,353: DEBUG - + tar -xf app.tar.bz2 -C /var/www/funkwhale/code --strip-components 1 2019-12-14 09:51:51,654: DEBUG - ++ find /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../sources/patches/ -type f -name 'app-*.patch' 2019-12-14 09:51:51,655: DEBUG - ++ wc -l 2019-12-14 09:51:51,656: DEBUG - + (( 0 > 0 )) 2019-12-14 09:51:51,657: DEBUG - + test -e /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../sources/extra_files/app 2019-12-14 09:51:51,659: DEBUG - + cp -a /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../sources/extra_files/app/. /var/www/funkwhale/code 2019-12-14 09:51:51,661: DEBUG - + ynh_setup_source --dest_dir=/var/www/funkwhale/code --source_id=app-frontend 2019-12-14 09:51:51,662: DEBUG - + local legacy_args=ds 2019-12-14 09:51:51,663: DEBUG - + args_array=([d]=dest_dir= [s]=source_id=) 2019-12-14 09:51:51,664: DEBUG - + declare -Ar args_array 2019-12-14 09:51:51,665: DEBUG - + local dest_dir 2019-12-14 09:51:51,666: DEBUG - + local source_id 2019-12-14 09:51:51,668: DEBUG - + ynh_handle_getopts_args --dest_dir=/var/www/funkwhale/code --source_id=app-frontend 2019-12-14 09:51:51,670: DEBUG - + set +x 2019-12-14 09:51:51,671: DEBUG - + source_id=app-frontend 2019-12-14 09:51:51,672: DEBUG - + local src_file_path=/var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app-frontend.src 2019-12-14 09:51:51,673: DEBUG - + '[' '!' -e /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app-frontend.src ']' 2019-12-14 09:51:51,674: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app-frontend.src 2019-12-14 09:51:51,676: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:51,678: DEBUG - + local 'src_url=https://dev.funkwhale.audio/funkwhale/funkwhale/-/jobs/artifacts/0.20.1/download?job=build_front' 2019-12-14 09:51:51,679: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app-frontend.src 2019-12-14 09:51:51,680: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:51,681: DEBUG - + local src_sum=22d774590b943fa6d64f634a7175b1d100089fe33734ce9889d050063ff50ce7 2019-12-14 09:51:51,682: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app-frontend.src 2019-12-14 09:51:51,683: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:51,685: DEBUG - + local src_sumprg=sha256sum 2019-12-14 09:51:51,685: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app-frontend.src 2019-12-14 09:51:51,687: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:51,688: DEBUG - + local src_format=zip 2019-12-14 09:51:51,689: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app-frontend.src 2019-12-14 09:51:51,690: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:51,690: DEBUG - + local src_extract= 2019-12-14 09:51:51,691: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app-frontend.src 2019-12-14 09:51:51,692: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:51,692: DEBUG - + local src_in_subdir=false 2019-12-14 09:51:51,693: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../conf/app-frontend.src 2019-12-14 09:51:51,694: DEBUG - ++ cut -d= -f2- 2019-12-14 09:51:51,695: DEBUG - + local src_filename= 2019-12-14 09:51:51,696: DEBUG - + src_sumprg=sha256sum 2019-12-14 09:51:51,697: DEBUG - + src_in_subdir=false 2019-12-14 09:51:51,698: DEBUG - + src_format=zip 2019-12-14 09:51:51,698: DEBUG - ++ echo zip 2019-12-14 09:51:51,699: DEBUG - ++ tr '[:upper:]' '[:lower:]' 2019-12-14 09:51:51,700: DEBUG - + src_format=zip 2019-12-14 09:51:51,700: DEBUG - + src_extract=true 2019-12-14 09:51:51,701: DEBUG - + '[' '' = '' ']' 2019-12-14 09:51:51,701: DEBUG - + src_filename=app-frontend.zip 2019-12-14 09:51:51,702: DEBUG - + local local_src=/opt/yunohost-apps-src/funkwhale/app-frontend.zip 2019-12-14 09:51:51,703: DEBUG - + test -e /opt/yunohost-apps-src/funkwhale/app-frontend.zip 2019-12-14 09:51:51,703: DEBUG - ++ wget -nv -O app-frontend.zip 'https://dev.funkwhale.audio/funkwhale/funkwhale/-/jobs/artifacts/0.20.1/download?job=build_front' 2019-12-14 09:53:25,327: DEBUG - + local 'out=2019-12-14 09:53:25 URL:https://dev.funkwhale.audio/funkwhale/funkwhale/-/jobs/33709/artifacts/download [2570363/2570363] -> "app-frontend.zip" [1]' 2019-12-14 09:53:25,328: DEBUG - + echo '22d774590b943fa6d64f634a7175b1d100089fe33734ce9889d050063ff50ce7 app-frontend.zip' 2019-12-14 09:53:25,329: DEBUG - + sha256sum -c --status 2019-12-14 09:53:25,430: DEBUG - + mkdir -p /var/www/funkwhale/code 2019-12-14 09:53:25,431: DEBUG - + true 2019-12-14 09:53:25,431: DEBUG - + '[' zip = zip ']' 2019-12-14 09:53:25,432: DEBUG - + false 2019-12-14 09:53:25,433: DEBUG - + unzip -quo app-frontend.zip -d /var/www/funkwhale/code 2019-12-14 09:53:25,634: DEBUG - ++ find /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../sources/patches/ -type f -name 'app-frontend-*.patch' 2019-12-14 09:53:25,635: INFO - Configuring nginx web server... 2019-12-14 09:53:25,637: DEBUG - ++ wc -l 2019-12-14 09:53:25,638: DEBUG - + (( 0 > 0 )) 2019-12-14 09:53:25,639: DEBUG - + test -e /var/cache/yunohost/from_file/funkwhale_ynh-9d3f1f7c739cf4499fcd77c0c16aea4bab61d0d8/scripts/../sources/extra_files/app-frontend 2019-12-14 09:53:25,640: DEBUG - + cd /var/www/funkwhale 2019-12-14 09:53:25,640: DEBUG - + mkdir -p code/config code/api code/data/static media import code/front 2019-12-14 09:53:25,641: DEBUG - + ynh_print_info '--message=Configuring nginx web server...' 2019-12-14 09:53:25,642: DEBUG - + local legacy_args=m 2019-12-14 09:53:25,643: DEBUG - + args_array=([m]=message=) 2019-12-14 09:53:25,644: DEBUG - + declare -Ar args_array 2019-12-14 09:53:25,644: DEBUG - + local message 2019-12-14 09:53:25,645: DEBUG - + ynh_handle_getopts_args '--message=Configuring nginx web server...' 2019-12-14 09:53:25,646: DEBUG - + set +x 2019-12-14 09:53:25,647: DEBUG - + echo 'Configuring nginx web server...' 2019-12-14 09:53:25,648: DEBUG - + ynh_add_nginx_config 2019-12-14 09:53:25,648: DEBUG - + finalnginxconf=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:25,649: DEBUG - + local others_var= 2019-12-14 09:53:25,650: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:25,650: DEBUG - + local legacy_args=f 2019-12-14 09:53:25,651: DEBUG - + args_array=([f]=file=) 2019-12-14 09:53:25,652: DEBUG - + declare -Ar args_array 2019-12-14 09:53:25,653: DEBUG - + local file 2019-12-14 09:53:25,653: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:25,654: DEBUG - + set +x 2019-12-14 09:53:25,655: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_rbxii3.nohost.me.d_funkwhale.conf 2019-12-14 09:53:25,655: DEBUG - ++ ynh_app_setting_get --app=funkwhale --key=********** 2019-12-14 09:53:25,656: DEBUG - ++ local legacy_args=ak 2019-12-14 09:53:25,657: DEBUG - ++ args_array=([a]=app= [k]=key=) 2019-12-14 09:53:25,658: DEBUG - ++ declare -Ar args_array 2019-12-14 09:53:25,659: DEBUG - ++ local app 2019-12-14 09:53:25,659: DEBUG - ++ local key 2019-12-14 09:53:25,660: DEBUG - ++ ynh_handle_getopts_args --app=funkwhale --key=********** 2019-12-14 09:53:25,661: DEBUG - ++ set +x 2019-12-14 09:53:25,662: DEBUG - ++ ynh_app_setting get funkwhale ********** 2019-12-14 09:53:25,663: DEBUG - ++ ACTION=get 2019-12-14 09:53:25,664: DEBUG - ++ APP=funkwhale 2019-12-14 09:53:25,665: DEBUG - ++ KEY=********** 2019-12-14 09:53:25,666: DEBUG - ++ VALUE= 2019-12-14 09:53:25,667: DEBUG - ++ python - 2019-12-14 09:53:26,069: DEBUG - + local checksum_value= 2019-12-14 09:53:26,070: DEBUG - + backup_file_checksum= 2019-12-14 09:53:26,071: DEBUG - + '[' -n '' ']' 2019-12-14 09:53:26,072: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,174: DEBUG - + test -n / 2019-12-14 09:53:26,175: DEBUG - + local path_url_slash_less= 2019-12-14 09:53:26,175: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,176: DEBUG - + local legacy_args=mrf 2019-12-14 09:53:26,176: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2019-12-14 09:53:26,177: DEBUG - + declare -Ar args_array 2019-12-14 09:53:26,178: DEBUG - + local match_string 2019-12-14 09:53:26,179: DEBUG - + local replace_string 2019-12-14 09:53:26,181: DEBUG - + local target_file 2019-12-14 09:53:26,184: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,185: DEBUG - + set +x 2019-12-14 09:53:26,186: DEBUG - + local delimit=@ 2019-12-14 09:53:26,187: DEBUG - + match_string=__PATH__/ 2019-12-14 09:53:26,194: DEBUG - + replace_string=/ 2019-12-14 09:53:26,197: DEBUG - + sudo sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,298: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,299: DEBUG - + local legacy_args=mrf 2019-12-14 09:53:26,300: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2019-12-14 09:53:26,301: DEBUG - + declare -Ar args_array 2019-12-14 09:53:26,303: DEBUG - + local match_string 2019-12-14 09:53:26,304: DEBUG - + local replace_string 2019-12-14 09:53:26,305: DEBUG - + local target_file 2019-12-14 09:53:26,305: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,306: DEBUG - + set +x 2019-12-14 09:53:26,307: DEBUG - + local delimit=@ 2019-12-14 09:53:26,311: DEBUG - + match_string=__PATH__ 2019-12-14 09:53:26,313: DEBUG - + replace_string=/ 2019-12-14 09:53:26,314: DEBUG - + sudo sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,418: DEBUG - + test -n rbxii3.nohost.me 2019-12-14 09:53:26,419: DEBUG - + ynh_replace_string --match_string=__DOMAIN__ --replace_string=rbxii3.nohost.me --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,420: DEBUG - + local legacy_args=mrf 2019-12-14 09:53:26,421: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2019-12-14 09:53:26,422: DEBUG - + declare -Ar args_array 2019-12-14 09:53:26,423: DEBUG - + local match_string 2019-12-14 09:53:26,424: DEBUG - + local replace_string 2019-12-14 09:53:26,425: DEBUG - + local target_file 2019-12-14 09:53:26,426: DEBUG - + ynh_handle_getopts_args --match_string=__DOMAIN__ --replace_string=rbxii3.nohost.me --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,427: DEBUG - + set +x 2019-12-14 09:53:26,429: DEBUG - + local delimit=@ 2019-12-14 09:53:26,430: DEBUG - + match_string=__DOMAIN__ 2019-12-14 09:53:26,431: DEBUG - + replace_string=rbxii3.nohost.me 2019-12-14 09:53:26,432: DEBUG - + sudo sed --in-place s@__DOMAIN__@rbxii3.nohost.me@g /etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,533: DEBUG - + test -n 5000 2019-12-14 09:53:26,534: DEBUG - + ynh_replace_string --match_string=__PORT__ --replace_string=5000 --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,534: DEBUG - + local legacy_args=mrf 2019-12-14 09:53:26,535: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2019-12-14 09:53:26,535: DEBUG - + declare -Ar args_array 2019-12-14 09:53:26,536: DEBUG - + local match_string 2019-12-14 09:53:26,537: DEBUG - + local replace_string 2019-12-14 09:53:26,538: DEBUG - + local target_file 2019-12-14 09:53:26,539: DEBUG - + ynh_handle_getopts_args --match_string=__PORT__ --replace_string=5000 --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,541: DEBUG - + set +x 2019-12-14 09:53:26,542: DEBUG - + local delimit=@ 2019-12-14 09:53:26,543: DEBUG - + match_string=__PORT__ 2019-12-14 09:53:26,544: DEBUG - + replace_string=5000 2019-12-14 09:53:26,545: DEBUG - + sudo sed --in-place s@__PORT__@5000@g /etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,647: DEBUG - + test -n funkwhale 2019-12-14 09:53:26,648: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=funkwhale --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,649: DEBUG - + local legacy_args=mrf 2019-12-14 09:53:26,650: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2019-12-14 09:53:26,650: DEBUG - + declare -Ar args_array 2019-12-14 09:53:26,651: DEBUG - + local match_string 2019-12-14 09:53:26,652: DEBUG - + local replace_string 2019-12-14 09:53:26,653: DEBUG - + local target_file 2019-12-14 09:53:26,654: DEBUG - + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=funkwhale --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,655: DEBUG - + set +x 2019-12-14 09:53:26,656: DEBUG - + local delimit=@ 2019-12-14 09:53:26,657: DEBUG - + match_string=__NAME__ 2019-12-14 09:53:26,659: DEBUG - + replace_string=funkwhale 2019-12-14 09:53:26,660: DEBUG - + sudo sed --in-place s@__NAME__@funkwhale@g /etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,761: DEBUG - + test -n /var/www/funkwhale 2019-12-14 09:53:26,764: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/funkwhale --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,766: DEBUG - + local legacy_args=mrf 2019-12-14 09:53:26,768: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2019-12-14 09:53:26,770: DEBUG - + declare -Ar args_array 2019-12-14 09:53:26,772: DEBUG - + local match_string 2019-12-14 09:53:26,774: DEBUG - + local replace_string 2019-12-14 09:53:26,776: DEBUG - + local target_file 2019-12-14 09:53:26,778: DEBUG - + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/funkwhale --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,780: DEBUG - + set +x 2019-12-14 09:53:26,782: DEBUG - + local delimit=@ 2019-12-14 09:53:26,784: DEBUG - + match_string=__FINALPATH__ 2019-12-14 09:53:26,786: DEBUG - + replace_string=/var/www/funkwhale 2019-12-14 09:53:26,788: DEBUG - + sudo sed --in-place s@__FINALPATH__@/var/www/funkwhale@g /etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,890: DEBUG - + '[' / '!=' / ']' 2019-12-14 09:53:26,891: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,891: DEBUG - + local legacy_args=mrf 2019-12-14 09:53:26,892: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2019-12-14 09:53:26,893: DEBUG - + declare -Ar args_array 2019-12-14 09:53:26,893: DEBUG - + local match_string 2019-12-14 09:53:26,894: DEBUG - + local replace_string 2019-12-14 09:53:26,894: DEBUG - + local target_file 2019-12-14 09:53:26,895: DEBUG - + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,895: DEBUG - + set +x 2019-12-14 09:53:26,896: DEBUG - + local delimit=@ 2019-12-14 09:53:26,897: DEBUG - + match_string='^#root_path_only' 2019-12-14 09:53:26,897: DEBUG - + replace_string= 2019-12-14 09:53:26,898: DEBUG - + sudo sed --in-place 's@^#root_path_only@@g' /etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:26,999: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:27,000: DEBUG - + local legacy_args=f 2019-12-14 09:53:27,000: DEBUG - + args_array=([f]=file=) 2019-12-14 09:53:27,001: DEBUG - + declare -Ar args_array 2019-12-14 09:53:27,001: DEBUG - + local file 2019-12-14 09:53:27,002: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:27,002: DEBUG - + set +x 2019-12-14 09:53:27,003: DEBUG - + local checksum_setting_name=********** 2019-12-14 09:53:27,004: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/rbxii3.nohost.me.d/funkwhale.conf 2019-12-14 09:53:27,004: DEBUG - ++ cut '-d ' -f1 2019-12-14 09:53:27,105: DEBUG - + ynh_app_setting_set --app=funkwhale --key=********** --value=391fcd536846211f5285a02414b349dc 2019-12-14 09:53:27,107: DEBUG - + local legacy_args=akv 2019-12-14 09:53:27,107: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2019-12-14 09:53:27,108: DEBUG - + declare -Ar args_array 2019-12-14 09:53:27,108: DEBUG - + local app 2019-12-14 09:53:27,109: DEBUG - + local key 2019-12-14 09:53:27,109: DEBUG - + local value 2019-12-14 09:53:27,110: DEBUG - + ynh_handle_getopts_args --app=funkwhale --key=********** --value=391fcd536846211f5285a02414b349dc 2019-12-14 09:53:27,110: DEBUG - + set +x 2019-12-14 09:53:27,111: DEBUG - + ynh_app_setting set funkwhale ********** 391fcd536846211f5285a02414b349dc 2019-12-14 09:53:27,111: DEBUG - + ACTION=set 2019-12-14 09:53:27,112: DEBUG - + APP=funkwhale 2019-12-14 09:53:27,112: DEBUG - + KEY=********** 2019-12-14 09:53:27,113: DEBUG - + VALUE=391fcd536846211f5285a02414b349dc 2019-12-14 09:53:27,114: DEBUG - + python - 2019-12-14 09:53:27,515: DEBUG - + '[' -n '' ']' 2019-12-14 09:53:27,517: DEBUG - + unset backup_file_checksum 2019-12-14 09:53:27,518: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload 2019-12-14 09:53:27,518: DEBUG - + local legacy_args=nalpte 2019-12-14 09:53:27,520: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 2019-12-14 09:53:27,520: DEBUG - + declare -Ar args_array 2019-12-14 09:53:27,521: DEBUG - + local service_name 2019-12-14 09:53:27,522: DEBUG - + local action 2019-12-14 09:53:27,523: DEBUG - + local line_match 2019-12-14 09:53:27,524: DEBUG - + local length 2019-12-14 09:53:27,525: DEBUG - + local log_path 2019-12-14 09:53:27,526: DEBUG - + local timeout 2019-12-14 09:53:27,527: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload 2019-12-14 09:53:27,528: DEBUG - + set +x 2019-12-14 09:53:27,629: DEBUG - + local service_name=nginx 2019-12-14 09:53:27,630: DEBUG - + local action=reload 2019-12-14 09:53:27,631: DEBUG - + local log_path=/var/log/nginx/nginx.log 2019-12-14 09:53:27,632: DEBUG - + local length=20 2019-12-14 09:53:27,632: DEBUG - + local timeout=300 2019-12-14 09:53:27,633: DEBUG - + [[ -n '' ]] 2019-12-14 09:53:27,633: DEBUG - + '[' reload == reload ']' 2019-12-14 09:53:27,634: DEBUG - + action=reload-or-restart 2019-12-14 09:53:27,634: DEBUG - + systemctl reload-or-restart nginx 2019-12-14 09:53:27,836: DEBUG - + [[ -n '' ]] 2019-12-14 09:53:27,837: INFO - Configuring system user... 2019-12-14 09:53:27,839: DEBUG - + ynh_print_info '--message=Configuring system user...' 2019-12-14 09:53:27,840: DEBUG - + local legacy_args=m 2019-12-14 09:53:27,841: DEBUG - + args_array=([m]=message=) 2019-12-14 09:53:27,842: DEBUG - + declare -Ar args_array 2019-12-14 09:53:27,843: DEBUG - + local message 2019-12-14 09:53:27,844: DEBUG - + ynh_handle_getopts_args '--message=Configuring system user...' 2019-12-14 09:53:27,845: DEBUG - + set +x 2019-12-14 09:53:27,847: DEBUG - + echo 'Configuring system user...' 2019-12-14 09:53:27,848: DEBUG - + ynh_system_user_create --username=funkwhale --home_dir=/var/www/funkwhale 2019-12-14 09:53:27,849: DEBUG - + local legacy_args=uhs 2019-12-14 09:53:27,850: DEBUG - + args_array=([u]=username= [h]=home_dir= [s]=use_shell) 2019-12-14 09:53:27,851: DEBUG - + declare -Ar args_array 2019-12-14 09:53:27,852: DEBUG - + local username 2019-12-14 09:53:27,853: DEBUG - + local home_dir 2019-12-14 09:53:27,854: DEBUG - + local use_shell 2019-12-14 09:53:27,855: DEBUG - + ynh_handle_getopts_args --username=funkwhale --home_dir=/var/www/funkwhale 2019-12-14 09:53:27,855: DEBUG - + set +x 2019-12-14 09:53:27,856: DEBUG - + use_shell=0 2019-12-14 09:53:27,858: DEBUG - + home_dir=/var/www/funkwhale 2019-12-14 09:53:27,860: DEBUG - + ynh_system_user_exists funkwhale 2019-12-14 09:53:27,861: DEBUG - + local legacy_args=u 2019-12-14 09:53:27,862: DEBUG - + args_array=([u]=username=) 2019-12-14 09:53:27,866: DEBUG - + declare -Ar args_array 2019-12-14 09:53:27,867: DEBUG - + local username 2019-12-14 09:53:27,868: DEBUG - + ynh_handle_getopts_args funkwhale 2019-12-14 09:53:27,870: DEBUG - + set +x 2019-12-14 09:53:27,872: DEBUG - + echo '! Helper used in legacy mode !' 2019-12-14 09:53:27,873: DEBUG - + set +x 2019-12-14 09:53:27,874: DEBUG - + getent passwd funkwhale 2019-12-14 09:53:27,876: DEBUG - + '[' -n /var/www/funkwhale ']' 2019-12-14 09:53:27,877: DEBUG - + local 'user_home_dir=-d /var/www/funkwhale' 2019-12-14 09:53:27,879: DEBUG - + '[' 0 -eq 1 ']' 2019-12-14 09:53:27,880: DEBUG - + local 'shell=--shell /usr/sbin/nologin' 2019-12-14 09:53:27,881: DEBUG - + useradd -d /var/www/funkwhale --system --user-group funkwhale --shell /usr/sbin/nologin 2019-12-14 09:53:39,321: DEBUG - + virtualenv -p python3 /var/www/funkwhale/code/virtualenv 2019-12-14 09:53:41,830: DEBUG - Already using interpreter /usr/bin/python3 2019-12-14 09:53:41,831: DEBUG - Using base prefix '/usr' 2019-12-14 09:53:41,832: DEBUG - New python executable in /var/www/funkwhale/code/virtualenv/bin/python3 2019-12-14 09:53:41,833: DEBUG - Also creating executable in /var/www/funkwhale/code/virtualenv/bin/python 2019-12-14 09:54:10,216: DEBUG - Installing setuptools, pkg_resources, pip, wheel...done. 2019-12-14 09:54:10,318: DEBUG - + set +o nounset 2019-12-14 09:54:10,319: DEBUG - + source /var/www/funkwhale/code/virtualenv/bin/activate 2019-12-14 09:54:10,320: DEBUG - ++ deactivate nondestructive 2019-12-14 09:54:10,321: DEBUG - ++ unset -f pydoc 2019-12-14 09:54:10,322: DEBUG - ++ '[' -z '' ']' 2019-12-14 09:54:10,323: DEBUG - ++ '[' -z '' ']' 2019-12-14 09:54:10,324: DEBUG - ++ '[' -n /bin/bash ']' 2019-12-14 09:54:10,325: DEBUG - ++ hash -r 2019-12-14 09:54:10,326: DEBUG - ++ '[' -z '' ']' 2019-12-14 09:54:10,327: DEBUG - ++ unset VIRTUAL_ENV 2019-12-14 09:54:10,328: DEBUG - ++ '[' '!' nondestructive = nondestructive ']' 2019-12-14 09:54:10,329: DEBUG - ++ VIRTUAL_ENV=/var/www/funkwhale/code/virtualenv 2019-12-14 09:54:10,329: DEBUG - ++ export VIRTUAL_ENV 2019-12-14 09:54:10,330: DEBUG - ++ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2019-12-14 09:54:10,331: DEBUG - ++ PATH=/var/www/funkwhale/code/virtualenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2019-12-14 09:54:10,332: DEBUG - ++ export PATH 2019-12-14 09:54:10,333: DEBUG - ++ '[' -z '' ']' 2019-12-14 09:54:10,333: DEBUG - ++ '[' -z '' ']' 2019-12-14 09:54:10,334: DEBUG - ++ _OLD_VIRTUAL_PS1= 2019-12-14 09:54:10,335: DEBUG - ++ '[' x '!=' x ']' 2019-12-14 09:54:10,336: DEBUG - +++ basename /var/www/funkwhale/code/virtualenv 2019-12-14 09:54:10,337: DEBUG - ++ PS1='(virtualenv) ' 2019-12-14 09:54:10,338: DEBUG - ++ export PS1 2019-12-14 09:54:10,339: DEBUG - ++ alias pydoc 2019-12-14 09:54:10,339: DEBUG - ++ '[' -n /bin/bash ']' 2019-12-14 09:54:10,340: DEBUG - ++ hash -r 2019-12-14 09:54:10,341: DEBUG - + set -o nounset 2019-12-14 09:54:10,342: DEBUG - + pip install --upgrade pip 2019-12-14 09:54:12,649: DEBUG - Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2019-12-14 09:54:16,361: DEBUG - Requirement already up-to-date: pip in /var/www/funkwhale/code/virtualenv/lib/python3.5/site-packages (19.3.1) 2019-12-14 09:54:16,764: DEBUG - + pip install --upgrade setuptools 2019-12-14 09:54:18,971: DEBUG - Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2019-12-14 09:54:24,589: DEBUG - Requirement already up-to-date: setuptools in /var/www/funkwhale/code/virtualenv/lib/python3.5/site-packages (42.0.2) 2019-12-14 09:54:24,991: DEBUG - + pip install wheel 2019-12-14 09:54:27,204: DEBUG - Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2019-12-14 09:54:27,205: DEBUG - Requirement already satisfied: wheel in /var/www/funkwhale/code/virtualenv/lib/python3.5/site-packages (0.33.6) 2019-12-14 09:54:27,607: DEBUG - + pip install -r /var/www/funkwhale/code/api/requirements.txt 2019-12-14 09:54:30,116: DEBUG - Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2019-12-14 09:54:30,117: WARNING - Running command git clone -q https://github.com/EliotBerriot/requests-http-signature.git /tmp/pip-req-build-gjlozc2e 2019-12-14 09:54:30,119: DEBUG - Collecting git+https://github.com/EliotBerriot/requests-http-signature.git@signature-header-support (from -r /var/www/funkwhale/code/api/requirements/base.txt (line 62)) 2019-12-14 09:54:30,119: DEBUG - Cloning https://github.com/EliotBerriot/requests-http-signature.git (to revision signature-header-support) to /tmp/pip-req-build-gjlozc2e 2019-12-14 09:54:32,428: WARNING - Running command git checkout -b signature-header-support --track origin/signature-header-support 2019-12-14 09:54:32,430: WARNING - Switched to a new branch 'signature-header-support' 2019-12-14 09:54:32,432: WARNING - Branch signature-header-support set up to track remote branch signature-header-support from origin. 2019-12-14 09:54:37,549: DEBUG - Collecting django<2.3,>=2.2.4 2019-12-14 09:54:37,952: DEBUG - Using cached https://files.pythonhosted.org/packages/d3/d0/ef75c788627f4218a8d08dccdf4ebc91f5b83c48d09ec8f2a3db9610014b/Django-2.2.8-py3-none-any.whl 2019-12-14 09:54:45,977: DEBUG - Collecting django-environ<0.5,>=0.4 2019-12-14 09:54:46,379: DEBUG - Using cached https://www.piwheels.org/simple/django-environ/django_environ-0.4.5-py2.py3-none-any.whl 2019-12-14 09:54:52,298: DEBUG - Collecting Pillow<7,>=6.2 2019-12-14 09:54:54,306: DEBUG - Using cached https://files.pythonhosted.org/packages/5b/bb/cdc8086db1f15d0664dd22a62c69613cdc00f1dd430b5b19df1bea83f2a3/Pillow-6.2.1.tar.gz 2019-12-14 09:55:15,972: DEBUG - Collecting django-allauth<0.40,>=0.39 2019-12-14 09:55:16,475: DEBUG - Using cached https://www.piwheels.org/simple/django-allauth/django_allauth-0.39.1-py3-none-any.whl 2019-12-14 09:55:18,382: DEBUG - Collecting psycopg2-binary<=2.9,>=2.8 2019-12-14 09:55:18,884: DEBUG - Using cached https://www.piwheels.org/simple/psycopg2-binary/psycopg2_binary-2.8.4-cp35-cp35m-linux_armv7l.whl 2019-12-14 09:55:20,690: DEBUG - Collecting pytz==2019.1 2019-12-14 09:55:20,691: DEBUG - Using cached https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl 2019-12-14 09:55:22,096: DEBUG - Collecting django-redis<4.11,>=4.10 2019-12-14 09:55:22,498: DEBUG - Using cached https://www.piwheels.org/simple/django-redis/django_redis-4.10.0-py2.py3-none-any.whl 2019-12-14 09:55:23,502: DEBUG - Collecting redis<3.3,>=3.2 2019-12-14 09:55:23,906: DEBUG - Downloading https://www.piwheels.org/simple/redis/redis-3.2.1-py2.py3-none-any.whl (65kB) 2019-12-14 09:55:29,524: DEBUG - Collecting kombu<4.6,>=4.5 2019-12-14 09:55:29,827: DEBUG - Downloading https://files.pythonhosted.org/packages/b7/af/1914e93314f1b98756d5c5e366193124a0ffaab0e6d0e51e0f6f65fa851d/kombu-4.5.0-py2.py3-none-any.whl (185kB) 2019-12-14 09:55:30,931: WARNING - WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))': /simple/celery/ 2019-12-14 09:55:35,146: DEBUG - Collecting celery<4.4,>=4.3 2019-12-14 09:55:35,147: DEBUG - Downloading https://files.pythonhosted.org/packages/5c/a1/a3dd9d8bfa09156ec2cba37f90accf35c0f4ecc3980d96cb4fb99e56504b/celery-4.3.0-py2.py3-none-any.whl (413kB) 2019-12-14 09:55:38,258: DEBUG - Collecting django-cors-headers<2.6,>=2.5.3 2019-12-14 09:55:38,660: DEBUG - Downloading https://www.piwheels.org/simple/django-cors-headers/django_cors_headers-2.5.3-py2.py3-none-any.whl 2019-12-14 09:55:40,367: DEBUG - Collecting musicbrainzngs==0.6 2019-12-14 09:55:40,769: DEBUG - Using cached https://www.piwheels.org/simple/musicbrainzngs/musicbrainzngs-0.6-py3-none-any.whl 2019-12-14 09:55:42,576: DEBUG - Collecting djangorestframework<3.11,>=3.10 2019-12-14 09:55:42,577: DEBUG - Downloading https://files.pythonhosted.org/packages/33/8e/87a4e0025e3c4736c1dc728905b1b06a94968ce08de15304417acb40e374/djangorestframework-3.10.3-py3-none-any.whl (909kB) 2019-12-14 09:55:43,581: WARNING - WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))': /simple/djangorestframework-jwt/ 2019-12-14 09:55:45,488: DEBUG - Collecting djangorestframework-jwt<1.12,>=1.11 2019-12-14 09:55:45,890: DEBUG - Using cached https://www.piwheels.org/simple/djangorestframework-jwt/djangorestframework_jwt-1.11.0-py2.py3-none-any.whl 2019-12-14 09:55:47,496: DEBUG - Collecting pendulum<3,>=2 2019-12-14 09:55:47,798: DEBUG - Using cached https://www.piwheels.org/simple/pendulum/pendulum-2.0.5-cp35-cp35m-linux_armv7l.whl 2019-12-14 09:55:48,801: DEBUG - Collecting persisting-theory<0.3,>=0.2 2019-12-14 09:55:49,505: DEBUG - Using cached https://www.piwheels.org/simple/persisting-theory/persisting_theory-0.2.1-py3-none-any.whl 2019-12-14 09:55:50,610: DEBUG - Collecting django-versatileimagefield<1.11,>=1.10 2019-12-14 09:55:50,912: DEBUG - Downloading https://www.piwheels.org/simple/django-versatileimagefield/django_versatileimagefield-1.10-py2.py3-none-any.whl (54kB) 2019-12-14 09:55:52,819: DEBUG - Collecting django-filter<2.2,>=2.1 2019-12-14 09:55:53,221: DEBUG - Using cached https://www.piwheels.org/simple/django-filter/django_filter-2.1.0-py3-none-any.whl 2019-12-14 09:55:54,024: DEBUG - Collecting django-rest-auth<0.10,>=0.9 2019-12-14 09:55:54,627: DEBUG - Using cached https://www.piwheels.org/simple/django-rest-auth/django_rest_auth-0.9.5-py2.py3-none-any.whl 2019-12-14 09:55:55,932: DEBUG - Collecting ipython<8,>=7 2019-12-14 09:55:56,435: DEBUG - Using cached https://www.piwheels.org/simple/ipython/ipython-7.10.1-py3-none-any.whl 2019-12-14 09:55:58,141: WARNING - ERROR: Package 'ipython' requires a different Python: 3.5.3 not in '>=3.6' 2019-12-14 09:55:58,545: DEBUG - + ynh_exit_properly 2019-12-14 09:55:58,546: DEBUG - + local exit_code=1 2019-12-14 09:55:58,546: DEBUG - + '[' 1 -eq 0 ']' 2019-12-14 09:55:58,547: DEBUG - + trap '' EXIT 2019-12-14 09:55:58,547: DEBUG - + set +eu 2019-12-14 09:55:58,548: DEBUG - + sleep 0.5 2019-12-14 09:55:59,050: DEBUG - + ynh_print_err '--message=!!\n funkwhale'\''s script has encountered an error. Its execution was cancelled.\n!!' 2019-12-14 09:55:59,052: WARNING - [ERR] !! 2019-12-14 09:55:59,057: DEBUG - + local legacy_args=m 2019-12-14 09:55:59,058: WARNING - funkwhale's script has encountered an error. Its execution was cancelled. 2019-12-14 09:55:59,063: DEBUG - + args_array=([m]=message=) 2019-12-14 09:55:59,066: WARNING - !! 2019-12-14 09:55:59,070: DEBUG - + declare -Ar args_array 2019-12-14 09:55:59,072: WARNING - 2019-12-14 09:55:59,075: DEBUG - + local message 2019-12-14 09:55:59,078: DEBUG - + ynh_handle_getopts_args '--message=!!\n funkwhale'\''s script has encountered an error. Its execution was cancelled.\n!!' 2019-12-14 09:55:59,079: DEBUG - + set +x 2019-12-14 09:55:59,081: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n funkwhale'\''s script has encountered an error. Its execution was cancelled.\n!!' 2019-12-14 09:55:59,082: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n funkwhale'\''s script has encountered an error. Its execution was cancelled.\n!!' 2019-12-14 09:55:59,083: DEBUG - + '[' api == cli ']' 2019-12-14 09:55:59,084: DEBUG - + type -t ynh_clean_setup 2019-12-14 09:55:59,086: DEBUG - + ynh_clean_setup 2019-12-14 09:55:59,087: DEBUG - + ynh_clean_check_starting 2019-12-14 09:55:59,089: DEBUG - + kill -s 15 2019-12-14 09:55:59,090: DEBUG - kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] 2019-12-14 09:55:59,091: DEBUG - + ynh_secure_remove '' 2019-12-14 09:55:59,092: DEBUG - + local legacy_args=f 2019-12-14 09:55:59,093: DEBUG - + args_array=([f]=file=) 2019-12-14 09:55:59,094: DEBUG - + declare -Ar args_array 2019-12-14 09:55:59,096: DEBUG - + local file 2019-12-14 09:55:59,097: DEBUG - + ynh_handle_getopts_args '' 2019-12-14 09:55:59,098: DEBUG - + set +x 2019-12-14 09:55:59,099: DEBUG - + echo '! Helper used in legacy mode !' 2019-12-14 09:55:59,101: DEBUG - + set +x 2019-12-14 09:55:59,102: DEBUG - + local 'forbidden_path= /var/www /home/yunohost.app' 2019-12-14 09:55:59,103: DEBUG - + '[' 1 -ge 2 ']' 2019-12-14 09:55:59,104: DEBUG - + [[ /var/www /home/yunohost.app =~ '' ]] 2019-12-14 09:55:59,105: DEBUG - + ynh_print_warn '--message=Avoid deleting .' 2019-12-14 09:55:59,107: DEBUG - + local legacy_args=m 2019-12-14 09:55:59,108: DEBUG - + args_array=([m]=message=) 2019-12-14 09:55:59,109: DEBUG - + declare -Ar args_array 2019-12-14 09:55:59,110: DEBUG - + local message 2019-12-14 09:55:59,111: DEBUG - + ynh_handle_getopts_args '--message=Avoid deleting .' 2019-12-14 09:55:59,113: DEBUG - + set +x 2019-12-14 09:55:59,114: DEBUG - + ynh_print_log '\e[93m\e[1m[WARN]\e[0m Avoid deleting .' 2019-12-14 09:55:59,115: DEBUG - + echo -e '\e[93m\e[1m[WARN]\e[0m Avoid deleting .' 2019-12-14 09:55:59,116: DEBUG - [WARN] Avoid deleting . 2019-12-14 09:55:59,118: DEBUG - + ynh_die 2019-12-14 09:55:59,119: DEBUG - + local legacy_args=mc 2019-12-14 09:55:59,120: DEBUG - + args_array=([m]=message= [c]=ret_code=) 2019-12-14 09:55:59,121: DEBUG - + declare -Ar args_array 2019-12-14 09:55:59,123: DEBUG - + local message 2019-12-14 09:55:59,124: DEBUG - + local ret_code 2019-12-14 09:55:59,125: DEBUG - + ynh_handle_getopts_args 2019-12-14 09:55:59,126: DEBUG - + set +x 2019-12-14 09:55:59,127: DEBUG - + echo '' 2019-12-14 09:55:59,129: DEBUG - + exit

Jibec commented 4 years ago

thanks for your issue, this is a duplication of #89