Code Monkey home page Code Monkey logo

cachet_ynh's Introduction

Cachet for YunoHost

Integration level Working status Maintenance status

Install Cachet with YunoHost

Read this README in other languages.

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

Overview

Cachet is a status page for your API, service or company. Built with all of the features that you'd expect from a status page, Cachet comes with a powerful API, a metric system, multiple user support, two factor authentication for added security and is easy to get setup. A powerful, self-hosted alternative to StatusPage.io and Status.io.

Shipped version: 2024.03.11~ynh1

Demo: https://demo.cachethq.io

Screenshots

Screenshot of Cachet

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/cachet_ynh/tree/testing --debug
or
sudo yunohost app upgrade cachet -u https://github.com/YunoHost-Apps/cachet_ynh/tree/testing --debug

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

cachet_ynh's People

Contributors

alexaubin avatar decentral1se avatar ericgaspar avatar jimbojoe avatar salamandar avatar tituspijean avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

decentral1se

cachet_ynh's Issues

nginx rewrite issue ?

Hello,
On YNH up to date (fresh install, on week old).
When I try to access Cachet, I receive a 404.
The link in YNH sso is https://my-dn.tld/c

In /etc/nginx/conf.d/my-dn.d/cachet.conf at line 9 :
location /c { rewrite ^ /cindex.php$request_uri; }
I corrected it with
location /c { rewrite ^ /c/index.php; }
It works but the "dashboard" link is broken
<a class="btn btn-link" href="/dashboard">Tableau de bord</a>
It missing /c so I can't log in because the redirection to auth/login is broken to.

Best regards (thanks for your work)

Error 403 Invalid signature

hi,

I have a problem when registering a user, when I verify or manage my registration i have a 403 error Invalid signature.

Firefox_Screenshot_2022-04-28T21-53-54 657Z

And cachet's logs says :

#0 /var/www/cachet/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Routing\Middleware\ValidateSignature->handle(Object(Illuminate\Http\Request), Object(Closure))

#49 {main} {"identification":{"id":"50fc88bd-3a62-4259-9483-4545f2e871e1"},"exception":"[object] (Illuminate\\Routing\\Exceptions\\InvalidSignatureException(code: 0): Invalid signature. at /var/www/cachet/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ValidateSignature.php:25)

Thanks for the help

Validate quality level 5 compliance

>>>> INSTALL SCRIPT <<<<
✔ Only helpers are used
✔ no 'exit' command found: 'ynh_die' helper is possibly used
✘ At line 40 'ynh_die' or 'exit' command is executed with system modification before.
 This system modification is an issue if a verification exit the script.
 You should move this verification before any system modification.
✘ set -eu is missing at beginning of file. For details, look at https://dev.yunohost.org/issues/419
✔ Argument retrieval from manifest seems to be done with environement variables

No system modifications before the line 40.
set -eu replaced by ynh_abort_if_errors

>>>> REMOVE SCRIPT <<<<
✔ Only helpers are used
✔ no 'exit' command found: 'ynh_die' helper is possibly used
✔ Verifications (with 'ynh_die' or 'exit' commands) are done before any system modification.
✘ set -u is missing at beginning of file. For details, look at https://dev.yunohost.org/issues/419
✔ Argument retrieval from manifest seems to be done with environement variables

No set -u, but using of ynh_secure_remove

>>>> UPGRADE SCRIPT <<<<
✔ Only helpers are used
✔ no 'exit' command found: 'ynh_die' helper is possibly used
✔ Verifications (with 'ynh_die' or 'exit' commands) are done before any system modification.
✘ set -eu is missing at beginning of file. For details, look at https://dev.yunohost.org/issues/419
✔ Argument retrieval from manifest seems to be done with environement variables

set -eu replaced by ynh_abort_if_errors

>>>> BACKUP SCRIPT <<<<
✔ Only helpers are used
✔ no 'exit' command found: 'ynh_die' helper is possibly used
✔ Verifications (with 'ynh_die' or 'exit' commands) are done before any system modification.
✘ set -eu is missing at beginning of file. For details, look at https://dev.yunohost.org/issues/419
✔ Argument retrieval from manifest seems to be done with environement variables

set -eu is at line 10.

>>>> RESTORE SCRIPT <<<<
✔ Only helpers are used
✔ no 'exit' command found: 'ynh_die' helper is possibly used
✘ At line 42 'ynh_die' or 'exit' command is executed with system modification before.
 This system modification is an issue if a verification exit the script.
 You should move this verification before any system modification.
✘ set -eu is missing at beginning of file. For details, look at https://dev.yunohost.org/issues/419
✔ Argument retrieval from manifest seems to be done with environement variables

No system modifications before the line 42.
set -eu is at the line 10.

de 2.3.15~ynh1 (b5ce67f) à 2.3.15~ynh1 (e837152) : upgrade fail

Bonjour

Ma version de Yunohost est la 3.7.0.12. Je viens de tenter une mise à jour de Cachet de 2.3.15ynh1 (b5ce67f) à 2.3.15ynh1 (e837152) et la mise à jour a échoué. Voici le log de l'upgrade :

