Git Product home page Git Product logo

snipeit_ynh's Introduction

Snipe-IT for YunoHost

Integration level Working status Maintenance status

Install Snipe-IT with YunoHost

Read this README in other languages.

This package allows you to install Snipe-IT quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

Snipeit is a FOSS project for asset management in IT Operations. Knowing who has which laptop, when it was purchased in order to depreciate it correctly, handling software licenses, etc.

Shipped version: 7.0.10~ynh1

Demo: https://snipeitapp.com/demo/

Screenshots

Screenshot of Snipe-IT

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that:

sudo yunohost app install https://github.com/YunoHost-Apps/snipeit_ynh/tree/testing --debug
or
sudo yunohost app upgrade snipeit -u https://github.com/YunoHost-Apps/snipeit_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps

snipeit_ynh's People

Contributors

alexaubin avatar ericgaspar avatar kay0u avatar oniricorpe avatar salamandar avatar tagadda avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

snipeit_ynh's Issues

Restore backup

Hello,
I want to restore a backup file in Snipe-IT on YunoHost.
The command "php artisan db:restore yourdumpfilename.sql" does not seem to work.
Do you have another solution?
Thank you

Installation fails

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=checksum__etc_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=checksum__etc_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=)

Composer issue during installation

c.f. https://forum.yunohost.org/t/snipeit-echec-installation/8667

With the relevant piece of log :

2019-08-03 07:33:23,300: DEBUG - + cd /var/www/snipeit
2019-08-03 07:33:23,301: DEBUG - + curl -sS https://getcomposer.org/installer
2019-08-03 07:33:23,301: DEBUG - + php
2019-08-03 07:33:23,503: DEBUG - All settings correct for using Composer
2019-08-03 07:33:23,504: DEBUG - The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly
2019-08-03 07:33:23,505: DEBUG - + ynh_exit_properly

c.f. here : https://github.com/YunoHost-Apps/snipeit_ynh/blob/master/scripts/install#L164

Though I see there's a init_composer in _common.sh but it doesn't seem to be actually used ...?

Error when attempting to create token

I was having problem creating API key in SnipeIT
image

Here's how I fixed it,.
on the server terminal, go to /var/www/yoursnipeitfolder
run
php artisan passport:install
You might get a warning that Encryption key already exists.
Go back to your snipeit web interface and try to generate API key again.
Should be working

Cant access the app if the Yunohost user is named snipeit

When trying to deploy SnipeIT on Yunohost 11.09, I was asked to create a Yunohost user.
I tried "snipeit", but after the install (no errors), the app is not accessible, only a blank page "file not found".
I tried an other username, and it works !
I guess the Yunohost user is in conflict with the app user.
Maybe this problem should be added to the documentation or prohibited in the installation ?

script has encountered an error. Its execution was cancelled.

Warning: [DEBUG]: DEBUG   - + ynh_print_err '--message=!!
Warning:   snipeit'\''s script has encountered an error. Its execution was cancelled.
Warning: !!'
Warning: [DEBUG]: WARNING - !!
Warning: [DEBUG]: DEBUG   - + local legacy_args=m
Warning: [DEBUG]: WARNING -   snipeit's script has encountered an error. Its execution was cancelled.
Warning: [DEBUG]: DEBUG   -=message=)
Warning: [DEBUG]: WARNING - !!
Warning: [DEBUG]: DEBUG   - + declare -Ar args_array
Warning: [DEBUG]: DEBUG   - + local message
Warning: [DEBUG]: DEBUG   - + ynh_handle_getopts_args '--message=!!
Warning:   snipeit'\''s script has encountered an error. Its execution was cancelled.
Warning: !!'
Warning: [DEBUG]: DEBUG   - + set +x
Warning: [DEBUG]: DEBUG   - !!
Warning:   snipeit'\''s script has encountered an error. Its execution was cancelled.
Warning: !!'
Warning: [DEBUG]: DEBUG   - !!
Warning:   snipeit'\''s script has encountered an error. Its execution was cancelled.
Warning: !!'
Warning: [DEBUG]: DEBUG   -'
Warning: [DEBUG]: DEBUG   - + set +x

just a test on latest version

Solved: Upgrade to 6.3.0 fails: Class 'Adldap\Adldap' not found

Describe the bug

Upgrading Snipe-it results in: "Class 'Adldap\Adldap' not found"

Context

  • Hardware: Intel VPS at Hetzner
  • YunoHost version: 11.2.10.1 (stable)
  • I have access to my server: ssh, webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: snipe-it 6.3.0~ynh1
  • If upgrading, current package version: 5.3.1~ynh3

Steps to reproduce

  • tried with webadmin upgrade and yunohost tools upgrade apps

Expected behavior

successful upgrade...

What I tried

most probably relates to these:

→ but how can I run the suggested composer commands in the upgrade script?

so I removed (probably flying blind) everything related to adldap in /var/www/snipeit/

  • composer.lock
  • composer.phar
  • composer.json

Logs

YunPaste Logs

most importantly:

2024-02-22 20:18:09,485: DEBUG - + php8.1 artisan config:clear -n
2024-02-22 20:18:09,848: DEBUG - 
2024-02-22 20:18:09,849: DEBUG -    Error
2024-02-22 20:18:09,849: DEBUG - 
2024-02-22 20:18:09,849: DEBUG -   Class "Adldap\Adldap" not found
2024-02-22 20:18:09,850: DEBUG - 
2024-02-22 20:18:09,850: DEBUG -   at app/Services/LdapAd.php:99
2024-02-22 20:18:09,853: DEBUG -      95▕             sets up an 'account_suffix' of '@'.$this->ldapSettings['ad_domain'] *IF* the user has
2024-02-22 20:18:09,854: DEBUG -      96▕             $this->ldapSettings['ad_append_domain'] enabled.
2024-02-22 20:18:09,854: DEBUG -      97▕             That code in ldapLogin gets simplified, in exchange for putting all the weirdness here only.
2024-02-22 20:18:09,854: DEBUG -      98▕             */
2024-02-22 20:18:09,854: DEBUG -   ➜  99▕             $this->ldap = new Adldap();
2024-02-22 20:18:09,855: DEBUG -     100▕             $this->ldap->addProvider($this->ldapConfig);
2024-02-22 20:18:09,855: DEBUG -     101▕             return true;
2024-02-22 20:18:09,855: DEBUG -     102▕         }
2024-02-22 20:18:09,855: DEBUG -     103▕         return false;
2024-02-22 20:18:09,857: DEBUG - 
2024-02-22 20:18:09,857: DEBUG -   1   app/Services/LdapAd.php:107
2024-02-22 20:18:09,858: DEBUG -       App\Services\LdapAd::init()
2024-02-22 20:18:09,858: DEBUG - 
2024-02-22 20:18:09,858: DEBUG -   2   [internal]:0
2024-02-22 20:18:09,858: DEBUG -       App\Services\LdapAd::__construct()

[buster] Install fails on buster because of some weird sql syntax error during initial "artistan migrate"

No idea how this app works, but this happens on buster (seems similar to what happened with Wordpress on buster as well ?) :

+ cd /var/www/snipeit
+ sudo /usr/bin/php artisan migrate -n --force
Migration table created successfully.

In Connection.php line 647:

  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error i
  n your SQL syntax; check the manual that corresponds to your MariaDB server
   version for the right syntax to use near '''' at line 1 (SQL: ALTER TABLE
  assets CHANGE _snipeit_mac_address _snipeit_mac_address_1 VARCHAR(191) DEFA
  ULT ''NULL'')


In PDOConnection.php line 79:

  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error i
  n your SQL syntax; check the manual that corresponds to your MariaDB server
   version for the right syntax to use near '''' at line 1


