Re-instalation Kresus

#1

I try to install Kresus again in a brand new fresh ovh vps…
Here are the logs…
The first warning is about :

Installation of N - Node.js version management

and

./install: ligne 107: virtualenv : commande introuvable

Is some one have a idee ?

2019-06-05 16:48:08,128: INFO - Installation de l’application kresus …
2019-06-05 16:48:08,397: DEBUG - Exécution de la commande ‘sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts YNH_STDINFO=/tmp/tmpWln58N/stdinfo YNH_APP_INSTANCE_NAME=kresus YNH_STDRETURN=/tmp/tmpKfcaij/stdreturn YNH_APP_ID=kresus YNH_APP_ARG_PATH=/kresus YNH_APP_ARG_DOMAIN=kresus.nayya.org BASH_XTRACEFD=7 /bin/bash -x “./install” kresus.nayya.org /kresus kresus 7>&1’ …
2019-06-05 16:48:08,398: DEBUG - About to run the command ‘[‘sh’, ‘-c’, ‘YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts YNH_STDINFO=/tmp/tmpWln58N/stdinfo YNH_APP_INSTANCE_NAME=kresus YNH_STDRETURN=/tmp/tmpKfcaij/stdreturn YNH_APP_ID=kresus YNH_APP_ARG_PATH=/kresus YNH_APP_ARG_DOMAIN=kresus.nayya.org BASH_XTRACEFD=7 /bin/bash -x “./install” kresus.nayya.org /kresus kresus 7>&1’]’
2019-06-05 16:48:08,522: DEBUG - + source _common.sh
2019-06-05 16:48:08,523: DEBUG - ++ n_install_dir=/opt/node_n
2019-06-05 16:48:08,524: DEBUG - ++ node_version_path=/opt/node_n/n/versions/node
2019-06-05 16:48:08,524: DEBUG - ++ export N_PREFIX=/opt/node_n
2019-06-05 16:48:08,524: DEBUG - ++ N_PREFIX=/opt/node_n
2019-06-05 16:48:08,524: DEBUG - + source /usr/share/yunohost/helpers
2019-06-05 16:48:08,524: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2019-06-05 16:48:08,524: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,525: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ‘]’
2019-06-05 16:48:08,525: DEBUG - ++ . /usr/share/yunohost/helpers.d/backend
2019-06-05 16:48:08,525: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,525: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/debug ‘]’
2019-06-05 16:48:08,525: DEBUG - ++ . /usr/share/yunohost/helpers.d/debug
2019-06-05 16:48:08,526: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,526: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ‘]’
2019-06-05 16:48:08,526: DEBUG - ++ . /usr/share/yunohost/helpers.d/filesystem
2019-06-05 16:48:08,526: DEBUG - +++ source /usr/share/yunohost/helpers.d/getopts
2019-06-05 16:48:08,526: DEBUG - +++ CAN_BIND=1
2019-06-05 16:48:08,526: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,526: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/getopts ‘]’
2019-06-05 16:48:08,527: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2019-06-05 16:48:08,527: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,527: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ‘]’
2019-06-05 16:48:08,532: DEBUG - ++ . /usr/share/yunohost/helpers.d/ip
2019-06-05 16:48:08,533: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,533: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ‘]’
2019-06-05 16:48:08,533: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2019-06-05 16:48:08,533: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2019-06-05 16:48:08,534: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,534: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/network ‘]’
2019-06-05 16:48:08,534: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2019-06-05 16:48:08,534: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,534: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/nodejs ‘]’
2019-06-05 16:48:08,535: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2019-06-05 16:48:08,535: DEBUG - +++ n_install_dir=/opt/node_n
2019-06-05 16:48:08,541: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2019-06-05 16:48:08,542: DEBUG - +++ export N_PREFIX=/opt/node_n
2019-06-05 16:48:08,542: DEBUG - +++ N_PREFIX=/opt/node_n
2019-06-05 16:48:08,542: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,542: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/package ‘]’
2019-06-05 16:48:08,543: DEBUG - ++ . /usr/share/yunohost/helpers.d/package
2019-06-05 16:48:08,543: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,543: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/print ‘]’
2019-06-05 16:48:08,547: DEBUG - ++ . /usr/share/yunohost/helpers.d/print
2019-06-05 16:48:08,547: DEBUG - +++ increment_progression=0
2019-06-05 16:48:08,548: DEBUG - +++ previous_weight=0
2019-06-05 16:48:08,548: DEBUG - ++++ date +%s
2019-06-05 16:48:08,548: DEBUG - +++ base_time=1559746088
2019-06-05 16:48:08,548: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,548: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/psql ‘]’
2019-06-05 16:48:08,549: DEBUG - ++ . /usr/share/yunohost/helpers.d/psql
2019-06-05 16:48:08,549: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2019-06-05 16:48:08,549: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,549: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ‘]’
2019-06-05 16:48:08,549: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2019-06-05 16:48:08,549: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,549: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/string ‘]’
2019-06-05 16:48:08,550: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2019-06-05 16:48:08,550: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,550: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/system ‘]’
2019-06-05 16:48:08,550: DEBUG - ++ . /usr/share/yunohost/helpers.d/system
2019-06-05 16:48:08,550: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,550: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/user ‘]’
2019-06-05 16:48:08,550: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2019-06-05 16:48:08,550: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-06-05 16:48:08,551: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ‘]’
2019-06-05 16:48:08,551: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2019-06-05 16:48:08,551: DEBUG - + ynh_abort_if_errors
2019-06-05 16:48:08,551: DEBUG - + set -eu
2019-06-05 16:48:08,555: DEBUG - + trap ynh_exit_properly EXIT
2019-06-05 16:48:08,555: DEBUG - + domain=kresus.nayya.org
2019-06-05 16:48:08,555: DEBUG - + path_url=/kresus
2019-06-05 16:48:08,556: DEBUG - ++ ynh_find_port 9876
2019-06-05 16:48:08,556: DEBUG - ++ local legacy_args=p
2019-06-05 16:48:08,556: DEBUG - ++ args_array=([p]=port=)
2019-06-05 16:48:08,556: DEBUG - ++ declare -Ar args_array
2019-06-05 16:48:08,556: DEBUG - ++ local port
2019-06-05 16:48:08,556: DEBUG - ++ ynh_handle_getopts_args 9876
2019-06-05 16:48:08,557: DEBUG - ++ set +x
2019-06-05 16:48:08,557: DEBUG - ++ echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:08,557: DEBUG - ++ set +x
2019-06-05 16:48:08,557: DEBUG - ++ test -n 9876
2019-06-05 16:48:08,557: DEBUG - ++ netcat -z 127.0.0.1 9876
2019-06-05 16:48:08,658: DEBUG - ++ echo 9876
2019-06-05 16:48:08,658: DEBUG - + port=9876
2019-06-05 16:48:08,658: DEBUG - ++ ynh_string_random 40
2019-06-05 16:48:08,658: DEBUG - ++ local legacy_args=l
2019-06-05 16:48:08,659: DEBUG - ++ args_array=([l]=length=)
2019-06-05 16:48:08,659: DEBUG - ++ declare -Ar args_array
2019-06-05 16:48:08,659: DEBUG - ++ local length
2019-06-05 16:48:08,659: DEBUG - ++ ynh_handle_getopts_args 40
2019-06-05 16:48:08,659: DEBUG - ++ set +x
2019-06-05 16:48:08,659: DEBUG - ++ echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:08,660: DEBUG - ++ set +x
2019-06-05 16:48:08,660: DEBUG - ++ length=40
2019-06-05 16:48:08,660: DEBUG - ++ sed -n ‘s/(.{40})./\1/p’
2019-06-05 16:48:08,660: DEBUG - ++ tr -c -d A-Za-z0-9
2019-06-05 16:48:08,660: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2019-06-05 16:48:08,661: DEBUG - + salt=81QJ7UrFa1GTZsOB3FDzHnUkEPKj9FLAR9wBMm4C
2019-06-05 16:48:08,661: DEBUG - + app=kresus
2019-06-05 16:48:08,661: DEBUG - + final_path=/var/www/kresus
2019-06-05 16:48:08,661: DEBUG - + test ‘!’ -e /var/www/kresus
2019-06-05 16:48:08,661: DEBUG - ++ ynh_normalize_url_path /kresus
2019-06-05 16:48:08,661: DEBUG - ++ local legacy_args=p
2019-06-05 16:48:08,662: DEBUG - ++ args_array=([p]=path_url=)
2019-06-05 16:48:08,662: DEBUG - ++ declare -Ar args_array
2019-06-05 16:48:08,662: DEBUG - ++ local path_url
2019-06-05 16:48:08,662: DEBUG - ++ ynh_handle_getopts_args /kresus
2019-06-05 16:48:08,662: DEBUG - ++ set +x
2019-06-05 16:48:08,662: DEBUG - ++ echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:08,663: DEBUG - ++ set +x
2019-06-05 16:48:08,763: DEBUG - ++ test -n /kresus
2019-06-05 16:48:08,763: DEBUG - ++ ‘[’ / ‘!=’ / ‘]’
2019-06-05 16:48:08,763: DEBUG - ++ ‘[’ s == / ‘]’
2019-06-05 16:48:08,764: DEBUG - ++ echo /kresus
2019-06-05 16:48:08,764: DEBUG - + path_url=/kresus
2019-06-05 16:48:08,764: DEBUG - + ynh_webpath_available kresus.nayya.org /kresus
2019-06-05 16:48:08,764: DEBUG - + local legacy_args=dp
2019-06-05 16:48:08,764: DEBUG - + args_array=([d]=domain= [p]=path_url=)
2019-06-05 16:48:08,764: DEBUG - + declare -Ar args_array
2019-06-05 16:48:08,764: DEBUG - + local domain
2019-06-05 16:48:08,764: DEBUG - + local path_url
2019-06-05 16:48:08,765: DEBUG - + ynh_handle_getopts_args kresus.nayya.org /kresus
2019-06-05 16:48:08,765: DEBUG - + set +x
2019-06-05 16:48:08,765: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:08,765: DEBUG - + set +x
2019-06-05 16:48:08,765: DEBUG - + sudo yunohost domain url-available kresus.nayya.org /kresus
2019-06-05 16:48:09,667: DEBUG - True
2019-06-05 16:48:09,768: DEBUG - + ynh_webpath_register kresus kresus.nayya.org /kresus
2019-06-05 16:48:09,768: DEBUG - + local legacy_args=adp
2019-06-05 16:48:09,768: DEBUG - + args_array=([a]=app= [d]=domain= [p]=path_url=)
2019-06-05 16:48:09,768: DEBUG - + declare -Ar args_array
2019-06-05 16:48:09,768: DEBUG - + local app
2019-06-05 16:48:09,768: DEBUG - + local domain
2019-06-05 16:48:09,769: DEBUG - + local path_url
2019-06-05 16:48:09,769: DEBUG - + ynh_handle_getopts_args kresus kresus.nayya.org /kresus
2019-06-05 16:48:09,769: DEBUG - + set +x
2019-06-05 16:48:09,769: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:09,769: DEBUG - + set +x
2019-06-05 16:48:09,769: DEBUG - + sudo yunohost app register-url kresus kresus.nayya.org /kresus
2019-06-05 16:48:10,571: DEBUG - + ynh_app_setting_set kresus domain kresus.nayya.org
2019-06-05 16:48:10,571: DEBUG - + local legacy_args=akv
2019-06-05 16:48:10,571: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-06-05 16:48:10,572: DEBUG - + declare -Ar args_array
2019-06-05 16:48:10,572: DEBUG - + local app
2019-06-05 16:48:10,572: DEBUG - + local key
2019-06-05 16:48:10,572: DEBUG - + local value
2019-06-05 16:48:10,572: DEBUG - + ynh_handle_getopts_args kresus domain kresus.nayya.org
2019-06-05 16:48:10,572: DEBUG - + set +x
2019-06-05 16:48:10,572: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:10,573: DEBUG - + set +x
2019-06-05 16:48:10,573: DEBUG - + ynh_app_setting set kresus domain kresus.nayya.org
2019-06-05 16:48:10,573: DEBUG - + ACTION=set
2019-06-05 16:48:10,573: DEBUG - + APP=kresus
2019-06-05 16:48:10,573: DEBUG - + KEY=domain
2019-06-05 16:48:10,573: DEBUG - + VALUE=kresus.nayya.org
2019-06-05 16:48:10,573: DEBUG - + python -
2019-06-05 16:48:10,874: DEBUG - + ynh_app_setting_set kresus path /kresus
2019-06-05 16:48:10,874: DEBUG - + local legacy_args=akv
2019-06-05 16:48:10,874: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-06-05 16:48:10,875: DEBUG - + declare -Ar args_array
2019-06-05 16:48:10,875: DEBUG - + local app
2019-06-05 16:48:10,875: DEBUG - + local key
2019-06-05 16:48:10,875: DEBUG - + local value
2019-06-05 16:48:10,875: DEBUG - + ynh_handle_getopts_args kresus path /kresus
2019-06-05 16:48:10,875: DEBUG - + set +x
2019-06-05 16:48:10,875: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:10,875: DEBUG - + set +x
2019-06-05 16:48:10,876: DEBUG - + ynh_app_setting set kresus path /kresus
2019-06-05 16:48:10,876: DEBUG - + ACTION=set
2019-06-05 16:48:10,876: DEBUG - + APP=kresus
2019-06-05 16:48:10,876: DEBUG - + KEY=path
2019-06-05 16:48:10,876: DEBUG - + VALUE=/kresus
2019-06-05 16:48:10,876: DEBUG - + python -
2019-06-05 16:48:11,077: DEBUG - + ynh_app_setting_set kresus port 9876
2019-06-05 16:48:11,077: DEBUG - + local legacy_args=akv
2019-06-05 16:48:11,078: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-06-05 16:48:11,078: DEBUG - + declare -Ar args_array
2019-06-05 16:48:11,078: DEBUG - + local app
2019-06-05 16:48:11,078: DEBUG - + local key
2019-06-05 16:48:11,078: DEBUG - + local value
2019-06-05 16:48:11,079: DEBUG - + ynh_handle_getopts_args kresus port 9876
2019-06-05 16:48:11,079: DEBUG - + set +x
2019-06-05 16:48:11,079: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:11,079: DEBUG - + set +x
2019-06-05 16:48:11,079: DEBUG - + ynh_app_setting set kresus port 9876
2019-06-05 16:48:11,079: DEBUG - + ACTION=set
2019-06-05 16:48:11,079: DEBUG - + APP=kresus
2019-06-05 16:48:11,080: DEBUG - + KEY=port
2019-06-05 16:48:11,080: DEBUG - + VALUE=9876
2019-06-05 16:48:11,080: DEBUG - + python -
2019-06-05 16:48:11,280: DEBUG - + ynh_app_setting_set kresus salt 81QJ7UrFa1GTZsOB3FDzHnUkEPKj9FLAR9wBMm4C
2019-06-05 16:48:11,281: DEBUG - + local legacy_args=akv
2019-06-05 16:48:11,281: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-06-05 16:48:11,281: DEBUG - + declare -Ar args_array
2019-06-05 16:48:11,281: DEBUG - + local app
2019-06-05 16:48:11,281: DEBUG - + local key
2019-06-05 16:48:11,281: DEBUG - + local value
2019-06-05 16:48:11,282: DEBUG - + ynh_handle_getopts_args kresus salt 81QJ7UrFa1GTZsOB3FDzHnUkEPKj9FLAR9wBMm4C
2019-06-05 16:48:11,282: DEBUG - + set +x
2019-06-05 16:48:11,382: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:11,382: DEBUG - + set +x
2019-06-05 16:48:11,383: DEBUG - + ynh_app_setting set kresus salt 81QJ7UrFa1GTZsOB3FDzHnUkEPKj9FLAR9wBMm4C
2019-06-05 16:48:11,383: DEBUG - + ACTION=set
2019-06-05 16:48:11,383: DEBUG - + APP=kresus
2019-06-05 16:48:11,383: DEBUG - + KEY=salt
2019-06-05 16:48:11,383: DEBUG - + VALUE=81QJ7UrFa1GTZsOB3FDzHnUkEPKj9FLAR9wBMm4C
2019-06-05 16:48:11,383: DEBUG - + python -
2019-06-05 16:48:11,584: DEBUG - + ynh_install_app_dependencies dh-autoreconf python-pip python-dev python-lxml python-imaging python-virtualenv
2019-06-05 16:48:11,584: DEBUG - + local ‘dependencies=dh-autoreconf python-pip python-dev python-lxml python-imaging python-virtualenv’
2019-06-05 16:48:11,584: DEBUG - + local ‘dependencies=dh-autoreconf, python-pip, python-dev, python-lxml, python-imaging, python-virtualenv’
2019-06-05 16:48:11,584: DEBUG - + local ‘dependencies=dh-autoreconf, python-pip, python-dev, python-lxml, python-imaging, python-virtualenv’
2019-06-05 16:48:11,584: DEBUG - + local manifest_path=…/manifest.json
2019-06-05 16:48:11,585: DEBUG - + ‘[’ ‘!’ -e …/manifest.json ‘]’
2019-06-05 16:48:11,585: DEBUG - ++ cut -d ‘"’ -f 4
2019-06-05 16:48:11,585: DEBUG - ++ grep '“version”: ’ …/manifest.json
2019-06-05 16:48:11,585: DEBUG - + local version=0.13.3~ynh2
2019-06-05 16:48:11,585: DEBUG - + ‘[’ 11 -eq 0 ‘]’
2019-06-05 16:48:11,585: DEBUG - + local dep_app=kresus
2019-06-05 16:48:11,585: DEBUG - + cat
2019-06-05 16:48:11,585: DEBUG - + ynh_package_install_from_equivs /tmp/kresus-ynh-deps.control
2019-06-05 16:48:11,585: DEBUG - + local controlfile=/tmp/kresus-ynh-deps.control
2019-06-05 16:48:11,586: DEBUG - ++ cut '-d ’ -f 2
2019-06-05 16:48:11,586: DEBUG - ++ grep '^Package: ’ /tmp/kresus-ynh-deps.control
2019-06-05 16:48:11,586: DEBUG - + local pkgname=kresus-ynh-deps
2019-06-05 16:48:11,586: DEBUG - ++ cut ‘-d ’ -f 2
2019-06-05 16:48:11,586: DEBUG - ++ grep ‘^Version: ’ /tmp/kresus-ynh-deps.control
2019-06-05 16:48:11,586: DEBUG - + local pkgversion=0.13.3~ynh2
2019-06-05 16:48:11,586: DEBUG - + [[ -z kresus-ynh-deps ]]
2019-06-05 16:48:11,586: DEBUG - + [[ -z 0.13.3~ynh2 ]]
2019-06-05 16:48:11,586: DEBUG - + ynh_package_update
2019-06-05 16:48:11,587: DEBUG - + ynh_apt update
2019-06-05 16:48:11,587: DEBUG - + ynh_wait_dpkg_free
2019-06-05 16:48:11,587: DEBUG - + local try
2019-06-05 16:48:11,591: DEBUG - ++ seq 1 17
2019-06-05 16:48:11,591: DEBUG - + for try in seq 1 17
2019-06-05 16:48:11,591: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-06-05 16:48:11,895: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2019-06-05 16:48:11,896: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2019-06-05 16:48:11,896: DEBUG - + read dpkg_file
2019-06-05 16:48:11,896: DEBUG - + grep -Pq ‘^[[:digit:]]+$’
2019-06-05 16:48:11,896: DEBUG - + echo ‘’
2019-06-05 16:48:11,896: DEBUG - + read dpkg_file
2019-06-05 16:48:11,897: DEBUG - + return 0
2019-06-05 16:48:11,897: DEBUG - + DEBIAN_FRONTEND=noninteractive
2019-06-05 16:48:11,897: DEBUG - + apt-get -y update
2019-06-05 16:48:12,198: DEBUG - Atteint:1 http://security.debian.org stretch/updates InRelease
2019-06-05 16:48:12,198: DEBUG - Ign:2 http://deb.debian.org/debian stretch InRelease
2019-06-05 16:48:12,198: DEBUG - Atteint:3 http://deb.debian.org/debian stretch-updates InRelease
2019-06-05 16:48:12,198: DEBUG - Atteint:4 http://deb.debian.org/debian stretch Release
2019-06-05 16:48:12,199: DEBUG - Réception de:5 http://forge.yunohost.org/debian stretch InRelease [18,2 kB]
2019-06-05 16:48:15,907: DEBUG - Atteint:7 https://deb.nodesource.com/node_8.x stretch InRelease
2019-06-05 16:48:16,008: DEBUG - 18,2 ko réceptionnés en 3s (4 681 o/s)
2019-06-05 16:48:18,716: DEBUG - Lecture des listes de paquets…
2019-06-05 16:48:18,818: DEBUG - ++ mktemp -d
2019-06-05 16:48:18,819: DEBUG - + local TMPDIR=/tmp/tmp.BmeltcPoFs
2019-06-05 16:48:18,819: DEBUG - + echo 10
2019-06-05 16:48:18,819: DEBUG - + ynh_wait_dpkg_free
2019-06-05 16:48:18,819: DEBUG - + local try
2019-06-05 16:48:18,819: DEBUG - ++ seq 1 17
2019-06-05 16:48:18,819: DEBUG - + for try in seq 1 17
2019-06-05 16:48:18,820: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-06-05 16:48:19,020: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2019-06-05 16:48:19,020: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2019-06-05 16:48:19,021: DEBUG - + read dpkg_file
2019-06-05 16:48:19,021: DEBUG - + grep -Pq ‘^[[:digit:]]+$’
2019-06-05 16:48:19,021: DEBUG - + echo ‘’
2019-06-05 16:48:19,021: DEBUG - + read dpkg_file
2019-06-05 16:48:19,021: DEBUG - + return 0
2019-06-05 16:48:19,021: DEBUG - + cp /tmp/kresus-ynh-deps.control /tmp/tmp.BmeltcPoFs/control
2019-06-05 16:48:19,122: DEBUG - + cd /tmp/tmp.BmeltcPoFs
2019-06-05 16:48:19,122: DEBUG - + equivs-build ./control
2019-06-05 16:48:21,528: DEBUG - + dpkg --force-depends -i ./kresus-ynh-deps_0.13.3~ynh2_all.deb
2019-06-05 16:48:21,628: DEBUG - Sélection du paquet kresus-ynh-deps précédemment désélectionné.
2019-06-05 16:48:21,729: DEBUG - (Lecture de la base de données… 59224 fichiers et répertoires déjà installés.)
2019-06-05 16:48:21,729: DEBUG - Préparation du dépaquetage de …/kresus-ynh-deps_0.13.3~ynh2_all.deb …
2019-06-05 16:48:21,730: DEBUG - Dépaquetage de kresus-ynh-deps (0.13.3~ynh2) …
2019-06-05 16:48:21,730: DEBUG - dpkg: kresus-ynh-deps : problèmes de dépendances, mais configuration comme demandé :
2019-06-05 16:48:21,730: DEBUG - kresus-ynh-deps dépend de python-lxml ; cependant :
2019-06-05 16:48:21,730: DEBUG - Le paquet python-lxml n’est pas installé.
2019-06-05 16:48:21,730: DEBUG - kresus-ynh-deps dépend de python-imaging ; cependant :
2019-06-05 16:48:21,730: DEBUG - Le paquet python-imaging n’est pas installé.
2019-06-05 16:48:21,731: DEBUG - kresus-ynh-deps dépend de python-virtualenv ; cependant :
2019-06-05 16:48:21,731: DEBUG - Le paquet python-virtualenv n’est pas installé.
2019-06-05 16:48:21,731: DEBUG -
2019-06-05 16:48:21,831: DEBUG - Paramétrage de kresus-ynh-deps (0.13.3~ynh2) …
2019-06-05 16:48:21,832: DEBUG - + ynh_package_install -f
2019-06-05 16:48:21,832: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=–force-confdef -o Dpkg::Options::=–force-confold install -f
2019-06-05 16:48:21,832: DEBUG - + ynh_wait_dpkg_free
2019-06-05 16:48:21,832: DEBUG - + local try
2019-06-05 16:48:21,832: DEBUG - ++ seq 1 17
2019-06-05 16:48:21,832: DEBUG - + for try in seq 1 17
2019-06-05 16:48:21,833: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-06-05 16:48:22,033: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2019-06-05 16:48:22,033: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2019-06-05 16:48:22,034: DEBUG - + read dpkg_file
2019-06-05 16:48:22,034: DEBUG - + grep -Pq ‘^[[:digit:]]+$’
2019-06-05 16:48:22,034: DEBUG - + echo ‘’
2019-06-05 16:48:22,034: DEBUG - + read dpkg_file
2019-06-05 16:48:22,034: DEBUG - + return 0
2019-06-05 16:48:22,034: DEBUG - + DEBIAN_FRONTEND=noninteractive
2019-06-05 16:48:22,034: DEBUG - + apt-get -y --no-remove -o Dpkg::Options::=–force-confdef -o Dpkg::Options::=–force-confold install -f
2019-06-05 16:48:22,836: DEBUG - Lecture des listes de paquets…
2019-06-05 16:48:23,339: DEBUG - Construction de l’arbre des dépendances…
2019-06-05 16:48:23,340: DEBUG - Lecture des informations d’état…
2019-06-05 16:48:23,441: DEBUG - Correction des dépendances… Fait
2019-06-05 16:48:23,641: DEBUG - The following additional packages will be installed:
2019-06-05 16:48:23,642: DEBUG - python-imaging python-lxml python-pil python-virtualenv
2019-06-05 16:48:23,642: DEBUG - Paquets suggérés :
2019-06-05 16:48:23,642: DEBUG - python-lxml-dbg python-lxml-doc python-pil-doc python-pil-dbg
2019-06-05 16:48:23,642: DEBUG - Paquets recommandés :
2019-06-05 16:48:23,642: DEBUG - python-bs4 python-html5lib virtualenv
2019-06-05 16:48:23,642: DEBUG - Les NOUVEAUX paquets suivants seront installés :
2019-06-05 16:48:23,642: DEBUG - python-imaging python-lxml python-pil python-virtualenv
2019-06-05 16:48:25,447: DEBUG - 0 mis à jour, 4 nouvellement installés, 0 à enlever et 0 non mis à jour.
2019-06-05 16:48:25,447: DEBUG - Il est nécessaire de prendre 0 o/1 391 ko dans les archives.
2019-06-05 16:48:25,448: DEBUG - Après cette opération, 4 895 ko d’espace disque supplémentaires seront utilisés.
2019-06-05 16:48:25,548: DEBUG - Sélection du paquet python-pil:amd64 précédemment désélectionné.
2019-06-05 16:48:25,649: DEBUG - (Lecture de la base de données…
(Lecture de la base de données… 5%
(Lecture de la base de données… 10%
(Lecture de la base de données… 15%
(Lecture de la base de données… 20%
(Lecture de la base de données… 25%
(Lecture de la base de données… 30%
(Lecture de la base de données… 35%
(Lecture de la base de données… 40%
(Lecture de la base de données… 45%
(Lecture de la base de données… 50%
(Lecture de la base de données… 55%
(Lecture de la base de données… 60%
(Lecture de la base de données… 65%
(Lecture de la base de données… 70%
(Lecture de la base de données… 75%
(Lecture de la base de données… 80%
(Lecture de la base de données… 85%
(Lecture de la base de données… 90%
(Lecture de la base de données… 95%
(Lecture de la base de données… 100%
(Lecture de la base de données… 59228 fichiers et répertoires déjà installés.)
2019-06-05 16:48:25,649: DEBUG - Préparation du dépaquetage de …/python-pil_4.0.0-4_amd64.deb …
2019-06-05 16:48:25,650: DEBUG - Dépaquetage de python-pil:amd64 (4.0.0-4) …
2019-06-05 16:48:26,051: DEBUG - Sélection du paquet python-imaging précédemment désélectionné.
2019-06-05 16:48:26,051: DEBUG - Préparation du dépaquetage de …/python-imaging_4.0.0-4_all.deb …
2019-06-05 16:48:26,051: DEBUG - Dépaquetage de python-imaging (4.0.0-4) …
2019-06-05 16:48:26,252: DEBUG - Sélection du paquet python-lxml précédemment désélectionné.
2019-06-05 16:48:26,252: DEBUG - Préparation du dépaquetage de …/python-lxml_3.7.1-1_amd64.deb …
2019-06-05 16:48:26,252: DEBUG - Dépaquetage de python-lxml (3.7.1-1) …
2019-06-05 16:48:26,755: DEBUG - Sélection du paquet python-virtualenv précédemment désélectionné.
2019-06-05 16:48:26,755: DEBUG - Préparation du dépaquetage de …/python-virtualenv_15.1.0+ds-1_all.deb …
2019-06-05 16:48:26,756: DEBUG - Dépaquetage de python-virtualenv (15.1.0+ds-1) …
2019-06-05 16:48:26,956: DEBUG - Paramétrage de python-lxml (3.7.1-1) …
2019-06-05 16:48:27,257: DEBUG - Paramétrage de python-virtualenv (15.1.0+ds-1) …
2019-06-05 16:48:27,458: DEBUG - Paramétrage de python-pil:amd64 (4.0.0-4) …
2019-06-05 16:48:27,859: DEBUG - Paramétrage de python-imaging (4.0.0-4) …
2019-06-05 16:48:28,661: DEBUG - + [[ -n /tmp/tmp.BmeltcPoFs ]]
2019-06-05 16:48:28,661: DEBUG - + rm -rf /tmp/tmp.BmeltcPoFs
2019-06-05 16:48:28,662: DEBUG - + ynh_package_is_installed kresus-ynh-deps
2019-06-05 16:48:28,662: DEBUG - + local legacy_args=p
2019-06-05 16:48:28,662: DEBUG - + args_array=([p]=package=)
2019-06-05 16:48:28,662: DEBUG - + declare -Ar args_array
2019-06-05 16:48:28,662: DEBUG - + local package
2019-06-05 16:48:28,662: DEBUG - + ynh_handle_getopts_args kresus-ynh-deps
2019-06-05 16:48:28,663: DEBUG - + set +x
2019-06-05 16:48:28,663: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:28,663: DEBUG - + set +x
2019-06-05 16:48:28,763: DEBUG - + ynh_wait_dpkg_free
2019-06-05 16:48:28,764: DEBUG - + local try
2019-06-05 16:48:28,764: DEBUG - ++ seq 1 17
2019-06-05 16:48:28,764: DEBUG - + for try in seq 1 17
2019-06-05 16:48:28,764: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-06-05 16:48:28,965: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2019-06-05 16:48:28,965: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2019-06-05 16:48:28,965: DEBUG - + read dpkg_file
2019-06-05 16:48:28,965: DEBUG - + grep -Pq ‘^[[:digit:]]+$’
2019-06-05 16:48:28,965: DEBUG - + echo ‘’
2019-06-05 16:48:28,966: DEBUG - + read dpkg_file
2019-06-05 16:48:28,966: DEBUG - + return 0
2019-06-05 16:48:28,966: DEBUG - + grep -c ‘ok installed’
2019-06-05 16:48:28,966: DEBUG - + dpkg-query -W -f ‘${Status}’ kresus-ynh-deps
2019-06-05 16:48:28,966: DEBUG - + rm /tmp/kresus-ynh-deps.control
2019-06-05 16:48:28,966: DEBUG - + ynh_app_setting_set --app=kresus --key=apt_dependencies ‘–value=dh-autoreconf, python-pip, python-dev, python-lxml, python-imaging, python-virtualenv’
2019-06-05 16:48:28,966: DEBUG - + local legacy_args=akv
2019-06-05 16:48:28,967: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-06-05 16:48:28,967: DEBUG - + declare -Ar args_array
2019-06-05 16:48:28,967: DEBUG - + local app
2019-06-05 16:48:28,967: DEBUG - + local key
2019-06-05 16:48:28,967: DEBUG - + local value
2019-06-05 16:48:28,967: DEBUG - + ynh_handle_getopts_args --app=kresus --key=apt_dependencies ‘–value=dh-autoreconf, python-pip, python-dev, python-lxml, python-imaging, python-virtualenv’
2019-06-05 16:48:28,967: DEBUG - + set +x
2019-06-05 16:48:29,068: DEBUG - + ynh_app_setting set kresus apt_dependencies ‘dh-autoreconf, python-pip, python-dev, python-lxml, python-imaging, python-virtualenv’
2019-06-05 16:48:29,068: DEBUG - + ACTION=set
2019-06-05 16:48:29,068: DEBUG - + APP=kresus
2019-06-05 16:48:29,069: DEBUG - + KEY=apt_dependencies
2019-06-05 16:48:29,069: DEBUG - + VALUE=‘dh-autoreconf, python-pip, python-dev, python-lxml, python-imaging, python-virtualenv’
2019-06-05 16:48:29,069: DEBUG - + python -
2019-06-05 16:48:29,370: DEBUG - + ynh_app_setting_set kresus final_path /var/www/kresus
2019-06-05 16:48:29,370: DEBUG - + local legacy_args=akv
2019-06-05 16:48:29,370: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-06-05 16:48:29,370: DEBUG - + declare -Ar args_array
2019-06-05 16:48:29,370: DEBUG - + local app
2019-06-05 16:48:29,370: DEBUG - + local key
2019-06-05 16:48:29,370: DEBUG - + local value
2019-06-05 16:48:29,371: DEBUG - + ynh_handle_getopts_args kresus final_path /var/www/kresus
2019-06-05 16:48:29,371: DEBUG - + set +x
2019-06-05 16:48:29,371: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:29,371: DEBUG - + set +x
2019-06-05 16:48:29,371: DEBUG - + ynh_app_setting set kresus final_path /var/www/kresus
2019-06-05 16:48:29,371: DEBUG - + ACTION=set
2019-06-05 16:48:29,371: DEBUG - + APP=kresus
2019-06-05 16:48:29,371: DEBUG - + KEY=final_path
2019-06-05 16:48:29,372: DEBUG - + VALUE=/var/www/kresus
2019-06-05 16:48:29,372: DEBUG - + python -
2019-06-05 16:48:29,572: DEBUG - + ynh_setup_source /var/www/kresus
2019-06-05 16:48:29,572: DEBUG - + local legacy_args=ds
2019-06-05 16:48:29,573: DEBUG - + args_array=([d]=dest_dir= [s]=source_id=)
2019-06-05 16:48:29,573: DEBUG - + declare -Ar args_array
2019-06-05 16:48:29,573: DEBUG - + local dest_dir
2019-06-05 16:48:29,573: DEBUG - + local source_id
2019-06-05 16:48:29,573: DEBUG - + ynh_handle_getopts_args /var/www/kresus
2019-06-05 16:48:29,573: DEBUG - + set +x
2019-06-05 16:48:29,573: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:29,573: DEBUG - + set +x
2019-06-05 16:48:29,574: DEBUG - + source_id=app
2019-06-05 16:48:29,574: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:29,574: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/app.src
2019-06-05 16:48:29,574: DEBUG - + local src_url=https://framagit.org/kresusapp/kresus/-/archive/0.14.0/kresus-0.14.0.tar.bz2
2019-06-05 16:48:29,574: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:29,574: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/app.src
2019-06-05 16:48:29,574: DEBUG - + local src_sum=741a996db2b121e360c0dcf72633d56d010fca22dbf230a99a8be91be3a642bc
2019-06-05 16:48:29,574: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:29,574: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/app.src
2019-06-05 16:48:29,575: DEBUG - + local src_sumprg=sha256sum
2019-06-05 16:48:29,675: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:29,675: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/app.src
2019-06-05 16:48:29,675: DEBUG - + local src_format=tar.bz2
2019-06-05 16:48:29,676: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:29,676: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/app.src
2019-06-05 16:48:29,676: DEBUG - + local src_extract=
2019-06-05 16:48:29,676: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:29,676: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/app.src
2019-06-05 16:48:29,676: DEBUG - + local src_in_subdir=true
2019-06-05 16:48:29,676: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:29,676: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/app.src
2019-06-05 16:48:29,677: DEBUG - + local src_filename=
2019-06-05 16:48:29,677: DEBUG - + src_sumprg=sha256sum
2019-06-05 16:48:29,677: DEBUG - + src_in_subdir=true
2019-06-05 16:48:29,677: DEBUG - + src_format=tar.bz2
2019-06-05 16:48:29,677: DEBUG - ++ tr ‘[:upper:]’ ‘[:lower:]’
2019-06-05 16:48:29,677: DEBUG - ++ echo tar.bz2
2019-06-05 16:48:29,677: DEBUG - + src_format=tar.bz2
2019-06-05 16:48:29,677: DEBUG - + src_extract=true
2019-06-05 16:48:29,677: DEBUG - + ‘[’ ‘’ = ‘’ ‘]’
2019-06-05 16:48:29,678: DEBUG - + src_filename=app.tar.bz2
2019-06-05 16:48:29,678: DEBUG - + local local_src=/opt/yunohost-apps-src/kresus/app.tar.bz2
2019-06-05 16:48:29,678: DEBUG - + test -e /opt/yunohost-apps-src/kresus/app.tar.bz2
2019-06-05 16:48:29,678: DEBUG - ++ wget -nv -O app.tar.bz2 https://framagit.org/kresusapp/kresus/-/archive/0.14.0/kresus-0.14.0.tar.bz2
2019-06-05 16:48:30,186: DEBUG - + local ‘out=2019-06-05 16:48:30 URL:https://framagit.org/kresusapp/kresus/-/archive/0.14.0/kresus-0.14.0.tar.bz2 [3336223/3336223] -> “app.tar.bz2” [1]’
2019-06-05 16:48:30,186: DEBUG - + sha256sum -c --status
2019-06-05 16:48:30,186: DEBUG - + echo ‘741a996db2b121e360c0dcf72633d56d010fca22dbf230a99a8be91be3a642bc app.tar.bz2’
2019-06-05 16:48:30,287: DEBUG - + mkdir -p /var/www/kresus
2019-06-05 16:48:30,287: DEBUG - + true
2019-06-05 16:48:30,287: DEBUG - + ‘[’ tar.bz2 = zip ‘]’
2019-06-05 16:48:30,288: DEBUG - + local strip=
2019-06-05 16:48:30,288: DEBUG - + ‘[’ true ‘!=’ false ‘]’
2019-06-05 16:48:30,288: DEBUG - + ‘[’ true == true ‘]’
2019-06-05 16:48:30,288: DEBUG - + local sub_dirs=1
2019-06-05 16:48:30,288: DEBUG - + strip=’–strip-components 1’
2019-06-05 16:48:30,288: DEBUG - + [[ tar.bz2 =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2019-06-05 16:48:30,289: DEBUG - + tar -xf app.tar.bz2 -C /var/www/kresus --strip-components 1
2019-06-05 16:48:31,592: DEBUG - ++ wc -l
2019-06-05 16:48:31,592: DEBUG - ++ find /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/sources/patches/ -type f -name 'app-
.patch’
2019-06-05 16:48:31,692: DEBUG - + (( 0 > 0 ))
2019-06-05 16:48:31,693: DEBUG - + test -e /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/sources/extra_files/app
2019-06-05 16:48:31,693: DEBUG - + mkdir /var/www/kresus/data
2019-06-05 16:48:31,693: DEBUG - + ynh_add_nginx_config
2019-06-05 16:48:31,693: DEBUG - + finalnginxconf=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:31,693: DEBUG - + local others_var=
2019-06-05 16:48:31,693: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:31,693: DEBUG - + local legacy_args=f
2019-06-05 16:48:31,694: DEBUG - + args_array=([f]=file=)
2019-06-05 16:48:31,694: DEBUG - + declare -Ar args_array
2019-06-05 16:48:31,694: DEBUG - + local file
2019-06-05 16:48:31,694: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:31,694: DEBUG - + set +x
2019-06-05 16:48:31,694: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf
2019-06-05 16:48:31,694: DEBUG - ++ ynh_app_setting_get --app=kresus --key=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf
2019-06-05 16:48:31,694: DEBUG - ++ local legacy_args=ak
2019-06-05 16:48:31,695: DEBUG - ++ args_array=([a]=app= [k]=key=)
2019-06-05 16:48:31,695: DEBUG - ++ declare -Ar args_array
2019-06-05 16:48:31,695: DEBUG - ++ local app
2019-06-05 16:48:31,695: DEBUG - ++ local key
2019-06-05 16:48:31,695: DEBUG - ++ ynh_handle_getopts_args --app=kresus --key=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf
2019-06-05 16:48:31,695: DEBUG - ++ set +x
2019-06-05 16:48:31,695: DEBUG - ++ ynh_app_setting get kresus checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf
2019-06-05 16:48:31,696: DEBUG - ++ ACTION=get
2019-06-05 16:48:31,696: DEBUG - ++ APP=kresus
2019-06-05 16:48:31,696: DEBUG - ++ KEY=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf
2019-06-05 16:48:31,696: DEBUG - ++ VALUE=
2019-06-05 16:48:31,696: DEBUG - ++ python -
2019-06-05 16:48:31,997: DEBUG - + local checksum_value=
2019-06-05 16:48:31,997: DEBUG - + backup_file_checksum=
2019-06-05 16:48:31,997: DEBUG - + ‘[’ -n ‘’ ‘]’
2019-06-05 16:48:31,998: DEBUG - + sudo cp …/conf/nginx.conf /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:31,998: DEBUG - + test -n /kresus
2019-06-05 16:48:31,998: DEBUG - + local path_url_slash_less=/kresus
2019-06-05 16:48:31,998: DEBUG - + ynh_replace_string --match_string=PATH/ --replace_string=/kresus/ --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:31,998: DEBUG - + local legacy_args=mrf
2019-06-05 16:48:31,998: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-06-05 16:48:31,998: DEBUG - + declare -Ar args_array
2019-06-05 16:48:31,998: DEBUG - + local match_string
2019-06-05 16:48:31,998: DEBUG - + local replace_string
2019-06-05 16:48:31,999: DEBUG - + local target_file
2019-06-05 16:48:31,999: DEBUG - + ynh_handle_getopts_args --match_string=PATH/ --replace_string=/kresus/ --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:31,999: DEBUG - + set +x
2019-06-05 16:48:32,099: DEBUG - + local delimit=@
2019-06-05 16:48:32,099: DEBUG - + match_string=PATH/
2019-06-05 16:48:32,100: DEBUG - + replace_string=/kresus/
2019-06-05 16:48:32,100: DEBUG - + sudo sed --in-place s@PATH/@/kresus/@g /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,100: DEBUG - + ynh_replace_string --match_string=PATH --replace_string=/kresus --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,100: DEBUG - + local legacy_args=mrf
2019-06-05 16:48:32,100: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-06-05 16:48:32,100: DEBUG - + declare -Ar args_array
2019-06-05 16:48:32,100: DEBUG - + local match_string
2019-06-05 16:48:32,100: DEBUG - + local replace_string
2019-06-05 16:48:32,100: DEBUG - + local target_file
2019-06-05 16:48:32,101: DEBUG - + ynh_handle_getopts_args --match_string=PATH --replace_string=/kresus --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,101: DEBUG - + set +x
2019-06-05 16:48:32,101: DEBUG - + local delimit=@
2019-06-05 16:48:32,101: DEBUG - + match_string=PATH
2019-06-05 16:48:32,101: DEBUG - + replace_string=/kresus
2019-06-05 16:48:32,101: DEBUG - + sudo sed --in-place s@PATH@/kresus@g /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,204: DEBUG - + test -n kresus.nayya.org
2019-06-05 16:48:32,204: DEBUG - + ynh_replace_string --match_string=DOMAIN --replace_string=kresus.nayya.org --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,204: DEBUG - + local legacy_args=mrf
2019-06-05 16:48:32,205: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-06-05 16:48:32,205: DEBUG - + declare -Ar args_array
2019-06-05 16:48:32,205: DEBUG - + local match_string
2019-06-05 16:48:32,205: DEBUG - + local replace_string
2019-06-05 16:48:32,205: DEBUG - + local target_file
2019-06-05 16:48:32,205: DEBUG - + ynh_handle_getopts_args --match_string=DOMAIN --replace_string=kresus.nayya.org --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,205: DEBUG - + set +x
2019-06-05 16:48:32,205: DEBUG - + local delimit=@
2019-06-05 16:48:32,206: DEBUG - + match_string=DOMAIN
2019-06-05 16:48:32,206: DEBUG - + replace_string=kresus.nayya.org
2019-06-05 16:48:32,206: DEBUG - + sudo sed --in-place s@DOMAIN@kresus.nayya.org@g /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,308: DEBUG - + test -n 9876
2019-06-05 16:48:32,308: DEBUG - + ynh_replace_string --match_string=PORT --replace_string=9876 --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,309: DEBUG - + local legacy_args=mrf
2019-06-05 16:48:32,309: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-06-05 16:48:32,309: DEBUG - + declare -Ar args_array
2019-06-05 16:48:32,309: DEBUG - + local match_string
2019-06-05 16:48:32,309: DEBUG - + local replace_string
2019-06-05 16:48:32,309: DEBUG - + local target_file
2019-06-05 16:48:32,310: DEBUG - + ynh_handle_getopts_args --match_string=PORT --replace_string=9876 --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,310: DEBUG - + set +x
2019-06-05 16:48:32,310: DEBUG - + local delimit=@
2019-06-05 16:48:32,310: DEBUG - + match_string=PORT
2019-06-05 16:48:32,310: DEBUG - + replace_string=9876
2019-06-05 16:48:32,310: DEBUG - + sudo sed --in-place s@PORT@9876@g /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,411: DEBUG - + test -n kresus
2019-06-05 16:48:32,411: DEBUG - + ynh_replace_string --match_string=NAME --replace_string=kresus --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,411: DEBUG - + local legacy_args=mrf
2019-06-05 16:48:32,411: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-06-05 16:48:32,411: DEBUG - + declare -Ar args_array
2019-06-05 16:48:32,411: DEBUG - + local match_string
2019-06-05 16:48:32,411: DEBUG - + local replace_string
2019-06-05 16:48:32,412: DEBUG - + local target_file
2019-06-05 16:48:32,412: DEBUG - + ynh_handle_getopts_args --match_string=NAME --replace_string=kresus --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,412: DEBUG - + set +x
2019-06-05 16:48:32,412: DEBUG - + local delimit=@
2019-06-05 16:48:32,412: DEBUG - + match_string=NAME
2019-06-05 16:48:32,412: DEBUG - + replace_string=kresus
2019-06-05 16:48:32,412: DEBUG - + sudo sed --in-place s@NAME@kresus@g /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,412: DEBUG - + test -n /var/www/kresus
2019-06-05 16:48:32,413: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/kresus --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,413: DEBUG - + local legacy_args=mrf
2019-06-05 16:48:32,413: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-06-05 16:48:32,413: DEBUG - + declare -Ar args_array
2019-06-05 16:48:32,413: DEBUG - + local match_string
2019-06-05 16:48:32,413: DEBUG - + local replace_string
2019-06-05 16:48:32,413: DEBUG - + local target_file
2019-06-05 16:48:32,413: DEBUG - + ynh_handle_getopts_args --match_string=FINALPATH --replace_string=/var/www/kresus --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,414: DEBUG - + set +x
2019-06-05 16:48:32,514: DEBUG - + local delimit=@
2019-06-05 16:48:32,514: DEBUG - + match_string=FINALPATH
2019-06-05 16:48:32,514: DEBUG - + replace_string=/var/www/kresus
2019-06-05 16:48:32,514: DEBUG - + sudo sed --in-place s@FINALPATH@/var/www/kresus@g /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,515: DEBUG - + ‘[’ /kresus ‘!=’ / ‘]’
2019-06-05 16:48:32,515: DEBUG - + ynh_replace_string ‘–match_string=^#sub_path_only’ --replace_string= --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,515: DEBUG - + local legacy_args=mrf
2019-06-05 16:48:32,515: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-06-05 16:48:32,515: DEBUG - + declare -Ar args_array
2019-06-05 16:48:32,515: DEBUG - + local match_string
2019-06-05 16:48:32,515: DEBUG - + local replace_string
2019-06-05 16:48:32,516: DEBUG - + local target_file
2019-06-05 16:48:32,516: DEBUG - + ynh_handle_getopts_args ‘–match_string=^#sub_path_only’ --replace_string= --target_file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,516: DEBUG - + set +x
2019-06-05 16:48:32,616: DEBUG - + local delimit=@
2019-06-05 16:48:32,617: DEBUG - + match_string=’^#sub_path_only’
2019-06-05 16:48:32,617: DEBUG - + replace_string=
2019-06-05 16:48:32,617: DEBUG - + sudo sed --in-place ‘s@^#sub_path_only@@g’ /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,617: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,617: DEBUG - + local legacy_args=f
2019-06-05 16:48:32,617: DEBUG - + args_array=([f]=file=)
2019-06-05 16:48:32,617: DEBUG - + declare -Ar args_array
2019-06-05 16:48:32,617: DEBUG - + local file
2019-06-05 16:48:32,618: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,618: DEBUG - + set +x
2019-06-05 16:48:32,618: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf
2019-06-05 16:48:32,618: DEBUG - ++ cut ‘-d ’ -f1
2019-06-05 16:48:32,618: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:32,719: DEBUG - + ynh_app_setting_set --app=kresus --key=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf --value=edf9ccb6c79fb9a9c30ef2fa9674b030
2019-06-05 16:48:32,719: DEBUG - + local legacy_args=akv
2019-06-05 16:48:32,719: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-06-05 16:48:32,719: DEBUG - + declare -Ar args_array
2019-06-05 16:48:32,719: DEBUG - + local app
2019-06-05 16:48:32,720: DEBUG - + local key
2019-06-05 16:48:32,720: DEBUG - + local value
2019-06-05 16:48:32,720: DEBUG - + ynh_handle_getopts_args --app=kresus --key=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf --value=edf9ccb6c79fb9a9c30ef2fa9674b030
2019-06-05 16:48:32,720: DEBUG - + set +x
2019-06-05 16:48:32,720: DEBUG - + ynh_app_setting set kresus checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf edf9ccb6c79fb9a9c30ef2fa9674b030
2019-06-05 16:48:32,720: DEBUG - + ACTION=set
2019-06-05 16:48:32,721: DEBUG - + APP=kresus
2019-06-05 16:48:32,721: DEBUG - + KEY=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf
2019-06-05 16:48:32,721: DEBUG - + VALUE=edf9ccb6c79fb9a9c30ef2fa9674b030
2019-06-05 16:48:32,721: DEBUG - + python -
2019-06-05 16:48:32,921: DEBUG - + ‘[’ -n ‘’ ‘]’
2019-06-05 16:48:32,922: DEBUG - + unset backup_file_checksum
2019-06-05 16:48:32,922: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2019-06-05 16:48:32,922: DEBUG - + local legacy_args=nalpte
2019-06-05 16:48:32,922: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2019-06-05 16:48:32,923: DEBUG - + declare -Ar args_array
2019-06-05 16:48:32,923: DEBUG - + local service_name
2019-06-05 16:48:32,923: DEBUG - + local action
2019-06-05 16:48:32,923: DEBUG - + local line_match
2019-06-05 16:48:32,923: DEBUG - + local length
2019-06-05 16:48:32,924: DEBUG - + local log_path
2019-06-05 16:48:32,924: DEBUG - + local timeout
2019-06-05 16:48:32,924: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload
2019-06-05 16:48:32,924: DEBUG - + set +x
2019-06-05 16:48:33,025: DEBUG - + local service_name=nginx
2019-06-05 16:48:33,025: INFO - Reload the service nginx
2019-06-05 16:48:33,027: DEBUG - + local action=reload
2019-06-05 16:48:33,027: DEBUG - + local log_path=/var/log/nginx/nginx.log
2019-06-05 16:48:33,027: DEBUG - + local length=20
2019-06-05 16:48:33,028: DEBUG - + local timeout=300
2019-06-05 16:48:33,028: DEBUG - + [[ -n ‘’ ]]
2019-06-05 16:48:33,028: DEBUG - + ynh_print_info ‘–message=Reload the service nginx’
2019-06-05 16:48:33,028: DEBUG - + local legacy_args=m
2019-06-05 16:48:33,028: DEBUG - + args_array=([m]=message=)
2019-06-05 16:48:33,028: DEBUG - + declare -Ar args_array
2019-06-05 16:48:33,028: DEBUG - + local message
2019-06-05 16:48:33,028: DEBUG - + ynh_handle_getopts_args ‘–message=Reload the service nginx’
2019-06-05 16:48:33,028: DEBUG - + set +x
2019-06-05 16:48:33,029: DEBUG - + echo ‘Reload the service nginx’
2019-06-05 16:48:33,029: DEBUG - + ‘[’ reload == reload ‘]’
2019-06-05 16:48:33,029: DEBUG - + action=reload-or-restart
2019-06-05 16:48:33,029: DEBUG - + systemctl reload-or-restart nginx
2019-06-05 16:48:33,230: DEBUG - + [[ -n ‘’ ]]
2019-06-05 16:48:33,230: DEBUG - + ‘[’ /kresus ‘!=’ / ‘]’
2019-06-05 16:48:33,230: DEBUG - + ynh_replace_string ‘^#sub_path_only’ ‘’ /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:33,230: DEBUG - + local legacy_args=mrf
2019-06-05 16:48:33,230: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-06-05 16:48:33,231: DEBUG - + declare -Ar args_array
2019-06-05 16:48:33,231: DEBUG - + local match_string
2019-06-05 16:48:33,231: DEBUG - + local replace_string
2019-06-05 16:48:33,231: DEBUG - + local target_file
2019-06-05 16:48:33,231: DEBUG - + ynh_handle_getopts_args ‘^#sub_path_only’ ‘’ /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:33,232: DEBUG - + set +x
2019-06-05 16:48:33,332: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:33,332: DEBUG - + set +x
2019-06-05 16:48:33,332: DEBUG - + local delimit=@
2019-06-05 16:48:33,333: DEBUG - + match_string=’^#sub_path_only’
2019-06-05 16:48:33,333: DEBUG - + replace_string=
2019-06-05 16:48:33,333: DEBUG - + sudo sed --in-place ‘s@^#sub_path_only@@g’ /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:33,333: DEBUG - + ynh_store_file_checksum /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:33,333: DEBUG - + local legacy_args=f
2019-06-05 16:48:33,333: DEBUG - + args_array=([f]=file=)
2019-06-05 16:48:33,333: DEBUG - + declare -Ar args_array
2019-06-05 16:48:33,334: DEBUG - + local file
2019-06-05 16:48:33,334: DEBUG - + ynh_handle_getopts_args /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:33,334: DEBUG - + set +x
2019-06-05 16:48:33,434: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:33,434: DEBUG - + set +x
2019-06-05 16:48:33,435: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf
2019-06-05 16:48:33,435: DEBUG - ++ cut ‘-d ’ -f1
2019-06-05 16:48:33,435: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/kresus.nayya.org.d/kresus.conf
2019-06-05 16:48:33,435: DEBUG - + ynh_app_setting_set --app=kresus --key=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf --value=edf9ccb6c79fb9a9c30ef2fa9674b030
2019-06-05 16:48:33,435: DEBUG - + local legacy_args=akv
2019-06-05 16:48:33,435: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-06-05 16:48:33,435: DEBUG - + declare -Ar args_array
2019-06-05 16:48:33,435: DEBUG - + local app
2019-06-05 16:48:33,436: DEBUG - + local key
2019-06-05 16:48:33,436: DEBUG - + local value
2019-06-05 16:48:33,436: DEBUG - + ynh_handle_getopts_args --app=kresus --key=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf --value=edf9ccb6c79fb9a9c30ef2fa9674b030
2019-06-05 16:48:33,436: DEBUG - + set +x
2019-06-05 16:48:33,536: DEBUG - + ynh_app_setting set kresus checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf edf9ccb6c79fb9a9c30ef2fa9674b030
2019-06-05 16:48:33,537: DEBUG - + ACTION=set
2019-06-05 16:48:33,537: DEBUG - + APP=kresus
2019-06-05 16:48:33,537: DEBUG - + KEY=checksum__etc_nginx_conf.d_kresus.nayya.org.d_kresus.conf
2019-06-05 16:48:33,537: DEBUG - + VALUE=edf9ccb6c79fb9a9c30ef2fa9674b030
2019-06-05 16:48:33,537: DEBUG - + python -
2019-06-05 16:48:33,738: DEBUG - + ‘[’ -n ‘’ ‘]’
2019-06-05 16:48:33,738: DEBUG - + unset backup_file_checksum
2019-06-05 16:48:33,738: DEBUG - + ynh_system_user_create kresus
2019-06-05 16:48:33,738: DEBUG - + local legacy_args=uhs
2019-06-05 16:48:33,738: DEBUG - + args_array=([u]=username= [h]=home_dir= [s]=use_shell)
2019-06-05 16:48:33,739: DEBUG - + declare -Ar args_array
2019-06-05 16:48:33,739: DEBUG - + local username
2019-06-05 16:48:33,739: DEBUG - + local home_dir
2019-06-05 16:48:33,739: DEBUG - + local use_shell
2019-06-05 16:48:33,739: DEBUG - + ynh_handle_getopts_args kresus
2019-06-05 16:48:33,739: DEBUG - + set +x
2019-06-05 16:48:33,739: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:33,739: DEBUG - + set +x
2019-06-05 16:48:33,740: DEBUG - + use_shell=0
2019-06-05 16:48:33,740: DEBUG - + home_dir=
2019-06-05 16:48:33,740: DEBUG - + ynh_system_user_exists kresus
2019-06-05 16:48:33,740: DEBUG - + local legacy_args=u
2019-06-05 16:48:33,740: DEBUG - + args_array=([u]=username=)
2019-06-05 16:48:33,740: DEBUG - + declare -Ar args_array
2019-06-05 16:48:33,740: DEBUG - + local username
2019-06-05 16:48:33,740: DEBUG - + ynh_handle_getopts_args kresus
2019-06-05 16:48:33,740: DEBUG - + set +x
2019-06-05 16:48:33,741: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:33,741: DEBUG - + set +x
2019-06-05 16:48:33,741: DEBUG - + getent passwd kresus
2019-06-05 16:48:33,741: DEBUG - + ‘[’ -n ‘’ ‘]’
2019-06-05 16:48:33,741: DEBUG - + local user_home_dir=–no-create-home
2019-06-05 16:48:33,741: DEBUG - + ‘[’ 0 -eq 1 ‘]’
2019-06-05 16:48:33,741: DEBUG - + local ‘shell=–shell /usr/sbin/nologin’
2019-06-05 16:48:33,742: DEBUG - + useradd --no-create-home --system --user-group kresus --shell /usr/sbin/nologin
2019-06-05 16:48:37,549: DEBUG - + ynh_install_nodejs 8
2019-06-05 16:48:37,550: WARNING - Installation of N - Node.js version management
2019-06-05 16:48:37,551: DEBUG - + local legacy_args=n
2019-06-05 16:48:37,552: DEBUG - + args_array=([n]=nodejs_version=)
2019-06-05 16:48:37,552: DEBUG - + declare -Ar args_array
2019-06-05 16:48:37,552: DEBUG - + local nodejs_version
2019-06-05 16:48:37,552: DEBUG - + ynh_handle_getopts_args 8
2019-06-05 16:48:37,552: DEBUG - + set +x
2019-06-05 16:48:37,552: DEBUG - + echo ‘! Helper used in legacy mode !’
2019-06-05 16:48:37,552: DEBUG - + set +x
2019-06-05 16:48:37,553: DEBUG - + mkdir -p /opt/node_n
2019-06-05 16:48:37,553: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2019-06-05 16:48:37,553: DEBUG - ++ sed s@/usr/local/bin:@@
2019-06-05 16:48:37,553: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2019-06-05 16:48:37,553: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2019-06-05 16:48:37,553: DEBUG - + test -x /usr/bin/node
2019-06-05 16:48:37,553: DEBUG - + mv /usr/bin/node /usr/bin/node_n
2019-06-05 16:48:37,553: DEBUG - + test -x /usr/bin/npm
2019-06-05 16:48:37,554: DEBUG - + mv /usr/bin/npm /usr/bin/npm_n
2019-06-05 16:48:37,554: DEBUG - ++ n --version
2019-06-05 16:48:37,554: DEBUG - + test
2019-06-05 16:48:37,554: DEBUG - + ynh_install_n
2019-06-05 16:48:37,554: DEBUG - + echo ‘Installation of N - Node.js version management’
2019-06-05 16:48:37,554: DEBUG - + mkdir -p …/conf
2019-06-05 16:48:37,554: DEBUG - + echo ‘SOURCE_URL=https://github.com/tj/n/archive/v2.1.7.tar.gz
2019-06-05 16:48:37,554: DEBUG - SOURCE_SUM=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f’
2019-06-05 16:48:37,555: DEBUG - + ynh_setup_source --dest_dir=/opt/node_n/git --source_id=n
2019-06-05 16:48:37,555: DEBUG - + local legacy_args=ds
2019-06-05 16:48:37,555: DEBUG - + args_array=([d]=dest_dir= [s]=source_id=)
2019-06-05 16:48:37,555: DEBUG - + declare -Ar args_array
2019-06-05 16:48:37,559: DEBUG - + local dest_dir
2019-06-05 16:48:37,559: DEBUG - + local source_id
2019-06-05 16:48:37,559: DEBUG - + ynh_handle_getopts_args --dest_dir=/opt/node_n/git --source_id=n
2019-06-05 16:48:37,563: DEBUG - + set +x
2019-06-05 16:48:37,664: DEBUG - + source_id=n
2019-06-05 16:48:37,664: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:37,664: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/n.src
2019-06-05 16:48:37,664: DEBUG - + local src_url=https://github.com/tj/n/archive/v2.1.7.tar.gz
2019-06-05 16:48:37,664: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:37,664: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/n.src
2019-06-05 16:48:37,664: DEBUG - + local src_sum=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f
2019-06-05 16:48:37,665: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:37,665: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/n.src
2019-06-05 16:48:37,665: DEBUG - + local src_sumprg=
2019-06-05 16:48:37,665: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:37,665: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/n.src
2019-06-05 16:48:37,665: DEBUG - + local src_format=
2019-06-05 16:48:37,665: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:37,665: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/n.src
2019-06-05 16:48:37,665: DEBUG - + local src_extract=
2019-06-05 16:48:37,666: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:37,666: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/n.src
2019-06-05 16:48:37,666: DEBUG - + local src_in_subdir=
2019-06-05 16:48:37,666: DEBUG - ++ cut -d= -f2-
2019-06-05 16:48:37,666: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/conf/n.src
2019-06-05 16:48:37,666: DEBUG - + local src_filename=
2019-06-05 16:48:37,666: DEBUG - + src_sumprg=sha256sum
2019-06-05 16:48:37,666: DEBUG - + src_in_subdir=true
2019-06-05 16:48:37,666: DEBUG - + src_format=tar.gz
2019-06-05 16:48:37,666: DEBUG - ++ tr ‘[:upper:]’ ‘[:lower:]’
2019-06-05 16:48:37,667: DEBUG - ++ echo tar.gz
2019-06-05 16:48:37,667: DEBUG - + src_format=tar.gz
2019-06-05 16:48:37,667: DEBUG - + src_extract=true
2019-06-05 16:48:37,667: DEBUG - + ‘[’ ‘’ = ‘’ ‘]’
2019-06-05 16:48:37,667: DEBUG - + src_filename=n.tar.gz
2019-06-05 16:48:37,668: DEBUG - + local local_src=/opt/yunohost-apps-src/kresus/n.tar.gz
2019-06-05 16:48:37,668: DEBUG - + test -e /opt/yunohost-apps-src/kresus/n.tar.gz
2019-06-05 16:48:37,668: DEBUG - ++ wget -nv -O n.tar.gz https://github.com/tj/n/archive/v2.1.7.tar.gz
2019-06-05 16:48:38,770: DEBUG - + local ‘out=2019-06-05 16:48:38 URL:https://codeload.github.com/tj/n/tar.gz/v2.1.7 [9592/9592] -> “n.tar.gz” [1]’
2019-06-05 16:48:38,871: DEBUG - + sha256sum -c --status
2019-06-05 16:48:38,871: DEBUG - + echo ‘2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f n.tar.gz’
2019-06-05 16:48:38,871: DEBUG - + mkdir -p /opt/node_n/git
2019-06-05 16:48:38,871: DEBUG - + true
2019-06-05 16:48:38,871: DEBUG - + ‘[’ tar.gz = zip ‘]’
2019-06-05 16:48:38,871: DEBUG - + local strip=
2019-06-05 16:48:38,871: DEBUG - + ‘[’ true ‘!=’ false ‘]’
2019-06-05 16:48:38,872: DEBUG - + ‘[’ true == true ‘]’
2019-06-05 16:48:38,872: DEBUG - + local sub_dirs=1
2019-06-05 16:48:38,872: DEBUG - + strip=’–strip-components 1’
2019-06-05 16:48:38,872: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2019-06-05 16:48:38,872: DEBUG - + tar -xf n.tar.gz -C /opt/node_n/git --strip-components 1
2019-06-05 16:48:38,872: DEBUG - ++ wc -l
2019-06-05 16:48:38,872: DEBUG - ++ find /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/sources/patches/ -type f -name ‘n-.patch’
2019-06-05 16:48:38,873: DEBUG - + (( 0 > 0 ))
2019-06-05 16:48:38,873: DEBUG - + test -e /var/cache/yunohost/from_file/kresus_ynh-45142791b174665e464cc27703f64435e701c230/scripts/…/sources/extra_files/n
2019-06-05 16:48:38,873: DEBUG - + cd /opt/node_n/git
2019-06-05 16:48:38,873: DEBUG - + PREFIX=/opt/node_n
2019-06-05 16:48:38,873: DEBUG - + make install
2019-06-05 16:48:38,873: DEBUG - mkdir -p /opt/node_n/bin/
2019-06-05 16:48:38,873: DEBUG - cp bin/n /opt/node_n/bin/n
2019-06-05 16:48:38,873: DEBUG - + ynh_replace_string '–match_string=^N_PREFIX=${N_PREFIX-.
}$’ ‘–replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}’ --target_file=/opt/node_n/bin/n
2019-06-05 16:48:38,873: DEBUG - + local legacy_args=mrf
2019-06-05 16:48:38,874: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2019-06-05 16:48:38,874: DEBUG - + declare -Ar args_array
2019-06-05 16:48:38,874: DEBUG - + local match_string
2019-06-05 16:48:38,874: DEBUG - + local replace_string
2019-06-05 16:48:38,875: DEBUG - + local target_file
2019-06-05 16:48:38,875: DEBUG - + ynh_handle_getopts_args ‘–match_string=^N_PREFIX=${N_PREFIX-.}$’ ‘–replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}’ --target_file=/opt/node_n/bin/n
2019-06-05 16:48:38,875: DEBUG - + set +x
2019-06-05 16:48:38,976: DEBUG - + local delimit=@
2019-06-05 16:48:38,976: DEBUG - + match_string=’^N_PREFIX=${N_PREFIX-.
}$’
2019-06-05 16:48:38,976: DEBUG - + replace_string=‘N_PREFIX=${N_PREFIX-/opt/node_n}’
2019-06-05 16:48:38,976: DEBUG - + sudo sed --in-place ‘s@^N_PREFIX=${N_PREFIX-.*}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g’ /opt/node_n/bin/n
2019-06-05 16:48:38,976: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2019-06-05 16:48:38,977: DEBUG - + test -x /usr/bin/node_n
2019-06-05 16:48:38,977: DEBUG - + mv /usr/bin/node_n /usr/bin/node
2019-06-05 16:48:39,077: DEBUG - + test -x /usr/bin/npm_n
2019-06-05 16:48:39,077: DEBUG - + mv /usr/bin/npm_n /usr/bin/npm
2019-06-05 16:48:39,077: DEBUG - ++ uname -m
2019-06-05 16:48:39,078: DEBUG - + uname=x86_64
2019-06-05 16:48:39,078: DEBUG - + [[ x86_64 =~ aarch64 ]]
2019-06-05 16:48:39,078: DEBUG - + [[ x86_64 =~ arm64 ]]
2019-06-05 16:48:39,078: DEBUG - + n 8
2019-06-05 16:48:43,589: DEBUG - ++ tail --lines=1
2019-06-05 16:48:43,589: DEBUG - ++ sort --version-sort
2019-06-05 16:48:43,589: DEBUG - ++ find /opt/node_n/n/versions/node/8 /opt/node_n/n/versions/node/8.16.0 -maxdepth 0
2019-06-05 16:48:43,589: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/8.16.0
2019-06-05 16:48:43,589: DEBUG - ++ basename /opt/node_n/n/versions/node/8.16.0
2019-06-05 16:48:43,590: DEBUG - + real_nodejs_version=8.16.0
2019-06-05 16:48:43,590: DEBUG - + ‘[’ ‘!’ -e /opt/node_n/n/versions/node/8 ‘]’
2019-06-05 16:48:43,590: DEBUG - + tee --append /opt/node_n/ynh_app_version
2019-06-05 16:48:43,590: DEBUG - + echo kresus:8
2019-06-05 16:48:43,590: DEBUG - kresus:8
2019-06-05 16:48:43,590: DEBUG - + ynh_app_setting_set --app=kresus --key=nodejs_version --value=8
2019-06-05 16:48:43,591: DEBUG - + local legacy_args=akv
2019-06-05 16:48:43,591: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-06-05 16:48:43,591: DEBUG - + declare -Ar args_array
2019-06-05 16:48:43,591: DEBUG - + local app
2019-06-05 16:48:43,591: DEBUG - + local key
2019-06-05 16:48:43,591: DEBUG - + local value
2019-06-05 16:48:43,591: DEBUG - + ynh_handle_getopts_args --app=kresus --key=nodejs_version --value=8
2019-06-05 16:48:43,592: DEBUG - + set +x
2019-06-05 16:48:43,592: DEBUG - + ynh_app_setting set kresus nodejs_version 8
2019-06-05 16:48:43,592: DEBUG - + ACTION=set
2019-06-05 16:48:43,592: DEBUG - + APP=kresus
2019-06-05 16:48:43,592: DEBUG - + KEY=nodejs_version
2019-06-05 16:48:43,592: DEBUG - + VALUE=8
2019-06-05 16:48:43,592: DEBUG - + python -
2019-06-05 16:48:43,793: DEBUG - + ynh_cron_upgrade_node
2019-06-05 16:48:43,793: DEBUG - + cat
2019-06-05 16:48:43,794: DEBUG - + chmod +x /opt/node_n/node_update.sh
2019-06-05 16:48:43,794: DEBUG - + cat
2019-06-05 16:48:43,794: DEBUG - + chmod +x /etc/cron.daily/node_update
2019-06-05 16:48:43,794: DEBUG - + ynh_use_nodejs
2019-06-05 16:48:43,794: DEBUG - ++ ynh_app_setting_get --app=kresus --key=nodejs_version
2019-06-05 16:48:43,794: DEBUG - ++ local legacy_args=ak
2019-06-05 16:48:43,794: DEBUG - ++ args_array=([a]=app= [k]=key=)
2019-06-05 16:48:43,794: DEBUG - ++ declare -Ar args_array
2019-06-05 16:48:43,795: DEBUG - ++ local app
2019-06-05 16:48:43,795: DEBUG - ++ local key
2019-06-05 16:48:43,795: DEBUG - ++ ynh_handle_getopts_args --app=kresus --key=nodejs_version
2019-06-05 16:48:43,795: DEBUG - ++ set +x
2019-06-05 16:48:43,795: DEBUG - ++ ynh_app_setting get kresus nodejs_version
2019-06-05 16:48:43,795: DEBUG - ++ ACTION=get
2019-06-05 16:48:43,796: DEBUG - ++ APP=kresus
2019-06-05 16:48:43,796: DEBUG - ++ KEY=nodejs_version
2019-06-05 16:48:43,796: DEBUG - ++ VALUE=
2019-06-05 16:48:43,796: DEBUG - ++ python -
2019-06-05 16:48:44,097: DEBUG - + nodejs_version=8
2019-06-05 16:48:44,097: WARNING - ./install: ligne 107: virtualenv : commande introuvable
2019-06-05 16:48:44,098: DEBUG - + nodejs_use_version=‘echo “Deprecated command, should be removed”’
2019-06-05 16:48:44,098: WARNING - !!
2019-06-05 16:48:44,099: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/8/bin
2019-06-05 16:48:44,099: WARNING - kresus’s script has encountered an error. Its execution was cancelled.
2019-06-05 16:48:44,099: DEBUG - + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: == :/\o\p\t/\n\o\d\e_\n/\n/\v\e\r\s\i\o\n\s/\n\o\d\e/\8/\b\i\n ]]
2019-06-05 16:48:44,099: WARNING - !!
2019-06-05 16:48:44,100: DEBUG - + PATH=/opt/node_n/n/versions/node/8/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2019-06-05 16:48:44,100: WARNING -
2019-06-05 16:48:44,103: DEBUG - + virtualenv --system-site-packages /var/www/kresus/venv
2019-06-05 16:48:44,103: DEBUG - + ynh_exit_properly
2019-06-05 16:48:44,103: DEBUG - + local exit_code=127
2019-06-05 16:48:44,104: DEBUG - + ‘[’ 127 -eq 0 ‘]’
2019-06-05 16:48:44,104: DEBUG - + trap ‘’ EXIT
2019-06-05 16:48:44,104: DEBUG - + set +eu
2019-06-05 16:48:44,104: DEBUG - + echo -e ‘!!\n kresus’’‘s script has encountered an error. Its execution was cancelled.\n!!’
2019-06-05 16:48:44,104: DEBUG - + type -t ynh_clean_setup
2019-06-05 16:48:44,104: DEBUG - + ynh_die
2019-06-05 16:48:44,104: DEBUG - + local legacy_args=mc
2019-06-05 16:48:44,105: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-06-05 16:48:44,105: DEBUG - + declare -Ar args_array
2019-06-05 16:48:44,105: DEBUG - + local message
2019-06-05 16:48:44,105: DEBUG - + local ret_code
2019-06-05 16:48:44,105: DEBUG - + ynh_handle_getopts_args
2019-06-05 16:48:44,105: DEBUG - + set +x
2019-06-05 16:48:44,105: DEBUG - + echo ‘’
2019-06-05 16:48:44,105: DEBUG - + exit 1

#2

Ok with a simple :blush:

sudo apt install virtualenv