YunoHost-Apps / snipeit_ynh

Snipe-IT package for YunoHost
https://snipeitapp.com/
GNU Affero General Public License v3.0
2 stars 1 forks source link

Installation fails #9

Closed tripflip closed 4 years ago

tripflip commented 4 years ago

i have most recent version of yunohost, and try installing snipeit through webinterface of ynh.

Intel i7 4820k 4GB ram

2020-01-08 09:25:58,732: INFO - Installing application snipeit… 2020-01-08 09:25:58,797: DEBUG - Führe den Behfehl 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_LANGUAGE=de YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmp44p7RL/stdinfo YNH_CWD=/var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts YNH_APP_INSTANCE_NAME=snipeit YNH_APP_ARG_ADMIN=madpanda YNH_INTERFACE=api YNH_APP_ID=snipeit YNH_STDRETURN=/tmp/tmpLu9gZ4/stdreturn YNH_APP_ARG_DOMAIN=snipe.mdpnd.ch BASH_XTRACEFD=7 /bin/bash -x "./install" snipe.mdpnd.ch madpanda 1 de snipeit 7>&1' aus... 2020-01-08 09:25:58,798: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_LANGUAGE=de YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmp44p7RL/stdinfo YNH_CWD=/var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts YNH_APP_INSTANCE_NAME=snipeit YNH_APP_ARG_ADMIN=madpanda YNH_INTERFACE=api YNH_APP_ID=snipeit YNH_STDRETURN=/tmp/tmpLu9gZ4/stdreturn YNH_APP_ARG_DOMAIN=snipe.mdpnd.ch BASH_XTRACEFD=7 /bin/bash -x "./install" snipe.mdpnd.ch madpanda 1 de snipeit 7>&1']' 2020-01-08 09:25:58,804: DEBUG - + source _common.sh 2020-01-08 09:25:58,805: DEBUG - ++ pkg_dependencies='openssl php-mbstring php-curl php-mysql php-ldap php-zip php-bcmath php-xml php-common' 2020-01-08 09:25:58,805: DEBUG - + source /usr/share/yunohost/helpers 2020-01-08 09:25:58,805: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d 2020-01-08 09:25:58,805: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,805: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']' 2020-01-08 09:25:58,805: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt 2020-01-08 09:25:58,805: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,805: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']' 2020-01-08 09:25:58,805: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup 2020-01-08 09:25:58,806: DEBUG - +++ CAN_BIND=1 2020-01-08 09:25:58,806: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,806: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']' 2020-01-08 09:25:58,806: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban 2020-01-08 09:25:58,806: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,806: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']' 2020-01-08 09:25:58,806: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts 2020-01-08 09:25:58,806: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,806: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']' 2020-01-08 09:25:58,806: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging 2020-01-08 09:25:58,806: DEBUG - +++ increment_progression=0 2020-01-08 09:25:58,806: DEBUG - +++ previous_weight=0 2020-01-08 09:25:58,806: DEBUG - +++ max_progression=-1 2020-01-08 09:25:58,807: DEBUG - +++ progress_scale=20 2020-01-08 09:25:58,807: DEBUG - +++ progress_string2='####################' 2020-01-08 09:25:58,807: DEBUG - +++ progress_string1=++++++++++++++++++++ 2020-01-08 09:25:58,807: DEBUG - +++ progress_string0=.................... 2020-01-08 09:25:58,807: DEBUG - ++++ date +%s 2020-01-08 09:25:58,907: DEBUG - +++ base_time=1578471958 2020-01-08 09:25:58,907: INFO - [+...................] > Validating installation parameters... [00h00m,00s] 2020-01-08 09:25:58,908: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,908: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']' 2020-01-08 09:25:58,908: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate 2020-01-08 09:25:58,908: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,909: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']' 2020-01-08 09:25:58,909: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql 2020-01-08 09:25:58,909: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql 2020-01-08 09:25:58,909: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,909: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']' 2020-01-08 09:25:58,909: DEBUG - ++ . /usr/share/yunohost/helpers.d/network 2020-01-08 09:25:58,909: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,909: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']' 2020-01-08 09:25:58,909: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx 2020-01-08 09:25:58,909: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,909: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']' 2020-01-08 09:25:58,909: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs 2020-01-08 09:25:58,909: DEBUG - +++ n_install_dir=/opt/node_n 2020-01-08 09:25:58,910: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node 2020-01-08 09:25:58,910: DEBUG - +++ export N_PREFIX=/opt/node_n 2020-01-08 09:25:58,910: DEBUG - +++ N_PREFIX=/opt/node_n 2020-01-08 09:25:58,910: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,910: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']' 2020-01-08 09:25:58,910: DEBUG - ++ . /usr/share/yunohost/helpers.d/php 2020-01-08 09:25:58,910: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,910: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']' 2020-01-08 09:25:58,910: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql 2020-01-08 09:25:58,910: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql 2020-01-08 09:25:58,910: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,910: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']' 2020-01-08 09:25:58,910: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting 2020-01-08 09:25:58,910: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,910: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']' 2020-01-08 09:25:58,911: DEBUG - ++ . /usr/share/yunohost/helpers.d/string 2020-01-08 09:25:58,911: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,911: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']' 2020-01-08 09:25:58,911: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd 2020-01-08 09:25:58,911: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,911: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']' 2020-01-08 09:25:58,911: DEBUG - ++ . /usr/share/yunohost/helpers.d/user 2020-01-08 09:25:58,911: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2020-01-08 09:25:58,911: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']' 2020-01-08 09:25:58,911: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils 2020-01-08 09:25:58,911: DEBUG - + ynh_abort_if_errors 2020-01-08 09:25:58,911: DEBUG - + set -eu 2020-01-08 09:25:58,911: DEBUG - + trap ynh_exit_properly EXIT 2020-01-08 09:25:58,911: DEBUG - + domain=snipe.mdpnd.ch 2020-01-08 09:25:58,912: DEBUG - + path_url=/ 2020-01-08 09:25:58,912: DEBUG - + admin=madpanda 2020-01-08 09:25:58,912: DEBUG - + is_public=1 2020-01-08 09:25:58,912: DEBUG - + language=de 2020-01-08 09:25:58,912: DEBUG - + app=snipeit 2020-01-08 09:25:58,912: DEBUG - + ynh_script_progression '--message=Validating installation parameters...' --time --weight=1 2020-01-08 09:25:58,912: DEBUG - + set +x 2020-01-08 09:25:58,912: DEBUG - + set +x 2020-01-08 09:25:58,912: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:25:58,912: DEBUG - + set +x 2020-01-08 09:25:58,912: DEBUG - + echo '[+...................] > Validating installation parameters... [00h00m,00s]' 2020-01-08 09:25:58,912: DEBUG - + set -x 2020-01-08 09:25:58,912: DEBUG - + final_path=/var/www/snipeit 2020-01-08 09:25:58,912: DEBUG - + test '!' -e /var/www/snipeit 2020-01-08 09:25:58,912: DEBUG - + ynh_webpath_register --app=snipeit --domain=snipe.mdpnd.ch --path_url=/ 2020-01-08 09:25:58,913: DEBUG - + local legacy_args=adp 2020-01-08 09:25:58,913: DEBUG - + args_array=([a]=app= [d]=domain= [p]=path_url=) 2020-01-08 09:25:58,913: DEBUG - + declare -Ar args_array 2020-01-08 09:25:58,913: DEBUG - + local app 2020-01-08 09:25:58,913: DEBUG - + local domain 2020-01-08 09:25:58,913: DEBUG - + local path_url 2020-01-08 09:25:58,913: DEBUG - + ynh_handle_getopts_args --app=snipeit --domain=snipe.mdpnd.ch --path_url=/ 2020-01-08 09:25:58,913: DEBUG - + set +x 2020-01-08 09:25:58,913: DEBUG - + sudo yunohost app register-url snipeit snipe.mdpnd.ch / 2020-01-08 09:25:59,214: DEBUG - + ynh_script_progression '--message=Storing installation settings...' --time --weight=1 2020-01-08 09:25:59,214: INFO - [#++.................] > Storing installation settings... [00h00m,01s] 2020-01-08 09:25:59,214: DEBUG - + set +x 2020-01-08 09:25:59,214: DEBUG - + set +x 2020-01-08 09:25:59,214: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:25:59,214: DEBUG - + set +x 2020-01-08 09:25:59,215: DEBUG - + echo '[#++.................] > Storing installation settings... [00h00m,01s]' 2020-01-08 09:25:59,215: DEBUG - + set -x 2020-01-08 09:25:59,215: DEBUG - + ynh_app_setting_set --app=snipeit --key=domain --value=snipe.mdpnd.ch 2020-01-08 09:25:59,215: DEBUG - + local legacy_args=akv 2020-01-08 09:25:59,215: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:25:59,215: DEBUG - + declare -Ar args_array 2020-01-08 09:25:59,215: DEBUG - + local app 2020-01-08 09:25:59,215: DEBUG - + local key 2020-01-08 09:25:59,215: DEBUG - + local value 2020-01-08 09:25:59,215: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=domain --value=snipe.mdpnd.ch 2020-01-08 09:25:59,215: DEBUG - + set +x 2020-01-08 09:25:59,215: DEBUG - + ynh_app_setting set snipeit domain snipe.mdpnd.ch 2020-01-08 09:25:59,215: DEBUG - + ACTION=set 2020-01-08 09:25:59,215: DEBUG - + APP=snipeit 2020-01-08 09:25:59,216: DEBUG - + KEY=domain 2020-01-08 09:25:59,216: DEBUG - + VALUE=snipe.mdpnd.ch 2020-01-08 09:25:59,216: DEBUG - + python - 2020-01-08 09:25:59,216: DEBUG - + ynh_app_setting_set --app=snipeit --key=path --value=/ 2020-01-08 09:25:59,216: DEBUG - + local legacy_args=akv 2020-01-08 09:25:59,216: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:25:59,216: DEBUG - + declare -Ar args_array 2020-01-08 09:25:59,216: DEBUG - + local app 2020-01-08 09:25:59,216: DEBUG - + local key 2020-01-08 09:25:59,216: DEBUG - + local value 2020-01-08 09:25:59,216: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=path --value=/ 2020-01-08 09:25:59,216: DEBUG - + set +x 2020-01-08 09:25:59,317: DEBUG - + ynh_app_setting set snipeit path / 2020-01-08 09:25:59,317: DEBUG - + ACTION=set 2020-01-08 09:25:59,317: DEBUG - + APP=snipeit 2020-01-08 09:25:59,317: DEBUG - + KEY=path 2020-01-08 09:25:59,317: DEBUG - + VALUE=/ 2020-01-08 09:25:59,317: DEBUG - + python - 2020-01-08 09:25:59,317: DEBUG - + ynh_app_setting_set --app=snipeit --key=admin --value=madpanda 2020-01-08 09:25:59,318: DEBUG - + local legacy_args=akv 2020-01-08 09:25:59,318: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:25:59,318: DEBUG - + declare -Ar args_array 2020-01-08 09:25:59,318: DEBUG - + local app 2020-01-08 09:25:59,318: DEBUG - + local key 2020-01-08 09:25:59,318: DEBUG - + local value 2020-01-08 09:25:59,318: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=admin --value=madpanda 2020-01-08 09:25:59,318: DEBUG - + set +x 2020-01-08 09:25:59,318: DEBUG - + ynh_app_setting set snipeit admin madpanda 2020-01-08 09:25:59,318: DEBUG - + ACTION=set 2020-01-08 09:25:59,318: DEBUG - + APP=snipeit 2020-01-08 09:25:59,318: DEBUG - + KEY=admin 2020-01-08 09:25:59,318: DEBUG - + VALUE=madpanda 2020-01-08 09:25:59,318: DEBUG - + python - 2020-01-08 09:25:59,419: DEBUG - + ynh_app_setting_set --app=snipeit --key=is_public --value=1 2020-01-08 09:25:59,419: DEBUG - + local legacy_args=akv 2020-01-08 09:25:59,419: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:25:59,419: DEBUG - + declare -Ar args_array 2020-01-08 09:25:59,419: DEBUG - + local app 2020-01-08 09:25:59,419: DEBUG - + local key 2020-01-08 09:25:59,419: DEBUG - + local value 2020-01-08 09:25:59,419: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=is_public --value=1 2020-01-08 09:25:59,419: DEBUG - + set +x 2020-01-08 09:25:59,420: DEBUG - + ynh_app_setting set snipeit is_public 1 2020-01-08 09:25:59,420: DEBUG - + ACTION=set 2020-01-08 09:25:59,420: DEBUG - + APP=snipeit 2020-01-08 09:25:59,420: DEBUG - + KEY=is_public 2020-01-08 09:25:59,420: DEBUG - + VALUE=1 2020-01-08 09:25:59,420: DEBUG - + python - 2020-01-08 09:25:59,520: DEBUG - + ynh_app_setting_set --app=snipeit --key=language --value=de 2020-01-08 09:25:59,520: DEBUG - + local legacy_args=akv 2020-01-08 09:25:59,520: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:25:59,520: DEBUG - + declare -Ar args_array 2020-01-08 09:25:59,521: DEBUG - + local app 2020-01-08 09:25:59,521: DEBUG - + local key 2020-01-08 09:25:59,521: DEBUG - + local value 2020-01-08 09:25:59,521: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=language --value=de 2020-01-08 09:25:59,521: DEBUG - + set +x 2020-01-08 09:25:59,521: DEBUG - + ynh_app_setting set snipeit language de 2020-01-08 09:25:59,521: DEBUG - + ACTION=set 2020-01-08 09:25:59,521: DEBUG - + APP=snipeit 2020-01-08 09:25:59,521: DEBUG - + KEY=language 2020-01-08 09:25:59,521: DEBUG - + VALUE=de 2020-01-08 09:25:59,521: DEBUG - + python - 2020-01-08 09:25:59,521: DEBUG - + ynh_script_progression '--message=Installing dependencies...' --time --weight=1 2020-01-08 09:25:59,521: DEBUG - + set +x 2020-01-08 09:25:59,521: DEBUG - + set +x 2020-01-08 09:25:59,522: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:25:59,522: DEBUG - + set +x 2020-01-08 09:25:59,522: DEBUG - + echo '[###++...............] > Installing dependencies... [00h00m,00s]' 2020-01-08 09:25:59,522: DEBUG - + set -x 2020-01-08 09:25:59,522: DEBUG - + ynh_install_app_dependencies openssl php-mbstring php-curl php-mysql php-ldap php-zip php-bcmath php-xml php-common 2020-01-08 09:25:59,522: DEBUG - + local 'dependencies=openssl php-mbstring php-curl php-mysql php-ldap php-zip php-bcmath php-xml php-common' 2020-01-08 09:25:59,522: DEBUG - + local 'dependencies=openssl, php-mbstring, php-curl, php-mysql, php-ldap, php-zip, php-bcmath, php-xml, php-common' 2020-01-08 09:25:59,522: DEBUG - + local 'dependencies=openssl, php-mbstring, php-curl, php-mysql, php-ldap, php-zip, php-bcmath, php-xml, php-common' 2020-01-08 09:25:59,522: DEBUG - + local manifest_path=../manifest.json 2020-01-08 09:25:59,522: DEBUG - + '[' '!' -e ../manifest.json ']' 2020-01-08 09:25:59,522: DEBUG - ++ grep '"version": ' ../manifest.json 2020-01-08 09:25:59,522: DEBUG - ++ cut -d '"' -f 4 2020-01-08 09:25:59,522: DEBUG - + local version=4.6.15ynh2 2020-01-08 09:25:59,522: DEBUG - + '[' 11 -eq 0 ']' 2020-01-08 09:25:59,522: DEBUG - + local dep_app=snipeit 2020-01-08 09:25:59,523: DEBUG - + echo openssl, php-mbstring, php-curl, php-mysql, php-ldap, php-zip, php-bcmath, php-xml, php-common 2020-01-08 09:25:59,523: DEBUG - + grep -q php 2020-01-08 09:25:59,523: DEBUG - + dpkg --list 2020-01-08 09:25:59,523: DEBUG - + grep php7.0 2020-01-08 09:25:59,523: DEBUG - + grep -q -v 7.0.33-0+deb9 2020-01-08 09:25:59,623: DEBUG - + grep -nrq sury /etc/apt/sources.list /etc/apt/sources.list /etc/apt/sources.list.d 2020-01-08 09:25:59,623: INFO - [###++...............] > Installing dependencies... [00h00m,00s] 2020-01-08 09:25:59,624: DEBUG - + cat 2020-01-08 09:25:59,624: DEBUG - + ynh_package_install_from_equivs /tmp/snipeit-ynh-deps.control 2020-01-08 09:25:59,624: DEBUG - + local controlfile=/tmp/snipeit-ynh-deps.control 2020-01-08 09:25:59,624: DEBUG - ++ grep '^Package: ' /tmp/snipeit-ynh-deps.control 2020-01-08 09:25:59,624: DEBUG - ++ cut '-d ' -f 2 2020-01-08 09:25:59,624: DEBUG - + local pkgname=snipeit-ynh-deps 2020-01-08 09:25:59,624: DEBUG - ++ grep '^Version: ' /tmp/snipeit-ynh-deps.control 2020-01-08 09:25:59,624: DEBUG - ++ cut '-d ' -f 2 2020-01-08 09:25:59,624: DEBUG - + local pkgversion=4.6.15ynh2 2020-01-08 09:25:59,624: DEBUG - + [[ -z snipeit-ynh-deps ]] 2020-01-08 09:25:59,624: DEBUG - + [[ -z 4.6.15ynh2 ]] 2020-01-08 09:25:59,624: DEBUG - + ynh_package_update 2020-01-08 09:25:59,624: DEBUG - + ynh_apt update 2020-01-08 09:25:59,624: DEBUG - + ynh_wait_dpkg_free 2020-01-08 09:25:59,625: DEBUG - + local try 2020-01-08 09:25:59,625: DEBUG - ++ seq 1 17 2020-01-08 09:25:59,625: DEBUG - + for try in seq 1 17 2020-01-08 09:25:59,625: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-01-08 09:25:59,725: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-08 09:25:59,725: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-01-08 09:25:59,725: DEBUG - + read dpkg_file 2020-01-08 09:25:59,725: DEBUG - + echo '' 2020-01-08 09:25:59,725: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-01-08 09:25:59,725: DEBUG - + read dpkg_file 2020-01-08 09:25:59,726: DEBUG - + return 0 2020-01-08 09:25:59,726: DEBUG - + DEBIAN_FRONTEND=noninteractive 2020-01-08 09:25:59,726: DEBUG - + apt-get -y update 2020-01-08 09:25:59,926: DEBUG - Holen:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB] 2020-01-08 09:25:59,926: DEBUG - Ign:2 http://ftp.ch.debian.org/debian stretch InRelease 2020-01-08 09:25:59,926: DEBUG - OK:3 http://forge.yunohost.org/debian stretch InRelease 2020-01-08 09:25:59,927: DEBUG - OK:4 http://ftp.ch.debian.org/debian stretch-updates InRelease 2020-01-08 09:25:59,927: DEBUG - OK:5 http://ftp.ch.debian.org/debian stretch Release 2020-01-08 09:26:00,027: DEBUG - OK:6 https://download.docker.com/linux/debian stretch InRelease 2020-01-08 09:26:00,027: DEBUG - OK:7 https://packages.sury.org/php stretch InRelease 2020-01-08 09:26:00,227: DEBUG - OK:9 http://download.onlyoffice.com/repo/debian squeeze InRelease 2020-01-08 09:26:00,228: DEBUG - OK:10 https://deb.nodesource.com/node_8.x stretch InRelease 2020-01-08 09:26:00,428: DEBUG - Es wurden 94.3 kB in 0 s geholt (149 kB/s). 2020-01-08 09:26:00,929: DEBUG - Paketlisten werden gelesen... 2020-01-08 09:26:01,029: DEBUG - ++ mktemp -d 2020-01-08 09:26:01,030: DEBUG - + local TMPDIR=/tmp/tmp.V2bXfOkj6J 2020-01-08 09:26:01,030: DEBUG - + echo 10 2020-01-08 09:26:01,030: DEBUG - + ynh_wait_dpkg_free 2020-01-08 09:26:01,030: DEBUG - + local try 2020-01-08 09:26:01,030: DEBUG - ++ seq 1 17 2020-01-08 09:26:01,030: DEBUG - + for try in seq 1 17 2020-01-08 09:26:01,030: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-01-08 09:26:01,130: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-08 09:26:01,130: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-01-08 09:26:01,131: DEBUG - + read dpkg_file 2020-01-08 09:26:01,131: DEBUG - + echo '' 2020-01-08 09:26:01,131: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-01-08 09:26:01,131: DEBUG - + read dpkg_file 2020-01-08 09:26:01,131: DEBUG - + return 0 2020-01-08 09:26:01,131: DEBUG - + cp /tmp/snipeit-ynh-deps.control /tmp/tmp.V2bXfOkj6J/control 2020-01-08 09:26:01,131: DEBUG - + cd /tmp/tmp.V2bXfOkj6J 2020-01-08 09:26:01,131: DEBUG - + equivs-build ./control 2020-01-08 09:26:01,632: DEBUG - + dpkg --force-depends -i ./snipeit-ynh-deps_4.6.15ynh2_all.deb 2020-01-08 09:26:01,833: DEBUG - Vormals nicht ausgewähltes Paket snipeit-ynh-deps wird gewählt. 2020-01-08 09:26:01,833: DEBUG - (Lese Datenbank ... 122698 Dateien und Verzeichnisse sind derzeit installiert.) 2020-01-08 09:26:01,833: DEBUG - Vorbereitung zum Entpacken von .../snipeit-ynh-deps_4.6.15ynh2_all.deb ... 2020-01-08 09:26:01,833: DEBUG - Entpacken von snipeit-ynh-deps (4.6.15ynh2) ... 2020-01-08 09:26:02,134: DEBUG - snipeit-ynh-deps (4.6.15ynh2) wird eingerichtet ... 2020-01-08 09:26:02,334: DEBUG - + ynh_package_install -f 2020-01-08 09:26:02,334: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2020-01-08 09:26:02,334: DEBUG - + ynh_wait_dpkg_free 2020-01-08 09:26:02,334: DEBUG - + local try 2020-01-08 09:26:02,335: DEBUG - ++ seq 1 17 2020-01-08 09:26:02,335: DEBUG - + for try in seq 1 17 2020-01-08 09:26:02,335: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-01-08 09:26:02,535: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-08 09:26:02,535: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-01-08 09:26:02,535: DEBUG - + read dpkg_file 2020-01-08 09:26:02,536: DEBUG - + echo '' 2020-01-08 09:26:02,536: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-01-08 09:26:02,536: DEBUG - + read dpkg_file 2020-01-08 09:26:02,536: DEBUG - + return 0 2020-01-08 09:26:02,536: DEBUG - + DEBIAN_FRONTEND=noninteractive 2020-01-08 09:26:02,536: DEBUG - + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f 2020-01-08 09:26:02,636: DEBUG - Paketlisten werden gelesen... 2020-01-08 09:26:02,737: DEBUG - Abhängigkeitsbaum wird aufgebaut.... 2020-01-08 09:26:02,737: DEBUG - Statusinformationen werden eingelesen.... 2020-01-08 09:26:02,837: DEBUG - 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. 2020-01-08 09:26:02,837: DEBUG - + [[ -n /tmp/tmp.V2bXfOkj6J ]] 2020-01-08 09:26:02,837: DEBUG - + rm -rf /tmp/tmp.V2bXfOkj6J 2020-01-08 09:26:02,837: DEBUG - + ynh_package_is_installed snipeit-ynh-deps 2020-01-08 09:26:02,838: DEBUG - + local legacy_args=p 2020-01-08 09:26:02,838: DEBUG - + args_array=([p]=package=) 2020-01-08 09:26:02,838: DEBUG - + declare -Ar args_array 2020-01-08 09:26:02,838: DEBUG - + local package 2020-01-08 09:26:02,838: DEBUG - + ynh_handle_getopts_args snipeit-ynh-deps 2020-01-08 09:26:02,838: DEBUG - + set +x 2020-01-08 09:26:02,838: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:26:02,838: DEBUG - + set +x 2020-01-08 09:26:02,838: DEBUG - + ynh_wait_dpkg_free 2020-01-08 09:26:02,838: DEBUG - + local try 2020-01-08 09:26:02,838: DEBUG - ++ seq 1 17 2020-01-08 09:26:02,838: DEBUG - + for try in seq 1 17 2020-01-08 09:26:02,838: DEBUG - + sudo lsof /var/lib/dpkg/lock 2020-01-08 09:26:03,039: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/ 2020-01-08 09:26:03,039: DEBUG - ++ ls -1 /var/lib/dpkg/updates/ 2020-01-08 09:26:03,039: DEBUG - + read dpkg_file 2020-01-08 09:26:03,039: DEBUG - + echo '' 2020-01-08 09:26:03,039: DEBUG - + grep -Pq '^[[:digit:]]+$' 2020-01-08 09:26:03,039: DEBUG - + read dpkg_file 2020-01-08 09:26:03,040: DEBUG - + return 0 2020-01-08 09:26:03,040: DEBUG - + dpkg-query -W -f '${Status}' snipeit-ynh-deps 2020-01-08 09:26:03,040: DEBUG - + grep -c 'ok installed' 2020-01-08 09:26:03,040: DEBUG - + rm /tmp/snipeit-ynh-deps.control 2020-01-08 09:26:03,040: DEBUG - + ynh_app_setting_set --app=snipeit --key=apt_dependencies '--value=openssl, php-mbstring, php-curl, php-mysql, php-ldap, php-zip, php-bcmath, php-xml, php-common' 2020-01-08 09:26:03,040: DEBUG - + local legacy_args=akv 2020-01-08 09:26:03,040: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:26:03,040: DEBUG - + declare -Ar args_array 2020-01-08 09:26:03,040: DEBUG - + local app 2020-01-08 09:26:03,040: DEBUG - + local key 2020-01-08 09:26:03,040: DEBUG - + local value 2020-01-08 09:26:03,040: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=apt_dependencies '--value=openssl, php-mbstring, php-curl, php-mysql, php-ldap, php-zip, php-bcmath, php-xml, php-common' 2020-01-08 09:26:03,040: DEBUG - + set +x 2020-01-08 09:26:03,040: DEBUG - + ynh_app_setting set snipeit apt_dependencies 'openssl, php-mbstring, php-curl, php-mysql, php-ldap, php-zip, php-bcmath, php-xml, php-common' 2020-01-08 09:26:03,041: DEBUG - + ACTION=set 2020-01-08 09:26:03,041: DEBUG - + APP=snipeit 2020-01-08 09:26:03,041: DEBUG - + KEY=apt_dependencies 2020-01-08 09:26:03,041: DEBUG - + VALUE='openssl, php-mbstring, php-curl, php-mysql, php-ldap, php-zip, php-bcmath, php-xml, php-common' 2020-01-08 09:26:03,041: DEBUG - + python - 2020-01-08 09:26:03,141: DEBUG - + ynh_script_progression '--message=Creating a MySQL database...' --time --weight=1 2020-01-08 09:26:03,141: DEBUG - + set +x 2020-01-08 09:26:03,141: DEBUG - + set +x 2020-01-08 09:26:03,141: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:26:03,142: DEBUG - + set +x 2020-01-08 09:26:03,142: DEBUG - + echo '[#####+..............] > Creating a MySQL database... [00h00m,04s]' 2020-01-08 09:26:03,142: DEBUG - + set -x 2020-01-08 09:26:03,142: DEBUG - ++ ynh_sanitize_dbid snipeit 2020-01-08 09:26:03,142: DEBUG - ++ local legacy_args=n 2020-01-08 09:26:03,142: DEBUG - ++ args_array=([n]=db_name=) 2020-01-08 09:26:03,142: DEBUG - ++ declare -Ar args_array 2020-01-08 09:26:03,142: DEBUG - ++ local db_name 2020-01-08 09:26:03,142: DEBUG - ++ ynh_handle_getopts_args snipeit 2020-01-08 09:26:03,142: DEBUG - ++ set +x 2020-01-08 09:26:03,142: DEBUG - ++ echo '! Helper used in legacy mode !' 2020-01-08 09:26:03,142: DEBUG - ++ set +x 2020-01-08 09:26:03,142: DEBUG - ++ echo snipeit 2020-01-08 09:26:03,142: DEBUG - + db_name=snipeit 2020-01-08 09:26:03,142: DEBUG - + ynh_app_setting_set --app=snipeit --key=db_name --value=snipeit 2020-01-08 09:26:03,142: DEBUG - + local legacy_args=akv 2020-01-08 09:26:03,143: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:26:03,143: DEBUG - + declare -Ar args_array 2020-01-08 09:26:03,143: DEBUG - + local app 2020-01-08 09:26:03,143: DEBUG - + local key 2020-01-08 09:26:03,143: DEBUG - + local value 2020-01-08 09:26:03,143: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=db_name --value=snipeit 2020-01-08 09:26:03,143: DEBUG - + set +x 2020-01-08 09:26:03,143: DEBUG - + ynh_app_setting set snipeit db_name snipeit 2020-01-08 09:26:03,143: DEBUG - + ACTION=set 2020-01-08 09:26:03,143: DEBUG - + APP=snipeit 2020-01-08 09:26:03,143: DEBUG - + KEY=db_name 2020-01-08 09:26:03,143: DEBUG - + VALUE=snipeit 2020-01-08 09:26:03,143: DEBUG - + python - 2020-01-08 09:26:03,244: DEBUG - + ynh_mysql_setup_db --db_user=snipeit --db_name=snipeit 2020-01-08 09:26:03,244: INFO - [#####+..............] > Creating a MySQL database... [00h00m,04s] 2020-01-08 09:26:03,244: DEBUG - + local legacy_args=unp 2020-01-08 09:26:03,244: DEBUG - + args_array=([u]=db_user= [n]=db_name= [p]=db_pwd=) 2020-01-08 09:26:03,244: DEBUG - + declare -Ar args_array 2020-01-08 09:26:03,244: DEBUG - + local db_user 2020-01-08 09:26:03,244: DEBUG - + local db_name 2020-01-08 09:26:03,244: DEBUG - + db_pwd= 2020-01-08 09:26:03,245: DEBUG - + ynh_handle_getopts_args --db_user=snipeit --db_name=snipeit 2020-01-08 09:26:03,245: DEBUG - + set +x 2020-01-08 09:26:03,245: DEBUG - ++ ynh_string_random 2020-01-08 09:26:03,245: DEBUG - ++ local legacy_args=l 2020-01-08 09:26:03,245: DEBUG - ++ args_array=([l]=length=) 2020-01-08 09:26:03,245: DEBUG - ++ declare -Ar args_array 2020-01-08 09:26:03,245: DEBUG - ++ local length 2020-01-08 09:26:03,245: DEBUG - ++ ynh_handle_getopts_args 2020-01-08 09:26:03,245: DEBUG - ++ set +x 2020-01-08 09:26:03,245: DEBUG - ++ length=24 2020-01-08 09:26:03,245: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000 2020-01-08 09:26:03,245: DEBUG - ++ tr -c -d A-Za-z0-9 2020-01-08 09:26:03,245: DEBUG - ++ sed -n 's/(.{24})./\1/p' 2020-01-08 09:26:03,245: DEBUG - + local new_db_pwd=* 2020-01-08 09:26:03,246: DEBUG - + db_pwd=** 2020-01-08 09:26:03,246: DEBUG - + ynh_mysql_create_db snipeit snipeit ** 2020-01-08 09:26:03,246: DEBUG - + local db=snipeit 2020-01-08 09:26:03,246: DEBUG - + local 'sql=CREATE DATABASE snipeit;' 2020-01-08 09:26:03,246: DEBUG - + [[ 3 -gt 1 ]] 2020-01-08 09:26:03,246: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON snipeit.* TO '''snipeit'''@'''localhost'''' 2020-01-08 09:26:03,246: DEBUG - + [[ -n ** ]] 2020-01-08 09:26:03,246: DEBUG - + sql+=' IDENTIFIED BY ''''''' 2020-01-08 09:26:03,246: DEBUG - + sql+=' WITH GRANT OPTION;' 2020-01-08 09:26:03,246: DEBUG - + ynh_mysql_execute_as_root '--sql=CREATE DATABASE snipeit; GRANT ALL PRIVILEGES ON snipeit. TO '''snipeit'''@'''localhost''' IDENTIFIED BY '''''' WITH GRANT OPTION;' 2020-01-08 09:26:03,246: DEBUG - + local legacy_args=sd 2020-01-08 09:26:03,246: DEBUG - + args_array=([s]=sql= [d]=database=) 2020-01-08 09:26:03,246: DEBUG - + declare -Ar args_array 2020-01-08 09:26:03,246: DEBUG - + local sql 2020-01-08 09:26:03,246: DEBUG - + local database 2020-01-08 09:26:03,247: DEBUG - + ynh_handle_getopts_args '--sql=CREATE DATABASE snipeit; GRANT ALL PRIVILEGES ON snipeit. TO '''snipeit'''@'''localhost''' IDENTIFIED BY '''''' WITH GRANT OPTION;' 2020-01-08 09:26:03,247: DEBUG - + set +x 2020-01-08 09:26:03,247: DEBUG - + database= 2020-01-08 09:26:03,247: DEBUG - ++ sudo cat /etc/yunohost/mysql 2020-01-08 09:26:03,247: DEBUG - + ynh_mysql_connect_as --user=root --password= --database= 2020-01-08 09:26:03,247: DEBUG - + local legacy_args=upd 2020-01-08 09:26:03,247: DEBUG - + args_array=([u]=user= [p]=password= [d]=database=) 2020-01-08 09:26:03,247: DEBUG - + declare -Ar args_array 2020-01-08 09:26:03,247: DEBUG - + local user 2020-01-08 09:26:03,247: DEBUG - + local password 2020-01-08 09:26:03,247: DEBUG - + local database 2020-01-08 09:26:03,247: DEBUG - + ynh_handle_getopts_args --user=root --password=** --database= 2020-01-08 09:26:03,247: DEBUG - + set +x 2020-01-08 09:26:03,247: DEBUG - + database= 2020-01-08 09:26:03,248: DEBUG - + mysql -u root --password=** -B '' 2020-01-08 09:26:03,448: DEBUG - + ynh_app_setting_set --app=snipeit --key=mysqlpwd --value=** 2020-01-08 09:26:03,448: DEBUG - + local legacy_args=akv 2020-01-08 09:26:03,448: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:26:03,448: DEBUG - + declare -Ar args_array 2020-01-08 09:26:03,448: DEBUG - + local app 2020-01-08 09:26:03,449: DEBUG - + local key 2020-01-08 09:26:03,449: DEBUG - + local value 2020-01-08 09:26:03,449: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=mysqlpwd --value=** 2020-01-08 09:26:03,449: DEBUG - + set +x 2020-01-08 09:26:03,449: DEBUG - + ynh_app_setting set snipeit mysqlpwd ** 2020-01-08 09:26:03,449: DEBUG - + ACTION=set 2020-01-08 09:26:03,449: DEBUG - + APP=snipeit 2020-01-08 09:26:03,449: DEBUG - + KEY=mysqlpwd 2020-01-08 09:26:03,449: DEBUG - + VALUE=** 2020-01-08 09:26:03,449: DEBUG - + python - 2020-01-08 09:26:03,549: DEBUG - + ynh_script_progression '--message=Setting up source files...' --time --weight=1 2020-01-08 09:26:03,550: DEBUG - + set +x 2020-01-08 09:26:03,550: DEBUG - + set +x 2020-01-08 09:26:03,550: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:26:03,550: DEBUG - + set +x 2020-01-08 09:26:03,550: DEBUG - + echo '[######++............] > Setting up source files... [00h00m,00s]' 2020-01-08 09:26:03,550: DEBUG - + set -x 2020-01-08 09:26:03,550: DEBUG - + ynh_app_setting_set --app=snipeit --key=final_path --value=/var/www/snipeit 2020-01-08 09:26:03,550: DEBUG - + local legacy_args=akv 2020-01-08 09:26:03,550: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:26:03,550: DEBUG - + declare -Ar args_array 2020-01-08 09:26:03,550: DEBUG - + local app 2020-01-08 09:26:03,550: DEBUG - + local key 2020-01-08 09:26:03,551: DEBUG - + local value 2020-01-08 09:26:03,551: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=final_path --value=/var/www/snipeit 2020-01-08 09:26:03,551: DEBUG - + set +x 2020-01-08 09:26:03,551: DEBUG - + ynh_app_setting set snipeit final_path /var/www/snipeit 2020-01-08 09:26:03,551: DEBUG - + ACTION=set 2020-01-08 09:26:03,551: DEBUG - + APP=snipeit 2020-01-08 09:26:03,551: DEBUG - + KEY=final_path 2020-01-08 09:26:03,551: DEBUG - + VALUE=/var/www/snipeit 2020-01-08 09:26:03,551: DEBUG - + python - 2020-01-08 09:26:03,651: DEBUG - + ynh_setup_source --dest_dir=/var/www/snipeit 2020-01-08 09:26:03,652: INFO - [######++............] > Setting up source files... [00h00m,00s] 2020-01-08 09:26:03,652: DEBUG - + local legacy_args=ds 2020-01-08 09:26:03,652: DEBUG - + args_array=([d]=dest_dir= [s]=source_id=) 2020-01-08 09:26:03,652: DEBUG - + declare -Ar args_array 2020-01-08 09:26:03,652: DEBUG - + local dest_dir 2020-01-08 09:26:03,652: DEBUG - + local source_id 2020-01-08 09:26:03,652: DEBUG - + ynh_handle_getopts_args --dest_dir=/var/www/snipeit 2020-01-08 09:26:03,652: DEBUG - + set +x 2020-01-08 09:26:03,652: DEBUG - + source_id=app 2020-01-08 09:26:03,652: DEBUG - + local src_file_path=/var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts/../conf/app.src 2020-01-08 09:26:03,653: DEBUG - + '[' '!' -e /var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts/../conf/app.src ']' 2020-01-08 09:26:03,653: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts/../conf/app.src 2020-01-08 09:26:03,653: DEBUG - ++ cut -d= -f2- 2020-01-08 09:26:03,653: DEBUG - + local src_url=https://github.com/snipe/snipe-it/archive/v4.6.15.tar.gz 2020-01-08 09:26:03,653: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts/../conf/app.src 2020-01-08 09:26:03,653: DEBUG - ++ cut -d= -f2- 2020-01-08 09:26:03,653: DEBUG - + local src_sum=9631b73485c72109df28b9d5aaa6fffa1944fbec2e3432920d0c87805b655615 2020-01-08 09:26:03,653: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts/../conf/app.src 2020-01-08 09:26:03,653: DEBUG - ++ cut -d= -f2- 2020-01-08 09:26:03,653: DEBUG - + local src_sumprg=sha256sum 2020-01-08 09:26:03,653: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts/../conf/app.src 2020-01-08 09:26:03,653: DEBUG - ++ cut -d= -f2- 2020-01-08 09:26:03,653: DEBUG - + local src_format=tar.gz 2020-01-08 09:26:03,653: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts/../conf/app.src 2020-01-08 09:26:03,654: DEBUG - ++ cut -d= -f2- 2020-01-08 09:26:03,654: DEBUG - + local src_extract= 2020-01-08 09:26:03,654: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts/../conf/app.src 2020-01-08 09:26:03,654: DEBUG - ++ cut -d= -f2- 2020-01-08 09:26:03,654: DEBUG - + local src_in_subdir=true 2020-01-08 09:26:03,654: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts/../conf/app.src 2020-01-08 09:26:03,654: DEBUG - ++ cut -d= -f2- 2020-01-08 09:26:03,654: DEBUG - + local src_filename= 2020-01-08 09:26:03,654: DEBUG - + src_sumprg=sha256sum 2020-01-08 09:26:03,654: DEBUG - + src_in_subdir=true 2020-01-08 09:26:03,654: DEBUG - + src_format=tar.gz 2020-01-08 09:26:03,654: DEBUG - ++ echo tar.gz 2020-01-08 09:26:03,654: DEBUG - ++ tr '[:upper:]' '[:lower:]' 2020-01-08 09:26:03,654: DEBUG - + src_format=tar.gz 2020-01-08 09:26:03,655: DEBUG - + src_extract=true 2020-01-08 09:26:03,655: DEBUG - + '[' '' = '' ']' 2020-01-08 09:26:03,655: DEBUG - + src_filename=app.tar.gz 2020-01-08 09:26:03,655: DEBUG - + local local_src=/opt/yunohost-apps-src/snipeit/app.tar.gz 2020-01-08 09:26:03,655: DEBUG - + test -e /opt/yunohost-apps-src/snipeit/app.tar.gz 2020-01-08 09:26:03,655: DEBUG - ++ wget -nv -O app.tar.gz https://github.com/snipe/snipe-it/archive/v4.6.15.tar.gz 2020-01-08 09:26:06,059: DEBUG - + local 'out=2020-01-08 09:26:06 URL:https://codeload.github.com/snipe/snipe-it/tar.gz/v4.6.15 [11889990] -> "app.tar.gz" [1]' 2020-01-08 09:26:06,059: DEBUG - + echo '9631b73485c72109df28b9d5aaa6fffa1944fbec2e3432920d0c87805b655615 app.tar.gz' 2020-01-08 09:26:06,059: DEBUG - + sha256sum -c --status 2020-01-08 09:26:06,160: DEBUG - + mkdir -p /var/www/snipeit 2020-01-08 09:26:06,160: DEBUG - + true 2020-01-08 09:26:06,160: DEBUG - + '[' tar.gz = zip ']' 2020-01-08 09:26:06,160: DEBUG - + local strip= 2020-01-08 09:26:06,160: DEBUG - + '[' true '!=' false ']' 2020-01-08 09:26:06,160: DEBUG - + '[' true == true ']' 2020-01-08 09:26:06,160: DEBUG - + local sub_dirs=1 2020-01-08 09:26:06,160: DEBUG - + strip='--strip-components 1' 2020-01-08 09:26:06,160: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]] 2020-01-08 09:26:06,160: DEBUG - + tar -xf app.tar.gz -C /var/www/snipeit --strip-components 1 2020-01-08 09:26:06,461: DEBUG - ++ find /var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts/../sources/patches/ -type f -name 'app-.patch' 2020-01-08 09:26:06,461: DEBUG - ++ wc -l 2020-01-08 09:26:06,461: DEBUG - + (( 0 > 0 )) 2020-01-08 09:26:06,461: DEBUG - + test -e /var/cache/yunohost/from_file/snipeit_ynh-b6e44548cdb863f9919b7f58bd4fed29158c6963/scripts/../sources/extra_files/app 2020-01-08 09:26:06,461: DEBUG - + ynh_script_progression '--message=Configuring nginx web server...' --time --weight=1 2020-01-08 09:26:06,461: DEBUG - + set +x 2020-01-08 09:26:06,461: DEBUG - + set +x 2020-01-08 09:26:06,461: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:26:06,462: DEBUG - + set +x 2020-01-08 09:26:06,462: DEBUG - + echo '[########++..........] > Configuring nginx web server... [00h00m,03s]' 2020-01-08 09:26:06,462: DEBUG - + set -x 2020-01-08 09:26:06,462: DEBUG - + ynh_add_nginx_config 2020-01-08 09:26:06,462: DEBUG - + finalnginxconf=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,462: DEBUG - + local others_var= 2020-01-08 09:26:06,462: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,462: DEBUG - + local legacy_args=f 2020-01-08 09:26:06,462: DEBUG - + args_array=([f]=file=) 2020-01-08 09:26:06,462: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,462: DEBUG - + local file 2020-01-08 09:26:06,462: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,462: DEBUG - + set +x 2020-01-08 09:26:06,462: DEBUG - + local checksum_setting_name=checksumetc_nginx_conf.d_snipe.mdpnd.ch.d_snipeit.conf 2020-01-08 09:26:06,462: DEBUG - ++ ynh_app_setting_get --app=snipeit --key=***** 2020-01-08 09:26:06,463: DEBUG - ++ local legacy_args=ak 2020-01-08 09:26:06,463: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-01-08 09:26:06,463: DEBUG - ++ declare -Ar args_array 2020-01-08 09:26:06,463: DEBUG - ++ local app 2020-01-08 09:26:06,463: DEBUG - ++ local key 2020-01-08 09:26:06,463: DEBUG - ++ ynh_handle_getopts_args --app=snipeit --key=** 2020-01-08 09:26:06,463: DEBUG - ++ set +x 2020-01-08 09:26:06,463: DEBUG - ++ ynh_app_setting get snipeit ** 2020-01-08 09:26:06,463: DEBUG - ++ ACTION=get 2020-01-08 09:26:06,463: DEBUG - ++ APP=snipeit 2020-01-08 09:26:06,463: DEBUG - ++ KEY=** 2020-01-08 09:26:06,463: DEBUG - ++ VALUE= 2020-01-08 09:26:06,463: DEBUG - ++ python - 2020-01-08 09:26:06,564: DEBUG - + local checksum_value= 2020-01-08 09:26:06,564: INFO - [########++..........] > Configuring nginx web server... [00h00m,03s] 2020-01-08 09:26:06,564: DEBUG - + backup_file_checksum= 2020-01-08 09:26:06,564: DEBUG - + '[' -n '' ']' 2020-01-08 09:26:06,564: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,564: DEBUG - + test -n / 2020-01-08 09:26:06,564: DEBUG - + local path_url_slash_less= 2020-01-08 09:26:06,564: DEBUG - + ynh_replace_string --match_string=PATH/ --replace_string=/ --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,565: DEBUG - + local legacy_args=mrf 2020-01-08 09:26:06,565: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-08 09:26:06,565: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,565: DEBUG - + local match_string 2020-01-08 09:26:06,565: DEBUG - + local replace_string 2020-01-08 09:26:06,565: DEBUG - + local target_file 2020-01-08 09:26:06,565: DEBUG - + ynh_handle_getopts_args --match_string=PATH/ --replace_string=/ --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,565: DEBUG - + set +x 2020-01-08 09:26:06,565: DEBUG - + local delimit=@ 2020-01-08 09:26:06,565: DEBUG - + match_string=PATH/ 2020-01-08 09:26:06,565: DEBUG - + replace_string=/ 2020-01-08 09:26:06,565: DEBUG - + sudo sed --in-place s@PATH/@/@g /etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,565: DEBUG - + ynh_replace_string --match_string=PATH --replace_string=/ --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,565: DEBUG - + local legacy_args=mrf 2020-01-08 09:26:06,566: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-08 09:26:06,566: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,566: DEBUG - + local match_string 2020-01-08 09:26:06,566: DEBUG - + local replace_string 2020-01-08 09:26:06,566: DEBUG - + local target_file 2020-01-08 09:26:06,566: DEBUG - + ynh_handle_getopts_args --match_string=PATH --replace_string=/ --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,566: DEBUG - + set +x 2020-01-08 09:26:06,566: DEBUG - + local delimit=@ 2020-01-08 09:26:06,566: DEBUG - + match_string=PATH 2020-01-08 09:26:06,566: DEBUG - + replace_string=/ 2020-01-08 09:26:06,566: DEBUG - + sudo sed --in-place s@PATH@/@g /etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,566: DEBUG - + test -n snipe.mdpnd.ch 2020-01-08 09:26:06,566: DEBUG - + ynh_replace_string --match_string=DOMAIN --replace_string=snipe.mdpnd.ch --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,566: DEBUG - + local legacy_args=mrf 2020-01-08 09:26:06,566: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-08 09:26:06,567: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,567: DEBUG - + local match_string 2020-01-08 09:26:06,567: DEBUG - + local replace_string 2020-01-08 09:26:06,567: DEBUG - + local target_file 2020-01-08 09:26:06,567: DEBUG - + ynh_handle_getopts_args --match_string=DOMAIN --replace_string=snipe.mdpnd.ch --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,567: DEBUG - + set +x 2020-01-08 09:26:06,567: DEBUG - + local delimit=@ 2020-01-08 09:26:06,567: DEBUG - + match_string=DOMAIN 2020-01-08 09:26:06,567: DEBUG - + replace_string=snipe.mdpnd.ch 2020-01-08 09:26:06,567: DEBUG - + sudo sed --in-place s@DOMAIN@snipe.mdpnd.ch@g /etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,667: DEBUG - + test -n '' 2020-01-08 09:26:06,668: DEBUG - + test -n snipeit 2020-01-08 09:26:06,668: DEBUG - + ynh_replace_string --match_string=NAME --replace_string=snipeit --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,668: DEBUG - + local legacy_args=mrf 2020-01-08 09:26:06,668: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-08 09:26:06,668: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,668: DEBUG - + local match_string 2020-01-08 09:26:06,668: DEBUG - + local replace_string 2020-01-08 09:26:06,668: DEBUG - + local target_file 2020-01-08 09:26:06,668: DEBUG - + ynh_handle_getopts_args --match_string=NAME --replace_string=snipeit --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,668: DEBUG - + set +x 2020-01-08 09:26:06,668: DEBUG - + local delimit=@ 2020-01-08 09:26:06,669: DEBUG - + match_string=NAME 2020-01-08 09:26:06,669: DEBUG - + replace_string=snipeit 2020-01-08 09:26:06,669: DEBUG - + sudo sed --in-place s@NAME@snipeit@g /etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,669: DEBUG - + test -n /var/www/snipeit 2020-01-08 09:26:06,669: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/snipeit --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,669: DEBUG - + local legacy_args=mrf 2020-01-08 09:26:06,669: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-08 09:26:06,669: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,669: DEBUG - + local match_string 2020-01-08 09:26:06,669: DEBUG - + local replace_string 2020-01-08 09:26:06,669: DEBUG - + local target_file 2020-01-08 09:26:06,669: DEBUG - + ynh_handle_getopts_args --match_string=FINALPATH --replace_string=/var/www/snipeit --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,669: DEBUG - + set +x 2020-01-08 09:26:06,669: DEBUG - + local delimit=@ 2020-01-08 09:26:06,670: DEBUG - + match_string=FINALPATH 2020-01-08 09:26:06,670: DEBUG - + replace_string=/var/www/snipeit 2020-01-08 09:26:06,670: DEBUG - + sudo sed --in-place s@FINALPATH@/var/www/snipeit@g /etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,670: DEBUG - + '[' / '!=' / ']' 2020-01-08 09:26:06,670: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,670: DEBUG - + local legacy_args=mrf 2020-01-08 09:26:06,670: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-08 09:26:06,670: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,670: DEBUG - + local match_string 2020-01-08 09:26:06,670: DEBUG - + local replace_string 2020-01-08 09:26:06,670: DEBUG - + local target_file 2020-01-08 09:26:06,670: DEBUG - + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,670: DEBUG - + set +x 2020-01-08 09:26:06,670: DEBUG - + local delimit=@ 2020-01-08 09:26:06,670: DEBUG - + match_string='^#root_path_only' 2020-01-08 09:26:06,671: DEBUG - + replace_string= 2020-01-08 09:26:06,671: DEBUG - + sudo sed --in-place 's@^#root_path_only@@g' /etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,671: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,671: DEBUG - + local legacy_args=f 2020-01-08 09:26:06,671: DEBUG - + args_array=([f]=file=) 2020-01-08 09:26:06,671: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,671: DEBUG - + local file 2020-01-08 09:26:06,671: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,671: DEBUG - + set +x 2020-01-08 09:26:06,671: DEBUG - + local checksum_setting_name=** 2020-01-08 09:26:06,671: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/snipe.mdpnd.ch.d/snipeit.conf 2020-01-08 09:26:06,671: DEBUG - ++ cut '-d ' -f1 2020-01-08 09:26:06,671: DEBUG - + ynh_app_setting_set --app=snipeit --key=** --value=ce7e5e7fac3f0117a4b16aef067e13dc 2020-01-08 09:26:06,671: DEBUG - + local legacy_args=akv 2020-01-08 09:26:06,672: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:26:06,672: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,672: DEBUG - + local app 2020-01-08 09:26:06,672: DEBUG - + local key 2020-01-08 09:26:06,672: DEBUG - + local value 2020-01-08 09:26:06,672: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=** --value=ce7e5e7fac3f0117a4b16aef067e13dc 2020-01-08 09:26:06,672: DEBUG - + set +x 2020-01-08 09:26:06,672: DEBUG - + ynh_app_setting set snipeit ** ce7e5e7fac3f0117a4b16aef067e13dc 2020-01-08 09:26:06,672: DEBUG - + ACTION=set 2020-01-08 09:26:06,672: DEBUG - + APP=snipeit 2020-01-08 09:26:06,672: DEBUG - + KEY=** 2020-01-08 09:26:06,672: DEBUG - + VALUE=ce7e5e7fac3f0117a4b16aef067e13dc 2020-01-08 09:26:06,672: DEBUG - + python - 2020-01-08 09:26:06,773: DEBUG - + '[' -n '' ']' 2020-01-08 09:26:06,773: DEBUG - + unset backup_file_checksum 2020-01-08 09:26:06,773: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload 2020-01-08 09:26:06,773: DEBUG - + local legacy_args=nalpte 2020-01-08 09:26:06,773: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 2020-01-08 09:26:06,773: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,773: DEBUG - + local service_name 2020-01-08 09:26:06,773: DEBUG - + local action 2020-01-08 09:26:06,773: DEBUG - + local line_match 2020-01-08 09:26:06,774: DEBUG - + local length 2020-01-08 09:26:06,774: DEBUG - + local log_path 2020-01-08 09:26:06,774: DEBUG - + local timeout 2020-01-08 09:26:06,774: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload 2020-01-08 09:26:06,774: DEBUG - + set +x 2020-01-08 09:26:06,774: DEBUG - + local service_name=nginx 2020-01-08 09:26:06,774: DEBUG - + local action=reload 2020-01-08 09:26:06,774: DEBUG - + local log_path=/var/log/nginx/nginx.log 2020-01-08 09:26:06,774: DEBUG - + local length=20 2020-01-08 09:26:06,774: DEBUG - + local timeout=300 2020-01-08 09:26:06,774: DEBUG - + [[ -n '' ]] 2020-01-08 09:26:06,774: DEBUG - + '[' reload == reload ']' 2020-01-08 09:26:06,774: DEBUG - + action=reload-or-restart 2020-01-08 09:26:06,775: DEBUG - + systemctl reload-or-restart nginx 2020-01-08 09:26:06,975: DEBUG - + [[ -n '' ]] 2020-01-08 09:26:06,975: DEBUG - + ynh_script_progression '--message=Configuring system user...' --time --weight=1 2020-01-08 09:26:06,975: DEBUG - + set +x 2020-01-08 09:26:06,975: DEBUG - + set +x 2020-01-08 09:26:06,975: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:26:06,976: DEBUG - + set +x 2020-01-08 09:26:06,976: DEBUG - + echo '[##########+.........] > Configuring system user... [00h00m,00s]' 2020-01-08 09:26:06,976: DEBUG - + set -x 2020-01-08 09:26:06,976: DEBUG - + ynh_system_user_create --username=snipeit 2020-01-08 09:26:06,976: DEBUG - + local legacy_args=uhs 2020-01-08 09:26:06,976: DEBUG - + args_array=([u]=username= [h]=home_dir= [s]=use_shell) 2020-01-08 09:26:06,976: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,976: DEBUG - + local username 2020-01-08 09:26:06,976: DEBUG - + local home_dir 2020-01-08 09:26:06,976: DEBUG - + local use_shell 2020-01-08 09:26:06,976: DEBUG - + ynh_handle_getopts_args --username=snipeit 2020-01-08 09:26:06,976: DEBUG - + set +x 2020-01-08 09:26:06,976: DEBUG - + use_shell=0 2020-01-08 09:26:06,976: DEBUG - + home_dir= 2020-01-08 09:26:06,977: DEBUG - + ynh_system_user_exists snipeit 2020-01-08 09:26:06,977: DEBUG - + local legacy_args=u 2020-01-08 09:26:06,977: DEBUG - + args_array=([u]=username=) 2020-01-08 09:26:06,977: DEBUG - + declare -Ar args_array 2020-01-08 09:26:06,977: DEBUG - + local username 2020-01-08 09:26:06,977: DEBUG - + ynh_handle_getopts_args snipeit 2020-01-08 09:26:06,977: DEBUG - + set +x 2020-01-08 09:26:06,977: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:26:06,977: DEBUG - + set +x 2020-01-08 09:26:06,977: DEBUG - + getent passwd snipeit 2020-01-08 09:26:06,977: DEBUG - + '[' -n '' ']' 2020-01-08 09:26:06,977: DEBUG - + local user_home_dir=--no-create-home 2020-01-08 09:26:06,977: DEBUG - + '[' 0 -eq 1 ']' 2020-01-08 09:26:06,977: DEBUG - + local 'shell=--shell /usr/sbin/nologin' 2020-01-08 09:26:06,978: DEBUG - + useradd --no-create-home --system --user-group snipeit --shell /usr/sbin/nologin 2020-01-08 09:26:08,881: DEBUG - + ynh_script_progression '--message=Configuring php-fpm...' --time --weight=1 2020-01-08 09:26:08,881: INFO - [##########+.........] > Configuring system user... [00h00m,00s] 2020-01-08 09:26:08,881: DEBUG - + set +x 2020-01-08 09:26:08,881: INFO - [###########++.......] > Configuring php-fpm... [00h00m,02s] 2020-01-08 09:26:08,882: DEBUG - + set +x 2020-01-08 09:26:08,882: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:26:08,882: DEBUG - + set +x 2020-01-08 09:26:08,882: DEBUG - + echo '[###########++.......] > Configuring php-fpm... [00h00m,02s]' 2020-01-08 09:26:08,882: DEBUG - + set -x 2020-01-08 09:26:08,882: DEBUG - + ynh_add_fpm_config 2020-01-08 09:26:08,882: DEBUG - + local legacy_args=v 2020-01-08 09:26:08,882: DEBUG - + args_array=([v]=phpversion=) 2020-01-08 09:26:08,882: DEBUG - + declare -Ar args_array 2020-01-08 09:26:08,882: DEBUG - + local phpversion 2020-01-08 09:26:08,882: DEBUG - + ynh_handle_getopts_args 2020-01-08 09:26:08,882: DEBUG - + set +x 2020-01-08 09:26:08,883: DEBUG - + phpversion=7.0 2020-01-08 09:26:08,883: DEBUG - + local fpm_config_dir=/etc/php/7.0/fpm 2020-01-08 09:26:08,883: DEBUG - + local fpm_service=php7.0-fpm 2020-01-08 09:26:08,883: DEBUG - ++ ynh_get_debian_release 2020-01-08 09:26:08,883: DEBUG - +++ lsb_release --codename --short 2020-01-08 09:26:08,883: DEBUG - ++ echo stretch 2020-01-08 09:26:08,883: DEBUG - + '[' stretch == jessie ']' 2020-01-08 09:26:08,883: DEBUG - + ynh_app_setting_set --app=snipeit --key=fpm_config_dir --value=/etc/php/7.0/fpm 2020-01-08 09:26:08,883: DEBUG - + local legacy_args=akv 2020-01-08 09:26:08,883: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:26:08,883: DEBUG - + declare -Ar args_array 2020-01-08 09:26:08,883: DEBUG - + local app 2020-01-08 09:26:08,883: DEBUG - + local key 2020-01-08 09:26:08,883: DEBUG - + local value 2020-01-08 09:26:08,883: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=fpm_config_dir --value=/etc/php/7.0/fpm 2020-01-08 09:26:08,884: DEBUG - + set +x 2020-01-08 09:26:08,884: DEBUG - + ynh_app_setting set snipeit fpm_config_dir /etc/php/7.0/fpm 2020-01-08 09:26:08,884: DEBUG - + ACTION=set 2020-01-08 09:26:08,884: DEBUG - + APP=snipeit 2020-01-08 09:26:08,884: DEBUG - + KEY=fpm_config_dir 2020-01-08 09:26:08,884: DEBUG - + VALUE=/etc/php/7.0/fpm 2020-01-08 09:26:08,884: DEBUG - + python - 2020-01-08 09:26:08,984: DEBUG - + ynh_app_setting_set --app=snipeit --key=fpm_service --value=php7.0-fpm 2020-01-08 09:26:08,984: DEBUG - + local legacy_args=akv 2020-01-08 09:26:08,984: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:26:08,985: DEBUG - + declare -Ar args_array 2020-01-08 09:26:08,985: DEBUG - + local app 2020-01-08 09:26:08,985: DEBUG - + local key 2020-01-08 09:26:08,985: DEBUG - + local value 2020-01-08 09:26:08,985: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=fpm_service --value=php7.0-fpm 2020-01-08 09:26:08,985: DEBUG - + set +x 2020-01-08 09:26:08,985: DEBUG - + ynh_app_setting set snipeit fpm_service php7.0-fpm 2020-01-08 09:26:08,985: DEBUG - + ACTION=set 2020-01-08 09:26:08,985: DEBUG - + APP=snipeit 2020-01-08 09:26:08,985: DEBUG - + KEY=fpm_service 2020-01-08 09:26:08,985: DEBUG - + VALUE=php7.0-fpm 2020-01-08 09:26:08,985: DEBUG - + python - 2020-01-08 09:26:09,086: DEBUG - + finalphpconf=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,086: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,086: DEBUG - + local legacy_args=f 2020-01-08 09:26:09,086: DEBUG - + args_array=([f]=file=) 2020-01-08 09:26:09,086: DEBUG - + declare -Ar args_array 2020-01-08 09:26:09,086: DEBUG - + local file 2020-01-08 09:26:09,086: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,086: DEBUG - + set +x 2020-01-08 09:26:09,086: DEBUG - + local checksum_setting_name=checksumetc_php_7.0_fpm_pool.d_snipeit.conf 2020-01-08 09:26:09,087: DEBUG - ++ ynh_app_setting_get --app=snipeit --key=** 2020-01-08 09:26:09,087: DEBUG - ++ local legacy_args=ak 2020-01-08 09:26:09,087: DEBUG - ++ args_array=([a]=app= [k]=key=) 2020-01-08 09:26:09,087: DEBUG - ++ declare -Ar args_array 2020-01-08 09:26:09,087: DEBUG - ++ local app 2020-01-08 09:26:09,087: DEBUG - ++ local key 2020-01-08 09:26:09,087: DEBUG - ++ ynh_handle_getopts_args --app=snipeit --key=** 2020-01-08 09:26:09,087: DEBUG - ++ set +x 2020-01-08 09:26:09,087: DEBUG - ++ ynh_app_setting get snipeit ** 2020-01-08 09:26:09,087: DEBUG - ++ ACTION=get 2020-01-08 09:26:09,087: DEBUG - ++ APP=snipeit 2020-01-08 09:26:09,087: DEBUG - ++ KEY=** 2020-01-08 09:26:09,087: DEBUG - ++ VALUE= 2020-01-08 09:26:09,088: DEBUG - ++ python - 2020-01-08 09:26:09,088: DEBUG - + local checksum_value= 2020-01-08 09:26:09,088: DEBUG - + backup_file_checksum= 2020-01-08 09:26:09,088: DEBUG - + '[' -n '' ']' 2020-01-08 09:26:09,088: DEBUG - + sudo cp ../conf/php-fpm.conf /etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,088: DEBUG - + ynh_replace_string --match_string=NAMETOCHANGE --replace_string=snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,088: DEBUG - + local legacy_args=mrf 2020-01-08 09:26:09,088: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-08 09:26:09,088: DEBUG - + declare -Ar args_array 2020-01-08 09:26:09,088: DEBUG - + local match_string 2020-01-08 09:26:09,088: DEBUG - + local replace_string 2020-01-08 09:26:09,088: DEBUG - + local target_file 2020-01-08 09:26:09,088: DEBUG - + ynh_handle_getopts_args --match_string=NAMETOCHANGE --replace_string=snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,088: DEBUG - + set +x 2020-01-08 09:26:09,189: DEBUG - + local delimit=@ 2020-01-08 09:26:09,189: DEBUG - + match_string=NAMETOCHANGE 2020-01-08 09:26:09,189: DEBUG - + replace_string=snipeit 2020-01-08 09:26:09,189: DEBUG - + sudo sed --in-place s@NAMETOCHANGE@snipeit@g /etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,189: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,190: DEBUG - + local legacy_args=mrf 2020-01-08 09:26:09,190: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-08 09:26:09,190: DEBUG - + declare -Ar args_array 2020-01-08 09:26:09,190: DEBUG - + local match_string 2020-01-08 09:26:09,190: DEBUG - + local replace_string 2020-01-08 09:26:09,190: DEBUG - + local target_file 2020-01-08 09:26:09,190: DEBUG - + ynh_handle_getopts_args --match_string=FINALPATH --replace_string=/var/www/snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,190: DEBUG - + set +x 2020-01-08 09:26:09,190: DEBUG - + local delimit=@ 2020-01-08 09:26:09,190: DEBUG - + match_string=FINALPATH 2020-01-08 09:26:09,190: DEBUG - + replace_string=/var/www/snipeit 2020-01-08 09:26:09,190: DEBUG - + sudo sed --in-place s@FINALPATH@/var/www/snipeit@g /etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,190: DEBUG - + ynh_replace_string --match_string=USER --replace_string=snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,191: DEBUG - + local legacy_args=mrf 2020-01-08 09:26:09,191: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-08 09:26:09,191: DEBUG - + declare -Ar args_array 2020-01-08 09:26:09,191: DEBUG - + local match_string 2020-01-08 09:26:09,191: DEBUG - + local replace_string 2020-01-08 09:26:09,191: DEBUG - + local target_file 2020-01-08 09:26:09,191: DEBUG - + ynh_handle_getopts_args --match_string=USER --replace_string=snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,191: DEBUG - + set +x 2020-01-08 09:26:09,191: DEBUG - + local delimit=@ 2020-01-08 09:26:09,191: DEBUG - + match_string=USER 2020-01-08 09:26:09,191: DEBUG - + replace_string=snipeit 2020-01-08 09:26:09,191: DEBUG - + sudo sed --in-place s@USER@snipeit@g /etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,191: DEBUG - + ynh_replace_string --match_string=PHPVERSION --replace_string=7.0 --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,191: DEBUG - + local legacy_args=mrf 2020-01-08 09:26:09,191: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=) 2020-01-08 09:26:09,192: DEBUG - + declare -Ar args_array 2020-01-08 09:26:09,192: DEBUG - + local match_string 2020-01-08 09:26:09,192: DEBUG - + local replace_string 2020-01-08 09:26:09,192: DEBUG - + local target_file 2020-01-08 09:26:09,192: DEBUG - + ynh_handle_getopts_args --match_string=PHPVERSION --replace_string=7.0 --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,192: DEBUG - + set +x 2020-01-08 09:26:09,192: DEBUG - + local delimit=@ 2020-01-08 09:26:09,192: DEBUG - + match_string=PHPVERSION 2020-01-08 09:26:09,192: DEBUG - + replace_string=7.0 2020-01-08 09:26:09,192: DEBUG - + sudo sed --in-place s@PHPVERSION@7.0@g /etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,192: DEBUG - + sudo chown root: /etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,192: DEBUG - + ynh_store_file_checksum --file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,192: DEBUG - + local legacy_args=f 2020-01-08 09:26:09,193: DEBUG - + args_array=([f]=file=) 2020-01-08 09:26:09,193: DEBUG - + declare -Ar args_array 2020-01-08 09:26:09,193: DEBUG - + local file 2020-01-08 09:26:09,193: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,193: DEBUG - + set +x 2020-01-08 09:26:09,193: DEBUG - + local checksum_setting_name=** 2020-01-08 09:26:09,193: DEBUG - ++ sudo md5sum /etc/php/7.0/fpm/pool.d/snipeit.conf 2020-01-08 09:26:09,193: DEBUG - ++ cut '-d ' -f1 2020-01-08 09:26:09,193: DEBUG - + ynh_app_setting_set --app=snipeit --key=** --value=1e10dbfc73d04f4e6d57d56fc3a11ea8 2020-01-08 09:26:09,193: DEBUG - + local legacy_args=akv 2020-01-08 09:26:09,193: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=) 2020-01-08 09:26:09,193: DEBUG - + declare -Ar args_array 2020-01-08 09:26:09,193: DEBUG - + local app 2020-01-08 09:26:09,194: DEBUG - + local key 2020-01-08 09:26:09,194: DEBUG - + local value 2020-01-08 09:26:09,194: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=** --value=1e10dbfc73d04f4e6d57d56fc3a11ea8 2020-01-08 09:26:09,194: DEBUG - + set +x 2020-01-08 09:26:09,194: DEBUG - + ynh_app_setting set snipeit ** 1e10dbfc73d04f4e6d57d56fc3a11ea8 2020-01-08 09:26:09,194: DEBUG - + ACTION=set 2020-01-08 09:26:09,194: DEBUG - + APP=snipeit 2020-01-08 09:26:09,194: DEBUG - + KEY=** 2020-01-08 09:26:09,194: DEBUG - + VALUE=1e10dbfc73d04f4e6d57d56fc3a11ea8 2020-01-08 09:26:09,194: DEBUG - + python - 2020-01-08 09:26:09,295: DEBUG - + '[' -n '' ']' 2020-01-08 09:26:09,295: DEBUG - + unset backup_file_checksum 2020-01-08 09:26:09,295: DEBUG - + '[' -e ../conf/php-fpm.ini ']' 2020-01-08 09:26:09,295: DEBUG - + ynh_systemd_action --service_name=php7.0-fpm --action=reload 2020-01-08 09:26:09,295: DEBUG - + local legacy_args=nalpte 2020-01-08 09:26:09,295: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=) 2020-01-08 09:26:09,295: DEBUG - + declare -Ar args_array 2020-01-08 09:26:09,295: DEBUG - + local service_name 2020-01-08 09:26:09,295: DEBUG - + local action 2020-01-08 09:26:09,295: DEBUG - + local line_match 2020-01-08 09:26:09,296: DEBUG - + local length 2020-01-08 09:26:09,296: DEBUG - + local log_path 2020-01-08 09:26:09,296: DEBUG - + local timeout 2020-01-08 09:26:09,296: DEBUG - + ynh_handle_getopts_args --service_name=php7.0-fpm --action=reload 2020-01-08 09:26:09,296: DEBUG - + set +x 2020-01-08 09:26:09,296: DEBUG - + local service_name=php7.0-fpm 2020-01-08 09:26:09,296: DEBUG - + local action=reload 2020-01-08 09:26:09,296: DEBUG - + local log_path=/var/log/php7.0-fpm/php7.0-fpm.log 2020-01-08 09:26:09,296: DEBUG - + local length=20 2020-01-08 09:26:09,296: DEBUG - + local timeout=300 2020-01-08 09:26:09,296: DEBUG - + [[ -n '' ]] 2020-01-08 09:26:09,296: DEBUG - + '[' reload == reload ']' 2020-01-08 09:26:09,296: DEBUG - + action=reload-or-restart 2020-01-08 09:26:09,296: DEBUG - + systemctl reload-or-restart php7.0-fpm 2020-01-08 09:26:09,397: DEBUG - + [[ -n '' ]] 2020-01-08 09:26:09,397: INFO - [#############++.....] > Installing composer... [00h00m,01s] 2020-01-08 09:26:09,397: DEBUG - + ynh_script_progression '--message=Installing composer...' --time --weight=1 2020-01-08 09:26:09,397: DEBUG - + set +x 2020-01-08 09:26:09,397: DEBUG - + set +x 2020-01-08 09:26:09,397: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:26:09,398: DEBUG - + set +x 2020-01-08 09:26:09,398: DEBUG - + echo '[#############++.....] > Installing composer... [00h00m,01s]' 2020-01-08 09:26:09,398: DEBUG - + set -x 2020-01-08 09:26:09,398: DEBUG - + ynh_install_composer 2020-01-08 09:26:09,398: DEBUG - + local legacy_args=vw 2020-01-08 09:26:09,398: DEBUG - + args_array=([v]=phpversion= [w]=workdir=) 2020-01-08 09:26:09,398: DEBUG - + declare -Ar args_array 2020-01-08 09:26:09,398: DEBUG - + local phpversion 2020-01-08 09:26:09,398: DEBUG - + local workdir 2020-01-08 09:26:09,398: DEBUG - + ynh_handle_getopts_args 2020-01-08 09:26:09,398: DEBUG - + set +x 2020-01-08 09:26:09,398: DEBUG - + workdir=/var/www/snipeit 2020-01-08 09:26:09,398: DEBUG - + phpversion=7.0 2020-01-08 09:26:09,399: DEBUG - + curl -sS https://getcomposer.org/installer 2020-01-08 09:26:09,399: DEBUG - + COMPOSER_HOME=/var/www/snipeit/.composer 2020-01-08 09:26:09,399: DEBUG - + php7.0 -- --quiet --install-dir=/var/www/snipeit 2020-01-08 09:26:10,501: DEBUG - + ynh_composer_exec --phpversion=7.0 --workdir=/var/www/snipeit '--commands=install --no-dev' 2020-01-08 09:26:10,501: DEBUG - + local legacy_args=vwc 2020-01-08 09:26:10,501: DEBUG - + args_array=([v]=phpversion= [w]=workdir= [c]=commands=) 2020-01-08 09:26:10,501: DEBUG - + declare -Ar args_array 2020-01-08 09:26:10,501: DEBUG - + local phpversion 2020-01-08 09:26:10,501: DEBUG - + local workdir 2020-01-08 09:26:10,501: DEBUG - + local commands 2020-01-08 09:26:10,501: DEBUG - + ynh_handle_getopts_args --phpversion=7.0 --workdir=/var/www/snipeit '--commands=install --no-dev' 2020-01-08 09:26:10,501: DEBUG - + set +x 2020-01-08 09:26:10,501: DEBUG - + workdir=/var/www/snipeit 2020-01-08 09:26:10,502: DEBUG - + phpversion=7.0 2020-01-08 09:26:10,502: DEBUG - + COMPOSER_HOME=/var/www/snipeit/.composer 2020-01-08 09:26:10,502: DEBUG - + php7.0 /var/www/snipeit/composer.phar install --no-dev -d /var/www/snipeit --quiet --no-interaction 2020-01-08 09:26:10,602: DEBUG - + ynh_die 'Unable to update core dependencies with Composer.' 2020-01-08 09:26:10,602: WARNING - Your requirements could not be resolved to an installable set of packages. 2020-01-08 09:26:10,602: DEBUG - + local legacy_args=mc 2020-01-08 09:26:10,603: WARNING - Unable to update core dependencies with Composer. 2020-01-08 09:26:10,603: DEBUG - + args_array=([m]=message= [c]=ret_code=) 2020-01-08 09:26:10,603: DEBUG - + declare -Ar args_array 2020-01-08 09:26:10,603: DEBUG - + local message 2020-01-08 09:26:10,603: DEBUG - + local ret_code 2020-01-08 09:26:10,603: DEBUG - + ynh_handle_getopts_args 'Unable to update core dependencies with Composer.' 2020-01-08 09:26:10,603: DEBUG - + set +x 2020-01-08 09:26:10,603: DEBUG - + echo '! Helper used in legacy mode !' 2020-01-08 09:26:10,603: DEBUG - + set +x 2020-01-08 09:26:10,603: DEBUG - + echo 'Unable to update core dependencies with Composer.' 2020-01-08 09:26:10,603: DEBUG - + exit 1 2020-01-08 09:26:10,604: DEBUG - + ynh_exit_properly 2020-01-08 09:26:10,604: DEBUG - + local exit_code=1 2020-01-08 09:26:10,604: DEBUG - + '[' 1 -eq 0 ']' 2020-01-08 09:26:10,604: DEBUG - + trap '' EXIT 2020-01-08 09:26:10,604: DEBUG - + set +eu 2020-01-08 09:26:10,604: DEBUG - + sleep 0.5 2020-01-08 09:26:11,105: DEBUG - + ynh_print_err '--message=!!\n snipeit'''s script has encountered an error. Its execution was cancelled.\n!!' 2020-01-08 09:26:11,105: WARNING - /usr/share/yunohost/helpers.d/logging: Zeile 90: args_array: Schreibgeschützte Variable. 2020-01-08 09:26:11,105: DEBUG - + local legacy_args=m 2020-01-08 09:26:11,106: DEBUG - + args_array=([m]=message=)