In PDOConnection.php line 77:

  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error i
  n your SQL syntax; check the manual that corresponds to your MariaDB server
   version for the right syntax to use near '''' at line 1


+ ynh_exit_properly

The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly.

accueil Yunohost
Home Tools Logs 20191030-134745-app_install-snipeit
Install 'snipeit' application

Path
    /var/log/yunohost/categories/operation/20191030-134745-app_install-snipeit.log
Start
    October 30, 2019, 9:47 AM
End
    October 30, 2019, 9:48 AM
Error
    This log finished with the error: An unexpected error occured: shell command return code: 1

Context
Logs

2019-10-30 09:48:37,166: DEBUG - + ynh_handle_getopts_args --service_name=php7.0-fpm --action=reload
2019-10-30 09:48:37,167: DEBUG - + set +x
2019-10-30 09:48:37,192: DEBUG - + local service_name=php7.0-fpm
2019-10-30 09:48:37,193: DEBUG - + local action=reload
2019-10-30 09:48:37,193: DEBUG - + local log_path=/var/log/php7.0-fpm/php7.0-fpm.log
2019-10-30 09:48:37,194: DEBUG - + local length=20
2019-10-30 09:48:37,195: DEBUG - + local timeout=300
2019-10-30 09:48:37,195: DEBUG - + [[ -n '' ]]
2019-10-30 09:48:37,196: DEBUG - + '[' reload == reload ']'
2019-10-30 09:48:37,197: DEBUG - + action=reload-or-restart
2019-10-30 09:48:37,197: DEBUG - + systemctl reload-or-restart php7.0-fpm
2019-10-30 09:48:37,198: DEBUG - + [[ -n '' ]]
2019-10-30 09:48:37,199: DEBUG - + cd /var/www/snipeit
2019-10-30 09:48:37,212: DEBUG - + php
2019-10-30 09:48:37,212: DEBUG - + curl -sS https://getcomposer.org/installer
2019-10-30 09:48:38,418: DEBUG - All settings correct for using Composer
2019-10-30 09:48:38,419: DEBUG - The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly
2019-10-30 09:48:38,420: DEBUG - + ynh_exit_properly
2019-10-30 09:48:38,421: DEBUG - + local exit_code=1
2019-10-30 09:48:38,422: DEBUG - + '[' 1 -eq 0 ']'
2019-10-30 09:48:38,422: DEBUG - + trap '' EXIT
2019-10-30 09:48:38,423: DEBUG - + set +eu
2019-10-30 09:48:38,423: DEBUG - + sleep 0.5
2019-10-30 09:48:38,926: DEBUG - + ynh_print_err '--message=!!\n  snipeit'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-10-30 09:48:38,927: DEBUG - + local legacy_args=m
2019-10-30 09:48:38,928: DEBUG - + args_array=([m]=message=)
2019-10-30 09:48:38,929: DEBUG - + declare -Ar args_array
2019-10-30 09:48:38,929: DEBUG - + local message
2019-10-30 09:48:38,931: DEBUG - + ynh_handle_getopts_args '--message=!!\n  snipeit'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-10-30 09:48:38,932: WARNING - �[91m�[1m[ERR]�[0m !!
2019-10-30 09:48:38,934: DEBUG - + set +x
2019-10-30 09:48:38,935: WARNING -   snipeit's script has encountered an error. Its execution was cancelled.
2019-10-30 09:48:38,937: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n  snipeit'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-10-30 09:48:38,938: WARNING - !!
2019-10-30 09:48:38,940: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n  snipeit'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-10-30 09:48:38,941: WARNING - 
2019-10-30 09:48:38,943: DEBUG - + '[' api == cli ']'
2019-10-30 09:48:38,944: DEBUG - + type -t ynh_clean_setup
2019-10-30 09:48:38,945: DEBUG - + ynh_clean_setup
2019-10-30 09:48:38,946: DEBUG - + true
2019-10-30 09:48:38,946: DEBUG - + ynh_die
2019-10-30 09:48:38,947: DEBUG - + local legacy_args=mc
2019-10-30 09:48:38,948: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-10-30 09:48:38,948: DEBUG - + declare -Ar args_array
2019-10-30 09:48:38,949: DEBUG - + local message
2019-10-30 09:48:38,949: DEBUG - + local ret_code
2019-10-30 09:48:38,950: DEBUG - + ynh_handle_getopts_args
2019-10-30 09:48:38,951: DEBUG - + set +x
2019-10-30 09:48:38,951: DEBUG - + echo ''
2019-10-30 09:48:38,952: DEBUG - + exit 1

Powered by YunoHost 3.6.5.3 (stable).

Update to 6.0 ?

Hey Guys, could you please update this snipe-it for yunohost to 6.0? I would really like to use the new features of version 6.0 in my yunohost installation.

Cheers and kind regards
Henri

Installation failed

Installation did not work on RPi4 with different settings on the subdomain assets.acme.com
language de or en
as public or non-public Version
system was updated short before:

{
"host": "Debian 9.11",
"kernel": "4.19.66-v7+",
"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": {
"root": "Mounted on /, 58.6GiB (54.8GiB free)",
"mmcblk0p1": "Mounted on /boot, 43.2MiB (20.9MiB free)",
"sda1": "Mounted on /media/usb, 29.2GiB (18.4GiB free)"
},
"memory": {
"ram": "926.1MiB (534.4MiB free)",
"swap": "100.0MiB (93.0MiB free)"
}
},
"nginx": [
"nginx: the configuration file /etc/nginx/nginx.conf syntax is ok",
"nginx: configuration file /etc/nginx/nginx.conf test is successful"
],
"services": {
"glances": "running (enabled)",
"nslcd": "running (enabled)",
"metronome": "running (enabled)",
"slapd": "running (enabled)",
"postfix": "exited (enabled)",
"rspamd": "running (enabled)",
"yunohost-firewall": "exited (enabled)",
"nginx": "running (enabled)",
"php7.0-fpm": "running (enabled)",
"dnsmasq": "running (enabled)",
"ssh": "running (enabled)",
"yunohost-api": "running (enabled)",
"mysql": "running (enabled)",
"avahi-daemon": "running (enabled)",
"dovecot": "running (enabled)",
"redis-server": "running (enabled)",
"uwsgi": "running (enabled)",
"fail2ban": "running (enabled)"
},
"applications": {
"redirect": "Marc",
"redirect__3": "Alex",
"radicale": "Radicale",
"redirect__2": "Sandra",
"wordpress": "WordPress",
"nextcloud": "Nextcloud"
},
"security": {
"CVE-2017-5754": {
"name": "meltdown",
"vulnerable": false
}
}
}

Path
/var/log/yunohost/categories/operation/20191227-113911-app_install-snipeit.log
Start
27. Dezember 2019, 12:39
End
27. Dezember 2019, 12:42
Error
This log finished with the error: Ein unerwarteter Fehler ist aufgetreten


YNH_APP_INSTANCE_NUMBER
1
YNH_APP_ARG_LANGUAGE
en
YNH_APP_INSTANCE_NAME
snipeit
YNH_STDINFO
/tmp/tmpniJBrC/stdinfo
YNH_CWD
/var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts
YNH_APP_ARG_IS_PUBLIC
1
YNH_APP_ARG_ADMIN
thomas
YNH_INTERFACE
api
YNH_APP_ID
snipeit
YNH_STDRETURN
/tmp/tmpEw9fHq/stdreturn
YNH_APP_ARG_DOMAIN
assets.acme.com


2019-12-27 12:39:11,861: INFO - Installing application snipeit…
2019-12-27 12:39:12,298: DEBUG - Führe den Behfehl 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_LANGUAGE=en YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmpniJBrC/stdinfo YNH_CWD=/var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts YNH_APP_INSTANCE_NAME=snipeit YNH_APP_ARG_ADMIN=Thomas YNH_INTERFACE=api YNH_APP_ID=snipeit YNH_STDRETURN=/tmp/tmpEw9fHq/stdreturn YNH_APP_ARG_DOMAIN=assets.acme.com BASH_XTRACEFD=7 /bin/bash -x "./install" assets.acme.com Thomas 1 en snipeit 7>&1' aus...
2019-12-27 12:39:12,300: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_LANGUAGE=en YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmpniJBrC/stdinfo YNH_CWD=/var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts YNH_APP_INSTANCE_NAME=snipeit YNH_APP_ARG_ADMIN=Thomas YNH_INTERFACE=api YNH_APP_ID=snipeit YNH_STDRETURN=/tmp/tmpEw9fHq/stdreturn YNH_APP_ARG_DOMAIN=assets.acme.com BASH_XTRACEFD=7 /bin/bash -x "./install" assets.acme.com Thomas 1 en snipeit 7>&1']'
2019-12-27 12:39:12,457: DEBUG - + source _common.sh
2019-12-27 12:39:12,460: DEBUG - ++ pkg_dependencies='openssl php-mbstring php-curl php-mysql php-ldap php-zip php-bcmath php-xml php-common'
2019-12-27 12:39:12,462: DEBUG - + source /usr/share/yunohost/helpers
2019-12-27 12:39:12,463: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2019-12-27 12:39:12,464: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,466: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2019-12-27 12:39:12,467: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt
2019-12-27 12:39:12,468: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,470: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2019-12-27 12:39:12,471: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup
2019-12-27 12:39:12,472: DEBUG - +++ CAN_BIND=1
2019-12-27 12:39:12,474: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,475: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2019-12-27 12:39:12,477: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban
2019-12-27 12:39:12,478: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,479: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2019-12-27 12:39:12,481: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2019-12-27 12:39:12,482: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,483: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2019-12-27 12:39:12,485: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging
2019-12-27 12:39:12,486: DEBUG - +++ increment_progression=0
2019-12-27 12:39:12,487: DEBUG - +++ previous_weight=0
2019-12-27 12:39:12,488: DEBUG - +++ max_progression=-1
2019-12-27 12:39:12,489: DEBUG - +++ progress_scale=20
2019-12-27 12:39:12,491: DEBUG - +++ progress_string2='####################'
2019-12-27 12:39:12,492: DEBUG - +++ progress_string1=++++++++++++++++++++
2019-12-27 12:39:12,493: DEBUG - +++ progress_string0=....................
2019-12-27 12:39:12,495: DEBUG - ++++ date +%s
2019-12-27 12:39:12,496: DEBUG - +++ base_time=1577446752
2019-12-27 12:39:12,497: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,498: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2019-12-27 12:39:12,500: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate
2019-12-27 12:39:12,501: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,502: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2019-12-27 12:39:12,503: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2019-12-27 12:39:12,505: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2019-12-27 12:39:12,506: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,507: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2019-12-27 12:39:12,509: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2019-12-27 12:39:12,510: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,511: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2019-12-27 12:39:12,513: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx
2019-12-27 12:39:12,514: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,515: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2019-12-27 12:39:12,516: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2019-12-27 12:39:12,518: DEBUG - +++ n_install_dir=/opt/node_n
2019-12-27 12:39:12,519: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2019-12-27 12:39:12,520: DEBUG - +++ export N_PREFIX=/opt/node_n
2019-12-27 12:39:12,521: DEBUG - +++ N_PREFIX=/opt/node_n
2019-12-27 12:39:12,523: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,524: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2019-12-27 12:39:12,526: DEBUG - ++ . /usr/share/yunohost/helpers.d/php
2019-12-27 12:39:12,527: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,528: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2019-12-27 12:39:12,529: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql
2019-12-27 12:39:12,531: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2019-12-27 12:39:12,532: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,534: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2019-12-27 12:39:12,535: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2019-12-27 12:39:12,536: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,537: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2019-12-27 12:39:12,538: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2019-12-27 12:39:12,539: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,541: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2019-12-27 12:39:12,542: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd
2019-12-27 12:39:12,543: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,545: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2019-12-27 12:39:12,546: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2019-12-27 12:39:12,547: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-12-27 12:39:12,548: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2019-12-27 12:39:12,549: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2019-12-27 12:39:12,651: DEBUG - + ynh_abort_if_errors
2019-12-27 12:39:12,653: DEBUG - + set -eu
2019-12-27 12:39:12,655: DEBUG - + trap ynh_exit_properly EXIT
2019-12-27 12:39:12,656: DEBUG - + domain=assets.acme.com
2019-12-27 12:39:12,658: DEBUG - + path_url=/
2019-12-27 12:39:12,660: DEBUG - + admin=Thomas
2019-12-27 12:39:12,662: DEBUG - + is_public=1
2019-12-27 12:39:12,664: DEBUG - + language=en
2019-12-27 12:39:12,666: DEBUG - + app=snipeit
2019-12-27 12:39:12,668: DEBUG - + ynh_script_progression '--message=Validating installation parameters...' --time --weight=1
2019-12-27 12:39:12,670: DEBUG - + set +x
2019-12-27 12:39:12,671: DEBUG - + set +x
2019-12-27 12:39:12,773: DEBUG - + echo '! Helper used in legacy mode !'
2019-12-27 12:39:12,775: DEBUG - + set +x
2019-12-27 12:39:12,777: DEBUG - + echo '[+...................] > Validating installation parameters... [00h00m,00s]'
2019-12-27 12:39:12,778: DEBUG - + set -x
2019-12-27 12:39:12,780: DEBUG - + final_path=/var/www/snipeit
2019-12-27 12:39:12,782: DEBUG - + test '!' -e /var/www/snipeit
2019-12-27 12:39:12,784: DEBUG - + ynh_webpath_register --app=snipeit --domain=assets.acme.com --path_url=/
2019-12-27 12:39:12,785: DEBUG - + local legacy_args=adp
2019-12-27 12:39:12,787: DEBUG - + args_array=([a]=app= [d]=domain= [p]=path_url=)
2019-12-27 12:39:12,789: DEBUG - + declare -Ar args_array
2019-12-27 12:39:12,790: DEBUG - + local app
2019-12-27 12:39:12,792: DEBUG - + local domain
2019-12-27 12:39:12,794: DEBUG - + local path_url
2019-12-27 12:39:12,795: DEBUG - + ynh_handle_getopts_args --app=snipeit --domain=assets.acme.com --path_url=/
2019-12-27 12:39:12,797: DEBUG - + set +x
2019-12-27 12:39:12,899: DEBUG - + sudo yunohost app register-url snipeit assets.acme.com /
2019-12-27 12:39:12,901: INFO - [+...................] > Validating installation parameters... [00h00m,00s]
2019-12-27 12:39:16,323: DEBUG - + ynh_script_progression '--message=Storing installation settings...' --time --weight=1
2019-12-27 12:39:16,324: DEBUG - + set +x
2019-12-27 12:39:16,326: DEBUG - + set +x
2019-12-27 12:39:16,427: DEBUG - + echo '! Helper used in legacy mode !'
2019-12-27 12:39:16,429: DEBUG - + set +x
2019-12-27 12:39:16,430: DEBUG - + echo '[#++.................] > Storing installation settings... [00h00m,04s]'
2019-12-27 12:39:16,432: DEBUG - + set -x
2019-12-27 12:39:16,434: DEBUG - + ynh_app_setting_set --app=snipeit --key=domain --value=assets.acme.com
2019-12-27 12:39:16,436: DEBUG - + local legacy_args=akv
2019-12-27 12:39:16,437: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:39:16,438: DEBUG - + declare -Ar args_array
2019-12-27 12:39:16,440: DEBUG - + local app
2019-12-27 12:39:16,442: DEBUG - + local key
2019-12-27 12:39:16,443: DEBUG - + local value
2019-12-27 12:39:16,445: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=domain --value=assets.acme.com
2019-12-27 12:39:16,446: DEBUG - + set +x
2019-12-27 12:39:16,448: DEBUG - + ynh_app_setting set snipeit domain assets.acme.com
2019-12-27 12:39:16,449: DEBUG - + ACTION=set
2019-12-27 12:39:16,451: DEBUG - + APP=snipeit
2019-12-27 12:39:16,452: DEBUG - + KEY=domain
2019-12-27 12:39:16,454: DEBUG - + VALUE=assets.acme.com
2019-12-27 12:39:16,455: DEBUG - + python -
2019-12-27 12:39:17,260: DEBUG - + ynh_app_setting_set --app=snipeit --key=path --value=/
2019-12-27 12:39:17,262: INFO - [#++.................] > Storing installation settings... [00h00m,04s]
2019-12-27 12:39:17,266: DEBUG - + local legacy_args=akv
2019-12-27 12:39:17,267: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:39:17,269: DEBUG - + declare -Ar args_array
2019-12-27 12:39:17,271: DEBUG - + local app
2019-12-27 12:39:17,273: DEBUG - + local key
2019-12-27 12:39:17,274: DEBUG - + local value
2019-12-27 12:39:17,275: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=path --value=/
2019-12-27 12:39:17,277: DEBUG - + set +x
2019-12-27 12:39:17,379: DEBUG - + ynh_app_setting set snipeit path /
2019-12-27 12:39:17,381: DEBUG - + ACTION=set
2019-12-27 12:39:17,383: DEBUG - + APP=snipeit
2019-12-27 12:39:17,384: DEBUG - + KEY=path
2019-12-27 12:39:17,386: DEBUG - + VALUE=/
2019-12-27 12:39:17,387: DEBUG - + python -
2019-12-27 12:39:18,193: DEBUG - + ynh_app_setting_set --app=snipeit --key=admin --value=Thomas
2019-12-27 12:39:18,194: DEBUG - + local legacy_args=akv
2019-12-27 12:39:18,196: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:39:18,197: DEBUG - + declare -Ar args_array
2019-12-27 12:39:18,199: DEBUG - + local app
2019-12-27 12:39:18,201: DEBUG - + local key
2019-12-27 12:39:18,203: DEBUG - + local value
2019-12-27 12:39:18,204: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=admin --value=Thomas
2019-12-27 12:39:18,206: DEBUG - + set +x
2019-12-27 12:39:18,208: DEBUG - + ynh_app_setting set snipeit admin Thomas
2019-12-27 12:39:18,210: DEBUG - + ACTION=set
2019-12-27 12:39:18,212: DEBUG - + APP=snipeit
2019-12-27 12:39:18,214: DEBUG - + KEY=admin
2019-12-27 12:39:18,215: DEBUG - + VALUE=Thomas
2019-12-27 12:39:18,217: DEBUG - + python -
2019-12-27 12:39:19,122: DEBUG - + ynh_app_setting_set --app=snipeit --key=is_public --value=1
2019-12-27 12:39:19,124: DEBUG - + local legacy_args=akv
2019-12-27 12:39:19,126: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:39:19,127: DEBUG - + declare -Ar args_array
2019-12-27 12:39:19,129: DEBUG - + local app
2019-12-27 12:39:19,130: DEBUG - + local key
2019-12-27 12:39:19,132: DEBUG - + local value
2019-12-27 12:39:19,134: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=is_public --value=1
2019-12-27 12:39:19,135: DEBUG - + set +x
2019-12-27 12:39:19,137: DEBUG - + ynh_app_setting set snipeit is_public 1
2019-12-27 12:39:19,138: DEBUG - + ACTION=set
2019-12-27 12:39:19,140: DEBUG - + APP=snipeit
2019-12-27 12:39:19,141: DEBUG - + KEY=is_public
2019-12-27 12:39:19,143: DEBUG - + VALUE=1
2019-12-27 12:39:19,144: DEBUG - + python -
2019-12-27 12:39:20,049: DEBUG - + ynh_app_setting_set --app=snipeit --key=language --value=en
2019-12-27 12:39:20,051: DEBUG - + local legacy_args=akv
2019-12-27 12:39:20,053: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:39:20,054: DEBUG - + declare -Ar args_array
2019-12-27 12:39:20,055: DEBUG - + local app
2019-12-27 12:39:20,056: DEBUG - + local key
2019-12-27 12:39:20,057: DEBUG - + local value
2019-12-27 12:39:20,058: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=language --value=en
2019-12-27 12:39:20,059: DEBUG - + set +x
2019-12-27 12:39:20,061: DEBUG - + ynh_app_setting set snipeit language en
2019-12-27 12:39:20,068: DEBUG - + ACTION=set
2019-12-27 12:39:20,069: DEBUG - + APP=snipeit
2019-12-27 12:39:20,071: DEBUG - + KEY=language
2019-12-27 12:39:20,072: DEBUG - + VALUE=en
2019-12-27 12:39:20,074: DEBUG - + python -
2019-12-27 12:39:20,879: DEBUG - + ynh_script_progression '--message=Installing dependencies...' --time --weight=1
2019-12-27 12:39:20,881: DEBUG - + set +x
2019-12-27 12:39:20,984: DEBUG - + set +x
2019-12-27 12:39:20,988: DEBUG - + echo '! Helper used in legacy mode !'
2019-12-27 12:39:20,991: DEBUG - + set +x
2019-12-27 12:39:20,994: DEBUG - + echo '[###++...............] > Installing dependencies... [00h00m,04s]'
2019-12-27 12:39:20,996: DEBUG - + set -x
2019-12-27 12:39:20,998: DEBUG - + ynh_install_app_dependencies openssl php-mbstring php-curl php-mysql php-ldap php-zip php-bcmath php-xml php-common
2019-12-27 12:39:21,000: DEBUG - + local 'dependencies=openssl php-mbstring php-curl php-mysql php-ldap php-zip php-bcmath php-xml php-common'
2019-12-27 12:39:21,002: DEBUG - + local 'dependencies=openssl, php-mbstring, php-curl, php-mysql, php-ldap, php-zip, php-bcmath, php-xml, php-common'
2019-12-27 12:39:21,006: DEBUG - + local 'dependencies=openssl, php-mbstring, php-curl, php-mysql, php-ldap, php-zip, php-bcmath, php-xml, php-common'
2019-12-27 12:39:21,007: DEBUG - + local manifest_path=../manifest.json
2019-12-27 12:39:21,009: DEBUG - + '[' '!' -e ../manifest.json ']'
2019-12-27 12:39:21,011: DEBUG - ++ grep '"version": ' ../manifest.json
2019-12-27 12:39:21,013: DEBUG - ++ cut -d '"' -f 4
2019-12-27 12:39:21,015: DEBUG - + local version=4.6.15ynh1
2019-12-27 12:39:21,018: DEBUG - + '[' 11 -eq 0 ']'
2019-12-27 12:39:21,020: DEBUG - + local dep_app=snipeit
2019-12-27 12:39:21,022: DEBUG - + echo openssl, php-mbstring, php-curl, php-mysql, php-ldap, php-zip, php-bcmath, php-xml, php-common
2019-12-27 12:39:21,024: DEBUG - + grep -q php
2019-12-27 12:39:21,026: DEBUG - + dpkg --list
2019-12-27 12:39:21,028: DEBUG - + grep php7.0
2019-12-27 12:39:21,030: DEBUG - + grep -q -v 7.0.33-0+deb9
2019-12-27 12:39:21,233: DEBUG - + cat
2019-12-27 12:39:21,235: INFO - [###++...............] > Installing dependencies... [00h00m,04s]
2019-12-27 12:39:21,240: DEBUG - + ynh_package_install_from_equivs /tmp/snipeit-ynh-deps.control
2019-12-27 12:39:21,242: DEBUG - + local controlfile=/tmp/snipeit-ynh-deps.control
2019-12-27 12:39:21,243: DEBUG - ++ grep '^Package: ' /tmp/snipeit-ynh-deps.control
2019-12-27 12:39:21,246: DEBUG - ++ cut '-d ' -f 2
2019-12-27 12:39:21,248: DEBUG - + local pkgname=snipeit-ynh-deps
2019-12-27 12:39:21,249: DEBUG - ++ grep '^Version: ' /tmp/snipeit-ynh-deps.control
2019-12-27 12:39:21,251: DEBUG - ++ cut '-d ' -f 2
2019-12-27 12:39:21,260: DEBUG - + local pkgversion=4.6.15
ynh1
2019-12-27 12:39:21,262: DEBUG - + [[ -z snipeit-ynh-deps ]]
2019-12-27 12:39:21,264: DEBUG - + [[ -z 4.6.15ynh1 ]]
2019-12-27 12:39:21,266: DEBUG - + ynh_package_update
2019-12-27 12:39:21,268: DEBUG - + ynh_apt update
2019-12-27 12:39:21,270: DEBUG - + ynh_wait_dpkg_free
2019-12-27 12:39:21,272: DEBUG - + local try
2019-12-27 12:39:21,273: DEBUG - ++ seq 1 17
2019-12-27 12:39:21,275: DEBUG - + for try in seq 1 17
2019-12-27 12:39:21,277: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-12-27 12:39:22,083: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2019-12-27 12:39:22,084: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2019-12-27 12:39:22,086: DEBUG - + read dpkg_file
2019-12-27 12:39:22,087: DEBUG - + echo ''
2019-12-27 12:39:22,088: DEBUG - + grep -Pq '^[[:digit:]]+$'
2019-12-27 12:39:22,089: DEBUG - + read dpkg_file
2019-12-27 12:39:22,090: DEBUG - + return 0
2019-12-27 12:39:22,092: DEBUG - + DEBIAN_FRONTEND=noninteractive
2019-12-27 12:39:22,093: DEBUG - + apt-get -y update
2019-12-27 12:39:22,496: DEBUG - Holen:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15,0 kB]
2019-12-27 12:39:22,497: DEBUG - Holen:2 http://archive.raspberrypi.org/debian stretch InRelease [25,4 kB]
2019-12-27 12:39:22,599: DEBUG - OK:3 http://forge.yunohost.org/debian stretch InRelease
2019-12-27 12:39:25,011: DEBUG - Es wurden 40,3 kB in 2 s geholt (15,7 kB/s).
2019-12-27 12:39:33,749: DEBUG - Paketlisten werden gelesen...
2019-12-27 12:39:33,952: DEBUG - ++ mktemp -d
2019-12-27 12:39:38,579: DEBUG - + local TMPDIR=/tmp/tmp.QcQwCYx47U
2019-12-27 12:39:39,850: DEBUG - + echo 10
2019-12-27 12:39:39,853: DEBUG - + ynh_wait_dpkg_free
2019-12-27 12:39:39,855: DEBUG - + local try
2019-12-27 12:39:39,857: DEBUG - ++ seq 1 17
2019-12-27 12:39:39,859: DEBUG - + for try in seq 1 17
2019-12-27 12:39:39,861: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-12-27 12:39:40,667: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2019-12-27 12:39:40,669: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2019-12-27 12:39:40,671: DEBUG - + read dpkg_file
2019-12-27 12:39:40,672: DEBUG - + echo ''
2019-12-27 12:39:40,674: DEBUG - + grep -Pq '^[[:digit:]]+$'
2019-12-27 12:39:40,676: DEBUG - + read dpkg_file
2019-12-27 12:39:40,678: DEBUG - + return 0
2019-12-27 12:39:40,679: DEBUG - + cp /tmp/snipeit-ynh-deps.control /tmp/tmp.QcQwCYx47U/control
2019-12-27 12:39:40,681: DEBUG - + cd /tmp/tmp.QcQwCYx47U
2019-12-27 12:39:40,683: DEBUG - + equivs-build ./control
2019-12-27 12:39:53,530: DEBUG - + dpkg --force-depends -i ./snipeit-ynh-deps_4.6.15
ynh1_all.deb
2019-12-27 12:39:53,934: DEBUG - Vormals nicht ausgewähltes Paket snipeit-ynh-deps wird gewählt.
2019-12-27 12:39:54,137: DEBUG - (Lese Datenbank ... 57475 Dateien und Verzeichnisse sind derzeit installiert.)
2019-12-27 12:39:54,139: DEBUG - Vorbereitung zum Entpacken von .../snipeit-ynh-deps_4.6.15ynh1_all.deb ...
2019-12-27 12:39:54,241: DEBUG - Entpacken von snipeit-ynh-deps (4.6.15
ynh1) ...
2019-12-27 12:39:55,748: DEBUG - dpkg: snipeit-ynh-deps: Abhängigkeitsprobleme, wird aber trotzdem wie gefordert konfiguriert:
2019-12-27 12:39:55,750: DEBUG - snipeit-ynh-deps hängt ab von php-bcmath; aber:
2019-12-27 12:39:55,751: DEBUG - Paket php-bcmath ist nicht installiert.
2019-12-27 12:39:55,752: DEBUG -
2019-12-27 12:39:55,754: DEBUG - snipeit-ynh-deps (4.6.15ynh1) wird eingerichtet ...
2019-12-27 12:39:57,060: DEBUG - + ynh_package_install -f
2019-12-27 12:39:57,061: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
2019-12-27 12:39:57,063: DEBUG - + ynh_wait_dpkg_free
2019-12-27 12:39:57,064: DEBUG - + local try
2019-12-27 12:39:57,065: DEBUG - ++ seq 1 17
2019-12-27 12:39:57,066: DEBUG - + for try in seq 1 17
2019-12-27 12:39:57,067: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-12-27 12:39:57,872: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2019-12-27 12:39:57,874: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2019-12-27 12:39:57,875: DEBUG - + read dpkg_file
2019-12-27 12:39:57,876: DEBUG - + echo ''
2019-12-27 12:39:57,877: DEBUG - + grep -Pq '^[[:digit:]]+$'
2019-12-27 12:39:57,878: DEBUG - + read dpkg_file
2019-12-27 12:39:57,880: DEBUG - + return 0
2019-12-27 12:39:57,881: DEBUG - + DEBIAN_FRONTEND=noninteractive
2019-12-27 12:39:57,882: DEBUG - + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
2019-12-27 12:39:58,888: DEBUG - Paketlisten werden gelesen...
2019-12-27 12:40:00,396: DEBUG - Abhängigkeitsbaum wird aufgebaut....
2019-12-27 12:40:00,398: DEBUG - Statusinformationen werden eingelesen....
2019-12-27 12:40:01,504: DEBUG - Abhängigkeiten werden korrigiert ... Fertig
2019-12-27 12:40:03,012: DEBUG - The following additional packages will be installed:
2019-12-27 12:40:03,014: DEBUG - php-bcmath php7.0-bcmath
2019-12-27 12:40:03,116: DEBUG - Die folgenden NEUEN Pakete werden installiert:
2019-12-27 12:40:03,118: DEBUG - php-bcmath php7.0-bcmath
2019-12-27 12:40:10,148: WARNING -
2019-12-27 12:40:10,151: WARNING - *** Bitte geben Sie an, wer Sie sind.
2019-12-27 12:40:10,155: WARNING -
2019-12-27 12:40:10,157: WARNING - Führen Sie
2019-12-27 12:40:10,160: WARNING -
2019-12-27 12:40:10,164: WARNING - git config --global user.email "[email protected]"
2019-12-27 12:40:10,167: WARNING - git config --global user.name "Your Name"
2019-12-27 12:40:10,170: WARNING -
2019-12-27 12:40:10,175: WARNING - aus, um das als Ihre standardmäßige Identität zu setzen.
2019-12-27 12:40:10,179: WARNING - Lassen Sie die Option "--global" weg, um die Identität nur
2019-12-27 12:40:10,182: WARNING - für dieses Repository zu setzen.
2019-12-27 12:40:10,186: WARNING - fatal: unable to auto-detect email address (got 'root@pico.(none)')
2019-12-27 12:40:10,189: WARNING - warning: etckeeper failed to commit changes in /etc using git
2019-12-27 12:40:13,003: DEBUG - 0 aktualisiert, 2 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
2019-12-27 12:40:13,005: DEBUG - Es müssen noch 0 B von 17,7 kB an Archiven heruntergeladen werden.
2019-12-27 12:40:13,006: DEBUG - Nach dieser Operation werden 67,6 kB Plattenplatz zusätzlich benutzt.
2019-12-27 12:40:18,733: DEBUG - Vormals nicht ausgewähltes Paket php7.0-bcmath wird gewählt.
2019-12-27 12:40:18,835: DEBUG - (Lese Datenbank ...
(Lese Datenbank ... 5%
(Lese Datenbank ... 10%
(Lese Datenbank ... 15%
(Lese Datenbank ... 20%
(Lese Datenbank ... 25%
(Lese Datenbank ... 30%
(Lese Datenbank ... 35%
(Lese Datenbank ... 40%
(Lese Datenbank ... 45%
(Lese Datenbank ... 50%
(Lese Datenbank ... 55%
(Lese Datenbank ... 60%
(Lese Datenbank ... 65%
(Lese Datenbank ... 70%
(Lese Datenbank ... 75%
(Lese Datenbank ... 80%
(Lese Datenbank ... 85%
(Lese Datenbank ... 90%
(Lese Datenbank ... 95%
(Lese Datenbank ... 100%
(Lese Datenbank ... 57479 Dateien und Verzeichnisse sind derzeit installiert.)
2019-12-27 12:40:18,837: DEBUG - Vorbereitung zum Entpacken von .../php7.0-bcmath_7.0.33-0+deb9u6_armhf.deb ...
2019-12-27 12:40:19,139: DEBUG - Entpacken von php7.0-bcmath (7.0.33-0+deb9u6) ...
2019-12-27 12:40:20,245: DEBUG - Vormals nicht ausgewähltes Paket php-bcmath wird gewählt.
2019-12-27 12:40:20,347: DEBUG - Vorbereitung zum Entpacken von .../php-bcmath_1%3a7.0+49_all.deb ...
2019-12-27 12:40:20,449: DEBUG - Entpacken von php-bcmath (1:7.0+49) ...
2019-12-27 12:40:21,455: DEBUG - Trigger für php7.0-fpm (7.0.33-0+deb9u6) werden verarbeitet ...
2019-12-27 12:40:25,575: DEBUG - php7.0-bcmath (7.0.33-0+deb9u6) wird eingerichtet ...
2019-12-27 12:40:25,979: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2019-12-27 12:40:27,186: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2019-12-27 12:40:27,690: DEBUG -
2019-12-27 12:40:27,692: DEBUG - Creating config file /etc/php/7.0/mods-available/bcmath.ini with new version
2019-12-27 12:40:28,898: DEBUG - /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2019-12-27 12:40:30,506: DEBUG - php-bcmath (1:7.0+49) wird eingerichtet ...
2019-12-27 12:40:30,909: DEBUG - Trigger für php7.0-fpm (7.0.33-0+deb9u6) werden verarbeitet ...
2019-12-27 12:40:40,651: DEBUG - + [[ -n /tmp/tmp.QcQwCYx47U ]]
2019-12-27 12:40:40,653: WARNING -
2019-12-27 12:40:40,660: DEBUG - + rm -rf /tmp/tmp.QcQwCYx47U
2019-12-27 12:40:40,662: WARNING - *** Bitte geben Sie an, wer Sie sind.
2019-12-27 12:40:40,666: DEBUG - + ynh_package_is_installed snipeit-ynh-deps
2019-12-27 12:40:40,667: WARNING -
2019-12-27 12:40:40,670: DEBUG - + local legacy_args=p
2019-12-27 12:40:40,672: WARNING - Führen Sie
2019-12-27 12:40:40,676: DEBUG - + args_array=([p]=package=)
2019-12-27 12:40:40,677: WARNING -
2019-12-27 12:40:40,680: DEBUG - + declare -Ar args_array
2019-12-27 12:40:40,682: WARNING - git config --global user.email "[email protected]"
2019-12-27 12:40:40,686: DEBUG - + local package
2019-12-27 12:40:40,687: WARNING - git config --global user.name "Your Name"
2019-12-27 12:40:40,691: DEBUG - + ynh_handle_getopts_args snipeit-ynh-deps
2019-12-27 12:40:40,693: WARNING -
2019-12-27 12:40:40,696: DEBUG - + set +x
2019-12-27 12:40:40,697: WARNING - aus, um das als Ihre standardmäßige Identität zu setzen.
2019-12-27 12:40:40,701: DEBUG - + echo '! Helper used in legacy mode !'
2019-12-27 12:40:40,703: WARNING - Lassen Sie die Option "--global" weg, um die Identität nur
2019-12-27 12:40:40,706: DEBUG - + set +x
2019-12-27 12:40:40,708: WARNING - für dieses Repository zu setzen.
2019-12-27 12:40:40,711: DEBUG - + ynh_wait_dpkg_free
2019-12-27 12:40:40,713: WARNING - fatal: unable to auto-detect email address (got 'root@pico.(none)')
2019-12-27 12:40:40,715: DEBUG - + local try
2019-12-27 12:40:40,717: WARNING - warning: etckeeper failed to commit changes in /etc using git
2019-12-27 12:40:40,719: DEBUG - ++ seq 1 17
2019-12-27 12:40:40,721: DEBUG - + for try in seq 1 17
2019-12-27 12:40:40,722: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-12-27 12:40:41,527: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2019-12-27 12:40:41,528: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2019-12-27 12:40:41,530: DEBUG - + read dpkg_file
2019-12-27 12:40:41,531: DEBUG - + echo ''
2019-12-27 12:40:41,533: DEBUG - + grep -Pq '^[[:digit:]]+$'
2019-12-27 12:40:41,534: DEBUG - + read dpkg_file
2019-12-27 12:40:41,535: DEBUG - + return 0
2019-12-27 12:40:41,536: DEBUG - + dpkg-query -W -f '${Status}' snipeit-ynh-deps
2019-12-27 12:40:41,538: DEBUG - + grep -c 'ok installed'
2019-12-27 12:40:41,640: DEBUG - + rm /tmp/snipeit-ynh-deps.control
2019-12-27 12:40:41,642: 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'
2019-12-27 12:40:41,643: DEBUG - + local legacy_args=akv
2019-12-27 12:40:41,645: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:40:41,647: DEBUG - + declare -Ar args_array
2019-12-27 12:40:41,648: DEBUG - + local app
2019-12-27 12:40:41,650: DEBUG - + local key
2019-12-27 12:40:41,652: DEBUG - + local value
2019-12-27 12:40:41,653: 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'
2019-12-27 12:40:41,655: DEBUG - + set +x
2019-12-27 12:40:41,657: 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'
2019-12-27 12:40:41,658: DEBUG - + ACTION=set
2019-12-27 12:40:41,660: DEBUG - + APP=snipeit
2019-12-27 12:40:41,662: DEBUG - + KEY=apt_dependencies
2019-12-27 12:40:41,663: DEBUG - + VALUE='openssl, php-mbstring, php-curl, php-mysql, php-ldap, php-zip, php-bcmath, php-xml, php-common'
2019-12-27 12:40:41,665: DEBUG - + python -
2019-12-27 12:40:42,570: DEBUG - + ynh_script_progression '--message=Creating a MySQL database...' --time --weight=1
2019-12-27 12:40:42,573: DEBUG - + set +x
2019-12-27 12:40:42,574: DEBUG - + set +x
2019-12-27 12:40:42,677: DEBUG - + echo '! Helper used in legacy mode !'
2019-12-27 12:40:42,678: INFO - [#####++.............] > Creating a MySQL database... [00h01m,22s]
2019-12-27 12:40:42,682: DEBUG - + set +x
2019-12-27 12:40:42,683: DEBUG - + echo '[#####++.............] > Creating a MySQL database... [00h01m,22s]'
2019-12-27 12:40:42,685: DEBUG - + set -x
2019-12-27 12:40:42,687: DEBUG - ++ ynh_sanitize_dbid snipeit
2019-12-27 12:40:42,688: DEBUG - ++ local legacy_args=n
2019-12-27 12:40:42,690: DEBUG - ++ args_array=([n]=db_name=)
2019-12-27 12:40:42,692: DEBUG - ++ declare -Ar args_array
2019-12-27 12:40:42,693: DEBUG - ++ local db_name
2019-12-27 12:40:42,695: DEBUG - ++ ynh_handle_getopts_args snipeit
2019-12-27 12:40:42,696: DEBUG - ++ set +x
2019-12-27 12:40:42,698: DEBUG - ++ echo '! Helper used in legacy mode !'
2019-12-27 12:40:42,700: DEBUG - ++ set +x
2019-12-27 12:40:42,701: DEBUG - ++ echo snipeit
2019-12-27 12:40:42,703: DEBUG - + db_name=snipeit
2019-12-27 12:40:42,705: DEBUG - + ynh_app_setting_set --app=snipeit --key=db_name --value=snipeit
2019-12-27 12:40:42,706: DEBUG - + local legacy_args=akv
2019-12-27 12:40:42,708: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:40:42,710: DEBUG - + declare -Ar args_array
2019-12-27 12:40:42,711: DEBUG - + local app
2019-12-27 12:40:42,713: DEBUG - + local key
2019-12-27 12:40:42,714: DEBUG - + local value
2019-12-27 12:40:42,716: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=db_name --value=snipeit
2019-12-27 12:40:42,717: DEBUG - + set +x
2019-12-27 12:40:42,719: DEBUG - + ynh_app_setting set snipeit db_name snipeit
2019-12-27 12:40:42,720: DEBUG - + ACTION=set
2019-12-27 12:40:42,722: DEBUG - + APP=snipeit
2019-12-27 12:40:42,723: DEBUG - + KEY=db_name
2019-12-27 12:40:42,725: DEBUG - + VALUE=snipeit
2019-12-27 12:40:42,726: DEBUG - + python -
2019-12-27 12:40:44,735: DEBUG - + ynh_mysql_setup_db --db_user=snipeit --db_name=snipeit
2019-12-27 12:40:44,737: DEBUG - + local legacy_args=unp
2019-12-27 12:40:44,739: DEBUG - + args_array=([u]=db_user= [n]=db_name= [p]=db_pwd=)
2019-12-27 12:40:44,740: DEBUG - + declare -Ar args_array
2019-12-27 12:40:44,742: DEBUG - + local db_user
2019-12-27 12:40:44,744: DEBUG - + local db_name
2019-12-27 12:40:44,746: DEBUG - + db_pwd=
2019-12-27 12:40:44,747: DEBUG - + ynh_handle_getopts_args --db_user=snipeit --db_name=snipeit
2019-12-27 12:40:44,749: DEBUG - + set +x
2019-12-27 12:40:44,851: DEBUG - ++ ynh_string_random
2019-12-27 12:40:44,852: DEBUG - ++ local legacy_args=l
2019-12-27 12:40:44,854: DEBUG - ++ args_array=([l]=length=)
2019-12-27 12:40:44,855: DEBUG - ++ declare -Ar args_array
2019-12-27 12:40:44,856: DEBUG - ++ local length
2019-12-27 12:40:44,857: DEBUG - ++ ynh_handle_getopts_args
2019-12-27 12:40:44,858: DEBUG - ++ set +x
2019-12-27 12:40:44,859: DEBUG - ++ length=24
2019-12-27 12:40:44,861: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2019-12-27 12:40:44,862: DEBUG - ++ tr -c -d A-Za-z0-9
2019-12-27 12:40:44,863: DEBUG - ++ sed -n 's/(.{24})./\1/p'
2019-12-27 12:40:44,965: DEBUG - + local new_db_pwd=
*********
2019-12-27 12:40:44,967: DEBUG - + db_pwd=**********
2019-12-27 12:40:44,969: DEBUG - + ynh_mysql_create_db snipeit snipeit **********
2019-12-27 12:40:44,971: DEBUG - + local db=snipeit
2019-12-27 12:40:44,973: DEBUG - + local 'sql=CREATE DATABASE snipeit;'
2019-12-27 12:40:44,974: DEBUG - + [[ 3 -gt 1 ]]
2019-12-27 12:40:44,976: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON snipeit.* TO '''snipeit'''@'''localhost''''
2019-12-27 12:40:44,977: DEBUG - + [[ -n ********** ]]
2019-12-27 12:40:44,979: DEBUG - + sql+=' IDENTIFIED BY '''''''
2019-12-27 12:40:44,980: DEBUG - + sql+=' WITH GRANT OPTION;'
2019-12-27 12:40:44,981: DEBUG - + ynh_mysql_execute_as_root '--sql=CREATE DATABASE snipeit; GRANT ALL PRIVILEGES ON snipeit.
TO '''snipeit'''@'''localhost''' IDENTIFIED BY '''
''' WITH GRANT OPTION;'
2019-12-27 12:40:44,983: DEBUG - + local legacy_args=sd
2019-12-27 12:40:44,984: DEBUG - + args_array=([s]=sql= [d]=database=)
2019-12-27 12:40:44,985: DEBUG - + declare -Ar args_array
2019-12-27 12:40:44,986: DEBUG - + local sql
2019-12-27 12:40:44,988: DEBUG - + local database
2019-12-27 12:40:44,989: DEBUG - + ynh_handle_getopts_args '--sql=CREATE DATABASE snipeit; GRANT ALL PRIVILEGES ON snipeit.
TO '''snipeit'''@'''localhost''' IDENTIFIED BY '''''' WITH GRANT OPTION;'
2019-12-27 12:40:44,990: DEBUG - + set +x
2019-12-27 12:40:44,991: DEBUG - + database=
2019-12-27 12:40:44,993: DEBUG - ++ sudo cat /etc/yunohost/mysql
2019-12-27 12:40:45,095: DEBUG - + ynh_mysql_connect_as --user=root --password=
--database=
2019-12-27 12:40:45,097: DEBUG - + local legacy_args=upd
2019-12-27 12:40:45,099: DEBUG - + args_array=([u]=user= [p]=password= [d]=database=)
2019-12-27 12:40:45,100: DEBUG - + declare -Ar args_array
2019-12-27 12:40:45,102: DEBUG - + local user
2019-12-27 12:40:45,104: DEBUG - + local password
2019-12-27 12:40:45,106: DEBUG - + local database
2019-12-27 12:40:45,107: DEBUG - + ynh_handle_getopts_args --user=root --password=********** --database=
2019-12-27 12:40:45,109: DEBUG - + set +x
2019-12-27 12:40:45,211: DEBUG - + database=
2019-12-27 12:40:45,213: DEBUG - + mysql -u root --password=********** -B ''
2019-12-27 12:40:45,215: DEBUG - + ynh_app_setting_set --app=snipeit --key=mysqlpwd --value=**********
2019-12-27 12:40:45,217: DEBUG - + local legacy_args=akv
2019-12-27 12:40:45,219: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:40:45,221: DEBUG - + declare -Ar args_array
2019-12-27 12:40:45,222: DEBUG - + local app
2019-12-27 12:40:45,224: DEBUG - + local key
2019-12-27 12:40:45,226: DEBUG - + local value
2019-12-27 12:40:45,228: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=mysqlpwd --value=**********
2019-12-27 12:40:45,230: DEBUG - + set +x
2019-12-27 12:40:45,332: DEBUG - + ynh_app_setting set snipeit mysqlpwd **********
2019-12-27 12:40:45,334: DEBUG - + ACTION=set
2019-12-27 12:40:45,335: DEBUG - + APP=snipeit
2019-12-27 12:40:45,336: DEBUG - + KEY=mysqlpwd
2019-12-27 12:40:45,338: DEBUG - + VALUE=**********
2019-12-27 12:40:45,340: DEBUG - + python -
2019-12-27 12:40:46,145: DEBUG - + ynh_script_progression '--message=Setting up source files...' --time --weight=1
2019-12-27 12:40:46,146: DEBUG - + set +x
2019-12-27 12:40:46,249: DEBUG - + set +x
2019-12-27 12:40:46,250: DEBUG - + echo '! Helper used in legacy mode !'
2019-12-27 12:40:46,252: DEBUG - + set +x
2019-12-27 12:40:46,254: DEBUG - + echo '[#######++...........] > Setting up source files... [00h00m,04s]'
2019-12-27 12:40:46,256: DEBUG - + set -x
2019-12-27 12:40:46,257: DEBUG - + ynh_app_setting_set --app=snipeit --key=final_path --value=/var/www/snipeit
2019-12-27 12:40:46,259: DEBUG - + local legacy_args=akv
2019-12-27 12:40:46,261: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:40:46,262: DEBUG - + declare -Ar args_array
2019-12-27 12:40:46,264: DEBUG - + local app
2019-12-27 12:40:46,266: DEBUG - + local key
2019-12-27 12:40:46,267: DEBUG - + local value
2019-12-27 12:40:46,269: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=final_path --value=/var/www/snipeit
2019-12-27 12:40:46,271: DEBUG - + set +x
2019-12-27 12:40:46,373: DEBUG - + ynh_app_setting set snipeit final_path /var/www/snipeit
2019-12-27 12:40:46,375: INFO - [#######++...........] > Setting up source files... [00h00m,04s]
2019-12-27 12:40:46,378: DEBUG - + ACTION=set
2019-12-27 12:40:46,379: DEBUG - + APP=snipeit
2019-12-27 12:40:46,380: DEBUG - + KEY=final_path
2019-12-27 12:40:46,382: DEBUG - + VALUE=/var/www/snipeit
2019-12-27 12:40:46,384: DEBUG - + python -
2019-12-27 12:40:47,189: DEBUG - + ynh_setup_source --dest_dir=/var/www/snipeit
2019-12-27 12:40:47,190: DEBUG - + local legacy_args=ds
2019-12-27 12:40:47,192: DEBUG - + args_array=([d]=dest_dir= [s]=source_id=)
2019-12-27 12:40:47,193: DEBUG - + declare -Ar args_array
2019-12-27 12:40:47,194: DEBUG - + local dest_dir
2019-12-27 12:40:47,195: DEBUG - + local source_id
2019-12-27 12:40:47,197: DEBUG - + ynh_handle_getopts_args --dest_dir=/var/www/snipeit
2019-12-27 12:40:47,198: DEBUG - + set +x
2019-12-27 12:40:47,199: DEBUG - + source_id=app
2019-12-27 12:40:47,200: DEBUG - + local src_file_path=/var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts/../conf/app.src
2019-12-27 12:40:47,206: DEBUG - + '[' '!' -e /var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts/../conf/app.src ']'
2019-12-27 12:40:47,208: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts/../conf/app.src
2019-12-27 12:40:47,210: DEBUG - ++ cut -d= -f2-
2019-12-27 12:40:47,212: DEBUG - + local src_url=https://github.com/snipe/snipe-it/archive/v4.6.15.tar.gz
2019-12-27 12:40:47,216: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts/../conf/app.src
2019-12-27 12:40:47,218: DEBUG - ++ cut -d= -f2-
2019-12-27 12:40:47,222: DEBUG - + local src_sum=9631b73485c72109df28b9d5aaa6fffa1944fbec2e3432920d0c87805b655615
2019-12-27 12:40:47,224: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts/../conf/app.src
2019-12-27 12:40:47,226: DEBUG - ++ cut -d= -f2-
2019-12-27 12:40:47,228: DEBUG - + local src_sumprg=sha256sum
2019-12-27 12:40:47,230: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts/../conf/app.src
2019-12-27 12:40:47,232: DEBUG - ++ cut -d= -f2-
2019-12-27 12:40:47,234: DEBUG - + local src_format=tar.gz
2019-12-27 12:40:47,238: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts/../conf/app.src
2019-12-27 12:40:47,240: DEBUG - ++ cut -d= -f2-
2019-12-27 12:40:47,342: DEBUG - + local src_extract=
2019-12-27 12:40:47,353: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts/../conf/app.src
2019-12-27 12:40:47,355: DEBUG - ++ cut -d= -f2-
2019-12-27 12:40:47,356: DEBUG - + local src_in_subdir=true
2019-12-27 12:40:47,357: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts/../conf/app.src
2019-12-27 12:40:47,359: DEBUG - ++ cut -d= -f2-
2019-12-27 12:40:47,360: DEBUG - + local src_filename=
2019-12-27 12:40:47,361: DEBUG - + src_sumprg=sha256sum
2019-12-27 12:40:47,363: DEBUG - + src_in_subdir=true
2019-12-27 12:40:47,364: DEBUG - + src_format=tar.gz
2019-12-27 12:40:47,365: DEBUG - ++ echo tar.gz
2019-12-27 12:40:47,367: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2019-12-27 12:40:47,368: DEBUG - + src_format=tar.gz
2019-12-27 12:40:47,370: DEBUG - + src_extract=true
2019-12-27 12:40:47,371: DEBUG - + '[' '' = '' ']'
2019-12-27 12:40:47,373: DEBUG - + src_filename=app.tar.gz
2019-12-27 12:40:47,375: DEBUG - + local local_src=/opt/yunohost-apps-src/snipeit/app.tar.gz
2019-12-27 12:40:47,376: DEBUG - + test -e /opt/yunohost-apps-src/snipeit/app.tar.gz
2019-12-27 12:40:47,377: DEBUG - ++ wget -nv -O app.tar.gz https://github.com/snipe/snipe-it/archive/v4.6.15.tar.gz
2019-12-27 12:40:51,494: DEBUG - + local 'out=2019-12-27 12:40:51 URL:https://codeload.github.com/snipe/snipe-it/tar.gz/v4.6.15 [11889990] -> "app.tar.gz" [1]'
2019-12-27 12:40:51,496: DEBUG - + echo '9631b73485c72109df28b9d5aaa6fffa1944fbec2e3432920d0c87805b655615 app.tar.gz'
2019-12-27 12:40:51,498: DEBUG - + sha256sum -c --status
2019-12-27 12:40:52,001: DEBUG - + mkdir -p /var/www/snipeit
2019-12-27 12:40:52,003: DEBUG - + true
2019-12-27 12:40:52,006: DEBUG - + '[' tar.gz = zip ']'
2019-12-27 12:40:52,007: DEBUG - + local strip=
2019-12-27 12:40:52,009: DEBUG - + '[' true '!=' false ']'
2019-12-27 12:40:52,011: DEBUG - + '[' true == true ']'
2019-12-27 12:40:52,013: DEBUG - + local sub_dirs=1
2019-12-27 12:40:52,014: DEBUG - + strip='--strip-components 1'
2019-12-27 12:40:52,016: DEBUG - + [[ tar.gz =
^tar.gz|tar.bz2|tar.xz$ ]]
2019-12-27 12:40:52,017: DEBUG - + tar -xf app.tar.gz -C /var/www/snipeit --strip-components 1
2019-12-27 12:41:03,365: DEBUG - ++ find /var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts/../sources/patches/ -type f -name 'app-.patch'
2019-12-27 12:41:03,367: DEBUG - ++ wc -l
2019-12-27 12:41:03,369: DEBUG - + (( 0 > 0 ))
2019-12-27 12:41:03,371: DEBUG - + test -e /var/cache/yunohost/from_file/snipeit_ynh-bb85f94b74ed4cce0209b827ebf4066c9484f1ac/scripts/../sources/extra_files/app
2019-12-27 12:41:03,373: DEBUG - + ynh_script_progression '--message=Configuring nginx web server...' --time --weight=1
2019-12-27 12:41:03,375: DEBUG - + set +x
2019-12-27 12:41:03,477: DEBUG - + set +x
2019-12-27 12:41:03,479: DEBUG - + echo '! Helper used in legacy mode !'
2019-12-27 12:41:03,481: DEBUG - + set +x
2019-12-27 12:41:03,483: DEBUG - + echo '[#########+..........] > Configuring nginx web server... [00h00m,17s]'
2019-12-27 12:41:03,485: DEBUG - + set -x
2019-12-27 12:41:03,486: DEBUG - + ynh_add_nginx_config
2019-12-27 12:41:03,488: DEBUG - + finalnginxconf=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:03,489: DEBUG - + local others_var=
2019-12-27 12:41:03,491: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:03,493: DEBUG - + local legacy_args=f
2019-12-27 12:41:03,495: DEBUG - + args_array=([f]=file=)
2019-12-27 12:41:03,496: DEBUG - + declare -Ar args_array
2019-12-27 12:41:03,498: DEBUG - + local file
2019-12-27 12:41:03,499: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:03,501: DEBUG - + set +x
2019-12-27 12:41:03,503: INFO - [#########+..........] > Configuring nginx web server... [00h00m,17s]
2019-12-27 12:41:03,507: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_assets.acme.com.d_snipeit.conf
2019-12-27 12:41:03,509: DEBUG - ++ ynh_app_setting_get --app=snipeit --key=
*********
2019-12-27 12:41:03,510: DEBUG - ++ local legacy_args=ak
2019-12-27 12:41:03,512: DEBUG - ++ args_array=([a]=app= [k]=key=)
2019-12-27 12:41:03,514: DEBUG - ++ declare -Ar args_array
2019-12-27 12:41:03,515: DEBUG - ++ local app
2019-12-27 12:41:03,517: DEBUG - ++ local key
2019-12-27 12:41:03,519: DEBUG - ++ ynh_handle_getopts_args --app=snipeit --key=**********
2019-12-27 12:41:03,521: DEBUG - ++ set +x
2019-12-27 12:41:03,623: DEBUG - ++ ynh_app_setting get snipeit **********
2019-12-27 12:41:03,625: DEBUG - ++ ACTION=get
2019-12-27 12:41:03,627: DEBUG - ++ APP=snipeit
2019-12-27 12:41:03,629: DEBUG - ++ KEY=**********
2019-12-27 12:41:03,631: DEBUG - ++ VALUE=
2019-12-27 12:41:03,633: DEBUG - ++ python -
2019-12-27 12:41:04,439: DEBUG - + local checksum_value=
2019-12-27 12:41:04,441: DEBUG - + backup_file_checksum=
2019-12-27 12:41:04,442: DEBUG - + '[' -n '' ']'
2019-12-27 12:41:04,443: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:04,646: DEBUG - + test -n /
2019-12-27 12:41:04,647: DEBUG - + local path_url_slash_less=
2019-12-27 12:41:04,648: DEBUG - + ynh_replace_string --match_string=PATH/ --replace_string=/ --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:04,650: DEBUG - + local legacy_args=mrf
2019-12-27 12:41:04,651: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-12-27 12:41:04,652: DEBUG - + declare -Ar args_array
2019-12-27 12:41:04,654: DEBUG - + local match_string
2019-12-27 12:41:04,655: DEBUG - + local replace_string
2019-12-27 12:41:04,657: DEBUG - + local target_file
2019-12-27 12:41:04,658: DEBUG - + ynh_handle_getopts_args --match_string=PATH/ --replace_string=/ --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:04,660: DEBUG - + set +x
2019-12-27 12:41:04,662: DEBUG - + local delimit=@
2019-12-27 12:41:04,663: DEBUG - + match_string=PATH/
2019-12-27 12:41:04,664: DEBUG - + replace_string=/
2019-12-27 12:41:04,666: DEBUG - + sudo sed --in-place s@PATH/@/@g /etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:04,868: DEBUG - + ynh_replace_string --match_string=PATH --replace_string=/ --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:04,869: DEBUG - + local legacy_args=mrf
2019-12-27 12:41:04,871: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-12-27 12:41:04,872: DEBUG - + declare -Ar args_array
2019-12-27 12:41:04,874: DEBUG - + local match_string
2019-12-27 12:41:04,875: DEBUG - + local replace_string
2019-12-27 12:41:04,877: DEBUG - + local target_file
2019-12-27 12:41:04,878: DEBUG - + ynh_handle_getopts_args --match_string=PATH --replace_string=/ --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:04,880: DEBUG - + set +x
2019-12-27 12:41:04,881: DEBUG - + local delimit=@
2019-12-27 12:41:04,882: DEBUG - + match_string=PATH
2019-12-27 12:41:04,883: DEBUG - + replace_string=/
2019-12-27 12:41:04,885: DEBUG - + sudo sed --in-place s@PATH@/@g /etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:16,522: DEBUG - + test -n assets.acme.com
2019-12-27 12:41:16,523: DEBUG - + ynh_replace_string --match_string=DOMAIN --replace_string=assets.acme.com --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:16,525: DEBUG - + local legacy_args=mrf
2019-12-27 12:41:16,526: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-12-27 12:41:16,527: DEBUG - + declare -Ar args_array
2019-12-27 12:41:16,529: DEBUG - + local match_string
2019-12-27 12:41:16,530: DEBUG - + local replace_string
2019-12-27 12:41:21,816: DEBUG - + local target_file
2019-12-27 12:41:21,817: DEBUG - + ynh_handle_getopts_args --match_string=DOMAIN --replace_string=assets.acme.com --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:21,819: DEBUG - + set +x
2019-12-27 12:41:21,821: DEBUG - + local delimit=@
2019-12-27 12:41:21,824: DEBUG - + match_string=DOMAIN
2019-12-27 12:41:21,833: DEBUG - + replace_string=assets.acme.com
2019-12-27 12:41:21,835: DEBUG - + sudo sed --in-place s@DOMAIN@assets.acme.com@g /etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:21,937: DEBUG - + test -n ''
2019-12-27 12:41:21,939: DEBUG - + test -n snipeit
2019-12-27 12:41:21,940: DEBUG - + ynh_replace_string --match_string=NAME --replace_string=snipeit --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:21,942: DEBUG - + local legacy_args=mrf
2019-12-27 12:41:21,943: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-12-27 12:41:21,944: DEBUG - + declare -Ar args_array
2019-12-27 12:41:21,946: DEBUG - + local match_string
2019-12-27 12:41:21,947: DEBUG - + local replace_string
2019-12-27 12:41:21,949: DEBUG - + local target_file
2019-12-27 12:41:21,950: DEBUG - + ynh_handle_getopts_args --match_string=NAME --replace_string=snipeit --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:21,952: DEBUG - + set +x
2019-12-27 12:41:21,954: DEBUG - + local delimit=@
2019-12-27 12:41:21,956: DEBUG - + match_string=NAME
2019-12-27 12:41:21,957: DEBUG - + replace_string=snipeit
2019-12-27 12:41:21,959: DEBUG - + sudo sed --in-place s@NAME@snipeit@g /etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:29,686: DEBUG - + test -n /var/www/snipeit
2019-12-27 12:41:29,688: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/snipeit --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:29,693: DEBUG - + local legacy_args=mrf
2019-12-27 12:41:29,695: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-12-27 12:41:29,697: DEBUG - + declare -Ar args_array
2019-12-27 12:41:29,701: DEBUG - + local match_string
2019-12-27 12:41:29,704: DEBUG - + local replace_string
2019-12-27 12:41:29,705: DEBUG - + local target_file
2019-12-27 12:41:29,707: DEBUG - + ynh_handle_getopts_args --match_string=FINALPATH --replace_string=/var/www/snipeit --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:29,709: DEBUG - + set +x
2019-12-27 12:41:29,811: DEBUG - + local delimit=@
2019-12-27 12:41:29,813: DEBUG - + match_string=FINALPATH
2019-12-27 12:41:29,814: DEBUG - + replace_string=/var/www/snipeit
2019-12-27 12:41:29,816: DEBUG - + sudo sed --in-place s@FINALPATH@/var/www/snipeit@g /etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:29,918: DEBUG - + '[' / '!=' / ']'
2019-12-27 12:41:29,920: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:29,922: DEBUG - + local legacy_args=mrf
2019-12-27 12:41:29,924: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-12-27 12:41:29,926: DEBUG - + declare -Ar args_array
2019-12-27 12:41:29,927: DEBUG - + local match_string
2019-12-27 12:41:29,929: DEBUG - + local replace_string
2019-12-27 12:41:29,930: DEBUG - + local target_file
2019-12-27 12:41:29,932: DEBUG - + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:29,934: DEBUG - + set +x
2019-12-27 12:41:30,036: DEBUG - + local delimit=@
2019-12-27 12:41:30,038: DEBUG - + match_string='^#root_path_only'
2019-12-27 12:41:30,041: DEBUG - + replace_string=
2019-12-27 12:41:30,043: DEBUG - + sudo sed --in-place 's@^#root_path_only@@g' /etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:46,300: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:46,302: DEBUG - + local legacy_args=f
2019-12-27 12:41:46,303: DEBUG - + args_array=([f]=file=)
2019-12-27 12:41:46,304: DEBUG - + declare -Ar args_array
2019-12-27 12:41:46,306: DEBUG - + local file
2019-12-27 12:41:46,307: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:46,308: DEBUG - + set +x
2019-12-27 12:41:46,309: DEBUG - + local checksum_setting_name=**********
2019-12-27 12:41:46,310: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/assets.acme.com.d/snipeit.conf
2019-12-27 12:41:46,312: DEBUG - ++ cut '-d ' -f1
2019-12-27 12:41:46,514: DEBUG - + ynh_app_setting_set --app=snipeit --key=********** --value=ce7e5e7fac3f0117a4b16aef067e13dc
2019-12-27 12:41:46,516: DEBUG - + local legacy_args=akv
2019-12-27 12:41:46,518: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:41:46,519: DEBUG - + declare -Ar args_array
2019-12-27 12:41:46,521: DEBUG - + local app
2019-12-27 12:41:46,523: DEBUG - + local key
2019-12-27 12:41:46,524: DEBUG - + local value
2019-12-27 12:41:46,526: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=********** --value=ce7e5e7fac3f0117a4b16aef067e13dc
2019-12-27 12:41:46,527: DEBUG - + set +x
2019-12-27 12:41:46,529: DEBUG - + ynh_app_setting set snipeit ********** ce7e5e7fac3f0117a4b16aef067e13dc
2019-12-27 12:41:46,530: DEBUG - + ACTION=set
2019-12-27 12:41:46,532: DEBUG - + APP=snipeit
2019-12-27 12:41:46,533: DEBUG - + KEY=**********
2019-12-27 12:41:46,535: DEBUG - + VALUE=ce7e5e7fac3f0117a4b16aef067e13dc
2019-12-27 12:41:46,536: DEBUG - + python -
2019-12-27 12:41:47,342: DEBUG - + '[' -n '' ']'
2019-12-27 12:41:47,344: DEBUG - + unset backup_file_checksum
2019-12-27 12:41:47,346: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2019-12-27 12:41:47,348: DEBUG - + local legacy_args=nalpte
2019-12-27 12:41:47,349: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2019-12-27 12:41:47,351: DEBUG - + declare -Ar args_array
2019-12-27 12:41:47,353: DEBUG - + local service_name
2019-12-27 12:41:47,354: DEBUG - + local action
2019-12-27 12:41:47,356: DEBUG - + local line_match
2019-12-27 12:41:47,358: DEBUG - + local length
2019-12-27 12:41:47,359: DEBUG - + local log_path
2019-12-27 12:41:47,361: DEBUG - + local timeout
2019-12-27 12:41:47,363: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload
2019-12-27 12:41:47,364: DEBUG - + set +x
2019-12-27 12:41:47,467: DEBUG - + local service_name=nginx
2019-12-27 12:41:47,468: DEBUG - + local action=reload
2019-12-27 12:41:47,470: DEBUG - + local log_path=/var/log/nginx/nginx.log
2019-12-27 12:41:47,472: DEBUG - + local length=20
2019-12-27 12:41:47,473: DEBUG - + local timeout=300
2019-12-27 12:41:47,475: DEBUG - + [[ -n '' ]]
2019-12-27 12:41:47,476: DEBUG - + '[' reload == reload ']'
2019-12-27 12:41:47,477: DEBUG - + action=reload-or-restart
2019-12-27 12:41:47,479: DEBUG - + systemctl reload-or-restart nginx
2019-12-27 12:41:48,083: DEBUG - + [[ -n '' ]]
2019-12-27 12:41:48,085: DEBUG - + ynh_script_progression '--message=Configuring system user...' --time --weight=1
2019-12-27 12:41:48,087: DEBUG - + set +x
2019-12-27 12:41:48,190: DEBUG - + set +x
2019-12-27 12:41:48,192: DEBUG - + echo '! Helper used in legacy mode !'
2019-12-27 12:41:48,194: DEBUG - + set +x
2019-12-27 12:41:48,196: DEBUG - + echo '[##########++........] > Configuring system user... [00h00m,45s]'
2019-12-27 12:41:48,198: DEBUG - + set -x
2019-12-27 12:41:48,200: DEBUG - + ynh_system_user_create --username=snipeit
2019-12-27 12:41:48,202: DEBUG - + local legacy_args=uhs
2019-12-27 12:41:48,204: DEBUG - + args_array=([u]=username= [h]=home_dir= [s]=use_shell)
2019-12-27 12:41:48,206: DEBUG - + declare -Ar args_array
2019-12-27 12:41:48,208: DEBUG - + local username
2019-12-27 12:41:48,210: DEBUG - + local home_dir
2019-12-27 12:41:48,212: DEBUG - + local use_shell
2019-12-27 12:41:48,216: DEBUG - + ynh_handle_getopts_args --username=snipeit
2019-12-27 12:41:48,219: INFO - [##########++........] > Configuring system user... [00h00m,45s]
2019-12-27 12:41:48,223: DEBUG - + set +x
2019-12-27 12:41:48,225: DEBUG - + use_shell=0
2019-12-27 12:41:48,228: DEBUG - + home_dir=
2019-12-27 12:41:48,230: DEBUG - + ynh_system_user_exists snipeit
2019-12-27 12:41:48,232: DEBUG - + local legacy_args=u
2019-12-27 12:41:48,234: DEBUG - + args_array=([u]=username=)
2019-12-27 12:41:48,236: DEBUG - + declare -Ar args_array
2019-12-27 12:41:48,238: DEBUG - + local username
2019-12-27 12:41:48,240: DEBUG - + ynh_handle_getopts_args snipeit
2019-12-27 12:41:48,243: DEBUG - + set +x
2019-12-27 12:41:48,245: DEBUG - + echo '! Helper used in legacy mode !'
2019-12-27 12:41:48,247: DEBUG - + set +x
2019-12-27 12:41:48,249: DEBUG - + getent passwd snipeit
2019-12-27 12:41:48,351: DEBUG - + '[' -n '' ']'
2019-12-27 12:41:48,353: DEBUG - + local user_home_dir=--no-create-home
2019-12-27 12:41:48,355: DEBUG - + '[' 0 -eq 1 ']'
2019-12-27 12:41:48,357: DEBUG - + local 'shell=--shell /usr/sbin/nologin'
2019-12-27 12:41:48,359: DEBUG - + useradd --no-create-home --system --user-group snipeit --shell /usr/sbin/nologin
2019-12-27 12:42:09,148: DEBUG - + ynh_script_progression '--message=Configuring php-fpm...' --time --weight=1
2019-12-27 12:42:09,150: DEBUG - + set +x
2019-12-27 12:42:09,152: DEBUG - + set +x
2019-12-27 12:42:09,154: DEBUG - + echo '! Helper used in legacy mode !'
2019-12-27 12:42:09,156: DEBUG - + set +x
2019-12-27 12:42:09,258: DEBUG - + echo '[############++......] > Configuring php-fpm... [00h00m,21s]'
2019-12-27 12:42:09,259: INFO - [############++......] > Configuring php-fpm... [00h00m,21s]
2019-12-27 12:42:09,262: DEBUG - + set -x
2019-12-27 12:42:09,264: DEBUG - + ynh_add_fpm_config
2019-12-27 12:42:09,265: DEBUG - + local legacy_args=v
2019-12-27 12:42:09,267: DEBUG - + args_array=([v]=phpversion=)
2019-12-27 12:42:09,269: DEBUG - + declare -Ar args_array
2019-12-27 12:42:09,270: DEBUG - + local phpversion
2019-12-27 12:42:09,272: DEBUG - + ynh_handle_getopts_args
2019-12-27 12:42:09,274: DEBUG - + set +x
2019-12-27 12:42:09,275: DEBUG - + phpversion=7.0
2019-12-27 12:42:09,277: DEBUG - + local fpm_config_dir=/etc/php/7.0/fpm
2019-12-27 12:42:09,279: DEBUG - + local fpm_service=php7.0-fpm
2019-12-27 12:42:09,280: DEBUG - ++ ynh_get_debian_release
2019-12-27 12:42:09,282: DEBUG - +++ lsb_release --codename --short
2019-12-27 12:42:09,785: DEBUG - ++ echo stretch
2019-12-27 12:42:09,787: DEBUG - + '[' stretch == jessie ']'
2019-12-27 12:42:09,789: DEBUG - + ynh_app_setting_set --app=snipeit --key=fpm_config_dir --value=/etc/php/7.0/fpm
2019-12-27 12:42:09,790: DEBUG - + local legacy_args=akv
2019-12-27 12:42:09,792: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:42:09,794: DEBUG - + declare -Ar args_array
2019-12-27 12:42:09,795: DEBUG - + local app
2019-12-27 12:42:09,797: DEBUG - + local key
2019-12-27 12:42:09,798: DEBUG - + local value
2019-12-27 12:42:09,800: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=fpm_config_dir --value=/etc/php/7.0/fpm
2019-12-27 12:42:09,801: DEBUG - + set +x
2019-12-27 12:42:09,803: DEBUG - + ynh_app_setting set snipeit fpm_config_dir /etc/php/7.0/fpm
2019-12-27 12:42:09,804: DEBUG - + ACTION=set
2019-12-27 12:42:09,806: DEBUG - + APP=snipeit
2019-12-27 12:42:09,807: DEBUG - + KEY=fpm_config_dir
2019-12-27 12:42:09,808: DEBUG - + VALUE=/etc/php/7.0/fpm
2019-12-27 12:42:09,810: DEBUG - + python -
2019-12-27 12:42:10,715: DEBUG - + ynh_app_setting_set --app=snipeit --key=fpm_service --value=php7.0-fpm
2019-12-27 12:42:10,717: DEBUG - + local legacy_args=akv
2019-12-27 12:42:10,718: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:42:10,719: DEBUG - + declare -Ar args_array
2019-12-27 12:42:10,720: DEBUG - + local app
2019-12-27 12:42:10,722: DEBUG - + local key
2019-12-27 12:42:10,723: DEBUG - + local value
2019-12-27 12:42:10,725: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=fpm_service --value=php7.0-fpm
2019-12-27 12:42:10,726: DEBUG - + set +x
2019-12-27 12:42:10,727: DEBUG - + ynh_app_setting set snipeit fpm_service php7.0-fpm
2019-12-27 12:42:10,729: DEBUG - + ACTION=set
2019-12-27 12:42:10,730: DEBUG - + APP=snipeit
2019-12-27 12:42:10,732: DEBUG - + KEY=fpm_service
2019-12-27 12:42:10,734: DEBUG - + VALUE=php7.0-fpm
2019-12-27 12:42:10,736: DEBUG - + python -
2019-12-27 12:42:11,642: DEBUG - + finalphpconf=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:11,644: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:11,646: DEBUG - + local legacy_args=f
2019-12-27 12:42:11,648: DEBUG - + args_array=([f]=file=)
2019-12-27 12:42:11,650: DEBUG - + declare -Ar args_array
2019-12-27 12:42:11,652: DEBUG - + local file
2019-12-27 12:42:11,654: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:11,656: DEBUG - + set +x
2019-12-27 12:42:11,657: DEBUG - + local checksum_setting_name=checksum__etc_php_7.0_fpm_pool.d_snipeit.conf
2019-12-27 12:42:11,659: DEBUG - ++ ynh_app_setting_get --app=snipeit --key=**********
2019-12-27 12:42:11,660: DEBUG - ++ local legacy_args=ak
2019-12-27 12:42:11,662: DEBUG - ++ args_array=([a]=app= [k]=key=)
2019-12-27 12:42:11,664: DEBUG - ++ declare -Ar args_array
2019-12-27 12:42:11,665: DEBUG - ++ local app
2019-12-27 12:42:11,667: DEBUG - ++ local key
2019-12-27 12:42:11,668: DEBUG - ++ ynh_handle_getopts_args --app=snipeit --key=**********
2019-12-27 12:42:11,669: DEBUG - ++ set +x
2019-12-27 12:42:11,671: DEBUG - ++ ynh_app_setting get snipeit **********
2019-12-27 12:42:11,672: DEBUG - ++ ACTION=get
2019-12-27 12:42:11,674: DEBUG - ++ APP=snipeit
2019-12-27 12:42:11,676: DEBUG - ++ KEY=**********
2019-12-27 12:42:11,677: DEBUG - ++ VALUE=
2019-12-27 12:42:11,679: DEBUG - ++ python -
2019-12-27 12:42:12,584: DEBUG - + local checksum_value=
2019-12-27 12:42:12,586: DEBUG - + backup_file_checksum=
2019-12-27 12:42:12,587: DEBUG - + '[' -n '' ']'
2019-12-27 12:42:12,588: DEBUG - + sudo cp ../conf/php-fpm.conf /etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:12,690: DEBUG - + ynh_replace_string --match_string=NAMETOCHANGE --replace_string=snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:12,692: DEBUG - + local legacy_args=mrf
2019-12-27 12:42:12,694: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-12-27 12:42:12,695: DEBUG - + declare -Ar args_array
2019-12-27 12:42:12,697: DEBUG - + local match_string
2019-12-27 12:42:12,699: DEBUG - + local replace_string
2019-12-27 12:42:12,700: DEBUG - + local target_file
2019-12-27 12:42:12,702: DEBUG - + ynh_handle_getopts_args --match_string=NAMETOCHANGE --replace_string=snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:12,704: DEBUG - + set +x
2019-12-27 12:42:12,806: DEBUG - + local delimit=@
2019-12-27 12:42:12,807: DEBUG - + match_string=NAMETOCHANGE
2019-12-27 12:42:12,809: DEBUG - + replace_string=snipeit
2019-12-27 12:42:12,810: DEBUG - + sudo sed --in-place s@NAMETOCHANGE@snipeit@g /etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:12,912: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:12,915: DEBUG - + local legacy_args=mrf
2019-12-27 12:42:12,916: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-12-27 12:42:12,918: DEBUG - + declare -Ar args_array
2019-12-27 12:42:12,920: DEBUG - + local match_string
2019-12-27 12:42:12,921: DEBUG - + local replace_string
2019-12-27 12:42:12,923: DEBUG - + local target_file
2019-12-27 12:42:12,925: DEBUG - + ynh_handle_getopts_args --match_string=FINALPATH --replace_string=/var/www/snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:12,927: DEBUG - + set +x
2019-12-27 12:42:13,029: DEBUG - + local delimit=@
2019-12-27 12:42:13,030: DEBUG - + match_string=FINALPATH
2019-12-27 12:42:13,032: DEBUG - + replace_string=/var/www/snipeit
2019-12-27 12:42:13,033: DEBUG - + sudo sed --in-place s@FINALPATH@/var/www/snipeit@g /etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:13,135: DEBUG - + ynh_replace_string --match_string=USER --replace_string=snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:13,137: DEBUG - + local legacy_args=mrf
2019-12-27 12:42:13,139: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-12-27 12:42:13,140: DEBUG - + declare -Ar args_array
2019-12-27 12:42:13,142: DEBUG - + local match_string
2019-12-27 12:42:13,144: DEBUG - + local replace_string
2019-12-27 12:42:13,145: DEBUG - + local target_file
2019-12-27 12:42:13,147: DEBUG - + ynh_handle_getopts_args --match_string=USER --replace_string=snipeit --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:13,148: DEBUG - + set +x
2019-12-27 12:42:13,250: DEBUG - + local delimit=@
2019-12-27 12:42:13,252: DEBUG - + match_string=USER
2019-12-27 12:42:13,254: DEBUG - + replace_string=snipeit
2019-12-27 12:42:13,255: DEBUG - + sudo sed --in-place s@USER@snipeit@g /etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:13,358: DEBUG - + ynh_replace_string --match_string=PHPVERSION --replace_string=7.0 --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:13,360: DEBUG - + local legacy_args=mrf
2019-12-27 12:42:13,362: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-12-27 12:42:13,363: DEBUG - + declare -Ar args_array
2019-12-27 12:42:13,365: DEBUG - + local match_string
2019-12-27 12:42:13,366: DEBUG - + local replace_string
2019-12-27 12:42:13,368: DEBUG - + local target_file
2019-12-27 12:42:13,370: DEBUG - + ynh_handle_getopts_args --match_string=PHPVERSION --replace_string=7.0 --target_file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:13,372: DEBUG - + set +x
2019-12-27 12:42:13,474: DEBUG - + local delimit=@
2019-12-27 12:42:13,477: DEBUG - + match_string=PHPVERSION
2019-12-27 12:42:13,478: DEBUG - + replace_string=7.0
2019-12-27 12:42:13,480: DEBUG - + sudo sed --in-place s@PHPVERSION@7.0@g /etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:13,582: DEBUG - + sudo chown root: /etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:13,785: DEBUG - + ynh_store_file_checksum --file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:13,787: DEBUG - + local legacy_args=f
2019-12-27 12:42:13,788: DEBUG - + args_array=([f]=file=)
2019-12-27 12:42:13,790: DEBUG - + declare -Ar args_array
2019-12-27 12:42:13,792: DEBUG - + local file
2019-12-27 12:42:13,793: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:13,795: DEBUG - + set +x
2019-12-27 12:42:13,797: DEBUG - + local checksum_setting_name=**********
2019-12-27 12:42:13,798: DEBUG - ++ sudo md5sum /etc/php/7.0/fpm/pool.d/snipeit.conf
2019-12-27 12:42:13,800: DEBUG - ++ cut '-d ' -f1
2019-12-27 12:42:14,002: DEBUG - + ynh_app_setting_set --app=snipeit --key=********** --value=1e10dbfc73d04f4e6d57d56fc3a11ea8
2019-12-27 12:42:14,004: DEBUG - + local legacy_args=akv
2019-12-27 12:42:14,011: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-12-27 12:42:14,013: DEBUG - + declare -Ar args_array
2019-12-27 12:42:14,015: DEBUG - + local app
2019-12-27 12:42:14,017: DEBUG - + local key
2019-12-27 12:42:14,019: DEBUG - + local value
2019-12-27 12:42:14,021: DEBUG - + ynh_handle_getopts_args --app=snipeit --key=********** --value=1e10dbfc73d04f4e6d57d56fc3a11ea8
2019-12-27 12:42:14,023: DEBUG - + set +x
2019-12-27 12:42:14,025: DEBUG - + ynh_app_setting set snipeit ********** 1e10dbfc73d04f4e6d57d56fc3a11ea8
2019-12-27 12:42:14,026: DEBUG - + ACTION=set
2019-12-27 12:42:14,028: DEBUG - + APP=snipeit
2019-12-27 12:42:14,030: DEBUG - + KEY=**********
2019-12-27 12:42:14,033: DEBUG - + VALUE=1e10dbfc73d04f4e6d57d56fc3a11ea8
2019-12-27 12:42:14,035: DEBUG - + python -
2019-12-27 12:42:14,940: DEBUG - + '[' -n '' ']'
2019-12-27 12:42:14,942: DEBUG - + unset backup_file_checksum
2019-12-27 12:42:14,944: DEBUG - + '[' -e ../conf/php-fpm.ini ']'
2019-12-27 12:42:14,946: DEBUG - + ynh_systemd_action --service_name=php7.0-fpm --action=reload
2019-12-27 12:42:14,948: DEBUG - + local legacy_args=nalpte
2019-12-27 12:42:14,949: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2019-12-27 12:42:14,951: DEBUG - + declare -Ar args_array
2019-12-27 12:42:14,952: DEBUG - + local service_name
2019-12-27 12:42:14,954: DEBUG - + local action
2019-12-27 12:42:14,956: DEBUG - + local line_match
2019-12-27 12:42:14,957: DEBUG - + local length
2019-12-27 12:42:14,958: DEBUG - + local log_path
2019-12-27 12:42:14,960: DEBUG - + local timeout
2019-12-27 12:42:14,961: DEBUG - + ynh_handle_getopts_args --service_name=php7.0-fpm --action=reload
2019-12-27 12:42:14,962: DEBUG - + set +x
2019-12-27 12:42:14,964: DEBUG - + local service_name=php7.0-fpm
2019-12-27 12:42:14,965: DEBUG - + local action=reload
2019-12-27 12:42:14,966: DEBUG - + local log_path=/var/log/php7.0-fpm/php7.0-fpm.log
2019-12-27 12:42:14,968: DEBUG - + local length=20
2019-12-27 12:42:14,969: DEBUG - + local timeout=300
2019-12-27 12:42:14,970: DEBUG - + [[ -n '' ]]
2019-12-27 12:42:14,971: DEBUG - + '[' reload == reload ']'
2019-12-27 12:42:14,973: DEBUG - + action=reload-or-restart
2019-12-27 12:42:14,974: DEBUG - + systemctl reload-or-restart php7.0-fpm
2019-12-27 12:42:15,076: DEBUG - + [[ -n '' ]]
2019-12-27 12:42:15,078: DEBUG - + cd /var/www/snipeit
2019-12-27 12:42:15,079: DEBUG - + curl -sS https://getcomposer.org/installer
2019-12-27 12:42:15,081: DEBUG - + php
2019-12-27 12:42:17,191: DEBUG - All settings correct for using Composer
2019-12-27 12:42:17,192: DEBUG - The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly
2019-12-27 12:42:17,194: DEBUG - + ynh_exit_properly
2019-12-27 12:42:17,195: DEBUG - + local exit_code=1
2019-12-27 12:42:17,196: DEBUG - + '[' 1 -eq 0 ']'
2019-12-27 12:42:17,198: DEBUG - + trap '' EXIT
2019-12-27 12:42:17,199: DEBUG - + set +eu
2019-12-27 12:42:17,200: DEBUG - + sleep 0.5
2019-12-27 12:42:17,703: DEBUG - + ynh_print_err '--message=!!\n snipeit'''s script has encountered an error. Its execution was cancelled.\n!!'
2019-12-27 12:42:17,705: DEBUG - + local legacy_args=m
2019-12-27 12:42:17,706: DEBUG - + args_array=([m]=message=)
2019-12-27 12:42:17,708: DEBUG - + declare -Ar args_array
2019-12-27 12:42:17,710: DEBUG - + local message
2019-12-27 12:42:17,712: DEBUG - + ynh_handle_getopts_args '--message=!!\n snipeit'''s script has encountered an error. Its execution was cancelled.\n!!'
2019-12-27 12:42:17,713: DEBUG - + set +x
2019-12-27 12:42:17,817: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n snipeit'''s script has encountered an error. Its execution was cancelled.\n!!'
2019-12-27 12:42:17,818: WARNING - �[91m�[1m[ERR]�[0m !!
2019-12-27 12:42:17,821: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n snipeit'''s script has encountered an error. Its execution was cancelled.\n!!'
2019-12-27 12:42:17,823: WARNING - snipeit's script has encountered an error. Its execution was cancelled.
2019-12-27 12:42:17,826: DEBUG - + '[' api == cli ']'
2019-12-27 12:42:17,827: WARNING - !!
2019-12-27 12:42:17,830: DEBUG - + type -t ynh_clean_setup
2019-12-27 12:42:17,832: WARNING -
2019-12-27 12:42:17,835: DEBUG - + ynh_clean_setup
2019-12-27 12:42:17,836: DEBUG - + true
2019-12-27 12:42:17,837: DEBUG - + ynh_die
2019-12-27 12:42:17,838: DEBUG - + local legacy_args=mc
2019-12-27 12:42:17,840: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-12-27 12:42:17,841: DEBUG - + declare -Ar args_array
2019-12-27 12:42:17,842: DEBUG - + local message
2019-12-27 12:42:17,843: DEBUG - + local ret_code
2019-12-27 12:42:17,844: DEBUG - + ynh_handle_getopts_args
2019-12-27 12:42:17,846: DEBUG - + set +x
2019-12-27 12:42:17,847: DEBUG - + echo ''
2019-12-27 12:42:17,848: DEBUG - + exit 1