2020-03-29 16:02:36,073: DEBUG - Exécution de la commande 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts YNH_STDINFO=/tmp/tmpRN0NC6/stdinfo YNH_APP_INSTANCE_NAME=cachet YNH_INTERFACE=api YNH_APP_ID=cachet YNH_STDRETURN=/tmp/tmpixCAXN/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./upgrade" cachet 7>&1' …
2020-03-29 16:02:36,073: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts YNH_STDINFO=/tmp/tmpRN0NC6/stdinfo YNH_APP_INSTANCE_NAME=cachet YNH_INTERFACE=api YNH_APP_ID=cachet YNH_STDRETURN=/tmp/tmpixCAXN/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./upgrade" cachet 7>&1']'
2020-03-29 16:02:36,205: DEBUG - + source common.sh
2020-03-29 16:02:36,206: DEBUG - ++ pkg_dependencies='php-gd php-mbstring'
2020-03-29 16:02:36,207: DEBUG - + source /usr/share/yunohost/helpers
2020-03-29 16:02:36,207: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2020-03-29 16:02:36,207: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,208: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2020-03-29 16:02:36,208: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt
2020-03-29 16:02:36,208: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,209: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2020-03-29 16:02:36,209: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup
2020-03-29 16:02:36,212: DEBUG - +++ CAN_BIND=1
2020-03-29 16:02:36,212: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,213: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2020-03-29 16:02:36,213: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban
2020-03-29 16:02:36,213: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,213: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2020-03-29 16:02:36,214: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2020-03-29 16:02:36,214: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,214: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2020-03-29 16:02:36,215: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging
2020-03-29 16:02:36,215: DEBUG - +++ increment_progression=0
2020-03-29 16:02:36,215: DEBUG - +++ previous_weight=0
2020-03-29 16:02:36,215: DEBUG - +++ max_progression=-1
2020-03-29 16:02:36,216: DEBUG - +++ progress_scale=20
2020-03-29 16:02:36,216: DEBUG - +++ progress_string2='####################'
2020-03-29 16:02:36,216: DEBUG - +++ progress_string1=++++++++++++++++++++
2020-03-29 16:02:36,216: DEBUG - +++ progress_string0=....................
2020-03-29 16:02:36,217: DEBUG - ++++ date +%s
2020-03-29 16:02:36,217: DEBUG - +++ base_time=1585490556
2020-03-29 16:02:36,217: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,217: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2020-03-29 16:02:36,218: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate
2020-03-29 16:02:36,218: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,222: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2020-03-29 16:02:36,222: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2020-03-29 16:02:36,222: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2020-03-29 16:02:36,223: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,223: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2020-03-29 16:02:36,223: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2020-03-29 16:02:36,223: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,224: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2020-03-29 16:02:36,224: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx
2020-03-29 16:02:36,224: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,224: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2020-03-29 16:02:36,225: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2020-03-29 16:02:36,225: DEBUG - +++ n_install_dir=/opt/node_n
2020-03-29 16:02:36,228: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2020-03-29 16:02:36,229: DEBUG - +++ export N_PREFIX=/opt/node_n
2020-03-29 16:02:36,229: DEBUG - +++ N_PREFIX=/opt/node_n
2020-03-29 16:02:36,229: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,229: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2020-03-29 16:02:36,230: DEBUG - ++ . /usr/share/yunohost/helpers.d/php
2020-03-29 16:02:36,230: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,230: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2020-03-29 16:02:36,231: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql
2020-03-29 16:02:36,231: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2020-03-29 16:02:36,231: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,232: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2020-03-29 16:02:36,232: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2020-03-29 16:02:36,233: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,233: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2020-03-29 16:02:36,233: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2020-03-29 16:02:36,234: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,234: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2020-03-29 16:02:36,235: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd
2020-03-29 16:02:36,235: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,235: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2020-03-29 16:02:36,235: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2020-03-29 16:02:36,236: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:36,236: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2020-03-29 16:02:36,236: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2020-03-29 16:02:36,237: DEBUG - + app=cachet
2020-03-29 16:02:36,238: DEBUG - ++ ynh_app_setting_get cachet domain
2020-03-29 16:02:36,238: DEBUG - ++ local legacy_args=ak
2020-03-29 16:02:36,238: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:02:36,239: DEBUG - ++ declare -Ar args_array
2020-03-29 16:02:36,239: DEBUG - ++ local app
2020-03-29 16:02:36,239: DEBUG - ++ local key
2020-03-29 16:02:36,240: DEBUG - ++ ynh_handle_getopts_args cachet domain
2020-03-29 16:02:36,240: DEBUG - ++ set +x
2020-03-29 16:02:36,240: DEBUG - ++ echo '! Helper used in legacy mode !'
2020-03-29 16:02:36,241: DEBUG - ++ set +x
2020-03-29 16:02:36,241: DEBUG - ++ ynh_app_setting get cachet domain
2020-03-29 16:02:36,241: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:02:36,241: DEBUG - ++ ACTION=get
2020-03-29 16:02:36,242: DEBUG - ++ APP=cachet
2020-03-29 16:02:36,242: DEBUG - ++ KEY=domain
2020-03-29 16:02:36,242: DEBUG - ++ VALUE=
2020-03-29 16:02:36,243: DEBUG - ++ python2.7 -
2020-03-29 16:02:36,444: DEBUG - ++ [[ domain =~ ^(unprotected|skipped)
]]
2020-03-29 16:02:36,444: DEBUG - + domain=statut.lesamarien.fr
2020-03-29 16:02:36,444: DEBUG - ++ ynh_app_setting_get cachet path
2020-03-29 16:02:36,445: DEBUG - ++ local legacy_args=ak
2020-03-29 16:02:36,445: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:02:36,445: DEBUG - ++ declare -Ar args_array
2020-03-29 16:02:36,446: DEBUG - ++ local app
2020-03-29 16:02:36,446: DEBUG - ++ local key
2020-03-29 16:02:36,446: DEBUG - ++ ynh_handle_getopts_args cachet path
2020-03-29 16:02:36,446: DEBUG - ++ set +x
2020-03-29 16:02:36,447: DEBUG - ++ echo '! Helper used in legacy mode !'
2020-03-29 16:02:36,447: DEBUG - ++ set +x
2020-03-29 16:02:36,447: DEBUG - ++ ynh_app_setting get cachet path
2020-03-29 16:02:36,447: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:02:36,448: DEBUG - ++ ACTION=get
2020-03-29 16:02:36,448: DEBUG - ++ APP=cachet
2020-03-29 16:02:36,448: DEBUG - ++ KEY=path
2020-03-29 16:02:36,448: DEBUG - ++ VALUE=
2020-03-29 16:02:36,449: DEBUG - ++ python2.7 -
2020-03-29 16:02:36,649: DEBUG - ++ [[ path =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:02:36,650: DEBUG - + path_url=/
2020-03-29 16:02:36,650: DEBUG - ++ ynh_app_setting_get cachet final_path
2020-03-29 16:02:36,651: DEBUG - ++ local legacy_args=ak
2020-03-29 16:02:36,651: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:02:36,651: DEBUG - ++ declare -Ar args_array
2020-03-29 16:02:36,651: DEBUG - ++ local app
2020-03-29 16:02:36,652: DEBUG - ++ local key
2020-03-29 16:02:36,652: DEBUG - ++ ynh_handle_getopts_args cachet final_path
2020-03-29 16:02:36,652: DEBUG - ++ set +x
2020-03-29 16:02:36,652: DEBUG - ++ echo '! Helper used in legacy mode !'
2020-03-29 16:02:36,653: DEBUG - ++ set +x
2020-03-29 16:02:36,653: DEBUG - ++ ynh_app_setting get cachet final_path
2020-03-29 16:02:36,653: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:02:36,653: DEBUG - ++ ACTION=get
2020-03-29 16:02:36,654: DEBUG - ++ APP=cachet
2020-03-29 16:02:36,654: DEBUG - ++ KEY=final_path
2020-03-29 16:02:36,654: DEBUG - ++ VALUE=
2020-03-29 16:02:36,654: DEBUG - ++ python2.7 -
2020-03-29 16:02:36,855: DEBUG - ++ [[ final_path =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:02:36,856: DEBUG - + final_path=/var/www/cachet
2020-03-29 16:02:36,856: DEBUG - ++ ynh_app_setting_get cachet db_name
2020-03-29 16:02:36,856: DEBUG - ++ local legacy_args=ak
2020-03-29 16:02:36,857: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:02:36,857: DEBUG - ++ declare -Ar args_array
2020-03-29 16:02:36,857: DEBUG - ++ local app
2020-03-29 16:02:36,857: DEBUG - ++ local key
2020-03-29 16:02:36,858: DEBUG - ++ ynh_handle_getopts_args cachet db_name
2020-03-29 16:02:36,858: DEBUG - ++ set +x
2020-03-29 16:02:36,858: DEBUG - ++ echo '! Helper used in legacy mode !'
2020-03-29 16:02:36,858: DEBUG - ++ set +x
2020-03-29 16:02:36,858: DEBUG - ++ ynh_app_setting get cachet db_name
2020-03-29 16:02:36,859: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:02:36,859: DEBUG - ++ ACTION=get
2020-03-29 16:02:36,859: DEBUG - ++ APP=cachet
2020-03-29 16:02:36,859: DEBUG - ++ KEY=db_name
2020-03-29 16:02:36,860: DEBUG - ++ VALUE=
2020-03-29 16:02:36,860: DEBUG - ++ python2.7 -
2020-03-29 16:02:37,061: DEBUG - ++ [[ db_name =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:02:37,061: DEBUG - + db_name=cachet
2020-03-29 16:02:37,062: DEBUG - ++ ynh_app_setting_get cachet mysqlpwd
2020-03-29 16:02:37,062: DEBUG - ++ local legacy_args=ak
2020-03-29 16:02:37,062: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:02:37,062: DEBUG - ++ declare -Ar args_array
2020-03-29 16:02:37,063: DEBUG - ++ local app
2020-03-29 16:02:37,063: DEBUG - ++ local key
2020-03-29 16:02:37,063: DEBUG - ++ ynh_handle_getopts_args cachet mysqlpwd
2020-03-29 16:02:37,063: DEBUG - ++ set +x
2020-03-29 16:02:37,064: DEBUG - ++ echo '! Helper used in legacy mode !'
2020-03-29 16:02:37,064: DEBUG - ++ set +x
2020-03-29 16:02:37,064: DEBUG - ++ ynh_app_setting get cachet mysqlpwd
2020-03-29 16:02:37,064: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:02:37,065: DEBUG - ++ ACTION=get
2020-03-29 16:02:37,065: DEBUG - ++ APP=cachet
2020-03-29 16:02:37,065: DEBUG - ++ KEY=mysqlpwd
2020-03-29 16:02:37,066: DEBUG - ++ VALUE=
2020-03-29 16:02:37,066: DEBUG - ++ python2.7 -
2020-03-29 16:02:37,267: DEBUG - ++ [[ mysqlpwd =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:02:37,267: DEBUG - + db_pwd=**********
2020-03-29 16:02:37,268: DEBUG - + ynh_backup_before_upgrade
2020-03-29 16:02:37,268: DEBUG - + '[' '!' -e /etc/yunohost/apps/cachet/scripts/backup ']'
2020-03-29 16:02:37,268: DEBUG - + backup_number=1
2020-03-29 16:02:37,268: DEBUG - + local old_backup_number=2
2020-03-29 16:02:37,269: DEBUG - + local app_bck=cachet
2020-03-29 16:02:37,269: DEBUG - + NO_BACKUP_UPGRADE=0
2020-03-29 16:02:37,269: DEBUG - + '[' 0 -eq 0 ']'
2020-03-29 16:02:37,269: DEBUG - + grep -q cachet-pre-upgrade1
2020-03-29 16:02:37,269: DEBUG - + sudo yunohost backup list
2020-03-29 16:02:37,673: DEBUG - + sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps cachet --name cachet-pre-upgrade1 --debug
2020-03-29 16:02:37,975: DEBUG - 173 loading actions map namespace 'yunohost'
2020-03-29 16:02:37,976: DEBUG - 195 extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern']
2020-03-29 16:02:37,976: DEBUG - 195 initializing base actions map parser for cli
2020-03-29 16:02:37,976: DEBUG - 196 registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
2020-03-29 16:02:38,077: DEBUG - 252 unable to load locale 'en' from '/usr/share/moulinette/locale'
2020-03-29 16:02:38,077: DEBUG - 253 unable to load locale 'en' from '/usr/lib/moulinette/yunohost/locales'
2020-03-29 16:02:38,077: DEBUG - 254 acquiring lock...
2020-03-29 16:02:38,178: DEBUG - 372 loading python module yunohost.backup took 0.078s
2020-03-29 16:02:38,178: DEBUG - 372 processing action [8366.1]: yunohost.backup.create with args={'description': None, 'apps': ['cachet'], 'system': None, 'output_directory': None, 'methods': None, 'no_compress': False, 'name': 'cachet-pre-upgrade1'}
2020-03-29 16:02:38,179: DEBUG - 373 No custom hook for action 'backup' in /etc/yunohost/hooks.d/
2020-03-29 16:02:38,179: DEBUG - 377 Collecting files to be backed up for the app 'cachet'…
2020-03-29 16:02:38,179: DEBUG - 394 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup YNH_STDINFO=/tmp/tmpCA_Rky/stdinfo YNH_BACKUP_CSV=/tmp/backupcsv_3n1JsN YNH_BACKUP_DIR=/home/yunohost.backup/tmp/cachet-pre-upgrade1 YNH_APP_INSTANCE_NAME=cachet YNH_INTERFACE=cli YNH_APP_ID=cachet YNH_STDRETURN=/tmp/tmpIgvFJL/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/backup_5v4rHS" /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup cachet 7>&1'…
2020-03-29 16:02:38,179: DEBUG - 395 About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup YNH_STDINFO=/tmp/tmpCA_Rky/stdinfo YNH_BACKUP_CSV=/tmp/backupcsv_3n1JsN YNH_BACKUP_DIR=/home/yunohost.backup/tmp/cachet-pre-upgrade1 YNH_APP_INSTANCE_NAME=cachet YNH_INTERFACE=cli YNH_APP_ID=cachet YNH_STDRETURN=/tmp/tmpIgvFJL/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/backup_5v4rHS" /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup cachet 7>&1']'
2020-03-29 16:02:38,280: DEBUG - 512 + '[' '!' -e common.sh ']'
2020-03-29 16:02:38,280: DEBUG - 513 + cp ../settings/scripts/common.sh ./common.sh
2020-03-29 16:02:38,281: DEBUG - 514 + chmod a+rx common.sh
2020-03-29 16:02:38,281: DEBUG - 514 + source common.sh
2020-03-29 16:02:38,281: DEBUG - 514 ++ pkg_dependencies='php7.0-gd php7.0-mcrypt php-mbstring'
2020-03-29 16:02:38,282: DEBUG - 514 + source /usr/share/yunohost/helpers
2020-03-29 16:02:38,282: DEBUG - 514 +++ run-parts --list /usr/share/yunohost/helpers.d
2020-03-29 16:02:38,282: DEBUG - 515 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,282: DEBUG - 515 ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2020-03-29 16:02:38,283: DEBUG - 517 ++ . /usr/share/yunohost/helpers.d/apt
2020-03-29 16:02:38,283: DEBUG - 517 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,283: DEBUG - 518 ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2020-03-29 16:02:38,284: DEBUG - 518 ++ . /usr/share/yunohost/helpers.d/backup
2020-03-29 16:02:38,284: DEBUG - 518 +++ CAN_BIND=1
2020-03-29 16:02:38,285: DEBUG - 518 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,285: DEBUG - 519 ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2020-03-29 16:02:38,285: DEBUG - 519 ++ . /usr/share/yunohost/helpers.d/fail2ban
2020-03-29 16:02:38,285: DEBUG - 519 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,286: DEBUG - 520 ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2020-03-29 16:02:38,286: DEBUG - 520 ++ . /usr/share/yunohost/helpers.d/getopts
2020-03-29 16:02:38,286: DEBUG - 521 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,286: DEBUG - 521 ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2020-03-29 16:02:38,287: DEBUG - 521 ++ . /usr/share/yunohost/helpers.d/logging
2020-03-29 16:02:38,287: DEBUG - 525 +++ increment_progression=0
2020-03-29 16:02:38,287: DEBUG - 525 +++ previous_weight=0
2020-03-29 16:02:38,287: DEBUG - 526 +++ max_progression=-1
2020-03-29 16:02:38,288: DEBUG - 526 +++ progress_scale=20
2020-03-29 16:02:38,288: DEBUG - 526 +++ progress_string2='####################'
2020-03-29 16:02:38,288: DEBUG - 527 +++ progress_string1=++++++++++++++++++++
2020-03-29 16:02:38,288: DEBUG - 527 +++ progress_string0=....................
2020-03-29 16:02:38,289: DEBUG - 527 ++++ date +%s
2020-03-29 16:02:38,289: DEBUG - 527 +++ base_time=1585490558
2020-03-29 16:02:38,289: DEBUG - 528 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,289: DEBUG - 530 ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2020-03-29 16:02:38,290: DEBUG - 530 ++ . /usr/share/yunohost/helpers.d/logrotate
2020-03-29 16:02:38,290: DEBUG - 531 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,290: DEBUG - 531 ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2020-03-29 16:02:38,291: DEBUG - 536 ++ . /usr/share/yunohost/helpers.d/mysql
2020-03-29 16:02:38,291: DEBUG - 536 +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2020-03-29 16:02:38,291: DEBUG - 536 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,292: DEBUG - 537 ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2020-03-29 16:02:38,292: DEBUG - 537 ++ . /usr/share/yunohost/helpers.d/network
2020-03-29 16:02:38,292: DEBUG - 537 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,292: DEBUG - 537 ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2020-03-29 16:02:38,293: DEBUG - 538 ++ . /usr/share/yunohost/helpers.d/nginx
2020-03-29 16:02:38,293: DEBUG - 538 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,293: DEBUG - 538 ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2020-03-29 16:02:38,294: DEBUG - 539 ++ . /usr/share/yunohost/helpers.d/nodejs
2020-03-29 16:02:38,294: DEBUG - 539 +++ n_install_dir=/opt/node_n
2020-03-29 16:02:38,294: DEBUG - 540 +++ node_version_path=/opt/node_n/n/versions/node
2020-03-29 16:02:38,294: DEBUG - 540 +++ export N_PREFIX=/opt/node_n
2020-03-29 16:02:38,294: DEBUG - 542 +++ N_PREFIX=/opt/node_n
2020-03-29 16:02:38,295: DEBUG - 542 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,295: DEBUG - 543 ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2020-03-29 16:02:38,295: DEBUG - 543 ++ . /usr/share/yunohost/helpers.d/php
2020-03-29 16:02:38,295: DEBUG - 543 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,296: DEBUG - 543 ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2020-03-29 16:02:38,296: DEBUG - 544 ++ . /usr/share/yunohost/helpers.d/postgresql
2020-03-29 16:02:38,296: DEBUG - 544 +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2020-03-29 16:02:38,297: DEBUG - 545 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,297: DEBUG - 545 ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2020-03-29 16:02:38,297: DEBUG - 545 ++ . /usr/share/yunohost/helpers.d/setting
2020-03-29 16:02:38,297: DEBUG - 546 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,298: DEBUG - 546 ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2020-03-29 16:02:38,298: DEBUG - 546 ++ . /usr/share/yunohost/helpers.d/string
2020-03-29 16:02:38,298: DEBUG - 547 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,298: DEBUG - 547 ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2020-03-29 16:02:38,298: DEBUG - 547 ++ . /usr/share/yunohost/helpers.d/systemd
2020-03-29 16:02:38,299: DEBUG - 547 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,299: DEBUG - 548 ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2020-03-29 16:02:38,299: DEBUG - 548 ++ . /usr/share/yunohost/helpers.d/user
2020-03-29 16:02:38,299: DEBUG - 548 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:02:38,300: DEBUG - 549 ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2020-03-29 16:02:38,300: DEBUG - 549 ++ . /usr/share/yunohost/helpers.d/utils
2020-03-29 16:02:38,300: DEBUG - 549 + ynh_abort_if_errors
2020-03-29 16:02:38,301: DEBUG - 549 + set -eu
2020-03-29 16:02:38,301: DEBUG - 550 + trap ynh_exit_properly EXIT
2020-03-29 16:02:38,301: DEBUG - 550 + app=cachet
2020-03-29 16:02:38,301: DEBUG - 550 ++ ynh_app_setting_get cachet final_path
2020-03-29 16:02:38,302: DEBUG - 551 ++ local legacy_args=ak
2020-03-29 16:02:38,302: DEBUG - 551 ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:02:38,302: DEBUG - 551 ++ declare -Ar args_array
2020-03-29 16:02:38,302: DEBUG - 551 ++ local app
2020-03-29 16:02:38,303: DEBUG - 552 ++ local key
2020-03-29 16:02:38,303: DEBUG - 552 ++ ynh_handle_getopts_args cachet final_path
2020-03-29 16:02:38,303: DEBUG - 552 ++ set +x
2020-03-29 16:02:38,303: DEBUG - 552 ++ echo '! Helper used in legacy mode !'
2020-03-29 16:02:38,304: DEBUG - 553 ++ set +x
2020-03-29 16:02:38,304: DEBUG - 553 ++ ynh_app_setting get cachet final_path
2020-03-29 16:02:38,304: DEBUG - 553 ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:02:38,304: DEBUG - 553 ++ ACTION=get
2020-03-29 16:02:38,305: DEBUG - 554 ++ APP=cachet
2020-03-29 16:02:38,305: DEBUG - 554 ++ KEY=final_path
2020-03-29 16:02:38,305: DEBUG - 554 ++ VALUE=
2020-03-29 16:02:38,306: DEBUG - 554 ++ python2.7 -
2020-03-29 16:02:38,406: DEBUG - 666 ++ [[ final_path =~ ^(unprotected|skipped)
]]
2020-03-29 16:02:38,407: DEBUG - 666 + final_path=/var/www/cachet
2020-03-29 16:02:38,407: DEBUG - 666 ++ ynh_app_setting_get cachet domain
2020-03-29 16:02:38,407: DEBUG - 666 ++ local legacy_args=ak
2020-03-29 16:02:38,407: DEBUG - 667 ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:02:38,407: DEBUG - 667 ++ declare -Ar args_array
2020-03-29 16:02:38,408: DEBUG - 667 ++ local app
2020-03-29 16:02:38,408: DEBUG - 667 ++ local key
2020-03-29 16:02:38,408: DEBUG - 667 ++ ynh_handle_getopts_args cachet domain
2020-03-29 16:02:38,408: DEBUG - 667 ++ set +x
2020-03-29 16:02:38,409: DEBUG - 668 ++ echo '! Helper used in legacy mode !'
2020-03-29 16:02:38,409: DEBUG - 668 ++ set +x
2020-03-29 16:02:38,409: DEBUG - 668 ++ ynh_app_setting get cachet domain
2020-03-29 16:02:38,409: DEBUG - 668 ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:02:38,409: DEBUG - 668 ++ ACTION=get
2020-03-29 16:02:38,410: DEBUG - 669 ++ APP=cachet
2020-03-29 16:02:38,410: DEBUG - 669 ++ KEY=domain
2020-03-29 16:02:38,410: DEBUG - 669 ++ VALUE=
2020-03-29 16:02:38,410: DEBUG - 669 ++ python2.7 -
2020-03-29 16:02:38,611: DEBUG - 870 ++ [[ domain =~ ^(unprotected|skipped)
]]
2020-03-29 16:02:38,612: DEBUG - 870 + domain=statut.lesamarien.fr
2020-03-29 16:02:38,612: DEBUG - 871 ++ ynh_app_setting_get cachet db_name
2020-03-29 16:02:38,612: DEBUG - 871 ++ local legacy_args=ak
2020-03-29 16:02:38,613: DEBUG - 871 ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:02:38,613: DEBUG - 871 ++ declare -Ar args_array
2020-03-29 16:02:38,613: DEBUG - 871 ++ local app
2020-03-29 16:02:38,613: DEBUG - 871 ++ local key
2020-03-29 16:02:38,614: DEBUG - 872 ++ ynh_handle_getopts_args cachet db_name
2020-03-29 16:02:38,614: DEBUG - 872 ++ set +x
2020-03-29 16:02:38,614: DEBUG - 872 ++ echo '! Helper used in legacy mode !'
2020-03-29 16:02:38,614: DEBUG - 872 ++ set +x
2020-03-29 16:02:38,615: DEBUG - 872 ++ ynh_app_setting get cachet db_name
2020-03-29 16:02:38,615: DEBUG - 873 ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:02:38,615: DEBUG - 873 ++ ACTION=get
2020-03-29 16:02:38,615: DEBUG - 873 ++ APP=cachet
2020-03-29 16:02:38,616: DEBUG - 873 ++ KEY=db_name
2020-03-29 16:02:38,616: DEBUG - 873 ++ VALUE=
2020-03-29 16:02:38,616: DEBUG - 873 ++ python2.7 -
2020-03-29 16:02:38,817: DEBUG - 1074 ++ [[ db_name =~ ^(unprotected|skipped)
]]
2020-03-29 16:02:38,817: DEBUG - 1075 + db_name=cachet
2020-03-29 16:02:38,818: DEBUG - 1075 + ynh_backup /var/www/cachet
2020-03-29 16:02:38,818: DEBUG - 1075 + local legacy_args=sdbm
2020-03-29 16:02:38,818: DEBUG - 1075 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
2020-03-29 16:02:38,819: DEBUG - 1076 + declare -Ar args_array
2020-03-29 16:02:38,819: DEBUG - 1076 + local src_path
2020-03-29 16:02:38,819: DEBUG - 1076 + local dest_path
2020-03-29 16:02:38,819: DEBUG - 1076 + local is_big
2020-03-29 16:02:38,820: DEBUG - 1076 + local not_mandatory
2020-03-29 16:02:38,820: DEBUG - 1077 + ynh_handle_getopts_args /var/www/cachet
2020-03-29 16:02:38,820: DEBUG - 1077 + set +x
2020-03-29 16:02:38,820: DEBUG - 1077 + echo '! Helper used in legacy mode !'
2020-03-29 16:02:38,821: DEBUG - 1077 + set +x
2020-03-29 16:02:38,821: DEBUG - 1077 + local dest_path=
2020-03-29 16:02:38,821: DEBUG - 1078 + local is_big=0
2020-03-29 16:02:38,822: DEBUG - 1078 + local not_mandatory=0
2020-03-29 16:02:38,822: DEBUG - 1078 + BACKUP_CORE_ONLY=1
2020-03-29 16:02:38,822: DEBUG - 1078 + test -n cachet
2020-03-29 16:02:38,822: DEBUG - 1079 ++ ynh_app_setting_get --app=cachet --key=do_not_backup_data
2020-03-29 16:02:38,823: DEBUG - 1079 ++ local legacy_args=ak
2020-03-29 16:02:38,823: DEBUG - 1079 ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:02:38,823: DEBUG - 1079 ++ declare -Ar args_array
2020-03-29 16:02:38,823: DEBUG - 1079 ++ local app
2020-03-29 16:02:38,824: DEBUG - 1080 ++ local key
2020-03-29 16:02:38,824: DEBUG - 1080 ++ ynh_handle_getopts_args --app=cachet --key=do_not_backup_data
2020-03-29 16:02:38,824: DEBUG - 1080 ++ set +x
2020-03-29 16:02:38,825: DEBUG - 1080 ++ ynh_app_setting get cachet do_not_backup_data
2020-03-29 16:02:38,825: DEBUG - 1080 ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:02:38,825: DEBUG - 1081 ++ ACTION=get
2020-03-29 16:02:38,825: DEBUG - 1081 ++ APP=cachet
2020-03-29 16:02:38,826: DEBUG - 1081 ++ KEY=do_not_backup_data
2020-03-29 16:02:38,826: DEBUG - 1081 ++ VALUE=
2020-03-29 16:02:38,826: DEBUG - 1081 ++ python2.7 -
2020-03-29 16:02:39,027: DEBUG - 1282 ++ [[ do_not_backup_data =~ ^(unprotected|skipped)
]]
2020-03-29 16:02:39,028: DEBUG - 1283 + do_not_backup_data=
2020-03-29 16:02:39,028: DEBUG - 1283 + '[' 0 -eq 1 ']'
2020-03-29 16:02:39,028: DEBUG - 1283 + [[ -e /var/www/cachet ]]
2020-03-29 16:02:39,028: DEBUG - 1283 ++ realpath /var/www/cachet
2020-03-29 16:02:39,029: DEBUG - 1284 + src_path=/var/www/cachet
2020-03-29 16:02:39,029: DEBUG - 1284 + [[ -z '' ]]
2020-03-29 16:02:39,029: DEBUG - 1284 + dest_path=var/www/cachet
2020-03-29 16:02:39,029: DEBUG - 1285 + [[ ! -e var/www/cachet ]]
2020-03-29 16:02:39,030: DEBUG - 1285 + local rel_dir=/apps/cachet/backup
2020-03-29 16:02:39,030: DEBUG - 1285 + rel_dir=/apps/cachet/backup/
2020-03-29 16:02:39,030: DEBUG - 1285 + dest_path=/apps/cachet/backup/var/www/cachet
2020-03-29 16:02:39,030: DEBUG - 1285 + dest_path=apps/cachet/backup/var/www/cachet
2020-03-29 16:02:39,031: DEBUG - 1285 ++ echo /var/www/cachet
2020-03-29 16:02:39,031: DEBUG - 1286 ++ sed -r 's/"/""/g'
2020-03-29 16:02:39,031: DEBUG - 1286 + local src=/var/www/cachet
2020-03-29 16:02:39,031: DEBUG - 1286 ++ echo apps/cachet/backup/var/www/cachet
2020-03-29 16:02:39,032: DEBUG - 1286 ++ sed -r 's/"/""/g'
2020-03-29 16:02:39,032: DEBUG - 1286 + local dest=apps/cachet/backup/var/www/cachet
2020-03-29 16:02:39,032: DEBUG - 1286 + echo '"/var/www/cachet","apps/cachet/backup/var/www/cachet"'
2020-03-29 16:02:39,032: DEBUG - 1287 ++ dirname /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/var/www/cachet
2020-03-29 16:02:39,032: DEBUG - 1287 + mkdir -p /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/var/www
2020-03-29 16:02:39,033: DEBUG - 1287 + ynh_backup /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,033: DEBUG - 1287 + local legacy_args=sdbm
2020-03-29 16:02:39,033: DEBUG - 1287 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
2020-03-29 16:02:39,033: DEBUG - 1288 + declare -Ar args_array
2020-03-29 16:02:39,034: DEBUG - 1288 + local src_path
2020-03-29 16:02:39,034: DEBUG - 1288 + local dest_path
2020-03-29 16:02:39,034: DEBUG - 1288 + local is_big
2020-03-29 16:02:39,034: DEBUG - 1288 + local not_mandatory
2020-03-29 16:02:39,035: DEBUG - 1289 + ynh_handle_getopts_args /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,035: DEBUG - 1289 + set +x
2020-03-29 16:02:39,035: DEBUG - 1289 + echo '! Helper used in legacy mode !'
2020-03-29 16:02:39,035: DEBUG - 1289 + set +x
2020-03-29 16:02:39,036: DEBUG - 1289 + local dest_path=
2020-03-29 16:02:39,036: DEBUG - 1289 + local is_big=0
2020-03-29 16:02:39,036: DEBUG - 1290 + local not_mandatory=0
2020-03-29 16:02:39,036: DEBUG - 1290 + BACKUP_CORE_ONLY=1
2020-03-29 16:02:39,036: DEBUG - 1290 + test -n cachet
2020-03-29 16:02:39,037: DEBUG - 1290 ++ ynh_app_setting_get --app=cachet --key=do_not_backup_data
2020-03-29 16:02:39,037: DEBUG - 1290 ++ local legacy_args=ak
2020-03-29 16:02:39,037: DEBUG - 1290 ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:02:39,037: DEBUG - 1291 ++ declare -Ar args_array
2020-03-29 16:02:39,038: DEBUG - 1291 ++ local app
2020-03-29 16:02:39,040: DEBUG - 1291 ++ local key
2020-03-29 16:02:39,040: DEBUG - 1291 ++ ynh_handle_getopts_args --app=cachet --key=do_not_backup_data
2020-03-29 16:02:39,041: DEBUG - 1291 ++ set +x
2020-03-29 16:02:39,041: DEBUG - 1291 ++ ynh_app_setting get cachet do_not_backup_data
2020-03-29 16:02:39,041: DEBUG - 1292 ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:02:39,041: DEBUG - 1292 ++ ACTION=get
2020-03-29 16:02:39,042: DEBUG - 1292 ++ APP=cachet
2020-03-29 16:02:39,042: DEBUG - 1292 ++ KEY=do_not_backup_data
2020-03-29 16:02:39,042: DEBUG - 1292 ++ VALUE=
2020-03-29 16:02:39,042: DEBUG - 1293 ++ python2.7 -
2020-03-29 16:02:39,243: DEBUG - 1493 ++ [[ do_not_backup_data =~ ^(unprotected|skipped)
]]
2020-03-29 16:02:39,244: DEBUG - 1494 + do_not_backup_data=
2020-03-29 16:02:39,244: DEBUG - 1494 + '[' 0 -eq 1 ']'
2020-03-29 16:02:39,244: DEBUG - 1494 + [[ -e /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf ]]
2020-03-29 16:02:39,244: DEBUG - 1494 ++ realpath /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,245: DEBUG - 1495 + src_path=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,245: DEBUG - 1495 + [[ -z '' ]]
2020-03-29 16:02:39,245: DEBUG - 1495 + dest_path=etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,245: DEBUG - 1495 + [[ ! -e etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf ]]
2020-03-29 16:02:39,246: DEBUG - 1495 + local rel_dir=/apps/cachet/backup
2020-03-29 16:02:39,246: DEBUG - 1495 + rel_dir=/apps/cachet/backup/
2020-03-29 16:02:39,246: DEBUG - 1496 + dest_path=/apps/cachet/backup/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,246: DEBUG - 1496 + dest_path=apps/cachet/backup/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,248: DEBUG - 1496 ++ echo /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,248: DEBUG - 1496 ++ sed -r 's/"/""/g'
2020-03-29 16:02:39,248: DEBUG - 1497 + local src=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,249: DEBUG - 1497 ++ echo apps/cachet/backup/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,249: DEBUG - 1497 ++ sed -r 's/"/""/g'
2020-03-29 16:02:39,249: DEBUG - 1497 + local dest=apps/cachet/backup/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,249: DEBUG - 1497 + echo '"/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf","apps/cachet/backup/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf"'
2020-03-29 16:02:39,250: DEBUG - 1497 ++ dirname /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:02:39,250: DEBUG - 1498 + mkdir -p /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/nginx/conf.d/statut.lesamarien.fr.d
2020-03-29 16:02:39,250: DEBUG - 1498 + ynh_backup /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,250: DEBUG - 1498 + local legacy_args=sdbm
2020-03-29 16:02:39,251: DEBUG - 1498 + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
2020-03-29 16:02:39,251: DEBUG - 1498 + declare -Ar args_array
2020-03-29 16:02:39,251: DEBUG - 1499 + local src_path
2020-03-29 16:02:39,251: DEBUG - 1499 + local dest_path
2020-03-29 16:02:39,252: DEBUG - 1499 + local is_big
2020-03-29 16:02:39,252: DEBUG - 1499 + local not_mandatory
2020-03-29 16:02:39,252: DEBUG - 1499 + ynh_handle_getopts_args /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,252: DEBUG - 1499 + set +x
2020-03-29 16:02:39,252: DEBUG - 1500 + echo '! Helper used in legacy mode !'
2020-03-29 16:02:39,253: DEBUG - 1503 + set +x
2020-03-29 16:02:39,253: DEBUG - 1504 + local dest_path=
2020-03-29 16:02:39,253: DEBUG - 1504 + local is_big=0
2020-03-29 16:02:39,253: DEBUG - 1504 + local not_mandatory=0
2020-03-29 16:02:39,254: DEBUG - 1504 + BACKUP_CORE_ONLY=1
2020-03-29 16:02:39,254: DEBUG - 1505 + test -n cachet
2020-03-29 16:02:39,254: DEBUG - 1505 ++ ynh_app_setting_get --app=cachet --key=do_not_backup_data
2020-03-29 16:02:39,254: DEBUG - 1505 ++ local legacy_args=ak
2020-03-29 16:02:39,255: DEBUG - 1505 ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:02:39,255: DEBUG - 1506 ++ declare -Ar args_array
2020-03-29 16:02:39,255: DEBUG - 1506 ++ local app
2020-03-29 16:02:39,255: DEBUG - 1506 ++ local key
2020-03-29 16:02:39,256: DEBUG - 1506 ++ ynh_handle_getopts_args --app=cachet --key=do_not_backup_data
2020-03-29 16:02:39,256: DEBUG - 1507 ++ set +x
2020-03-29 16:02:39,256: DEBUG - 1507 ++ ynh_app_setting get cachet do_not_backup_data
2020-03-29 16:02:39,256: DEBUG - 1507 ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:02:39,257: DEBUG - 1507 ++ ACTION=get
2020-03-29 16:02:39,257: DEBUG - 1508 ++ APP=cachet
2020-03-29 16:02:39,257: DEBUG - 1508 ++ KEY=do_not_backup_data
2020-03-29 16:02:39,257: DEBUG - 1508 ++ VALUE=
2020-03-29 16:02:39,258: DEBUG - 1508 ++ python2.7 -
2020-03-29 16:02:39,458: DEBUG - 1709 ++ [[ do_not_backup_data =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:02:39,459: DEBUG - 1710 + do_not_backup_data=
2020-03-29 16:02:39,459: DEBUG - 1710 + '[' 0 -eq 1 ']'
2020-03-29 16:02:39,459: DEBUG - 1710 + [[ -e /etc/php/7.0/fpm/pool.d/cachet.conf ]]
2020-03-29 16:02:39,459: DEBUG - 1710 ++ realpath /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,460: DEBUG - 1710 + src_path=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,460: DEBUG - 1710 + [[ -z '' ]]
2020-03-29 16:02:39,460: DEBUG - 1711 + dest_path=etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,460: DEBUG - 1711 + [[ ! -e etc/php/7.0/fpm/pool.d/cachet.conf ]]
2020-03-29 16:02:39,460: DEBUG - 1711 + local rel_dir=/apps/cachet/backup
2020-03-29 16:02:39,461: DEBUG - 1711 + rel_dir=/apps/cachet/backup/
2020-03-29 16:02:39,461: DEBUG - 1711 + dest_path=/apps/cachet/backup/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,461: DEBUG - 1711 + dest_path=apps/cachet/backup/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,461: DEBUG - 1712 ++ echo /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,462: DEBUG - 1712 ++ sed -r 's/"/""/g'
2020-03-29 16:02:39,462: DEBUG - 1712 + local src=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,462: DEBUG - 1712 ++ echo apps/cachet/backup/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,462: DEBUG - 1712 ++ sed -r 's/"/""/g'
2020-03-29 16:02:39,463: DEBUG - 1712 + local dest=apps/cachet/backup/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,463: DEBUG - 1713 + echo '"/etc/php/7.0/fpm/pool.d/cachet.conf","apps/cachet/backup/etc/php/7.0/fpm/pool.d/cachet.conf"'
2020-03-29 16:02:39,463: DEBUG - 1713 ++ dirname /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:02:39,463: DEBUG - 1713 + mkdir -p /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/php/7.0/fpm/pool.d
2020-03-29 16:02:39,463: DEBUG - 1713 + ynh_mysql_dump_db cachet
2020-03-29 16:02:39,464: DEBUG - 1713 + local legacy_args=d
2020-03-29 16:02:39,464: DEBUG - 1713 + args_array=([d]=database=)
2020-03-29 16:02:39,464: DEBUG - 1714 + declare -Ar args_array
2020-03-29 16:02:39,464: DEBUG - 1714 + local database
2020-03-29 16:02:39,464: DEBUG - 1714 + ynh_handle_getopts_args cachet
2020-03-29 16:02:39,465: DEBUG - 1714 + set +x
2020-03-29 16:02:39,465: DEBUG - 1714 + echo '! Helper used in legacy mode !'
2020-03-29 16:02:39,465: DEBUG - 1714 + set +x
2020-03-29 16:02:39,465: DEBUG - 1715 ++ sudo cat /etc/yunohost/mysql
2020-03-29 16:02:39,465: DEBUG - 1715 + mysqldump -u root -p********** --single-transaction --skip-dump-date cachet
2020-03-29 16:02:39,867: DEBUG - 2116 + ynh_exit_properly
2020-03-29 16:02:39,867: DEBUG - 2116 + local exit_code=0
2020-03-29 16:02:39,867: DEBUG - 2116 + '[' 0 -eq 0 ']'
2020-03-29 16:02:39,868: DEBUG - 2117 + exit 0
2020-03-29 16:02:39,868: DEBUG - 2129 Backup permission for app cachet
2020-03-29 16:02:39,968: DEBUG - 2148 initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth'
2020-03-29 16:02:41,071: DEBUG - 3336 Creating a backup archive from the collected files…
2020-03-29 16:02:41,072: DEBUG - 3337 Creating the backup TAR archive…
2020-03-29 16:03:04,030: DEBUG - 26274 TAR backup archive created
2020-03-29 16:03:04,031: DEBUG - 26275 Backup created
2020-03-29 16:03:04,031: DEBUG - 26275 action [8366.1] executed in 25.903s
2020-03-29 16:03:04,031: DEBUG - name: cachet-pre-upgrade1
2020-03-29 16:03:04,032: DEBUG - results:
2020-03-29 16:03:04,032: DEBUG - apps:
2020-03-29 16:03:04,032: DEBUG - cachet: Success
2020-03-29 16:03:04,032: DEBUG - system:
2020-03-29 16:03:04,033: DEBUG - size: 57790728
2020-03-29 16:03:04,133: DEBUG - + '[' 0 -eq 0 ']'
2020-03-29 16:03:04,134: DEBUG - + sudo yunohost backup list
2020-03-29 16:03:04,134: DEBUG - + grep -q cachet-pre-upgrade2
2020-03-29 16:03:04,635: DEBUG - + ynh_abort_if_errors
2020-03-29 16:03:04,636: DEBUG - + set -eu
2020-03-29 16:03:04,636: DEBUG - + trap ynh_exit_properly EXIT
2020-03-29 16:03:04,636: DEBUG - ++ ynh_normalize_url_path /
2020-03-29 16:03:04,637: DEBUG - ++ local legacy_args=p
2020-03-29 16:03:04,637: DEBUG - ++ args_array=([p]=path_url=)
2020-03-29 16:03:04,637: DEBUG - ++ declare -Ar args_array
2020-03-29 16:03:04,637: DEBUG - ++ local path_url
2020-03-29 16:03:04,637: DEBUG - ++ ynh_handle_getopts_args /
2020-03-29 16:03:04,638: DEBUG - ++ set +x
2020-03-29 16:03:04,638: DEBUG - ++ echo '! Helper used in legacy mode !'
2020-03-29 16:03:04,638: DEBUG - ++ set +x
2020-03-29 16:03:04,638: DEBUG - ++ test -n /
2020-03-29 16:03:04,638: DEBUG - ++ '[' / '!=' / ']'
2020-03-29 16:03:04,639: DEBUG - ++ '[' / == / ']'
2020-03-29 16:03:04,639: DEBUG - ++ '[' 1 -gt 1 ']'
2020-03-29 16:03:04,639: DEBUG - ++ echo /
2020-03-29 16:03:04,639: DEBUG - + path_url=/
2020-03-29 16:03:04,639: DEBUG - + ynh_install_app_dependencies 'php-gd php-mbstring'
2020-03-29 16:03:04,640: DEBUG - + local 'dependencies=php-gd php-mbstring'
2020-03-29 16:03:04,640: DEBUG - + local 'dependencies=php-gd, php-mbstring'
2020-03-29 16:03:04,640: DEBUG - + local 'dependencies=php-gd, php-mbstring'
2020-03-29 16:03:04,640: DEBUG - + local manifest_path=../manifest.json
2020-03-29 16:03:04,641: DEBUG - + '[' '!' -e ../manifest.json ']'
2020-03-29 16:03:04,641: DEBUG - ++ grep '"version": ' ../manifest.json
2020-03-29 16:03:04,641: DEBUG - ++ cut -d '"' -f 4
2020-03-29 16:03:04,641: DEBUG - + local version=2.3.15ynh1
2020-03-29 16:03:04,642: DEBUG - + '[' 11 -eq 0 ']'
2020-03-29 16:03:04,642: DEBUG - + local dep_app=cachet
2020-03-29 16:03:04,642: DEBUG - + grep -q php
2020-03-29 16:03:04,642: DEBUG - + echo php-gd, php-mbstring
2020-03-29 16:03:04,642: DEBUG - + grep php7.0
2020-03-29 16:03:04,643: DEBUG - + grep -q -v 7.0.33-0+deb9
2020-03-29 16:03:04,643: DEBUG - + dpkg --list
2020-03-29 16:03:04,643: DEBUG - + grep -nrq sury /etc/apt/sources.list /etc/apt/sources.list.d
2020-03-29 16:03:04,744: DEBUG - + cat
2020-03-29 16:03:04,744: DEBUG - + ynh_package_install_from_equivs /tmp/cachet-ynh-deps.control
2020-03-29 16:03:04,744: DEBUG - + local controlfile=/tmp/cachet-ynh-deps.control
2020-03-29 16:03:04,745: DEBUG - ++ grep '^Package: ' /tmp/cachet-ynh-deps.control
2020-03-29 16:03:04,745: DEBUG - ++ cut '-d ' -f 2
2020-03-29 16:03:04,745: DEBUG - + local pkgname=cachet-ynh-deps
2020-03-29 16:03:04,745: DEBUG - ++ grep '^Version: ' /tmp/cachet-ynh-deps.control
2020-03-29 16:03:04,746: DEBUG - ++ cut '-d ' -f 2
2020-03-29 16:03:04,746: DEBUG - + local pkgversion=2.3.15
ynh1
2020-03-29 16:03:04,746: DEBUG - + [[ -z cachet-ynh-deps ]]
2020-03-29 16:03:04,746: DEBUG - + [[ -z 2.3.15ynh1 ]]
2020-03-29 16:03:04,747: DEBUG - + ynh_package_update
2020-03-29 16:03:04,747: DEBUG - + ynh_apt update
2020-03-29 16:03:04,747: DEBUG - + ynh_wait_dpkg_free
2020-03-29 16:03:04,747: DEBUG - + local try
2020-03-29 16:03:04,749: DEBUG - ++ seq 1 17
2020-03-29 16:03:04,749: DEBUG - + for try in seq 1 17
2020-03-29 16:03:04,749: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-03-29 16:03:05,252: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-03-29 16:03:05,252: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-03-29 16:03:05,252: DEBUG - + read dpkg_file
2020-03-29 16:03:05,252: DEBUG - + echo ''
2020-03-29 16:03:05,253: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-03-29 16:03:05,253: DEBUG - + read dpkg_file
2020-03-29 16:03:05,253: DEBUG - + return 0
2020-03-29 16:03:05,253: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-03-29 16:03:05,254: DEBUG - + apt-get -y update
2020-03-29 16:03:05,354: DEBUG - Hit:1 http://forge.yunohost.org/debian stretch InRelease
2020-03-29 16:03:05,354: DEBUG - Ign:2 http://ftp.debian.org/debian stretch InRelease
2020-03-29 16:03:05,355: DEBUG - Hit:3 http://ftp.debian.org/debian stretch-updates InRelease
2020-03-29 16:03:05,355: DEBUG - Hit:4 http://ftp.debian.org/debian stretch Release
2020-03-29 16:03:05,456: DEBUG - Hit:5 https://packages.sury.org/php stretch InRelease
2020-03-29 16:03:06,358: DEBUG - Hit:7 http://security.debian.org stretch/updates InRelease
2020-03-29 16:03:07,862: DEBUG - Reading package lists...
2020-03-29 16:03:07,963: DEBUG - ++ mktemp -d
2020-03-29 16:03:07,963: DEBUG - + local TMPDIR=/tmp/tmp.wzz9A1ntXD
2020-03-29 16:03:07,963: DEBUG - + echo 10
2020-03-29 16:03:07,964: DEBUG - + ynh_wait_dpkg_free
2020-03-29 16:03:07,964: DEBUG - + local try
2020-03-29 16:03:07,964: DEBUG - ++ seq 1 17
2020-03-29 16:03:07,964: DEBUG - + for try in seq 1 17
2020-03-29 16:03:07,964: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-03-29 16:03:08,365: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-03-29 16:03:08,366: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-03-29 16:03:08,366: DEBUG - + read dpkg_file
2020-03-29 16:03:08,366: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-03-29 16:03:08,366: DEBUG - + echo ''
2020-03-29 16:03:08,367: DEBUG - + read dpkg_file
2020-03-29 16:03:08,367: DEBUG - + return 0
2020-03-29 16:03:08,367: DEBUG - + cp /tmp/cachet-ynh-deps.control /tmp/tmp.wzz9A1ntXD/control
2020-03-29 16:03:08,367: DEBUG - + cd /tmp/tmp.wzz9A1ntXD
2020-03-29 16:03:08,367: DEBUG - + equivs-build ./control
2020-03-29 16:03:12,378: DEBUG - + dpkg --force-depends -i ./cachet-ynh-deps_2.3.15
ynh1_all.deb
2020-03-29 16:03:12,880: DEBUG - Selecting previously unselected package cachet-ynh-deps.
2020-03-29 16:03:12,881: DEBUG - (Reading database ... 75066 files and directories currently installed.)
2020-03-29 16:03:12,881: DEBUG - Preparing to unpack .../cachet-ynh-deps_2.3.15ynh1_all.deb ...
2020-03-29 16:03:12,981: DEBUG - Unpacking cachet-ynh-deps (2.3.15
ynh1) ...
2020-03-29 16:03:13,483: DEBUG - Setting up cachet-ynh-deps (2.3.15ynh1) ...
2020-03-29 16:03:14,185: DEBUG - + ynh_package_install -f
2020-03-29 16:03:14,185: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
2020-03-29 16:03:14,186: DEBUG - + ynh_wait_dpkg_free
2020-03-29 16:03:14,186: DEBUG - + local try
2020-03-29 16:03:14,186: DEBUG - ++ seq 1 17
2020-03-29 16:03:14,186: DEBUG - + for try in seq 1 17
2020-03-29 16:03:14,186: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-03-29 16:03:14,696: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-03-29 16:03:14,696: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-03-29 16:03:14,696: DEBUG - + read dpkg_file
2020-03-29 16:03:14,696: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-03-29 16:03:14,697: DEBUG - + echo ''
2020-03-29 16:03:14,697: DEBUG - + read dpkg_file
2020-03-29 16:03:14,697: DEBUG - + return 0
2020-03-29 16:03:14,698: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-03-29 16:03:14,698: DEBUG - + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
2020-03-29 16:03:15,099: DEBUG - Reading package lists...
2020-03-29 16:03:15,400: DEBUG - Building dependency tree...
2020-03-29 16:03:15,401: DEBUG - Reading state information...
2020-03-29 16:03:15,702: DEBUG - The following packages were automatically installed and are no longer required:
2020-03-29 16:03:15,703: DEBUG - etckeeper iproute php7.3-bcmath php7.3-pgsql php7.3-zip
2020-03-29 16:03:15,703: DEBUG - Use 'apt autoremove' to remove them.
2020-03-29 16:03:15,803: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2020-03-29 16:03:15,804: DEBUG - + [[ -n /tmp/tmp.wzz9A1ntXD ]]
2020-03-29 16:03:15,804: DEBUG - + rm -rf /tmp/tmp.wzz9A1ntXD
2020-03-29 16:03:15,804: DEBUG - + ynh_package_is_installed cachet-ynh-deps
2020-03-29 16:03:15,805: DEBUG - + local legacy_args=p
2020-03-29 16:03:15,805: DEBUG - + args_array=([p]=package=)
2020-03-29 16:03:15,805: DEBUG - + declare -Ar args_array
2020-03-29 16:03:15,805: DEBUG - + local package
2020-03-29 16:03:15,806: DEBUG - + ynh_handle_getopts_args cachet-ynh-deps
2020-03-29 16:03:15,806: DEBUG - + set +x
2020-03-29 16:03:15,806: DEBUG - + echo '! Helper used in legacy mode !'
2020-03-29 16:03:15,806: DEBUG - + set +x
2020-03-29 16:03:15,807: DEBUG - + ynh_wait_dpkg_free
2020-03-29 16:03:15,807: DEBUG - + local try
2020-03-29 16:03:15,807: DEBUG - ++ seq 1 17
2020-03-29 16:03:15,807: DEBUG - + for try in seq 1 17
2020-03-29 16:03:15,808: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-03-29 16:03:16,409: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-03-29 16:03:16,410: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-03-29 16:03:16,410: DEBUG - + read dpkg_file
2020-03-29 16:03:16,410: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-03-29 16:03:16,410: DEBUG - + echo ''
2020-03-29 16:03:16,411: DEBUG - + read dpkg_file
2020-03-29 16:03:16,411: DEBUG - + return 0
2020-03-29 16:03:16,411: DEBUG - + dpkg-query -W -f '${Status}' cachet-ynh-deps
2020-03-29 16:03:16,411: DEBUG - + grep -c 'ok installed'
2020-03-29 16:03:16,412: DEBUG - + rm /tmp/cachet-ynh-deps.control
2020-03-29 16:03:16,412: DEBUG - + ynh_app_setting_set --app=cachet --key=apt_dependencies '--value=php-gd, php-mbstring'
2020-03-29 16:03:16,412: DEBUG - + local legacy_args=akv
2020-03-29 16:03:16,412: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-03-29 16:03:16,412: DEBUG - + declare -Ar args_array
2020-03-29 16:03:16,413: DEBUG - + local app
2020-03-29 16:03:16,413: DEBUG - + local key
2020-03-29 16:03:16,413: DEBUG - + local value
2020-03-29 16:03:16,413: DEBUG - + ynh_handle_getopts_args --app=cachet --key=apt_dependencies '--value=php-gd, php-mbstring'
2020-03-29 16:03:16,413: DEBUG - + set +x
2020-03-29 16:03:16,414: DEBUG - + ynh_app_setting set cachet apt_dependencies 'php-gd, php-mbstring'
2020-03-29 16:03:16,414: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-03-29 16:03:16,414: DEBUG - + ACTION=set
2020-03-29 16:03:16,414: DEBUG - + APP=cachet
2020-03-29 16:03:16,415: DEBUG - + KEY=apt_dependencies
2020-03-29 16:03:16,415: DEBUG - + VALUE='php-gd, php-mbstring'
2020-03-29 16:03:16,415: DEBUG - + python2.7 -
2020-03-29 16:03:16,616: DEBUG - + [[ apt_dependencies =
^(unprotected|skipped)_ ]]
2020-03-29 16:03:16,616: DEBUG - + ynh_system_user_create cachet
2020-03-29 16:03:16,617: DEBUG - + local legacy_args=uhs
2020-03-29 16:03:16,617: DEBUG - + args_array=([u]=username= [h]=home_dir= [s]=use_shell)
2020-03-29 16:03:16,617: DEBUG - + declare -Ar args_array
2020-03-29 16:03:16,617: DEBUG - + local username
2020-03-29 16:03:16,618: DEBUG - + local home_dir
2020-03-29 16:03:16,618: DEBUG - + local use_shell
2020-03-29 16:03:16,618: DEBUG - + ynh_handle_getopts_args cachet
2020-03-29 16:03:16,618: DEBUG - + set +x
2020-03-29 16:03:16,619: DEBUG - + echo '! Helper used in legacy mode !'
2020-03-29 16:03:16,619: DEBUG - + set +x
2020-03-29 16:03:16,619: DEBUG - + use_shell=0
2020-03-29 16:03:16,619: DEBUG - + home_dir=
2020-03-29 16:03:16,620: DEBUG - + ynh_system_user_exists cachet
2020-03-29 16:03:16,620: DEBUG - + local legacy_args=u
2020-03-29 16:03:16,620: DEBUG - + args_array=([u]=username=)
2020-03-29 16:03:16,620: DEBUG - + declare -Ar args_array
2020-03-29 16:03:16,621: DEBUG - + local username
2020-03-29 16:03:16,621: DEBUG - + ynh_handle_getopts_args cachet
2020-03-29 16:03:16,622: DEBUG - + set +x
2020-03-29 16:03:16,623: DEBUG - + echo '! Helper used in legacy mode !'
2020-03-29 16:03:16,623: DEBUG - + set +x
2020-03-29 16:03:16,623: DEBUG - + getent passwd cachet
2020-03-29 16:03:16,623: DEBUG - + exec_artisan down
2020-03-29 16:03:16,624: DEBUG - + cd /var/www/cachet
2020-03-29 16:03:16,624: DEBUG - + php artisan down
2020-03-29 16:03:16,825: DEBUG - Application is now in maintenance mode.
2020-03-29 16:03:16,825: DEBUG - + ynh_app_setting_set cachet final_path /var/www/cachet
2020-03-29 16:03:16,825: DEBUG - + local legacy_args=akv
2020-03-29 16:03:16,826: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-03-29 16:03:16,826: DEBUG - + declare -Ar args_array
2020-03-29 16:03:16,826: DEBUG - + local app
2020-03-29 16:03:16,826: DEBUG - + local key
2020-03-29 16:03:16,826: DEBUG - + local value
2020-03-29 16:03:16,827: DEBUG - + ynh_handle_getopts_args cachet final_path /var/www/cachet
2020-03-29 16:03:16,827: DEBUG - + set +x
2020-03-29 16:03:16,928: DEBUG - + echo '! Helper used in legacy mode !'
2020-03-29 16:03:16,928: DEBUG - + set +x
2020-03-29 16:03:16,928: DEBUG - + ynh_app_setting set cachet final_path /var/www/cachet
2020-03-29 16:03:16,929: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-03-29 16:03:16,929: DEBUG - + ACTION=set
2020-03-29 16:03:16,929: DEBUG - + APP=cachet
2020-03-29 16:03:16,930: DEBUG - + KEY=final_path
2020-03-29 16:03:16,930: DEBUG - + VALUE=/var/www/cachet
2020-03-29 16:03:16,930: DEBUG - + python2.7 -
2020-03-29 16:03:17,231: DEBUG - + [[ final_path =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:03:17,232: DEBUG - + ynh_setup_source /var/www/cachet
2020-03-29 16:03:17,232: DEBUG - + local legacy_args=ds
2020-03-29 16:03:17,232: DEBUG - + args_array=([d]=dest_dir= [s]=source_id=)
2020-03-29 16:03:17,232: DEBUG - + declare -Ar args_array
2020-03-29 16:03:17,232: DEBUG - + local dest_dir
2020-03-29 16:03:17,233: DEBUG - + local source_id
2020-03-29 16:03:17,233: DEBUG - + ynh_handle_getopts_args /var/www/cachet
2020-03-29 16:03:17,233: DEBUG - + set +x
2020-03-29 16:03:17,233: DEBUG - + echo '! Helper used in legacy mode !'
2020-03-29 16:03:17,234: DEBUG - + set +x
2020-03-29 16:03:17,234: DEBUG - + source_id=app
2020-03-29 16:03:17,235: DEBUG - + local src_file_path=/var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts/../conf/app.src
2020-03-29 16:03:17,236: DEBUG - + '[' '!' -e /var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts/../conf/app.src ']'
2020-03-29 16:03:17,236: DEBUG - ++ cut -d= -f2-
2020-03-29 16:03:17,236: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts/../conf/app.src
2020-03-29 16:03:17,236: DEBUG - + local src_url=https://github.com/CachetHQ/Cachet/archive/v2.3.18.tar.gz
2020-03-29 16:03:17,237: DEBUG - ++ cut -d= -f2-
2020-03-29 16:03:17,237: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts/../conf/app.src
2020-03-29 16:03:17,237: DEBUG - + local src_sum=ba74a1f83a0d4f800d02584de285bfabe28b4c5e2408b23af30a2dee9d65174d
2020-03-29 16:03:17,237: DEBUG - ++ cut -d= -f2-
2020-03-29 16:03:17,237: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts/../conf/app.src
2020-03-29 16:03:17,238: DEBUG - + local src_sumprg=sha256sum
2020-03-29 16:03:17,238: DEBUG - ++ cut -d= -f2-
2020-03-29 16:03:17,238: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts/../conf/app.src
2020-03-29 16:03:17,238: DEBUG - + local src_format=tar.gz
2020-03-29 16:03:17,239: DEBUG - ++ cut -d= -f2-
2020-03-29 16:03:17,239: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts/../conf/app.src
2020-03-29 16:03:17,239: DEBUG - + local src_extract=
2020-03-29 16:03:17,239: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts/../conf/app.src
2020-03-29 16:03:17,239: DEBUG - ++ cut -d= -f2-
2020-03-29 16:03:17,240: DEBUG - + local src_in_subdir=true
2020-03-29 16:03:17,240: DEBUG - ++ cut -d= -f2-
2020-03-29 16:03:17,240: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts/../conf/app.src
2020-03-29 16:03:17,240: DEBUG - + local src_filename=
2020-03-29 16:03:17,240: DEBUG - + src_sumprg=sha256sum
2020-03-29 16:03:17,241: DEBUG - + src_in_subdir=true
2020-03-29 16:03:17,241: DEBUG - + src_format=tar.gz
2020-03-29 16:03:17,241: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2020-03-29 16:03:17,241: DEBUG - ++ echo tar.gz
2020-03-29 16:03:17,241: DEBUG - + src_format=tar.gz
2020-03-29 16:03:17,242: DEBUG - + src_extract=true
2020-03-29 16:03:17,242: DEBUG - + '[' '' = '' ']'
2020-03-29 16:03:17,242: DEBUG - + src_filename=app.tar.gz
2020-03-29 16:03:17,242: DEBUG - + local local_src=/opt/yunohost-apps-src/cachet/app.tar.gz
2020-03-29 16:03:17,243: DEBUG - + test -e /opt/yunohost-apps-src/cachet/app.tar.gz
2020-03-29 16:03:17,243: DEBUG - ++ wget -nv -O app.tar.gz https://github.com/CachetHQ/Cachet/archive/v2.3.18.tar.gz
2020-03-29 16:03:18,746: DEBUG - + local 'out=2020-03-29 16:03:18 URL:https://codeload.github.com/CachetHQ/Cachet/tar.gz/v2.3.18 [1511525] -> "app.tar.gz" [1]'
2020-03-29 16:03:18,746: DEBUG - + sha256sum -c --status
2020-03-29 16:03:18,747: DEBUG - + echo 'ba74a1f83a0d4f800d02584de285bfabe28b4c5e2408b23af30a2dee9d65174d app.tar.gz'
2020-03-29 16:03:18,847: DEBUG - + mkdir -p /var/www/cachet
2020-03-29 16:03:18,848: DEBUG - + true
2020-03-29 16:03:18,848: DEBUG - + '[' tar.gz = zip ']'
2020-03-29 16:03:18,848: DEBUG - + local strip=
2020-03-29 16:03:18,848: DEBUG - + '[' true '!=' false ']'
2020-03-29 16:03:18,849: DEBUG - + '[' true == true ']'
2020-03-29 16:03:18,849: DEBUG - + local sub_dirs=1
2020-03-29 16:03:18,849: DEBUG - + strip='--strip-components 1'
2020-03-29 16:03:18,849: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2020-03-29 16:03:18,850: DEBUG - + tar -xf app.tar.gz -C /var/www/cachet --strip-components 1
2020-03-29 16:03:18,950: DEBUG - ++ find /var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts/../sources/patches/ -type f -name 'app-.patch'
2020-03-29 16:03:18,951: DEBUG - ++ wc -l
2020-03-29 16:03:18,951: DEBUG - + (( 0 > 0 ))
2020-03-29 16:03:18,951: DEBUG - + test -e /var/cache/yunohost/from_file/cachet_ynh-e837152b3a4f361a7c46721b25ec1e30dec26fe0/scripts/../sources/extra_files/app
2020-03-29 16:03:18,951: DEBUG - + ynh_add_nginx_config
2020-03-29 16:03:18,952: DEBUG - + finalnginxconf=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:18,952: DEBUG - + local others_var=
2020-03-29 16:03:18,952: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:18,952: DEBUG - + local legacy_args=f
2020-03-29 16:03:18,953: DEBUG - + args_array=([f]=file=)
2020-03-29 16:03:18,953: DEBUG - + declare -Ar args_array
2020-03-29 16:03:18,953: DEBUG - + local file
2020-03-29 16:03:18,953: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:18,954: DEBUG - + set +x
2020-03-29 16:03:18,954: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf
2020-03-29 16:03:18,954: DEBUG - ++ ynh_app_setting_get --app=cachet --key=checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf
2020-03-29 16:03:18,954: DEBUG - ++ local legacy_args=ak
2020-03-29 16:03:18,955: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:03:18,955: DEBUG - ++ declare -Ar args_array
2020-03-29 16:03:18,955: DEBUG - ++ local app
2020-03-29 16:03:18,955: DEBUG - ++ local key
2020-03-29 16:03:18,955: DEBUG - ++ ynh_handle_getopts_args --app=cachet --key=checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf
2020-03-29 16:03:18,956: DEBUG - ++ set +x
2020-03-29 16:03:19,056: DEBUG - ++ ynh_app_setting get cachet checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf
2020-03-29 16:03:19,118: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:03:19,118: DEBUG - ++ ACTION=get
2020-03-29 16:03:19,118: DEBUG - ++ APP=cachet
2020-03-29 16:03:19,119: DEBUG - ++ KEY=checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf
2020-03-29 16:03:19,119: DEBUG - ++ VALUE=
2020-03-29 16:03:19,119: DEBUG - ++ python2.7 -
2020-03-29 16:03:19,220: DEBUG - ++ [[ checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:03:19,220: DEBUG - + local checksum_value=d7c7487aa3a505ee2a9735d70009cf7b
2020-03-29 16:03:19,220: DEBUG - + backup_file_checksum=
2020-03-29 16:03:19,220: DEBUG - + '[' -n d7c7487aa3a505ee2a9735d70009cf7b ']'
2020-03-29 16:03:19,221: DEBUG - + '[' -e /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf ']'
2020-03-29 16:03:19,221: DEBUG - + sudo md5sum -c --status
2020-03-29 16:03:19,221: DEBUG - + echo 'd7c7487aa3a505ee2a9735d70009cf7b /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf'
2020-03-29 16:03:19,222: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,222: DEBUG - + test -n /
2020-03-29 16:03:19,222: DEBUG - + local path_url_slash_less=
2020-03-29 16:03:19,222: DEBUG - + ynh_replace_string --match_string=PATH/ --replace_string=/ --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,223: DEBUG - + local legacy_args=mrf
2020-03-29 16:03:19,223: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-03-29 16:03:19,223: DEBUG - + declare -Ar args_array
2020-03-29 16:03:19,223: DEBUG - + local match_string
2020-03-29 16:03:19,223: DEBUG - + local replace_string
2020-03-29 16:03:19,224: DEBUG - + local target_file
2020-03-29 16:03:19,224: DEBUG - + ynh_handle_getopts_args --match_string=PATH/ --replace_string=/ --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,224: DEBUG - + set +x
2020-03-29 16:03:19,325: DEBUG - + local delimit=@
2020-03-29 16:03:19,325: DEBUG - + match_string=PATH/
2020-03-29 16:03:19,325: DEBUG - + replace_string=/
2020-03-29 16:03:19,326: DEBUG - + sudo sed --in-place s@PATH/@/@g /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,326: DEBUG - + ynh_replace_string --match_string=PATH --replace_string=/ --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,326: DEBUG - + local legacy_args=mrf
2020-03-29 16:03:19,326: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-03-29 16:03:19,327: DEBUG - + declare -Ar args_array
2020-03-29 16:03:19,327: DEBUG - + local match_string
2020-03-29 16:03:19,327: DEBUG - + local replace_string
2020-03-29 16:03:19,327: DEBUG - + local target_file
2020-03-29 16:03:19,328: DEBUG - + ynh_handle_getopts_args --match_string=PATH --replace_string=/ --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,328: DEBUG - + set +x
2020-03-29 16:03:19,328: DEBUG - + local delimit=@
2020-03-29 16:03:19,328: DEBUG - + match_string=PATH
2020-03-29 16:03:19,329: DEBUG - + replace_string=/
2020-03-29 16:03:19,329: DEBUG - + sudo sed --in-place s@PATH@/@g /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,429: DEBUG - + test -n statut.lesamarien.fr
2020-03-29 16:03:19,430: DEBUG - + ynh_replace_string --match_string=DOMAIN --replace_string=statut.lesamarien.fr --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,430: DEBUG - + local legacy_args=mrf
2020-03-29 16:03:19,430: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-03-29 16:03:19,431: DEBUG - + declare -Ar args_array
2020-03-29 16:03:19,431: DEBUG - + local match_string
2020-03-29 16:03:19,431: DEBUG - + local replace_string
2020-03-29 16:03:19,431: DEBUG - + local target_file
2020-03-29 16:03:19,432: DEBUG - + ynh_handle_getopts_args --match_string=DOMAIN --replace_string=statut.lesamarien.fr --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,432: DEBUG - + set +x
2020-03-29 16:03:19,432: DEBUG - + local delimit=@
2020-03-29 16:03:19,432: DEBUG - + match_string=DOMAIN
2020-03-29 16:03:19,433: DEBUG - + replace_string=statut.lesamarien.fr
2020-03-29 16:03:19,433: DEBUG - + sudo sed --in-place s@DOMAIN@statut.lesamarien.fr@g /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,533: DEBUG - + test -n ''
2020-03-29 16:03:19,534: DEBUG - + test -n cachet
2020-03-29 16:03:19,534: DEBUG - + ynh_replace_string --match_string=NAME --replace_string=cachet --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,534: DEBUG - + local legacy_args=mrf
2020-03-29 16:03:19,535: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-03-29 16:03:19,535: DEBUG - + declare -Ar args_array
2020-03-29 16:03:19,535: DEBUG - + local match_string
2020-03-29 16:03:19,535: DEBUG - + local replace_string
2020-03-29 16:03:19,536: DEBUG - + local target_file
2020-03-29 16:03:19,536: DEBUG - + ynh_handle_getopts_args --match_string=NAME --replace_string=cachet --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,536: DEBUG - + set +x
2020-03-29 16:03:19,536: DEBUG - + local delimit=@
2020-03-29 16:03:19,537: DEBUG - + match_string=NAME
2020-03-29 16:03:19,537: DEBUG - + replace_string=cachet
2020-03-29 16:03:19,537: DEBUG - + sudo sed --in-place s@NAME@cachet@g /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,537: DEBUG - + test -n /var/www/cachet
2020-03-29 16:03:19,538: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/cachet --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,538: DEBUG - + local legacy_args=mrf
2020-03-29 16:03:19,538: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-03-29 16:03:19,538: DEBUG - + declare -Ar args_array
2020-03-29 16:03:19,539: DEBUG - + local match_string
2020-03-29 16:03:19,539: DEBUG - + local replace_string
2020-03-29 16:03:19,539: DEBUG - + local target_file
2020-03-29 16:03:19,539: DEBUG - + ynh_handle_getopts_args --match_string=FINALPATH --replace_string=/var/www/cachet --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,540: DEBUG - + set +x
2020-03-29 16:03:19,540: DEBUG - + local delimit=@
2020-03-29 16:03:19,540: DEBUG - + match_string=FINALPATH
2020-03-29 16:03:19,540: DEBUG - + replace_string=/var/www/cachet
2020-03-29 16:03:19,540: DEBUG - + sudo sed --in-place s@FINALPATH@/var/www/cachet@g /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,641: DEBUG - + '[' / '!=' / ']'
2020-03-29 16:03:19,641: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,642: DEBUG - + local legacy_args=mrf
2020-03-29 16:03:19,642: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-03-29 16:03:19,642: DEBUG - + declare -Ar args_array
2020-03-29 16:03:19,642: DEBUG - + local match_string
2020-03-29 16:03:19,643: DEBUG - + local replace_string
2020-03-29 16:03:19,643: DEBUG - + local target_file
2020-03-29 16:03:19,643: DEBUG - + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,643: DEBUG - + set +x
2020-03-29 16:03:19,644: DEBUG - + local delimit=@
2020-03-29 16:03:19,644: DEBUG - + match_string='^#root_path_only'
2020-03-29 16:03:19,644: DEBUG - + replace_string=
2020-03-29 16:03:19,646: DEBUG - + sudo sed --in-place 's@^#root_path_only@@g' /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,646: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,646: DEBUG - + local legacy_args=f
2020-03-29 16:03:19,647: DEBUG - + args_array=([f]=file=)
2020-03-29 16:03:19,648: DEBUG - + declare -Ar args_array
2020-03-29 16:03:19,648: DEBUG - + local file
2020-03-29 16:03:19,649: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,649: DEBUG - + set +x
2020-03-29 16:03:19,649: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf
2020-03-29 16:03:19,652: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:03:19,653: DEBUG - ++ cut '-d ' -f1
2020-03-29 16:03:19,653: DEBUG - + ynh_app_setting_set --app=cachet --key=checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf --value=d7c7487aa3a505ee2a9735d70009cf7b
2020-03-29 16:03:19,653: DEBUG - + local legacy_args=akv
2020-03-29 16:03:19,654: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-03-29 16:03:19,654: DEBUG - + declare -Ar args_array
2020-03-29 16:03:19,654: DEBUG - + local app
2020-03-29 16:03:19,654: DEBUG - + local key
2020-03-29 16:03:19,655: DEBUG - + local value
2020-03-29 16:03:19,655: DEBUG - + ynh_handle_getopts_args --app=cachet --key=checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf --value=d7c7487aa3a505ee2a9735d70009cf7b
2020-03-29 16:03:19,655: DEBUG - + set +x
2020-03-29 16:03:19,756: DEBUG - + ynh_app_setting set cachet checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf d7c7487aa3a505ee2a9735d70009cf7b
2020-03-29 16:03:19,756: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-03-29 16:03:19,757: DEBUG - + ACTION=set
2020-03-29 16:03:19,757: DEBUG - + APP=cachet
2020-03-29 16:03:19,757: DEBUG - + KEY=checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf
2020-03-29 16:03:19,757: DEBUG - + VALUE=d7c7487aa3a505ee2a9735d70009cf7b
2020-03-29 16:03:19,758: DEBUG - + python2.7 -
2020-03-29 16:03:19,959: DEBUG - + [[ checksum__etc_nginx_conf.d_statut.lesamarien.fr.d_cachet.conf =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:03:19,962: DEBUG - + '[' -n '' ']'
2020-03-29 16:03:19,962: DEBUG - + unset backup_file_checksum
2020-03-29 16:03:19,963: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2020-03-29 16:03:19,963: DEBUG - + local legacy_args=nalpte
2020-03-29 16:03:19,963: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2020-03-29 16:03:19,963: DEBUG - + declare -Ar args_array
2020-03-29 16:03:19,964: DEBUG - + local service_name
2020-03-29 16:03:19,964: DEBUG - + local action
2020-03-29 16:03:19,964: DEBUG - + local line_match
2020-03-29 16:03:19,964: DEBUG - + local length
2020-03-29 16:03:19,969: DEBUG - + local log_path
2020-03-29 16:03:19,969: DEBUG - + local timeout
2020-03-29 16:03:19,970: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload
2020-03-29 16:03:19,970: DEBUG - + set +x
2020-03-29 16:03:19,970: DEBUG - + local service_name=nginx
2020-03-29 16:03:19,970: DEBUG - + local action=reload
2020-03-29 16:03:19,970: DEBUG - + local log_path=/var/log/nginx/nginx.log
2020-03-29 16:03:19,971: DEBUG - + local length=20
2020-03-29 16:03:19,971: DEBUG - + local timeout=300
2020-03-29 16:03:19,971: DEBUG - + [[ -n '' ]]
2020-03-29 16:03:19,971: DEBUG - + '[' reload == reload ']'
2020-03-29 16:03:19,972: DEBUG - + action=reload-or-restart
2020-03-29 16:03:19,972: DEBUG - + systemctl reload-or-restart nginx
2020-03-29 16:03:20,273: DEBUG - + [[ -n '' ]]
2020-03-29 16:03:20,273: DEBUG - + ynh_add_fpm_config
2020-03-29 16:03:20,274: DEBUG - + local legacy_args=v
2020-03-29 16:03:20,274: DEBUG - + args_array=([v]=phpversion=)
2020-03-29 16:03:20,274: DEBUG - + declare -Ar args_array
2020-03-29 16:03:20,274: DEBUG - + local phpversion
2020-03-29 16:03:20,275: DEBUG - + ynh_handle_getopts_args
2020-03-29 16:03:20,275: DEBUG - + set +x
2020-03-29 16:03:20,275: DEBUG - + phpversion=7.0
2020-03-29 16:03:20,275: DEBUG - + local fpm_config_dir=/etc/php/7.0/fpm
2020-03-29 16:03:20,276: DEBUG - + local fpm_service=php7.0-fpm
2020-03-29 16:03:20,276: DEBUG - ++ ynh_get_debian_release
2020-03-29 16:03:20,276: DEBUG - +++ lsb_release --codename --short
2020-03-29 16:03:20,384: DEBUG - ++ echo stretch
2020-03-29 16:03:20,385: DEBUG - + '[' stretch == jessie ']'
2020-03-29 16:03:20,385: DEBUG - + ynh_app_setting_set --app=cachet --key=fpm_config_dir --value=/etc/php/7.0/fpm
2020-03-29 16:03:20,385: DEBUG - + local legacy_args=akv
2020-03-29 16:03:20,386: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-03-29 16:03:20,386: DEBUG - + declare -Ar args_array
2020-03-29 16:03:20,386: DEBUG - + local app
2020-03-29 16:03:20,386: DEBUG - + local key
2020-03-29 16:03:20,387: DEBUG - + local value
2020-03-29 16:03:20,387: DEBUG - + ynh_handle_getopts_args --app=cachet --key=fpm_config_dir --value=/etc/php/7.0/fpm
2020-03-29 16:03:20,387: DEBUG - + set +x
2020-03-29 16:03:20,387: DEBUG - + ynh_app_setting set cachet fpm_config_dir /etc/php/7.0/fpm
2020-03-29 16:03:20,388: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-03-29 16:03:20,388: DEBUG - + ACTION=set
2020-03-29 16:03:20,388: DEBUG - + APP=cachet
2020-03-29 16:03:20,388: DEBUG - + KEY=fpm_config_dir
2020-03-29 16:03:20,389: DEBUG - + VALUE=/etc/php/7.0/fpm
2020-03-29 16:03:20,389: DEBUG - + python2.7 -
2020-03-29 16:03:20,609: DEBUG - + [[ fpm_config_dir =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:03:20,609: DEBUG - + ynh_app_setting_set --app=cachet --key=fpm_service --value=php7.0-fpm
2020-03-29 16:03:20,610: DEBUG - + local legacy_args=akv
2020-03-29 16:03:20,610: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-03-29 16:03:20,610: DEBUG - + declare -Ar args_array
2020-03-29 16:03:20,610: DEBUG - + local app
2020-03-29 16:03:20,611: DEBUG - + local key
2020-03-29 16:03:20,611: DEBUG - + local value
2020-03-29 16:03:20,611: DEBUG - + ynh_handle_getopts_args --app=cachet --key=fpm_service --value=php7.0-fpm
2020-03-29 16:03:20,611: DEBUG - + set +x
2020-03-29 16:03:20,611: DEBUG - + ynh_app_setting set cachet fpm_service php7.0-fpm
2020-03-29 16:03:20,612: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-03-29 16:03:20,612: DEBUG - + ACTION=set
2020-03-29 16:03:20,612: DEBUG - + APP=cachet
2020-03-29 16:03:20,612: DEBUG - + KEY=fpm_service
2020-03-29 16:03:20,613: DEBUG - + VALUE=php7.0-fpm
2020-03-29 16:03:20,613: DEBUG - + python2.7 -
2020-03-29 16:03:20,814: DEBUG - + [[ fpm_service =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:03:20,815: DEBUG - + finalphpconf=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:20,815: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:20,815: DEBUG - + local legacy_args=f
2020-03-29 16:03:20,815: DEBUG - + args_array=([f]=file=)
2020-03-29 16:03:20,816: DEBUG - + declare -Ar args_array
2020-03-29 16:03:20,816: DEBUG - + local file
2020-03-29 16:03:20,816: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:20,816: DEBUG - + set +x
2020-03-29 16:03:20,817: DEBUG - + local checksum_setting_name=checksum__etc_php_7.0_fpm_pool.d_cachet.conf
2020-03-29 16:03:20,817: DEBUG - ++ ynh_app_setting_get --app=cachet --key=checksum__etc_php_7.0_fpm_pool.d_cachet.conf
2020-03-29 16:03:20,817: DEBUG - ++ local legacy_args=ak
2020-03-29 16:03:20,817: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:03:20,818: DEBUG - ++ declare -Ar args_array
2020-03-29 16:03:20,818: DEBUG - ++ local app
2020-03-29 16:03:20,818: DEBUG - ++ local key
2020-03-29 16:03:20,818: DEBUG - ++ ynh_handle_getopts_args --app=cachet --key=checksum__etc_php_7.0_fpm_pool.d_cachet.conf
2020-03-29 16:03:20,818: DEBUG - ++ set +x
2020-03-29 16:03:20,819: DEBUG - ++ ynh_app_setting get cachet checksum__etc_php_7.0_fpm_pool.d_cachet.conf
2020-03-29 16:03:20,819: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:03:20,819: DEBUG - ++ ACTION=get
2020-03-29 16:03:20,819: DEBUG - ++ APP=cachet
2020-03-29 16:03:20,820: DEBUG - ++ KEY=checksum__etc_php_7.0_fpm_pool.d_cachet.conf
2020-03-29 16:03:20,820: DEBUG - ++ VALUE=
2020-03-29 16:03:20,820: DEBUG - ++ python2.7 -
2020-03-29 16:03:21,021: DEBUG - ++ [[ checksum__etc_php_7.0_fpm_pool.d_cachet.conf =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:03:21,021: DEBUG - + local checksum_value=d3d70dd156f56bfcbcece41d6df1bad9
2020-03-29 16:03:21,022: DEBUG - + backup_file_checksum=
2020-03-29 16:03:21,022: DEBUG - + '[' -n d3d70dd156f56bfcbcece41d6df1bad9 ']'
2020-03-29 16:03:21,022: DEBUG - + '[' -e /etc/php/7.0/fpm/pool.d/cachet.conf ']'
2020-03-29 16:03:21,022: DEBUG - + sudo md5sum -c --status
2020-03-29 16:03:21,022: DEBUG - + echo 'd3d70dd156f56bfcbcece41d6df1bad9 /etc/php/7.0/fpm/pool.d/cachet.conf'
2020-03-29 16:03:21,023: DEBUG - + sudo cp ../conf/php-fpm.conf /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,023: DEBUG - + ynh_replace_string --match_string=NAMETOCHANGE --replace_string=cachet --target_file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,023: DEBUG - + local legacy_args=mrf
2020-03-29 16:03:21,023: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-03-29 16:03:21,023: DEBUG - + declare -Ar args_array
2020-03-29 16:03:21,024: DEBUG - + local match_string
2020-03-29 16:03:21,024: DEBUG - + local replace_string
2020-03-29 16:03:21,024: DEBUG - + local target_file
2020-03-29 16:03:21,024: DEBUG - + ynh_handle_getopts_args --match_string=NAMETOCHANGE --replace_string=cachet --target_file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,024: DEBUG - + set +x
2020-03-29 16:03:21,125: DEBUG - + local delimit=@
2020-03-29 16:03:21,125: DEBUG - + match_string=NAMETOCHANGE
2020-03-29 16:03:21,126: DEBUG - + replace_string=cachet
2020-03-29 16:03:21,126: DEBUG - + sudo sed --in-place s@NAMETOCHANGE@cachet@g /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,226: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/cachet --target_file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,227: DEBUG - + local legacy_args=mrf
2020-03-29 16:03:21,227: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-03-29 16:03:21,227: DEBUG - + declare -Ar args_array
2020-03-29 16:03:21,228: DEBUG - + local match_string
2020-03-29 16:03:21,228: DEBUG - + local replace_string
2020-03-29 16:03:21,228: DEBUG - + local target_file
2020-03-29 16:03:21,228: DEBUG - + ynh_handle_getopts_args --match_string=FINALPATH --replace_string=/var/www/cachet --target_file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,229: DEBUG - + set +x
2020-03-29 16:03:21,229: DEBUG - + local delimit=@
2020-03-29 16:03:21,229: DEBUG - + match_string=FINALPATH
2020-03-29 16:03:21,229: DEBUG - + replace_string=/var/www/cachet
2020-03-29 16:03:21,230: DEBUG - + sudo sed --in-place s@FINALPATH@/var/www/cachet@g /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,430: DEBUG - + ynh_replace_string --match_string=USER --replace_string=cachet --target_file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,431: DEBUG - + local legacy_args=mrf
2020-03-29 16:03:21,431: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-03-29 16:03:21,431: DEBUG - + declare -Ar args_array
2020-03-29 16:03:21,432: DEBUG - + local match_string
2020-03-29 16:03:21,432: DEBUG - + local replace_string
2020-03-29 16:03:21,432: DEBUG - + local target_file
2020-03-29 16:03:21,432: DEBUG - + ynh_handle_getopts_args --match_string=USER --replace_string=cachet --target_file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,433: DEBUG - + set +x
2020-03-29 16:03:21,433: DEBUG - + local delimit=@
2020-03-29 16:03:21,433: DEBUG - + match_string=USER
2020-03-29 16:03:21,434: DEBUG - + replace_string=cachet
2020-03-29 16:03:21,434: DEBUG - + sudo sed --in-place s@USER@cachet@g /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,434: DEBUG - + ynh_replace_string --match_string=PHPVERSION --replace_string=7.0 --target_file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,434: DEBUG - + local legacy_args=mrf
2020-03-29 16:03:21,434: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-03-29 16:03:21,435: DEBUG - + declare -Ar args_array
2020-03-29 16:03:21,435: DEBUG - + local match_string
2020-03-29 16:03:21,435: DEBUG - + local replace_string
2020-03-29 16:03:21,435: DEBUG - + local target_file
2020-03-29 16:03:21,436: DEBUG - + ynh_handle_getopts_args --match_string=PHPVERSION --replace_string=7.0 --target_file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,436: DEBUG - + set +x
2020-03-29 16:03:21,436: DEBUG - + local delimit=@
2020-03-29 16:03:21,436: DEBUG - + match_string=PHPVERSION
2020-03-29 16:03:21,437: DEBUG - + replace_string=7.0
2020-03-29 16:03:21,437: DEBUG - + sudo sed --in-place s@PHPVERSION@7.0@g /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,437: DEBUG - + sudo chown root: /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,538: DEBUG - + ynh_store_file_checksum --file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,538: DEBUG - + local legacy_args=f
2020-03-29 16:03:21,538: DEBUG - + args_array=([f]=file=)
2020-03-29 16:03:21,539: DEBUG - + declare -Ar args_array
2020-03-29 16:03:21,539: DEBUG - + local file
2020-03-29 16:03:21,539: DEBUG - + ynh_handle_getopts_args --file=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,539: DEBUG - + set +x
2020-03-29 16:03:21,540: DEBUG - + local checksum_setting_name=checksum__etc_php_7.0_fpm_pool.d_cachet.conf
2020-03-29 16:03:21,540: DEBUG - ++ sudo md5sum /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:03:21,540: DEBUG - ++ cut '-d ' -f1
2020-03-29 16:03:21,540: DEBUG - + ynh_app_setting_set --app=cachet --key=checksum__etc_php_7.0_fpm_pool.d_cachet.conf --value=d3d70dd156f56bfcbcece41d6df1bad9
2020-03-29 16:03:21,541: DEBUG - + local legacy_args=akv
2020-03-29 16:03:21,541: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-03-29 16:03:21,541: DEBUG - + declare -Ar args_array
2020-03-29 16:03:21,541: DEBUG - + local app
2020-03-29 16:03:21,542: DEBUG - + local key
2020-03-29 16:03:21,542: DEBUG - + local value
2020-03-29 16:03:21,542: DEBUG - + ynh_handle_getopts_args --app=cachet --key=checksum__etc_php_7.0_fpm_pool.d_cachet.conf --value=d3d70dd156f56bfcbcece41d6df1bad9
2020-03-29 16:03:21,542: DEBUG - + set +x
2020-03-29 16:03:21,543: DEBUG - + ynh_app_setting set cachet checksum__etc_php_7.0_fpm_pool.d_cachet.conf d3d70dd156f56bfcbcece41d6df1bad9
2020-03-29 16:03:21,543: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-03-29 16:03:21,543: DEBUG - + ACTION=set
2020-03-29 16:03:21,544: DEBUG - + APP=cachet
2020-03-29 16:03:21,544: DEBUG - + KEY=checksum__etc_php_7.0_fpm_pool.d_cachet.conf
2020-03-29 16:03:21,544: DEBUG - + VALUE=d3d70dd156f56bfcbcece41d6df1bad9
2020-03-29 16:03:21,544: DEBUG - + python2.7 -
2020-03-29 16:03:21,745: DEBUG - + [[ checksum__etc_php_7.0_fpm_pool.d_cachet.conf =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:03:21,746: DEBUG - + '[' -n '' ']'
2020-03-29 16:03:21,746: DEBUG - + unset backup_file_checksum
2020-03-29 16:03:21,746: DEBUG - + '[' -e ../conf/php-fpm.ini ']'
2020-03-29 16:03:21,746: DEBUG - + ynh_systemd_action --service_name=php7.0-fpm --action=reload
2020-03-29 16:03:21,746: DEBUG - + local legacy_args=nalpte
2020-03-29 16:03:21,747: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2020-03-29 16:03:21,747: DEBUG - + declare -Ar args_array
2020-03-29 16:03:21,747: DEBUG - + local service_name
2020-03-29 16:03:21,747: DEBUG - + local action
2020-03-29 16:03:21,748: DEBUG - + local line_match
2020-03-29 16:03:21,748: DEBUG - + local length
2020-03-29 16:03:21,748: DEBUG - + local log_path
2020-03-29 16:03:21,748: DEBUG - + local timeout
2020-03-29 16:03:21,748: DEBUG - + ynh_handle_getopts_args --service_name=php7.0-fpm --action=reload
2020-03-29 16:03:21,749: DEBUG - + set +x
2020-03-29 16:03:21,849: DEBUG - + local service_name=php7.0-fpm
2020-03-29 16:03:21,850: DEBUG - + local action=reload
2020-03-29 16:03:21,850: DEBUG - + local log_path=/var/log/php7.0-fpm/php7.0-fpm.log
2020-03-29 16:03:21,850: DEBUG - + local length=20
2020-03-29 16:03:21,850: DEBUG - + local timeout=300
2020-03-29 16:03:21,851: DEBUG - + [[ -n '' ]]
2020-03-29 16:03:21,851: DEBUG - + '[' reload == reload ']'
2020-03-29 16:03:21,851: DEBUG - + action=reload-or-restart
2020-03-29 16:03:21,851: DEBUG - + systemctl reload-or-restart php7.0-fpm
2020-03-29 16:03:21,851: DEBUG - + [[ -n '' ]]
2020-03-29 16:03:21,852: DEBUG - + [[ -f /var/www/cachet/composer.json ]]
2020-03-29 16:03:21,852: DEBUG - + exec_composer /var/www/cachet update --no-dev --prefer-dist
2020-03-29 16:03:21,852: DEBUG - + local workdir=/var/www/cachet
2020-03-29 16:03:21,852: DEBUG - + shift 1
2020-03-29 16:03:21,852: DEBUG - + COMPOSER_HOME=/var/www/cachet/.composer
2020-03-29 16:03:21,853: DEBUG - + php /var/www/cachet/composer.phar update --no-dev --prefer-dist -d /var/www/cachet --quiet --no-interaction
2020-03-29 16:04:52,449: WARNING - Script php artisan optimize --force handling the post-update-cmd event returned with error code 1
2020-03-29 16:04:52,853: DEBUG - + ynh_exit_properly
2020-03-29 16:04:52,853: DEBUG - + local exit_code=1
2020-03-29 16:04:52,853: DEBUG - + '[' 1 -eq 0 ']'
2020-03-29 16:04:52,854: DEBUG - + trap '' EXIT
2020-03-29 16:04:52,854: DEBUG - + set +eu
2020-03-29 16:04:52,854: DEBUG - + sleep 0.5
2020-03-29 16:04:53,355: DEBUG - + type -t ynh_clean_setup
2020-03-29 16:04:53,356: WARNING - �[91m�[1m[ERR]�[0m Upgrade failed.
2020-03-29 16:04:53,356: DEBUG - + ynh_clean_setup
2020-03-29 16:04:53,356: DEBUG - + ynh_restore_upgradebackup
2020-03-29 16:04:53,357: DEBUG - + ynh_print_err '--message=Upgrade failed.'
2020-03-29 16:04:53,357: DEBUG - + local legacy_args=m
2020-03-29 16:04:53,357: DEBUG - + args_array=([m]=message=)
2020-03-29 16:04:53,358: DEBUG - + declare -Ar args_array
2020-03-29 16:04:53,358: DEBUG - + local message
2020-03-29 16:04:53,358: DEBUG - + ynh_handle_getopts_args '--message=Upgrade failed.'
2020-03-29 16:04:53,358: DEBUG - + set +x
2020-03-29 16:04:53,359: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m Upgrade failed.'
2020-03-29 16:04:53,359: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m Upgrade failed.'
2020-03-29 16:04:53,359: DEBUG - + local app_bck=cachet
2020-03-29 16:04:53,359: DEBUG - + NO_BACKUP_UPGRADE=0
2020-03-29 16:04:53,360: DEBUG - + '[' 0 -eq 0 ']'
2020-03-29 16:04:53,360: DEBUG - + sudo yunohost backup list
2020-03-29 16:04:53,360: DEBUG - + grep -q cachet-pre-upgrade1
2020-03-29 16:04:53,862: DEBUG - + sudo yunohost app remove cachet
2020-03-29 16:04:54,263: DEBUG - Removing the app 'cachet'…
2020-03-29 16:05:54,624: DEBUG - '/etc/php/7.0/fpm/conf.d/20-cachet.ini' wasn't deleted because it doesn't exist.
2020-03-29 16:05:55,528: DEBUG - cachet removed
2020-03-29 16:05:58,159: DEBUG - + sudo yunohost backup restore cachet-pre-upgrade1 --apps cachet --force --debug
2020-03-29 16:05:58,360: DEBUG - 183 loading actions map namespace 'yunohost'
2020-03-29 16:05:58,461: DEBUG - 205 extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern']
2020-03-29 16:05:58,461: DEBUG - 206 initializing base actions map parser for cli
2020-03-29 16:05:58,462: DEBUG - 206 registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
2020-03-29 16:05:58,462: DEBUG - 277 unable to load locale 'en' from '/usr/share/moulinette/locale'
2020-03-29 16:05:58,462: DEBUG - 283 unable to load locale 'en' from '/usr/lib/moulinette/yunohost/locales'
2020-03-29 16:05:58,462: DEBUG - 285 acquiring lock...
2020-03-29 16:05:58,663: DEBUG - 407 loading python module yunohost.backup took 0.084s
2020-03-29 16:05:58,664: DEBUG - 407 processing action [14067.1]: yunohost.backup.restore with args={'force': True, 'apps': ['cachet'], 'name': 'cachet-pre-upgrade1', 'system': None}
2020-03-29 16:05:58,664: DEBUG - 408 No custom hook for action 'restore' in /etc/yunohost/hooks.d/
2020-03-29 16:05:58,664: DEBUG - 447 Preparing archive for restoration…
2020-03-29 16:05:58,664: DEBUG - 448 Extracting needed files from the archive…
2020-03-29 16:06:24,837: DEBUG - 26661 restoring from backup 'cachet-pre-upgrade1' created on 2020-03-29 14:02:38
2020-03-29 16:06:24,837: DEBUG - 26665 Restoring the app 'cachet'…
2020-03-29 16:06:25,038: DEBUG - 26823 Restoring the app 'cachet'…
2020-03-29 16:06:25,038: DEBUG - 26854 initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth'
2020-03-29 16:06:25,139: DEBUG - 26887 No default hook for action 'post_app_addaccess' in /usr/share/yunohost/hooks/
2020-03-29 16:06:25,139: DEBUG - 26888 No custom hook for action 'post_app_addaccess' in /etc/yunohost/hooks.d/
2020-03-29 16:06:25,139: DEBUG - 26888 Permission 'cachet.main' created
2020-03-29 16:06:25,140: DEBUG - 26892 To view the log of the operation 'Create permission 'cachet'', use the command 'yunohost log display 20200329-140625-permission_create-cachet'
2020-03-29 16:06:25,340: DEBUG - 27119 The permission database has been resynchronized
2020-03-29 16:06:27,750: DEBUG - 29489 SSOwat configuration generated
2020-03-29 16:06:27,750: DEBUG - 29521 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup YNH_STDINFO=/tmp/tmptBy13x/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/cachet-pre-upgrade1/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/cachet-pre-upgrade1 YNH_APP_INSTANCE_NAME=cachet YNH_INTERFACE=cli YNH_APP_ID=cachet YNH_STDRETURN=/tmp/tmpmEmh_a/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restoreNudEko/restore" /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup cachet 7>&1'…
2020-03-29 16:06:27,751: DEBUG - 29523 About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup YNH_STDINFO=/tmp/tmptBy13x/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/cachet-pre-upgrade1/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/cachet-pre-upgrade1 YNH_APP_INSTANCE_NAME=cachet YNH_INTERFACE=cli YNH_APP_ID=cachet YNH_STDRETURN=/tmp/tmpmEmh_a/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restoreNudEko/restore" /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup cachet 7>&1']'
2020-03-29 16:06:27,851: DEBUG - 29649 + '[' '!' -e common.sh ']'
2020-03-29 16:06:27,852: DEBUG - 29651 + cp ../settings/scripts/common.sh ./common.sh
2020-03-29 16:06:27,852: DEBUG - 29651 + chmod a+rx common.sh
2020-03-29 16:06:27,852: DEBUG - 29651 + source common.sh
2020-03-29 16:06:27,852: DEBUG - 29651 ++ pkg_dependencies='php7.0-gd php7.0-mcrypt php-mbstring'
2020-03-29 16:06:27,853: DEBUG - 29652 + source /usr/share/yunohost/helpers
2020-03-29 16:06:27,853: DEBUG - 29652 +++ run-parts --list /usr/share/yunohost/helpers.d
2020-03-29 16:06:27,853: DEBUG - 29652 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,853: DEBUG - 29652 ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2020-03-29 16:06:27,854: DEBUG - 29653 ++ . /usr/share/yunohost/helpers.d/apt
2020-03-29 16:06:27,854: DEBUG - 29653 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,854: DEBUG - 29653 ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2020-03-29 16:06:27,854: DEBUG - 29654 ++ . /usr/share/yunohost/helpers.d/backup
2020-03-29 16:06:27,855: DEBUG - 29654 +++ CAN_BIND=1
2020-03-29 16:06:27,855: DEBUG - 29654 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,855: DEBUG - 29654 ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2020-03-29 16:06:27,855: DEBUG - 29655 ++ . /usr/share/yunohost/helpers.d/fail2ban
2020-03-29 16:06:27,855: DEBUG - 29655 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,856: DEBUG - 29655 ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2020-03-29 16:06:27,856: DEBUG - 29655 ++ . /usr/share/yunohost/helpers.d/getopts
2020-03-29 16:06:27,856: DEBUG - 29656 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,856: DEBUG - 29656 ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2020-03-29 16:06:27,857: DEBUG - 29656 ++ . /usr/share/yunohost/helpers.d/logging
2020-03-29 16:06:27,857: DEBUG - 29656 +++ increment_progression=0
2020-03-29 16:06:27,857: DEBUG - 29657 +++ previous_weight=0
2020-03-29 16:06:27,857: DEBUG - 29657 +++ max_progression=-1
2020-03-29 16:06:27,857: DEBUG - 29657 +++ progress_scale=20
2020-03-29 16:06:27,858: DEBUG - 29658 +++ progress_string2='####################'
2020-03-29 16:06:27,858: DEBUG - 29658 +++ progress_string1=++++++++++++++++++++
2020-03-29 16:06:27,858: DEBUG - 29658 +++ progress_string0=....................
2020-03-29 16:06:27,859: DEBUG - 29658 ++++ date +%s
2020-03-29 16:06:27,859: DEBUG - 29659 +++ base_time=1585490787
2020-03-29 16:06:27,859: DEBUG - 29659 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,859: DEBUG - 29659 ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2020-03-29 16:06:27,860: DEBUG - 29659 ++ . /usr/share/yunohost/helpers.d/logrotate
2020-03-29 16:06:27,860: DEBUG - 29662 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,860: DEBUG - 29662 ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2020-03-29 16:06:27,860: DEBUG - 29662 ++ . /usr/share/yunohost/helpers.d/mysql
2020-03-29 16:06:27,860: DEBUG - 29663 +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2020-03-29 16:06:27,861: DEBUG - 29663 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,861: DEBUG - 29663 ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2020-03-29 16:06:27,861: DEBUG - 29663 ++ . /usr/share/yunohost/helpers.d/network
2020-03-29 16:06:27,861: DEBUG - 29664 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,862: DEBUG - 29664 ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2020-03-29 16:06:27,862: DEBUG - 29664 ++ . /usr/share/yunohost/helpers.d/nginx
2020-03-29 16:06:27,862: DEBUG - 29664 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,862: DEBUG - 29665 ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2020-03-29 16:06:27,863: DEBUG - 29665 ++ . /usr/share/yunohost/helpers.d/nodejs
2020-03-29 16:06:27,872: DEBUG - 29665 +++ n_install_dir=/opt/node_n
2020-03-29 16:06:27,872: DEBUG - 29665 +++ node_version_path=/opt/node_n/n/versions/node
2020-03-29 16:06:27,873: DEBUG - 29666 +++ export N_PREFIX=/opt/node_n
2020-03-29 16:06:27,873: DEBUG - 29666 +++ N_PREFIX=/opt/node_n
2020-03-29 16:06:27,873: DEBUG - 29666 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,873: DEBUG - 29666 ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2020-03-29 16:06:27,874: DEBUG - 29667 ++ . /usr/share/yunohost/helpers.d/php
2020-03-29 16:06:27,874: DEBUG - 29667 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,874: DEBUG - 29667 ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2020-03-29 16:06:27,874: DEBUG - 29667 ++ . /usr/share/yunohost/helpers.d/postgresql
2020-03-29 16:06:27,875: DEBUG - 29668 +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2020-03-29 16:06:27,875: DEBUG - 29668 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,875: DEBUG - 29668 ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2020-03-29 16:06:27,875: DEBUG - 29668 ++ . /usr/share/yunohost/helpers.d/setting
2020-03-29 16:06:27,876: DEBUG - 29669 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,876: DEBUG - 29669 ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2020-03-29 16:06:27,876: DEBUG - 29672 ++ . /usr/share/yunohost/helpers.d/string
2020-03-29 16:06:27,876: DEBUG - 29672 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,877: DEBUG - 29672 ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2020-03-29 16:06:27,877: DEBUG - 29673 ++ . /usr/share/yunohost/helpers.d/systemd
2020-03-29 16:06:27,877: DEBUG - 29673 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,882: DEBUG - 29673 ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2020-03-29 16:06:27,883: DEBUG - 29673 ++ . /usr/share/yunohost/helpers.d/user
2020-03-29 16:06:27,883: DEBUG - 29674 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-03-29 16:06:27,883: DEBUG - 29674 ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2020-03-29 16:06:27,883: DEBUG - 29676 ++ . /usr/share/yunohost/helpers.d/utils
2020-03-29 16:06:27,884: DEBUG - 29676 + ynh_abort_if_errors
2020-03-29 16:06:27,884: DEBUG - 29676 + set -eu
2020-03-29 16:06:27,884: DEBUG - 29677 + trap ynh_exit_properly EXIT
2020-03-29 16:06:27,884: DEBUG - 29677 + app=cachet
2020-03-29 16:06:27,884: DEBUG - 29677 ++ ynh_app_setting_get cachet domain
2020-03-29 16:06:27,885: DEBUG - 29677 ++ local legacy_args=ak
2020-03-29 16:06:27,885: DEBUG - 29678 ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:06:27,885: DEBUG - 29678 ++ declare -Ar args_array
2020-03-29 16:06:27,885: DEBUG - 29678 ++ local app
2020-03-29 16:06:27,886: DEBUG - 29678 ++ local key
2020-03-29 16:06:27,886: DEBUG - 29679 ++ ynh_handle_getopts_args cachet domain
2020-03-29 16:06:27,886: DEBUG - 29679 ++ set +x
2020-03-29 16:06:27,886: DEBUG - 29679 ++ echo '! Helper used in legacy mode !'
2020-03-29 16:06:27,887: DEBUG - 29679 ++ set +x
2020-03-29 16:06:27,887: DEBUG - 29693 ++ ynh_app_setting get cachet domain
2020-03-29 16:06:27,888: DEBUG - 29694 ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:06:27,888: DEBUG - 29694 ++ ACTION=get
2020-03-29 16:06:27,888: DEBUG - 29694 ++ APP=cachet
2020-03-29 16:06:27,889: DEBUG - 29694 ++ KEY=domain
2020-03-29 16:06:27,889: DEBUG - 29695 ++ VALUE=
2020-03-29 16:06:27,889: DEBUG - 29695 ++ python2.7 -
2020-03-29 16:06:28,090: DEBUG - 29896 ++ [[ domain =~ ^(unprotected|skipped)
]]
2020-03-29 16:06:28,090: DEBUG - 29896 + domain=statut.lesamarien.fr
2020-03-29 16:06:28,090: DEBUG - 29896 ++ ynh_app_setting_get cachet path
2020-03-29 16:06:28,091: DEBUG - 29897 ++ local legacy_args=ak
2020-03-29 16:06:28,091: DEBUG - 29897 ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:06:28,091: DEBUG - 29897 ++ declare -Ar args_array
2020-03-29 16:06:28,091: DEBUG - 29897 ++ local app
2020-03-29 16:06:28,092: DEBUG - 29898 ++ local key
2020-03-29 16:06:28,092: DEBUG - 29898 ++ ynh_handle_getopts_args cachet path
2020-03-29 16:06:28,092: DEBUG - 29898 ++ set +x
2020-03-29 16:06:28,092: DEBUG - 29898 ++ echo '! Helper used in legacy mode !'
2020-03-29 16:06:28,093: DEBUG - 29898 ++ set +x
2020-03-29 16:06:28,093: DEBUG - 29899 ++ ynh_app_setting get cachet path
2020-03-29 16:06:28,093: DEBUG - 29899 ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:06:28,094: DEBUG - 29899 ++ ACTION=get
2020-03-29 16:06:28,094: DEBUG - 29899 ++ APP=cachet
2020-03-29 16:06:28,094: DEBUG - 29900 ++ KEY=path
2020-03-29 16:06:28,095: DEBUG - 29900 ++ VALUE=
2020-03-29 16:06:28,095: DEBUG - 29900 ++ python2.7 -
2020-03-29 16:06:28,296: DEBUG - 30101 ++ [[ path =~ ^(unprotected|skipped)
]]
2020-03-29 16:06:28,297: DEBUG - 30102 + path_url=/
2020-03-29 16:06:28,297: DEBUG - 30102 ++ ynh_app_setting_get cachet final_path
2020-03-29 16:06:28,298: DEBUG - 30102 ++ local legacy_args=ak
2020-03-29 16:06:28,298: DEBUG - 30102 ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:06:28,298: DEBUG - 30103 ++ declare -Ar args_array
2020-03-29 16:06:28,298: DEBUG - 30103 ++ local app
2020-03-29 16:06:28,299: DEBUG - 30103 ++ local key
2020-03-29 16:06:28,299: DEBUG - 30103 ++ ynh_handle_getopts_args cachet final_path
2020-03-29 16:06:28,300: DEBUG - 30104 ++ set +x
2020-03-29 16:06:28,300: DEBUG - 30104 ++ echo '! Helper used in legacy mode !'
2020-03-29 16:06:28,300: DEBUG - 30104 ++ set +x
2020-03-29 16:06:28,300: DEBUG - 30105 ++ ynh_app_setting get cachet final_path
2020-03-29 16:06:28,301: DEBUG - 30106 ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:06:28,301: DEBUG - 30106 ++ ACTION=get
2020-03-29 16:06:28,301: DEBUG - 30106 ++ APP=cachet
2020-03-29 16:06:28,302: DEBUG - 30107 ++ KEY=final_path
2020-03-29 16:06:28,302: DEBUG - 30107 ++ VALUE=
2020-03-29 16:06:28,302: DEBUG - 30107 ++ python2.7 -
2020-03-29 16:06:28,503: DEBUG - 30308 ++ [[ final_path =~ ^(unprotected|skipped)
]]
2020-03-29 16:06:28,504: DEBUG - 30309 + final_path=/var/www/cachet
2020-03-29 16:06:28,504: DEBUG - 30309 ++ ynh_app_setting_get cachet db_name
2020-03-29 16:06:28,504: DEBUG - 30309 ++ local legacy_args=ak
2020-03-29 16:06:28,504: DEBUG - 30309 ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:06:28,505: DEBUG - 30310 ++ declare -Ar args_array
2020-03-29 16:06:28,505: DEBUG - 30310 ++ local app
2020-03-29 16:06:28,505: DEBUG - 30310 ++ local key
2020-03-29 16:06:28,505: DEBUG - 30310 ++ ynh_handle_getopts_args cachet db_name
2020-03-29 16:06:28,506: DEBUG - 30311 ++ set +x
2020-03-29 16:06:28,506: DEBUG - 30311 ++ echo '! Helper used in legacy mode !'
2020-03-29 16:06:28,506: DEBUG - 30311 ++ set +x
2020-03-29 16:06:28,607: DEBUG - 30412 ++ ynh_app_setting get cachet db_name
2020-03-29 16:06:28,607: DEBUG - 30412 ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:06:28,608: DEBUG - 30413 ++ ACTION=get
2020-03-29 16:06:28,608: DEBUG - 30413 ++ APP=cachet
2020-03-29 16:06:28,608: DEBUG - 30413 ++ KEY=db_name
2020-03-29 16:06:28,608: DEBUG - 30414 ++ VALUE=
2020-03-29 16:06:28,609: DEBUG - 30414 ++ python2.7 -
2020-03-29 16:06:28,709: DEBUG - 30515 ++ [[ db_name =~ ^(unprotected|skipped)
]]
2020-03-29 16:06:28,710: DEBUG - 30515 + db_name=cachet
2020-03-29 16:06:28,710: DEBUG - 30516 + ynh_webpath_available statut.lesamarien.fr /
2020-03-29 16:06:28,710: DEBUG - 30516 + local legacy_args=dp
2020-03-29 16:06:28,710: DEBUG - 30516 + args_array=([d]=domain= [p]=path_url=)
2020-03-29 16:06:28,710: DEBUG - 30516 + declare -Ar args_array
2020-03-29 16:06:28,711: DEBUG - 30516 + local domain
2020-03-29 16:06:28,711: DEBUG - 30517 + local path_url
2020-03-29 16:06:28,711: DEBUG - 30517 + ynh_handle_getopts_args statut.lesamarien.fr /
2020-03-29 16:06:28,711: DEBUG - 30517 + set +x
2020-03-29 16:06:28,812: DEBUG - 30618 + echo '! Helper used in legacy mode !'
2020-03-29 16:06:28,812: DEBUG - 30618 + set +x
2020-03-29 16:06:28,813: DEBUG - 30618 + sudo yunohost domain url-available statut.lesamarien.fr /
2020-03-29 16:06:29,415: DEBUG - 31220 False
2020-03-29 16:06:29,415: DEBUG - 31221 + test '!' -d /var/www/cachet
2020-03-29 16:06:29,415: DEBUG - 31221 + ynh_restore_file /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:06:29,416: DEBUG - 31221 + local legacy_args=odm
2020-03-29 16:06:29,416: DEBUG - 31222 + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory)
2020-03-29 16:06:29,416: DEBUG - 31222 + declare -Ar args_array
2020-03-29 16:06:29,416: DEBUG - 31222 + local origin_path
2020-03-29 16:06:29,416: DEBUG - 31222 + local archive_path
2020-03-29 16:06:29,417: DEBUG - 31223 + local dest_path
2020-03-29 16:06:29,417: DEBUG - 31223 + local not_mandatory
2020-03-29 16:06:29,417: DEBUG - 31223 + ynh_handle_getopts_args /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:06:29,417: DEBUG - 31223 + set +x
2020-03-29 16:06:29,418: DEBUG - 31224 + echo '! Helper used in legacy mode !'
2020-03-29 16:06:29,418: DEBUG - 31224 + set +x
2020-03-29 16:06:29,418: DEBUG - 31224 + local origin_path=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:06:29,418: DEBUG - 31224 + local archive_path=/home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:06:29,418: DEBUG - 31224 + local dest_path=/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:06:29,419: DEBUG - 31225 + local not_mandatory=0
2020-03-29 16:06:29,419: DEBUG - 31225 + '[' '!' -d /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf ']'
2020-03-29 16:06:29,419: DEBUG - 31226 + '[' '!' -f /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf ']'
2020-03-29 16:06:29,419: DEBUG - 31226 + [[ -e /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf ]]
2020-03-29 16:06:29,419: DEBUG - 31226 ++ dirname /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:06:29,420: DEBUG - 31226 + mkdir -p /etc/nginx/conf.d/statut.lesamarien.fr.d
2020-03-29 16:06:29,420: DEBUG - 31227 + mountpoint -q /home/yunohost.backup/tmp/cachet-pre-upgrade1
2020-03-29 16:06:29,420: DEBUG - 31227 + mv /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf /etc/nginx/conf.d/statut.lesamarien.fr.d/cachet.conf
2020-03-29 16:06:29,420: DEBUG - 31227 + ynh_restore_file /var/www/cachet
2020-03-29 16:06:29,421: DEBUG - 31227 + local legacy_args=odm
2020-03-29 16:06:29,421: DEBUG - 31228 + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory)
2020-03-29 16:06:29,421: DEBUG - 31228 + declare -Ar args_array
2020-03-29 16:06:29,421: DEBUG - 31228 + local origin_path
2020-03-29 16:06:29,421: DEBUG - 31228 + local archive_path
2020-03-29 16:06:29,422: DEBUG - 31229 + local dest_path
2020-03-29 16:06:29,456: DEBUG - 31229 + local not_mandatory
2020-03-29 16:06:29,456: DEBUG - 31229 + ynh_handle_getopts_args /var/www/cachet
2020-03-29 16:06:29,457: DEBUG - 31229 + set +x
2020-03-29 16:06:29,557: DEBUG - 31330 + echo '! Helper used in legacy mode !'
2020-03-29 16:06:29,632: DEBUG - 31331 + set +x
2020-03-29 16:06:29,633: DEBUG - 31331 + local origin_path=/var/www/cachet
2020-03-29 16:06:29,633: DEBUG - 31331 + local archive_path=/home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/var/www/cachet
2020-03-29 16:06:29,634: DEBUG - 31331 + local dest_path=/var/www/cachet
2020-03-29 16:06:29,634: DEBUG - 31332 + local not_mandatory=0
2020-03-29 16:06:29,634: DEBUG - 31332 + '[' '!' -d /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/var/www/cachet ']'
2020-03-29 16:06:29,635: DEBUG - 31332 + [[ -e /var/www/cachet ]]
2020-03-29 16:06:29,635: DEBUG - 31332 ++ dirname /var/www/cachet
2020-03-29 16:06:29,635: DEBUG - 31333 + mkdir -p /var/www
2020-03-29 16:06:29,636: DEBUG - 31333 + mountpoint -q /home/yunohost.backup/tmp/cachet-pre-upgrade1
2020-03-29 16:06:29,636: DEBUG - 31333 + mv /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/var/www/cachet /var/www/cachet
2020-03-29 16:06:29,637: DEBUG - 31333 ++ ynh_app_setting_get cachet mysqlpwd
2020-03-29 16:06:29,637: DEBUG - 31334 ++ local legacy_args=ak
2020-03-29 16:06:29,637: DEBUG - 31334 ++ args_array=([a]=app= [k]=key=)
2020-03-29 16:06:29,637: DEBUG - 31334 ++ declare -Ar args_array
2020-03-29 16:06:29,638: DEBUG - 31334 ++ local app
2020-03-29 16:06:29,638: DEBUG - 31335 ++ local key
2020-03-29 16:06:29,638: DEBUG - 31335 ++ ynh_handle_getopts_args cachet mysqlpwd
2020-03-29 16:06:29,638: DEBUG - 31335 ++ set +x
2020-03-29 16:06:29,639: DEBUG - 31335 ++ echo '! Helper used in legacy mode !'
2020-03-29 16:06:29,639: DEBUG - 31336 ++ set +x
2020-03-29 16:06:29,639: DEBUG - 31336 ++ ynh_app_setting get cachet mysqlpwd
2020-03-29 16:06:29,640: DEBUG - 31336 ++ [[ get == \d\e\l\e\t\e ]]
2020-03-29 16:06:29,640: DEBUG - 31336 ++ ACTION=get
2020-03-29 16:06:29,640: DEBUG - 31337 ++ APP=cachet
2020-03-29 16:06:29,640: DEBUG - 31337 ++ KEY=mysqlpwd
2020-03-29 16:06:29,641: DEBUG - 31337 ++ VALUE=
2020-03-29 16:06:29,641: DEBUG - 31337 ++ python2.7 -
2020-03-29 16:06:29,741: DEBUG - 31538 ++ [[ mysqlpwd =~ ^(unprotected|skipped)
]]
2020-03-29 16:06:29,742: DEBUG - 31555 + db_pwd=
*********
2020-03-29 16:06:29,742: DEBUG - 31556 + ynh_mysql_setup_db cachet cachet **********
2020-03-29 16:06:29,742: DEBUG - 31556 + local legacy_args=unp
2020-03-29 16:06:29,742: DEBUG - 31556 + args_array=([u]=db_user= [n]=db_name= [p]=db_pwd=)
2020-03-29 16:06:29,743: DEBUG - 31556 + declare -Ar args_array
2020-03-29 16:06:29,743: DEBUG - 31557 + local db_user
2020-03-29 16:06:29,743: DEBUG - 31557 + local db_name
2020-03-29 16:06:29,743: DEBUG - 31557 + db_pwd=
2020-03-29 16:06:29,743: DEBUG - 31557 + ynh_handle_getopts_args cachet cachet **********
2020-03-29 16:06:29,744: DEBUG - 31558 + set +x
2020-03-29 16:06:29,744: DEBUG - 31558 + echo '! Helper used in legacy mode !'
2020-03-29 16:06:29,744: DEBUG - 31558 + set +x
2020-03-29 16:06:29,744: DEBUG - 31558 ++ ynh_string_random
2020-03-29 16:06:29,744: DEBUG - 31559 ++ local legacy_args=l
2020-03-29 16:06:29,745: DEBUG - 31559 ++ args_array=([l]=length=)
2020-03-29 16:06:29,745: DEBUG - 31559 ++ declare -Ar args_array
2020-03-29 16:06:29,745: DEBUG - 31559 ++ local length
2020-03-29 16:06:29,745: DEBUG - 31560 ++ ynh_handle_getopts_args
2020-03-29 16:06:29,745: DEBUG - 31560 ++ set +x
2020-03-29 16:06:29,746: DEBUG - 31560 ++ length=24
2020-03-29 16:06:29,746: DEBUG - 31560 ++ sed -n 's/(.{24})./\1/p'
2020-03-29 16:06:29,746: DEBUG - 31560 ++ tr -c -d A-Za-z0-9
2020-03-29 16:06:29,746: DEBUG - 31561 ++ dd if=/dev/urandom bs=1 count=1000
2020-03-29 16:06:29,747: DEBUG - 31561 + local new_db_pwd=
*********
2020-03-29 16:06:29,747: DEBUG - 31561 + db_pwd=**********
2020-03-29 16:06:29,747: DEBUG - 31561 + ynh_mysql_create_db cachet cachet **********
2020-03-29 16:06:29,747: DEBUG - 31562 + local db=cachet
2020-03-29 16:06:29,747: DEBUG - 31562 + local 'sql=CREATE DATABASE cachet;'
2020-03-29 16:06:29,748: DEBUG - 31562 + [[ 3 -gt 1 ]]
2020-03-29 16:06:29,748: DEBUG - 31562 + sql+=' GRANT ALL PRIVILEGES ON cachet.* TO '''cachet'''@'''localhost''''
2020-03-29 16:06:29,748: DEBUG - 31563 + [[ -n ********** ]]
2020-03-29 16:06:29,748: DEBUG - 31563 + sql+=' IDENTIFIED BY '''''''
2020-03-29 16:06:29,748: DEBUG - 31563 + sql+=' WITH GRANT OPTION;'
2020-03-29 16:06:29,749: DEBUG - 31563 + ynh_mysql_execute_as_root '--sql=CREATE DATABASE cachet; GRANT ALL PRIVILEGES ON cachet.
TO '''cachet'''@'''localhost''' IDENTIFIED BY '''
''' WITH GRANT OPTION;'
2020-03-29 16:06:29,749: DEBUG - 31564 + local legacy_args=sd
2020-03-29 16:06:29,749: DEBUG - 31565 + args_array=([s]=sql= [d]=database=)
2020-03-29 16:06:29,749: DEBUG - 31565 + declare -Ar args_array
2020-03-29 16:06:29,749: DEBUG - 31565 + local sql
2020-03-29 16:06:29,750: DEBUG - 31565 + local database
2020-03-29 16:06:29,750: DEBUG - 31566 + ynh_handle_getopts_args '--sql=CREATE DATABASE cachet; GRANT ALL PRIVILEGES ON cachet.
TO '''cachet'''@'''localhost''' IDENTIFIED BY '''''' WITH GRANT OPTION;'
2020-03-29 16:06:29,750: DEBUG - 31566 + set +x
2020-03-29 16:06:29,750: DEBUG - 31566 + database=
2020-03-29 16:06:29,750: DEBUG - 31566 ++ sudo cat /etc/yunohost/mysql
2020-03-29 16:06:29,751: DEBUG - 31567 + ynh_mysql_connect_as --user=root --password=
--database=
2020-03-29 16:06:29,751: DEBUG - 31567 + local legacy_args=upd
2020-03-29 16:06:29,751: DEBUG - 31567 + args_array=([u]=user= [p]=password= [d]=database=)
2020-03-29 16:06:29,751: DEBUG - 31568 + declare -Ar args_array
2020-03-29 16:06:29,752: DEBUG - 31568 + local user
2020-03-29 16:06:29,752: DEBUG - 31568 + local password
2020-03-29 16:06:29,752: DEBUG - 31568 + local database
2020-03-29 16:06:29,752: DEBUG - 31568 + ynh_handle_getopts_args --user=root --password=********** --database=
2020-03-29 16:06:29,752: DEBUG - 31569 + set +x
2020-03-29 16:06:29,853: DEBUG - 31669 + database=
2020-03-29 16:06:29,854: DEBUG - 31670 + mysql -u root --password=********** -B ''
2020-03-29 16:06:29,854: DEBUG - 31670 + ynh_app_setting_set --app=cachet --key=mysqlpwd --value=**********
2020-03-29 16:06:29,854: DEBUG - 31670 + local legacy_args=akv
2020-03-29 16:06:29,855: DEBUG - 31671 + args_array=([a]=app= [k]=key= [v]=value=)
2020-03-29 16:06:29,855: DEBUG - 31671 + declare -Ar args_array
2020-03-29 16:06:29,855: DEBUG - 31671 + local app
2020-03-29 16:06:29,855: DEBUG - 31671 + local key
2020-03-29 16:06:29,856: DEBUG - 31672 + local value
2020-03-29 16:06:29,856: DEBUG - 31672 + ynh_handle_getopts_args --app=cachet --key=mysqlpwd --value=**********
2020-03-29 16:06:29,856: DEBUG - 31672 + set +x
2020-03-29 16:06:29,857: DEBUG - 31673 + ynh_app_setting set cachet mysqlpwd **********
2020-03-29 16:06:29,857: DEBUG - 31673 + [[ set == \d\e\l\e\t\e ]]
2020-03-29 16:06:29,857: DEBUG - 31673 + ACTION=set
2020-03-29 16:06:29,857: DEBUG - 31673 + APP=cachet
2020-03-29 16:06:29,858: DEBUG - 31674 + KEY=mysqlpwd
2020-03-29 16:06:29,858: DEBUG - 31674 + VALUE=**********
2020-03-29 16:06:29,858: DEBUG - 31674 + python2.7 -
2020-03-29 16:06:30,059: DEBUG - 31875 + [[ mysqlpwd =~ ^(unprotected|skipped)_ ]]
2020-03-29 16:06:30,059: DEBUG - 31893 + ynh_mysql_connect_as cachet ********** cachet
2020-03-29 16:06:30,060: DEBUG - 31894 + local legacy_args=upd
2020-03-29 16:06:30,060: DEBUG - 31894 + args_array=([u]=user= [p]=password= [d]=database=)
2020-03-29 16:06:30,160: DEBUG - 31894 + declare -Ar args_array
2020-03-29 16:06:30,161: DEBUG - 31895 + local user
2020-03-29 16:06:30,161: DEBUG - 31895 + local password
2020-03-29 16:06:30,161: DEBUG - 31895 + local database
2020-03-29 16:06:30,162: DEBUG - 31895 + ynh_handle_getopts_args cachet ********** cachet
2020-03-29 16:06:30,162: DEBUG - 31896 + set +x
2020-03-29 16:06:30,162: DEBUG - 31896 + echo '! Helper used in legacy mode !'
2020-03-29 16:06:30,162: DEBUG - 31896 + set +x
2020-03-29 16:06:30,162: DEBUG - 31896 + database=cachet
2020-03-29 16:06:30,163: DEBUG - 31897 + mysql -u cachet --password=********** -B cachet
2020-03-29 16:07:38,657: DEBUG - 100390 + ynh_system_user_create cachet
2020-03-29 16:07:38,658: DEBUG - 100390 + local legacy_args=uhs
2020-03-29 16:07:38,658: DEBUG - 100391 + args_array=([u]=username= [h]=home_dir= [s]=use_shell)
2020-03-29 16:07:38,658: DEBUG - 100391 + declare -Ar args_array
2020-03-29 16:07:38,659: DEBUG - 100391 + local username
2020-03-29 16:07:38,659: DEBUG - 100391 + local home_dir
2020-03-29 16:07:38,659: DEBUG - 100392 + local use_shell
2020-03-29 16:07:38,659: DEBUG - 100392 + ynh_handle_getopts_args cachet
2020-03-29 16:07:38,660: DEBUG - 100392 + set +x
2020-03-29 16:07:38,660: DEBUG - 100393 + echo '! Helper used in legacy mode !'
2020-03-29 16:07:38,660: DEBUG - 100419 + set +x
2020-03-29 16:07:38,660: DEBUG - 100419 + use_shell=0
2020-03-29 16:07:38,661: DEBUG - 100420 + home_dir=
2020-03-29 16:07:38,661: DEBUG - 100420 + ynh_system_user_exists cachet
2020-03-29 16:07:38,661: DEBUG - 100420 + local legacy_args=u
2020-03-29 16:07:38,661: DEBUG - 100420 + args_array=([u]=username=)
2020-03-29 16:07:38,662: DEBUG - 100421 + declare -Ar args_array
2020-03-29 16:07:38,662: DEBUG - 100421 + local username
2020-03-29 16:07:38,662: DEBUG - 100421 + ynh_handle_getopts_args cachet
2020-03-29 16:07:38,662: DEBUG - 100422 + set +x
2020-03-29 16:07:38,662: DEBUG - 100422 + echo '! Helper used in legacy mode !'
2020-03-29 16:07:38,663: DEBUG - 100422 + set +x
2020-03-29 16:07:38,663: DEBUG - 100422 + getent passwd cachet
2020-03-29 16:07:38,663: DEBUG - 100423 + '[' -n '' ']'
2020-03-29 16:07:38,663: DEBUG - 100423 + local user_home_dir=--no-create-home
2020-03-29 16:07:38,664: DEBUG - 100423 + '[' 0 -eq 1 ']'
2020-03-29 16:07:38,664: DEBUG - 100423 + local 'shell=--shell /usr/sbin/nologin'
2020-03-29 16:07:38,664: DEBUG - 100424 + useradd --no-create-home --system --user-group cachet --shell /usr/sbin/nologin
2020-03-29 16:07:42,172: DEBUG - 103933 + chown -R root: /var/www/cachet
2020-03-29 16:07:42,582: DEBUG - 104334 + chown -R cachet: /var/www/cachet/.env /var/www/cachet/storage/ /var/www/cachet/bootstrap/
2020-03-29 16:07:42,583: DEBUG - 104335 + ynh_restore_file /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:07:42,583: DEBUG - 104335 + local legacy_args=odm
2020-03-29 16:07:42,583: DEBUG - 104335 + args_array=([o]=origin_path= [d]=dest_path= [m]=not_mandatory)
2020-03-29 16:07:42,583: DEBUG - 104336 + declare -Ar args_array
2020-03-29 16:07:42,584: DEBUG - 104336 + local origin_path
2020-03-29 16:07:42,584: DEBUG - 104336 + local archive_path
2020-03-29 16:07:42,584: DEBUG - 104336 + local dest_path
2020-03-29 16:07:42,584: DEBUG - 104337 + local not_mandatory
2020-03-29 16:07:42,585: DEBUG - 104337 + ynh_handle_getopts_args /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:07:42,585: DEBUG - 104337 + set +x
2020-03-29 16:07:42,585: DEBUG - 104337 + echo '! Helper used in legacy mode !'
2020-03-29 16:07:42,585: DEBUG - 104338 + set +x
2020-03-29 16:07:42,585: DEBUG - 104338 + local origin_path=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:07:42,586: DEBUG - 104338 + local archive_path=/home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:07:42,586: DEBUG - 104339 + local dest_path=/etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:07:42,586: DEBUG - 104339 + local not_mandatory=0
2020-03-29 16:07:42,586: DEBUG - 104339 + '[' '!' -d /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/php/7.0/fpm/pool.d/cachet.conf ']'
2020-03-29 16:07:42,587: DEBUG - 104339 + '[' '!' -f /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/php/7.0/fpm/pool.d/cachet.conf ']'
2020-03-29 16:07:42,587: DEBUG - 104340 + [[ -e /etc/php/7.0/fpm/pool.d/cachet.conf ]]
2020-03-29 16:07:42,587: DEBUG - 104340 ++ dirname /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:07:42,587: DEBUG - 104340 + mkdir -p /etc/php/7.0/fpm/pool.d
2020-03-29 16:07:42,587: DEBUG - 104341 + mountpoint -q /home/yunohost.backup/tmp/cachet-pre-upgrade1
2020-03-29 16:07:42,588: DEBUG - 104343 + mv /home/yunohost.backup/tmp/cachet-pre-upgrade1/apps/cachet/backup/etc/php/7.0/fpm/pool.d/cachet.conf /etc/php/7.0/fpm/pool.d/cachet.conf
2020-03-29 16:07:42,588: DEBUG - 104344 + systemctl reload php7.0-fpm
2020-03-29 16:07:42,692: DEBUG - 104444 + systemctl reload nginx
2020-03-29 16:07:43,294: DEBUG - 105047 + ynh_exit_properly
2020-03-29 16:07:43,294: DEBUG - 105047 + local exit_code=0
2020-03-29 16:07:43,294: DEBUG - 105047 + '[' 0 -eq 0 ']'
2020-03-29 16:07:43,295: DEBUG - 105047 + exit 0
2020-03-29 16:07:43,295: DEBUG - 105069 To view the log of the operation 'Restore 'cachet' from a backup archive', use the command 'yunohost log display 20200329-140624-backup_restore_app-cachet'
2020-03-29 16:07:43,295: DEBUG - 105084 The permission database has been resynchronized
2020-03-29 16:07:45,703: DEBUG - 107522 SSOwat configuration generated
2020-03-29 16:07:45,804: DEBUG - 107543 Restored
2020-03-29 16:07:45,804: WARNING - The app was restored to the way it was before the failed upgrade.
2020-03-29 16:07:45,805: DEBUG - 107544 action [14067.1] executed in 107.136s
2020-03-29 16:07:45,805: DEBUG - apps:
2020-03-29 16:07:45,805: DEBUG - cachet: Success
2020-03-29 16:07:45,805: DEBUG - system:
2020-03-29 16:07:45,806: DEBUG - + ynh_die '--message=The app was restored to the way it was before the failed upgrade.'
2020-03-29 16:07:45,806: DEBUG - + local legacy_args=mc
2020-03-29 16:07:45,806: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2020-03-29 16:07:45,806: DEBUG - + declare -Ar args_array
2020-03-29 16:07:45,806: DEBUG - + local message
2020-03-29 16:07:45,807: DEBUG - + local ret_code
2020-03-29 16:07:45,807: DEBUG - + ynh_handle_getopts_args '--message=The app was restored to the way it was before the failed upgrade.'
2020-03-29 16:07:45,807: DEBUG - + set +x
2020-03-29 16:07:45,807: DEBUG - + echo 'The app was restored to the way it was before the failed upgrade.'
2020-03-29 16:07:45,807: DEBUG - + exit 1
2020-03-29 16:07:45,921: ERROR - Impossible de mettre à jour cachet : Une erreur s'est produite durant l’exécution du script de mise à niveau de l'application
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 301, in wrapper
curr_v = params[k]
KeyError: 'app'

Voici également ma version yunohost :

yunohost : 3.7.0.12 (stable)
yunohost-admin : 3.7.0.3 (stable)
moulinette : 3.7.0.2 (stable)
ssowat : 3.7.0.3 (stable)

Je ne comprends pas d'où vient le problème.

Merci pour votre aide...

Upgrade from v2.4.0 fails on ynh 11.2.4 - Composer error

Hi dear maintainers.
No emergency, but since I found this bug, I share it with you.

Not much to say : I start the upgrade from CLI, and it fails gracefully, restoring last version just backuped.

Context

  • Hardware: VPS bought online.

  • YunoHost version: 11.2.4

  • I have access to my server: *Through SSH | through the 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: latest version on stable/main branch (no tweaking)

  • If upgrading, current package version: v2.4.0~ynh6

Logs

There you go : https://paste.yunohost.org/raw/unudapipij

the key part seems to be :

 > @php artisan package:discover
2023-09-08 16:11:12,071: DEBUG - 
2023-09-08 16:11:12,089: DEBUG - In ProviderRepository.php line 208:
2023-09-08 16:11:12,089: DEBUG - 
2023-09-08 16:11:12,089: DEBUG -   Class 'AltThree\Badger\BadgerServiceProvider' not found
2023-09-08 16:11:12,089: DEBUG - 
2023-09-08 16:11:12,090: DEBUG - 
2023-09-08 16:11:12,097: DEBUG - Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

Thanks for looking into it !

Upgrade fails

Upgrade fails on a debian VPS, with cachet installed on a dedicated subdomain, and Yunohost fuly upgraded (3.5.2.2). The "php-reload" step seems to time-out, and thus a part of the script is killed by the system.
See logs :https://paste.yunohost.org/raw/kayeguceyu

Thanks in advance for any input to this issue :)

Warning on backup since Yunohost 4.2

Since I upgraded Yunohost to version 4.2, I have a warning when doing a backup of cachet:

Warning: /usr/share/yunohost/helpers.d/php: line 561: YNH_DEFAULT_COMPOSER_VERSION: readonly variable

Cachet version: 2.4.0-dev-7897744356bf81a2bcbc734f132eb5daafa889611c9c72fb2501afb3e9007cac~ynh2

Validate quality level 4 compliance

LDAP and HTTP authentication integration is not available, thus not applicable to this package.
Yet it is considered in the upstream app (see here) and may become available in the future.

Access is not created at installation

On a fresh install (debian 9, Ynh 3.0.0.1), installation of Cachet on a dedicated subdomain, via the wabdmin interface, is successful. However, no access to the dashboard is created for the selected user.

I managed to open an access following this process. The user was present but password was neither the Ynh'user password or the one provided at installation.

Do I miss something ? What log may be of use here ?

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.