tripflip commented 4 years ago

{ "host": "Debian 9.11", "kernel": "4.9.0-11-amd64", "packages": { "yunohost": { "repo": "stable", "version": "3.6.5.3" }, "yunohost-admin": { "repo": "stable", "version": "3.6.5.1" }, "moulinette": { "repo": "stable", "version": "3.6.4.1" }, "ssowat": { "repo": "stable", "version": "3.6.4" } }, "backports": [], "system": { "disks": { "sda2": "Mounted on /, 453.1GiB (419.4GiB free)", "sda1": "Mounted on /boot/efi, 511.0MiB (510.9MiB free)" }, "memory": { "ram": "3.8GiB (1.9GiB free)", "swap": "3.9GiB (3.4GiB free)" } }, "nginx": [ "nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size", "nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size", "nginx: the configuration file /etc/nginx/nginx.conf syntax is ok", "nginx: configuration file /etc/nginx/nginx.conf test is successful" ], "services": { "php7.3-fpm": "running (enabled)", "lstu": "running (enabled)", "yunohost-api": "running (enabled)", "php7.0-fpm": "running (enabled)", "fail2ban": "running (enabled)", "netdata": "running (enabled)", "mysql": "running (enabled)", "glances": "running (enabled)", "rspamd": "running (enabled)", "transmission-daemon": "running (enabled)", "lufi": "exited (enabled)", "shellinabox": "running (enabled)", "coturn-synapse": "running (enabled)", "avahi-daemon": "running (enabled)", "dovecot": "running (enabled)", "nslcd": "running (enabled)", "uwsgi-app@ffsync": "running (enabled)", "nginx": "running (enabled)", "calibreweb": "running (enabled)", "ssh": "running (enabled)", "redis-server": "running (enabled)", "postgresql": "exited (enabled)", "metronome": "running (enabled)", "postfix": "exited (enabled)", "yunohost-firewall": "exited (enabled)", "dnsmasq": "running (enabled)", "pixelfed-horizon": "running (enabled)", "matrix-synapse": "running (enabled)", "lutim": "running (enabled)", "slapd": "running (enabled)" }, "applications": { "pixelfed": "Pixelfed", "lstu": "URL-Shortener", "synapse": "Synapse", "riot": "Riot . - E2E-encrypted Chat", "dokuwiki": "Dokuwiki", "transmission": "Transmission", "onlyoffice": "OnlyOffice - nur die Statuspage", "calibreweb": "Calibre-web", "spftoolbox": "SPFToolBox", "lufi": "filehoster", "ffsync": "Firefox Sync Server", "rainloop": "Rainloop - Webmail", "netdata": "NetData", "portainer": "Portainer", "shellinabox": "Shell In A Box", "opensondage": "OpenSondage - Umfragen erstellen", "zerobin": "Zerobin - Pastebin alternative", "lutim": "Lutim - Image-Hoster", "nextcloud": "Pandacloud" }, "security": { "CVE-2017-5754": { "name": "meltdown", "vulnerable": false } } }