any ideas?

LDAP support

The software supports LDAP. It should be connected by default to the Yunohost provided LDAP.

Working configuration:

bind user: uid=__LDAP_USER__,ou=users,dc=yunohost,dc=org
base bind DN: ou=users,dc=yunohost,dc=org
LDAP filter: (&(|(objectclass=posixAccount))(uid=*)(permission=cn=snipeit.main,ou=permission,dc=yunohost,dc=org))
username field: uid
first name field: cn
last name field: <empty>
auth request field: uid=
ldap email: mail

.env APP_URL incorrect

Describe the bug

I believe in the most recent update something changed the APP_URL setting in .env to start with http instead of https. When this happens, you are unable to assign assets to anything, as it cannot find the assets or users when checking it out. Once I changed http to https and cleared cache, it worked fine.

Context

  • Hardware: VPS
  • YunoHost version: 11.2.5
  • I have access to my server: SSH, Webmin, Web admin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: not initially
    • If yes, please explain: only changed the .env to fix the issue based on Snipe-ITs recommendation
  • Using, or trying to install package version/branch: 6.2.3~ynh1
  • If upgrading, current package version: This started after the upgrade to 6.2.3~ynh1

Steps to reproduce

  • Upgrade from 6.2.2 (or a fresh install? Unsure on the fresh install)
  • Go to assign an asset
  • Choose the entity to assign it to (either User, Asset, or Location) and search in the field for that entity
  • Error it gives is "The results could not be loaded"

Expected behavior

Show a list of assets, locations or users and allow you to search/select them.

Logs

Nothing showed up in the logs for this specific issue, but had been reported to Snipe-IT before.

I am unsure if this is unique to me, or not, but I do know I did not edit the .env file before this, so the https would not have been changed by me directly.

Failing to upgrade snipeit_ynh

https://paste.yunohost.org/raw/kibaqoqeza

I think this is the bit that's causing the problem :

2020-11-05 15:38:39,355: DEBUG - + php7.3 /var/www/snipeit/composer.phar install --no-dev -d /var/www/snipeit --quiet --no-interaction
2020-11-05 15:38:40,960: DEBUG - + ynh_die 'Unable to update core dependencies with Composer.'
2020-11-05 15:38:40,960: WARNING - Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
2020-11-05 15:38:40,961: WARNING - Unable to update core dependencies with Composer.
2020-11-05 15:38:40,963: DEBUG - + ret_code=1
2020-11-05 15:38:40,964: DEBUG - + echo 'Unable to update core dependencies with Composer.'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.