YunoHost-Apps / monica_ynh

Monica package for YunoHost
https://www.monicahq.com/
GNU Affero General Public License v3.0
18 stars 13 forks source link

Upgrade to 2.19.1, fixed nginx config, Option to choose DAV,2FA and Signups #44

Closed anmol26s closed 3 years ago

anmol26s commented 4 years ago

Problem

Solution

PR Status

Package_check results


Build Status

anmol26s commented 4 years ago

Can someone put this CI to check if its passing?

ericgaspar commented 4 years ago

I made some changes to the Monica scripts:

Some possible improvements

Problems

The CI keeps failling due to disk space :/

anmol26s commented 4 years ago

@voarsh2 Have you installed the app on sub path? @ericgaspar has mentioned that app in not getting installed on the sub-path. Try on full domain till it gets fixed.

voarsh2 commented 3 years ago

Have you installed the app on sub path? @ericgaspar has mentioned that app in not getting installed on the sub-path. Try on full domain till it gets fixed.

Hi again. I gave it another run using:

yunohost app install --debug https://github.com/YunoHost-Apps/monica_ynh/tree/testing

It was on a domain root this time.

The error:

Click to see loooong log ``` 41094 DEBUG + KEY=db_name 41094 DEBUG + VALUE=monica 41094 DEBUG + python2.7 - 41195 DEBUG + ] 41195 DEBUG + ynh_mysql_setup_db --db_user=monica --db_name=monica 41195 DEBUG + local legacy_args=unp 41196 DEBUG + args_array=(=db_user= =db_name= =db_pwd=) 41196 DEBUG + local -A args_array 41196 DEBUG + local db_user 41196 DEBUG + local db_name 41196 DEBUG + db_pwd= 41197 DEBUG + ynh_handle_getopts_args --db_user=monica --db_name=monica 41197 DEBUG + set +o xtrace 41197 DEBUG ++ ynh_string_random 41198 DEBUG ++ local legacy_args=l 41198 DEBUG ++ args_array=(=length=) 41198 DEBUG ++ local -A args_array 41198 DEBUG ++ local length 41199 DEBUG ++ ynh_handle_getopts_args 41199 DEBUG ++ set +o xtrace 41199 DEBUG ++ length=24 41199 DEBUG ++ dd if=/dev/urandom bs=1 count=1000 41199 DEBUG ++ tr --complement --delete A-Za-z0-9 41200 DEBUG ++ sed --quiet 's/\(.\{24\}\).*/\1/p' 41200 DEBUG + local new_db_pwd=kGqqsq28rkqW8BpCsyb1TjFH 41200 DEBUG + db_pwd=kGqqsq28rkqW8BpCsyb1TjFH 41200 DEBUG + ynh_mysql_create_db monica monica kGqqsq28rkqW8BpCsyb1TjFH 41201 DEBUG + local db=monica 41201 DEBUG + local 'sql=CREATE DATABASE monica;' 41201 DEBUG + ] 41201 DEBUG + sql+=' GRANT ALL PRIVILEGES ON monica.* TO '\''monica'\''@'\''localhost'\''' 41201 DEBUG + ] 41202 DEBUG + sql+=' IDENTIFIED BY '\''kGqqsq28rkqW8BpCsyb1TjFH'\''' 41202 DEBUG + sql+=' WITH GRANT OPTION;' 41202 DEBUG + ynh_mysql_execute_as_root '--sql=CREATE DATABASE monica; GRANT ALL PRIVILEGES ON monica.* TO '\''monica'\''@'\''localhost'\'' IDENTIFIED BY '\''kGqqsq28rkqW8BpCsyb1TjFH'\'' WITH GRANT OPTION;' 41202 DEBUG + local legacy_args=sd 41203 DEBUG + args_array=(=sql= =database=) 41203 DEBUG + local -A args_array 41203 DEBUG + local sql 41203 DEBUG + local database 41204 DEBUG + ynh_handle_getopts_args '--sql=CREATE DATABASE monica; GRANT ALL PRIVILEGES ON monica.* TO '\''monica'\''@'\''localhost'\'' IDENTIFIED BY '\''kGqqsq28rkqW8BpCsyb1TjFH'\'' WITH GRANT OPTION;' 41204 DEBUG + set +o xtrace 41204 DEBUG + database= 41204 DEBUG + '' 41205 DEBUG ++ cat /etc/yunohost/mysql 41205 DEBUG + ynh_mysql_connect_as --user=root --password=TEtjWTbazn 41205 DEBUG + local legacy_args=upd 41206 DEBUG + args_array=(=user= =password= =database=) 41206 DEBUG + local -A args_array 41206 DEBUG + local user 41206 DEBUG + local password 41206 DEBUG + local database 41207 DEBUG + ynh_handle_getopts_args --user=root --password=TEtjWTbazn 41207 DEBUG + set +o xtrace 41307 DEBUG + database= 41308 DEBUG + mysql --user=root --password=TEtjWTbazn --batch '' 41308 DEBUG + ynh_app_setting_set --app=monica --key=mysqlpwd --value=kGqqsq28rkqW8BpCsyb1TjFH 41308 DEBUG + local legacy_args=akv 41308 DEBUG + args_array=(=app= =key= =value=) 41309 DEBUG + local -A args_array 41309 DEBUG + local app 41309 DEBUG + local key 41309 DEBUG + local value 41309 DEBUG + ynh_handle_getopts_args --app=monica --key=mysqlpwd --value=kGqqsq28rkqW8BpCsyb1TjFH 41310 DEBUG + set +o xtrace 41310 DEBUG + ynh_app_setting set monica mysqlpwd kGqqsq28rkqW8BpCsyb1TjFH 41310 DEBUG + ] 41310 DEBUG + ACTION=set 41311 DEBUG + APP=monica 41311 DEBUG + KEY=mysqlpwd 41311 DEBUG + VALUE=kGqqsq28rkqW8BpCsyb1TjFH 41311 DEBUG + python2.7 - 41412 DEBUG + ] 41412 DEBUG + ynh_script_progression '--message=Setting up source files...' 41412 DEBUG + set +o xtrace 41513 DEBUG + set +o xtrace 41513 INFO > Setting up source files... 41513 DEBUG + echo '! Helper used in legacy mode !' 41513 DEBUG + set +x 41514 DEBUG + echo ' > Setting up source files...' 41514 DEBUG + set -o xtrace 41514 DEBUG + ynh_app_setting_set --app=monica --key=final_path --value=/var/www/monica 41514 DEBUG + local legacy_args=akv 41515 DEBUG + args_array=(=app= =key= =value=) 41515 DEBUG + local -A args_array 41515 DEBUG + local app 41515 DEBUG + local key 41516 DEBUG + local value 41516 DEBUG + ynh_handle_getopts_args --app=monica --key=final_path --value=/var/www/monica 41516 DEBUG + set +o xtrace 41516 DEBUG + ynh_app_setting set monica final_path /var/www/monica 41516 DEBUG + ] 41517 DEBUG + ACTION=set 41517 DEBUG + APP=monica 41517 DEBUG + KEY=final_path 41517 DEBUG + VALUE=/var/www/monica 41518 DEBUG + python2.7 - 41618 DEBUG + ] 41618 DEBUG + ynh_setup_source --dest_dir=/var/www/monica 41619 DEBUG + local legacy_args=ds 41619 DEBUG + args_array=(=dest_dir= =source_id=) 41619 DEBUG + local -A args_array 41619 DEBUG + local dest_dir 41620 DEBUG + local source_id 41620 DEBUG + ynh_handle_getopts_args --dest_dir=/var/www/monica 41620 DEBUG + set +o xtrace 41620 DEBUG + source_id=app 41620 DEBUG + local src_file_path=/var/cache/yunohost/from_file/monica_ynh-testing/scripts/../conf/app.src 41621 DEBUG + '' 41621 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/from_file/monica_ynh-testing/scripts/../conf/app.src 41621 DEBUG ++ cut --delimiter== --fields=2- 41621 DEBUG + local src_url=https://github.com/monicahq/monica/archive/v2.17.0.zip 41622 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/monica_ynh-testing/scripts/../conf/app.src 41622 DEBUG ++ cut --delimiter== --fields=2- 41622 DEBUG + local src_sum=834c91b901f84e4a14a7e4697c0b6226b9b0768ff0b0ed761029c4e9d765262c 41622 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/monica_ynh-testing/scripts/../conf/app.src 41623 DEBUG ++ cut --delimiter== --fields=2- 41623 DEBUG + local src_sumprg=sha256sum 41623 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/monica_ynh-testing/scripts/../conf/app.src 41623 DEBUG ++ cut --delimiter== --fields=2- 41624 DEBUG + local src_format=zip 41624 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/monica_ynh-testing/scripts/../conf/app.src 41624 DEBUG ++ cut --delimiter== --fields=2- 41624 DEBUG + local src_extract= 41624 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/monica_ynh-testing/scripts/../conf/app.src 41625 DEBUG ++ cut --delimiter== --fields=2- 41625 DEBUG + local src_in_subdir=true 41625 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/monica_ynh-testing/scripts/../conf/app.src 41625 DEBUG ++ cut --delimiter== --fields=2- 41626 DEBUG + local src_filename=v2.17.0.zip 41626 DEBUG + src_sumprg=sha256sum 41626 DEBUG + src_in_subdir=true 41626 DEBUG + src_format=zip 41626 DEBUG ++ echo zip 41627 DEBUG ++ tr '' '' 41627 DEBUG + src_format=zip 41627 DEBUG + src_extract=true 41627 DEBUG + '' 41628 DEBUG + local local_src=/opt/yunohost-apps-src/monica/v2.17.0.zip 41628 DEBUG + test -e /opt/yunohost-apps-src/monica/v2.17.0.zip 41628 DEBUG + local out 41628 DEBUG ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=v2.17.0.zip https://github.com/monicahq/monica/archive/v2.17.0.zip 44437 DEBUG + out='2020-11-19 00:32:36 URL:https://codeload.github.com/monicahq/monica/zip/v2.17.0 -> "v2.17.0.zip" ' 44437 DEBUG + echo '834c91b901f84e4a14a7e4697c0b6226b9b0768ff0b0ed761029c4e9d765262c v2.17.0.zip' 44438 DEBUG + sha256sum --check --status 44538 DEBUG + mkdir --parents /var/www/monica 44538 DEBUG + true 44539 DEBUG + '' 44539 DEBUG + true 44539 DEBUG ++ mktemp --directory 44539 DEBUG + local tmp_dir=/tmp/tmp.S6zYQzVX7P 44540 DEBUG + unzip -quo v2.17.0.zip -d /tmp/tmp.S6zYQzVX7P 44840 DEBUG + cp --archive /tmp/tmp.S6zYQzVX7P/monica-2.17.0/. /var/www/monica 44941 DEBUG + ynh_secure_remove --file=/tmp/tmp.S6zYQzVX7P 44941 DEBUG + local legacy_args=f 44941 DEBUG + args_array=(=file=) 44942 DEBUG + local -A args_array 44942 DEBUG + local file 44942 DEBUG + ynh_handle_getopts_args --file=/tmp/tmp.S6zYQzVX7P 44942 DEBUG + set +o xtrace 44943 DEBUG + local 'forbidden_path= /var/www /home/yunohost.app' 44943 DEBUG + '' 44943 DEBUG + ] 44943 DEBUG + ] 44944 DEBUG + ]+$ ]] 44944 DEBUG + ] 44944 DEBUG + '' 44944 DEBUG + rm --recursive /tmp/tmp.S6zYQzVX7P 45045 DEBUG ++ find /var/cache/yunohost/from_file/monica_ynh-testing/scripts/../sources/patches/ -type f -name 'app-*.patch' 45045 DEBUG ++ wc --lines 45045 DEBUG + (( 0 > 0 )) 45046 DEBUG + test -e /var/cache/yunohost/from_file/monica_ynh-testing/scripts/../sources/extra_files/app 45046 DEBUG + ynh_script_progression '--message=Configuring nginx web server...' 45046 DEBUG + set +o xtrace 45046 DEBUG + set +o xtrace 45046 DEBUG + echo '! Helper used in legacy mode !' 45047 DEBUG + set +x 45047 DEBUG + echo ' > Configuring nginx web server...' 45047 DEBUG + set -o xtrace 45047 DEBUG + ynh_add_nginx_config 45048 DEBUG + finalnginxconf=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45048 DEBUG + local others_var= 45048 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45048 DEBUG + local legacy_args=f 45049 DEBUG + args_array=(=file=) 45049 DEBUG + local -A args_array 45049 DEBUG + local file 45049 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45050 DEBUG + set +o xtrace 45050 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_test.capatain2.hosttweb.com.d_monica.conf 45050 DEBUG ++ ynh_app_setting_get --app=monica --key=checksum__etc_nginx_conf.d_test.capatain2.hosttweb.com.d_monica.conf 45050 DEBUG ++ local legacy_args=ak 45050 DEBUG ++ args_array=(=app= =key=) 45051 DEBUG ++ local -A args_array 45051 DEBUG ++ local app 45051 DEBUG ++ local key 45051 DEBUG ++ ynh_handle_getopts_args --app=monica --key=checksum__etc_nginx_conf.d_test.capatain2.hosttweb.com.d_monica.conf 45051 DEBUG ++ set +o xtrace 45152 DEBUG ++ ynh_app_setting get monica checksum__etc_nginx_conf.d_test.capatain2.hosttweb.com.d_monica.conf 45152 INFO > Configuring nginx web server... 45152 DEBUG ++ ] 45153 DEBUG ++ ACTION=get 45153 DEBUG ++ APP=monica 45153 DEBUG ++ KEY=checksum__etc_nginx_conf.d_test.capatain2.hosttweb.com.d_monica.conf 45153 DEBUG ++ VALUE= 45154 DEBUG ++ python2.7 - 45254 DEBUG ++ ] 45254 DEBUG + local checksum_value= 45255 DEBUG + backup_file_checksum= 45255 DEBUG + '' 45255 DEBUG + cp ../conf/nginx.conf /etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45255 DEBUG + test -n / 45256 DEBUG + local path_url_slash_less= 45256 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45256 DEBUG + local legacy_args=mrf 45256 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 45257 DEBUG + local -A args_array 45257 DEBUG + local match_string 45257 DEBUG + local replace_string 45257 DEBUG + local target_file 45257 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45258 DEBUG + set +o xtrace 45258 DEBUG + local delimit=@ 45258 DEBUG + match_string=__PATH__/ 45258 DEBUG + replace_string=/ 45259 DEBUG + sed --in-place s@__PATH__/@/@g /etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45259 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45259 DEBUG + local legacy_args=mrf 45259 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 45260 DEBUG + local -A args_array 45260 DEBUG + local match_string 45260 DEBUG + local replace_string 45260 DEBUG + local target_file 45261 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45261 DEBUG + set +o xtrace 45361 DEBUG + local delimit=@ 45362 DEBUG + match_string=__PATH__ 45362 DEBUG + replace_string=/ 45362 DEBUG + sed --in-place s@__PATH__@/@g /etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45363 DEBUG + test -n test.capatain2.hosttweb.com 45363 DEBUG + ynh_replace_string --match_string=__DOMAIN__ --replace_string=test.capatain2.hosttweb.com --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45363 DEBUG + local legacy_args=mrf 45363 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 45364 DEBUG + local -A args_array 45364 DEBUG + local match_string 45364 DEBUG + local replace_string 45364 DEBUG + local target_file 45365 DEBUG + ynh_handle_getopts_args --match_string=__DOMAIN__ --replace_string=test.capatain2.hosttweb.com --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45365 DEBUG + set +o xtrace 45365 DEBUG + local delimit=@ 45365 DEBUG + match_string=__DOMAIN__ 45366 DEBUG + replace_string=test.capatain2.hosttweb.com 45366 DEBUG + sed --in-place s@__DOMAIN__@test.capatain2.hosttweb.com@g /etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45366 DEBUG + test -n '' 45366 DEBUG + test -n monica 45367 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=monica --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45367 DEBUG + local legacy_args=mrf 45367 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 45367 DEBUG + local -A args_array 45368 DEBUG + local match_string 45368 DEBUG + local replace_string 45368 DEBUG + local target_file 45368 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=monica --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45369 DEBUG + set +o xtrace 45469 DEBUG + local delimit=@ 45469 DEBUG + match_string=__NAME__ 45470 DEBUG + replace_string=monica 45470 DEBUG + sed --in-place s@__NAME__@monica@g /etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45470 DEBUG + test -n /var/www/monica 45470 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/monica --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45470 DEBUG + local legacy_args=mrf 45471 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 45471 DEBUG + local -A args_array 45471 DEBUG + local match_string 45471 DEBUG + local replace_string 45472 DEBUG + local target_file 45472 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/var/www/monica --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45472 DEBUG + set +o xtrace 45472 DEBUG + local delimit=@ 45473 DEBUG + match_string=__FINALPATH__ 45473 DEBUG + replace_string=/var/www/monica 45473 DEBUG + sed --in-place s@__FINALPATH__@/var/www/monica@g /etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45473 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45474 DEBUG + local legacy_args=mrf 45474 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 45474 DEBUG + local -A args_array 45474 DEBUG + local match_string 45475 DEBUG + local replace_string 45475 DEBUG + local target_file 45475 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45475 DEBUG + set +o xtrace 45576 DEBUG + local delimit=@ 45576 DEBUG + match_string=__PHPVERSION__ 45576 DEBUG + replace_string=7.3 45577 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45577 DEBUG + '' 45577 DEBUG + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45577 DEBUG + local legacy_args=mrf 45578 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 45578 DEBUG + local -A args_array 45578 DEBUG + local match_string 45578 DEBUG + local replace_string 45578 DEBUG + local target_file 45579 DEBUG + ynh_handle_getopts_args '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45579 DEBUG + set +o xtrace 45579 DEBUG + local delimit=@ 45580 DEBUG + match_string='^#root_path_only' 45580 DEBUG + replace_string= 45580 DEBUG + sed --in-place 's@^#root_path_only@@g' /etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45580 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45580 DEBUG + local legacy_args=f 45581 DEBUG + args_array=(=file=) 45581 DEBUG + local -A args_array 45581 DEBUG + local file 45581 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45581 DEBUG + set +o xtrace 45582 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_test.capatain2.hosttweb.com.d_monica.conf 45582 DEBUG ++ md5sum /etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 45582 DEBUG ++ cut '--delimiter= ' --fields=1 45582 DEBUG + ynh_app_setting_set --app=monica --key=checksum__etc_nginx_conf.d_test.capatain2.hosttweb.com.d_monica.conf --value=56af0564484a9115cefeaf62e0dfc0cf 45583 DEBUG + local legacy_args=akv 45583 DEBUG + args_array=(=app= =key= =value=) 45583 DEBUG + local -A args_array 45583 DEBUG + local app 45583 DEBUG + local key 45584 DEBUG + local value 45584 DEBUG + ynh_handle_getopts_args --app=monica --key=checksum__etc_nginx_conf.d_test.capatain2.hosttweb.com.d_monica.conf --value=56af0564484a9115cefeaf62e0dfc0cf 45584 DEBUG + set +o xtrace 45685 DEBUG + ynh_app_setting set monica checksum__etc_nginx_conf.d_test.capatain2.hosttweb.com.d_monica.conf 56af0564484a9115cefeaf62e0dfc0cf 45685 DEBUG + ] 45685 DEBUG + ACTION=set 45685 DEBUG + APP=monica 45686 DEBUG + KEY=checksum__etc_nginx_conf.d_test.capatain2.hosttweb.com.d_monica.conf 45686 DEBUG + VALUE=56af0564484a9115cefeaf62e0dfc0cf 45686 DEBUG + python2.7 - 45787 DEBUG + ] 45787 DEBUG + '' 45787 DEBUG + unset backup_file_checksum 45787 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 45788 DEBUG + local legacy_args=nalpte 45788 DEBUG + args_array=(=service_name= =action= =line_match= =log_path= =timeout= =length=) 45788 DEBUG + local -A args_array 45788 DEBUG + local service_name 45789 DEBUG + local action 45789 DEBUG + local line_match 45789 DEBUG + local length 45789 DEBUG + local log_path 45790 DEBUG + local timeout 45790 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 45790 DEBUG + set +o xtrace 45890 DEBUG + service_name=nginx 45891 DEBUG + action=reload 45891 DEBUG + line_match= 45891 DEBUG + length=20 45892 DEBUG + log_path=/var/log/nginx/nginx.log 45892 DEBUG + timeout=300 45892 DEBUG + ] 45892 DEBUG + '' 45893 DEBUG + action=reload-or-restart 45893 DEBUG + systemctl reload-or-restart nginx 45893 DEBUG + ] 45893 DEBUG + ynh_script_progression '--message=Configuring system user...' 45894 DEBUG + set +o xtrace 45894 DEBUG + set +o xtrace 45894 DEBUG + echo '! Helper used in legacy mode !' 45894 DEBUG + set +x 45895 DEBUG + echo ' > Configuring system user...' 45895 DEBUG + set -o xtrace 45895 DEBUG + ynh_system_user_create --username=monica 45895 DEBUG + local legacy_args=uhs 45895 DEBUG + args_array=(=username= =home_dir= =use_shell) 45896 DEBUG + local -A args_array 45896 DEBUG + local username 45896 DEBUG + local home_dir 45896 DEBUG + local use_shell 45897 DEBUG + ynh_handle_getopts_args --username=monica 45897 DEBUG + set +o xtrace 45997 DEBUG + use_shell=0 45997 INFO > Configuring system user... 45998 DEBUG + home_dir= 45998 DEBUG + ynh_system_user_exists monica 45998 DEBUG + local legacy_args=u 45998 DEBUG + args_array=(=username=) 45999 DEBUG + local -A args_array 45999 DEBUG + local username 45999 DEBUG + ynh_handle_getopts_args monica 45999 DEBUG + set +o xtrace 45999 DEBUG + echo '! Helper used in legacy mode !' 46000 DEBUG + set +x 46000 DEBUG + getent passwd monica 46000 DEBUG + '' 46000 DEBUG + local user_home_dir=--no-create-home 46000 DEBUG + '' 46001 DEBUG + local 'shell=--shell /usr/sbin/nologin' 46001 DEBUG + useradd --no-create-home --system --user-group monica --shell /usr/sbin/nologin 46302 DEBUG + ynh_script_progression '--message=Configuring php-fpm...' 46302 DEBUG + set +o xtrace 46403 DEBUG + set +o xtrace 46403 INFO > Configuring php-fpm... 46403 DEBUG + echo '! Helper used in legacy mode !' 46404 DEBUG + set +x 46404 DEBUG + echo ' > Configuring php-fpm...' 46404 DEBUG + set -o xtrace 46404 DEBUG + ynh_add_fpm_config --usage=low --footprint=low '--package=php7.3-cli php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-intl php7.3-xml php7.3-curl php7.3-gd php7.3-gmp php7.3-redis' 46405 DEBUG + local legacy_args=vtufpd 46405 DEBUG + args_array=(=phpversion= =use_template =usage= =footprint= =package= =dedicated_service) 46405 DEBUG + local -A args_array 46405 DEBUG + local phpversion 46406 DEBUG + local use_template 46406 DEBUG + local usage 46406 DEBUG + local footprint 46406 DEBUG + local package 46406 DEBUG + local dedicated_service 46407 DEBUG + ynh_handle_getopts_args --usage=low --footprint=low '--package=php7.3-cli php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-intl php7.3-xml php7.3-curl php7.3-gd php7.3-gmp php7.3-redis' 46407 DEBUG + set +o xtrace 46507 DEBUG + package='php7.3-cli php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-intl php7.3-xml php7.3-curl php7.3-gd php7.3-gmp php7.3-redis' 46508 DEBUG + use_template=1 46508 DEBUG + usage=low 46508 DEBUG + footprint=low 46508 DEBUG + '' 46509 DEBUG + use_template=0 46509 DEBUG + dedicated_service=0 46509 DEBUG + phpversion=7.3 46509 DEBUG + '' 46510 DEBUG + '' 46510 DEBUG + ynh_add_app_dependencies '--package=php7.3-cli php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-intl php7.3-xml php7.3-curl php7.3-gd php7.3-gmp php7.3-redis' 46510 DEBUG + local legacy_args=pr 46510 DEBUG + args_array=(=package= =replace) 46511 DEBUG + local -A args_array 46511 DEBUG + local package 46511 DEBUG + local replace 46511 DEBUG + ynh_handle_getopts_args '--package=php7.3-cli php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-intl php7.3-xml php7.3-curl php7.3-gd php7.3-gmp php7.3-redis' 46511 DEBUG + set +o xtrace 46512 DEBUG + replace=0 46512 DEBUG + local current_dependencies= 46512 DEBUG + '' 46512 DEBUG + local dep_app=monica 46513 DEBUG + ynh_package_is_installed --package=monica-ynh-deps 46513 DEBUG + local legacy_args=p 46513 DEBUG + args_array=(=package=) 46513 DEBUG + local -A args_array 46513 DEBUG + local package 46514 DEBUG + ynh_handle_getopts_args --package=monica-ynh-deps 46514 DEBUG + set +o xtrace 46514 DEBUG + ynh_wait_dpkg_free 46514 DEBUG + local try 46514 DEBUG + set +o xtrace 47316 DEBUG + return 0 47317 DEBUG + dpkg-query --show '--showformat=${Status}' monica-ynh-deps 47317 DEBUG + grep --count 'ok installed' 47317 DEBUG ++ dpkg-query --show '--showformat=${Depends}' monica-ynh-deps 47317 DEBUG + current_dependencies=' ' 47318 DEBUG + current_dependencies=' ' 47318 DEBUG + ynh_install_app_dependencies ' php7.3-cli php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-intl php7.3-xml php7.3-curl php7.3-gd php7.3-gmp php7.3-redis' 47318 DEBUG + local 'dependencies= php7.3-cli php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-intl php7.3-xml php7.3-curl php7.3-gd php7.3-gmp php7.3-redis' 47318 DEBUG ++ echo ' php7.3-cli php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-intl php7.3-xml php7.3-curl php7.3-gd php7.3-gmp php7.3-redis' 47319 DEBUG ++ sed 's/\(\)\ \(\)/\1, \2/g' 47319 DEBUG + dependencies=' php7.3-cli, php7.3-json, php7.3-opcache, php7.3-mysql, php7.3-mbstring, php7.3-zip, php7.3-bcmath, php7.3-intl, php7.3-xml, php7.3-curl, php7.3-gd, php7.3-gmp, php7.3-redis' 47319 DEBUG + local 'dependencies= php7.3-cli, php7.3-json, php7.3-opcache, php7.3-mysql, php7.3-mbstring, php7.3-zip, php7.3-bcmath, php7.3-intl, php7.3-xml, php7.3-curl, php7.3-gd, php7.3-gmp, php7.3-redis' 47319 DEBUG + local manifest_path=../manifest.json 47320 DEBUG + '' 47320 DEBUG ++ grep '\"version\": ' ../manifest.json 47320 DEBUG ++ cut '--delimiter="' --fields=4 47320 DEBUG + local version=2.17.0~ynh2 47321 DEBUG + '' 47321 DEBUG + local dep_app=monica 47321 DEBUG + ]] 47321 DEBUG + grep --quiet php 47322 DEBUG + echo php7.3-cli, php7.3-json, php7.3-opcache, php7.3-mysql, php7.3-mbstring, php7.3-zip, php7.3-bcmath, php7.3-intl, php7.3-xml, php7.3-curl, php7.3-gd, php7.3-gmp, php7.3-redis 47322 DEBUG + dpkg --list 47322 DEBUG + grep php7.0 47322 DEBUG + grep --quiet --invert-match 7.0.33-0+deb9 47322 DEBUG + cat 47323 DEBUG + ynh_package_install_from_equivs /tmp/monica-ynh-deps.control 47323 DEBUG + local controlfile=/tmp/monica-ynh-deps.control 47323 DEBUG ++ grep '^Package: ' /tmp/monica-ynh-deps.control 47323 DEBUG ++ cut '--delimiter= ' --fields=2 47323 DEBUG + local pkgname=monica-ynh-deps 47324 DEBUG ++ grep '^Version: ' /tmp/monica-ynh-deps.control 47324 DEBUG ++ cut '--delimiter= ' --fields=2 47324 DEBUG + local pkgversion=2.17.0~ynh2 47324 DEBUG + ] 47325 DEBUG + ] 47325 DEBUG + ynh_package_update 47325 DEBUG + ynh_apt update 47325 DEBUG + ynh_wait_dpkg_free 47326 DEBUG + local try 47326 DEBUG + set +o xtrace 48128 DEBUG + return 0 48128 DEBUG + LC_ALL=C 48128 DEBUG + DEBIAN_FRONTEND=noninteractive 48129 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 48329 DEBUG Hit:1 http://deb.debian.org/debian buster InRelease 48330 DEBUG Hit:2 http://security.debian.org/debian-security buster/updates InRelease 48330 DEBUG Hit:3 http://forge.yunohost.org/debian buster InRelease 48330 DEBUG Hit:4 http://deb.debian.org/debian buster-updates InRelease 49634 DEBUG Reading package lists... 49634 DEBUG ++ mktemp --directory 49634 DEBUG + local TMPDIR=/tmp/tmp.pNSczI27KO 49634 DEBUG + echo 10 49635 DEBUG + ynh_wait_dpkg_free 49635 DEBUG + local try 49635 DEBUG + set +o xtrace 50437 DEBUG + return 0 50437 DEBUG + cp /tmp/monica-ynh-deps.control /tmp/tmp.pNSczI27KO/control 50438 DEBUG + cd /tmp/tmp.pNSczI27KO 50438 DEBUG + LC_ALL=C 50438 DEBUG + equivs-build ./control 51641 DEBUG + LC_ALL=C 51641 DEBUG + dpkg --force-depends --install ./monica-ynh-deps_2.17.0~ynh2_all.deb 51642 DEBUG + tee ./dpkg_log 51742 DEBUG (Reading database ... 37993 files and directories currently installed.) 51742 DEBUG Preparing to unpack .../monica-ynh-deps_2.17.0~ynh2_all.deb ... 51843 DEBUG Unpacking monica-ynh-deps (2.17.0~ynh2) over (2.17.0~ynh2) ... 52144 DEBUG dpkg: monica-ynh-deps: dependency problems, but configuring anyway as you requested: 52144 DEBUG monica-ynh-deps depends on php7.3-zip; however: 52144 DEBUG Package php7.3-zip is not installed. 52144 DEBUG monica-ynh-deps depends on php7.3-bcmath; however: 52145 DEBUG Package php7.3-bcmath is not installed. 52145 DEBUG monica-ynh-deps depends on php7.3-gmp; however: 52145 DEBUG Package php7.3-gmp is not installed. 52146 DEBUG monica-ynh-deps depends on php7.3-redis; however: 52146 DEBUG Package php7.3-redis is not installed. 52146 DEBUG 52146 DEBUG Setting up monica-ynh-deps (2.17.0~ynh2) ... 52347 DEBUG + ynh_package_install --fix-broken 52347 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 52347 DEBUG + ynh_wait_dpkg_free 52348 DEBUG + local try 52348 DEBUG + set +o xtrace 53150 DEBUG + return 0 53150 DEBUG + LC_ALL=C 53150 DEBUG + DEBIAN_FRONTEND=noninteractive 53150 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 53952 DEBUG Reading package lists... 54153 DEBUG Building dependency tree... 54154 DEBUG Reading state information... 54154 DEBUG Correcting dependencies... Done 54254 DEBUG The following additional packages will be installed: 54255 DEBUG libzip4 php-igbinary php-redis php7.3-bcmath php7.3-gmp php7.3-zip 54355 DEBUG The following NEW packages will be installed: 54356 DEBUG libzip4 php-igbinary php-redis php7.3-bcmath php7.3-gmp php7.3-zip 54456 DEBUG 0 upgraded, 6 newly installed, 0 to remove and 6 not upgraded. 54456 DEBUG Need to get 304 kB of archives. 54457 DEBUG After this operation, 1227 kB of additional disk space will be used. 54457 DEBUG Get:1 http://deb.debian.org/debian buster/main amd64 php-igbinary amd64 3.0.0-1 54658 DEBUG Get:2 http://deb.debian.org/debian buster/main amd64 libzip4 amd64 1.5.1-4 54658 DEBUG Get:3 http://deb.debian.org/debian buster/main amd64 php-redis amd64 4.2.0-1 54859 DEBUG Get:4 http://deb.debian.org/debian buster/main amd64 php7.3-bcmath amd64 7.3.19-1~deb10u1 54859 DEBUG Get:5 http://deb.debian.org/debian buster/main amd64 php7.3-gmp amd64 7.3.19-1~deb10u1 54859 DEBUG Get:6 http://deb.debian.org/debian buster/main amd64 php7.3-zip amd64 7.3.19-1~deb10u1 55861 DEBUG Fetched 304 kB in 0s (654 kB/s) 57566 DEBUG Selecting previously unselected package php-igbinary. 57567 DEBUG (Reading database ... 37993 files and directories currently installed.) 57567 DEBUG Preparing to unpack .../0-php-igbinary_3.0.0-1_amd64.deb ... 57567 DEBUG Unpacking php-igbinary (3.0.0-1) ... 57968 DEBUG Selecting previously unselected package libzip4:amd64. 57969 DEBUG Preparing to unpack .../1-libzip4_1.5.1-4_amd64.deb ... 58069 DEBUG Unpacking libzip4:amd64 (1.5.1-4) ... 58470 DEBUG Selecting previously unselected package php-redis. 58471 DEBUG Preparing to unpack .../2-php-redis_4.2.0-1_amd64.deb ... 58571 DEBUG Unpacking php-redis (4.2.0-1) ... 58872 DEBUG Selecting previously unselected package php7.3-bcmath. 58873 DEBUG Preparing to unpack .../3-php7.3-bcmath_7.3.19-1~deb10u1_amd64.deb ... 58973 DEBUG Unpacking php7.3-bcmath (7.3.19-1~deb10u1) ... 59475 DEBUG Selecting previously unselected package php7.3-gmp. 59475 DEBUG Preparing to unpack .../4-php7.3-gmp_7.3.19-1~deb10u1_amd64.deb ... 59475 DEBUG Unpacking php7.3-gmp (7.3.19-1~deb10u1) ... 59877 DEBUG Selecting previously unselected package php7.3-zip. 59877 DEBUG Preparing to unpack .../5-php7.3-zip_7.3.19-1~deb10u1_amd64.deb ... 59977 DEBUG Unpacking php7.3-zip (7.3.19-1~deb10u1) ... 60178 DEBUG Setting up php7.3-bcmath (7.3.19-1~deb10u1) ... 60279 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 60480 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 60480 WARNING 60480 WARNING Creating config file /etc/php/7.3/mods-available/bcmath.ini with new version 60681 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 60782 DEBUG Setting up libzip4:amd64 (1.5.1-4) ... 60983 DEBUG Setting up php7.3-gmp (7.3.19-1~deb10u1) ... 61083 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 61184 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 61284 WARNING 61285 WARNING Creating config file /etc/php/7.3/mods-available/gmp.ini with new version 61385 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 61586 DEBUG Setting up php-igbinary (3.0.0-1) ... 61887 DEBUG Setting up php7.3-zip (7.3.19-1~deb10u1) ... 61987 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 62088 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 62088 WARNING 62089 WARNING Creating config file /etc/php/7.3/mods-available/zip.ini with new version 62289 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 62390 DEBUG Setting up php-redis (4.2.0-1) ... 62691 DEBUG Processing triggers for libc-bin (2.28-10) ... 62892 DEBUG Processing triggers for php7.3-fpm (7.3.19-1~deb10u1) ... 62993 WARNING invoke-rc.d: policy-rc.d denied execution of restart. 63093 DEBUG + ] 63093 DEBUG + rm --recursive --force /tmp/tmp.pNSczI27KO 63094 DEBUG + ynh_package_is_installed monica-ynh-deps 63094 DEBUG + local legacy_args=p 63094 DEBUG + args_array=(=package=) 63094 DEBUG + local -A args_array 63094 DEBUG + local package 63095 DEBUG + ynh_handle_getopts_args monica-ynh-deps 63095 DEBUG + set +o xtrace 63095 DEBUG + echo '! Helper used in legacy mode !' 63095 DEBUG + set +x 63096 DEBUG + ynh_wait_dpkg_free 63096 DEBUG + local try 63096 DEBUG + set +o xtrace 63898 DEBUG + return 0 63898 DEBUG + dpkg-query --show '--showformat=${Status}' monica-ynh-deps 63898 DEBUG + grep --count 'ok installed' 63899 DEBUG + rm /tmp/monica-ynh-deps.control 63899 DEBUG + ynh_app_setting_set --app=monica --key=apt_dependencies '--value= php7.3-cli, php7.3-json, php7.3-opcache, php7.3-mysql, php7.3-mbstring, php7.3-zip, php7.3-bcmath, php7.3-intl, php7.3-xml, php7.3-curl, php7.3-gd, php7.3-gmp, php7.3-redis' 63899 DEBUG + local legacy_args=akv 63899 DEBUG + args_array=(=app= =key= =value=) 63900 DEBUG + local -A args_array 63900 DEBUG + local app 63900 DEBUG + local key 63900 DEBUG + local value 63900 DEBUG + ynh_handle_getopts_args --app=monica --key=apt_dependencies '--value= php7.3-cli, php7.3-json, php7.3-opcache, php7.3-mysql, php7.3-mbstring, php7.3-zip, php7.3-bcmath, php7.3-intl, php7.3-xml, php7.3-curl, php7.3-gd, php7.3-gmp, php7.3-redis' 63901 DEBUG + set +o xtrace 64001 DEBUG + ynh_app_setting set monica apt_dependencies ' php7.3-cli, php7.3-json, php7.3-opcache, php7.3-mysql, php7.3-mbstring, php7.3-zip, php7.3-bcmath, php7.3-intl, php7.3-xml, php7.3-curl, php7.3-gd, php7.3-gmp, php7.3-redis' 64002 DEBUG + ] 64002 DEBUG + ACTION=set 64002 DEBUG + APP=monica 64002 DEBUG + KEY=apt_dependencies 64003 DEBUG + VALUE=' php7.3-cli, php7.3-json, php7.3-opcache, php7.3-mysql, php7.3-mbstring, php7.3-zip, php7.3-bcmath, php7.3-intl, php7.3-xml, php7.3-curl, php7.3-gd, php7.3-gmp, php7.3-redis' 64003 DEBUG + python2.7 - 64103 DEBUG + ] 64104 DEBUG + '' 64104 DEBUG + local fpm_service=php7.3-fpm 64104 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 64104 DEBUG ++ ynh_get_debian_release 64105 DEBUG +++ lsb_release --codename --short 64105 DEBUG ++ echo buster 64105 DEBUG + '' 64105 DEBUG + mkdir --parents /etc/php/7.3/fpm/pool.d 64105 DEBUG + ynh_app_setting_set --app=monica --key=fpm_config_dir --value=/etc/php/7.3/fpm 64106 DEBUG + local legacy_args=akv 64106 DEBUG + args_array=(=app= =key= =value=) 64106 DEBUG + local -A args_array 64106 DEBUG + local app 64107 DEBUG + local key 64107 DEBUG + local value 64107 DEBUG + ynh_handle_getopts_args --app=monica --key=fpm_config_dir --value=/etc/php/7.3/fpm 64107 DEBUG + set +o xtrace 64208 DEBUG + ynh_app_setting set monica fpm_config_dir /etc/php/7.3/fpm 64208 DEBUG + ] 64208 DEBUG + ACTION=set 64209 DEBUG + APP=monica 64209 DEBUG + KEY=fpm_config_dir 64209 DEBUG + VALUE=/etc/php/7.3/fpm 64209 DEBUG + python2.7 - 64310 DEBUG + ] 64310 DEBUG + ynh_app_setting_set --app=monica --key=fpm_service --value=php7.3-fpm 64310 DEBUG + local legacy_args=akv 64311 DEBUG + args_array=(=app= =key= =value=) 64311 DEBUG + local -A args_array 64311 DEBUG + local app 64311 DEBUG + local key 64311 DEBUG + local value 64312 DEBUG + ynh_handle_getopts_args --app=monica --key=fpm_service --value=php7.3-fpm 64312 DEBUG + set +o xtrace 64312 DEBUG + ynh_app_setting set monica fpm_service php7.3-fpm 64312 DEBUG + ] 64312 DEBUG + ACTION=set 64313 DEBUG + APP=monica 64313 DEBUG + KEY=fpm_service 64313 DEBUG + VALUE=php7.3-fpm 64313 DEBUG + python2.7 - 64414 DEBUG + ] 64414 DEBUG + ynh_app_setting_set --app=monica --key=fpm_dedicated_service --value=0 64414 DEBUG + local legacy_args=akv 64415 DEBUG + args_array=(=app= =key= =value=) 64415 DEBUG + local -A args_array 64415 DEBUG + local app 64415 DEBUG + local key 64416 DEBUG + local value 64416 DEBUG + ynh_handle_getopts_args --app=monica --key=fpm_dedicated_service --value=0 64416 DEBUG + set +o xtrace 64516 DEBUG + ynh_app_setting set monica fpm_dedicated_service 0 64517 DEBUG + ] 64517 DEBUG + ACTION=set 64517 DEBUG + APP=monica 64518 DEBUG + KEY=fpm_dedicated_service 64518 DEBUG + VALUE=0 64518 DEBUG + python2.7 - 64618 DEBUG + ] 64619 DEBUG + ynh_app_setting_set --app=monica --key=phpversion --value=7.3 64619 DEBUG + local legacy_args=akv 64619 DEBUG + args_array=(=app= =key= =value=) 64619 DEBUG + local -A args_array 64620 DEBUG + local app 64620 DEBUG + local key 64620 DEBUG + local value 64620 DEBUG + ynh_handle_getopts_args --app=monica --key=phpversion --value=7.3 64620 DEBUG + set +o xtrace 64621 DEBUG + ynh_app_setting set monica phpversion 7.3 64621 DEBUG + ] 64621 DEBUG + ACTION=set 64621 DEBUG + APP=monica 64622 DEBUG + KEY=phpversion 64622 DEBUG + VALUE=7.3 64622 DEBUG + python2.7 - 64722 DEBUG + ] 64723 DEBUG + finalphpconf=/etc/php/7.3/fpm/pool.d/monica.conf 64723 DEBUG + '' 64723 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/monica.conf 64724 DEBUG + local legacy_args=f 64724 DEBUG + args_array=(=file=) 64724 DEBUG + local -A args_array 64724 DEBUG + local file 64725 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/monica.conf 64725 DEBUG + set +o xtrace 64725 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_monica.conf 64725 DEBUG ++ ynh_app_setting_get --app=monica --key=checksum__etc_php_7.3_fpm_pool.d_monica.conf 64726 DEBUG ++ local legacy_args=ak 64726 DEBUG ++ args_array=(=app= =key=) 64726 DEBUG ++ local -A args_array 64726 DEBUG ++ local app 64726 DEBUG ++ local key 64727 DEBUG ++ ynh_handle_getopts_args --app=monica --key=checksum__etc_php_7.3_fpm_pool.d_monica.conf 64727 DEBUG ++ set +o xtrace 64827 DEBUG ++ ynh_app_setting get monica checksum__etc_php_7.3_fpm_pool.d_monica.conf 64828 DEBUG ++ ] 64828 DEBUG ++ ACTION=get 64828 DEBUG ++ APP=monica 64828 DEBUG ++ KEY=checksum__etc_php_7.3_fpm_pool.d_monica.conf 64829 DEBUG ++ VALUE= 64829 DEBUG ++ python2.7 - 64929 DEBUG ++ ] 64930 DEBUG + local checksum_value= 64930 DEBUG + backup_file_checksum= 64930 DEBUG + '' 64930 DEBUG + '' 64931 DEBUG + ynh_app_setting_set --app=monica --key=fpm_footprint --value=low 64931 DEBUG + local legacy_args=akv 64931 DEBUG + args_array=(=app= =key= =value=) 64931 DEBUG + local -A args_array 64931 DEBUG + local app 64932 DEBUG + local key 64932 DEBUG + local value 64932 DEBUG + ynh_handle_getopts_args --app=monica --key=fpm_footprint --value=low 64932 DEBUG + set +o xtrace 64932 DEBUG + ynh_app_setting set monica fpm_footprint low 64933 DEBUG + ] 64933 DEBUG + ACTION=set 64933 DEBUG + APP=monica 64933 DEBUG + KEY=fpm_footprint 64934 DEBUG + VALUE=low 64934 DEBUG + python2.7 - 65034 DEBUG + ] 65034 DEBUG + ynh_app_setting_set --app=monica --key=fpm_usage --value=low 65035 DEBUG + local legacy_args=akv 65035 DEBUG + args_array=(=app= =key= =value=) 65035 DEBUG + local -A args_array 65035 DEBUG + local app 65036 DEBUG + local key 65036 DEBUG + local value 65036 DEBUG + ynh_handle_getopts_args --app=monica --key=fpm_usage --value=low 65037 DEBUG + set +o xtrace 65137 DEBUG + ynh_app_setting set monica fpm_usage low 65137 DEBUG + ] 65138 DEBUG + ACTION=set 65138 DEBUG + APP=monica 65138 DEBUG + KEY=fpm_usage 65138 DEBUG + VALUE=low 65139 DEBUG + python2.7 - 65239 DEBUG + ] 65239 DEBUG + ynh_get_scalable_phpfpm --usage=low --footprint=low 65240 DEBUG + local legacy_args=ufp 65240 DEBUG + args_array=(=usage= =footprint= =print) 65240 DEBUG + local -A args_array 65240 DEBUG + local usage 65241 DEBUG + local footprint 65241 DEBUG + local print 65241 DEBUG + ynh_handle_getopts_args --usage=low --footprint=low 65241 DEBUG + set +o xtrace 65241 DEBUG + footprint=low 65242 DEBUG + usage=low 65242 DEBUG + print=0 65242 DEBUG + '' 65242 DEBUG + footprint=20 65243 DEBUG + '' 65243 DEBUG + min_spare_servers_factor=8 65243 DEBUG + '' 65243 DEBUG + php_pm=ondemand 65244 DEBUG ++ ynh_get_ram --total --ignore_swap 65244 DEBUG ++ local legacy_args=ftso 65244 DEBUG ++ args_array=(=free =total =ignore_swap =only_swap) 65244 DEBUG ++ local -A args_array 65245 DEBUG ++ local free 65245 DEBUG ++ local total 65245 DEBUG ++ local ignore_swap 65245 DEBUG ++ local only_swap 65246 DEBUG ++ ynh_handle_getopts_args --total --ignore_swap 65246 DEBUG ++ set +o xtrace 65246 DEBUG ++ ignore_swap=1 65246 DEBUG ++ only_swap=0 65247 DEBUG ++ free=0 65247 DEBUG ++ total=1 65247 DEBUG ++ '' 65247 DEBUG ++ '' 65247 DEBUG ++ '' 65248 DEBUG +++ vmstat --stats --unit M 65248 DEBUG +++ grep 'total memory' 65248 DEBUG +++ awk '{print $1}' 65248 DEBUG ++ local total_ram=7920 65249 DEBUG +++ vmstat --stats --unit M 65249 DEBUG +++ grep 'total swap' 65249 DEBUG +++ awk '{print $1}' 65249 DEBUG ++ local total_swap=8191 65250 DEBUG ++ local total_ram_swap=16111 65250 DEBUG ++ local ram=16111 65250 DEBUG ++ '' 65250 DEBUG ++ ram=7920 65250 DEBUG ++ echo 7920 65251 DEBUG + local max_ram=7920 65251 DEBUG + php_max_children=198 65251 DEBUG + '' 65251 DEBUG ++ at_least_one 198 65252 DEBUG ++ '' 65252 DEBUG ++ echo 198 65252 DEBUG + php_max_children=198 65252 DEBUG ++ nproc 65253 DEBUG + local core_number=8 65253 DEBUG + local max_proc=32 65253 DEBUG + '' 65253 DEBUG + php_max_children=32 65253 DEBUG ++ ynh_app_setting_get --app=monica --key=php_forced_max_children 65254 DEBUG ++ local legacy_args=ak 65254 DEBUG ++ args_array=(=app= =key=) 65254 DEBUG ++ local -A args_array 65254 DEBUG ++ local app 65255 DEBUG ++ local key 65255 DEBUG ++ ynh_handle_getopts_args --app=monica --key=php_forced_max_children 65255 DEBUG ++ set +o xtrace 65355 DEBUG ++ ynh_app_setting get monica php_forced_max_children 65356 DEBUG ++ ] 65356 DEBUG ++ ACTION=get 65356 DEBUG ++ APP=monica 65356 DEBUG ++ KEY=php_forced_max_children 65357 DEBUG ++ VALUE= 65357 DEBUG ++ python2.7 - 65457 DEBUG ++ ] 65458 DEBUG + local php_forced_max_children= 65458 DEBUG + '' 65458 DEBUG + '' 65458 DEBUG + php_min_spare_servers=0 65459 DEBUG + php_max_spare_servers=0 65459 DEBUG + php_start_servers=0 65459 DEBUG + '' 65459 DEBUG + cp /etc/php/7.3/fpm/pool.d/www.conf /etc/php/7.3/fpm/pool.d/monica.conf 65460 DEBUG + ynh_replace_string '--match_string=^\' '--replace_string=' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65460 DEBUG + local legacy_args=mrf 65460 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 65460 DEBUG + local -A args_array 65460 DEBUG + local match_string 65461 DEBUG + local replace_string 65461 DEBUG + local target_file 65461 DEBUG + ynh_handle_getopts_args '--match_string=^\' '--replace_string=' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65461 DEBUG + set +o xtrace 65462 DEBUG + local delimit=@ 65462 DEBUG + match_string='^\' 65462 DEBUG + replace_string='' 65462 DEBUG + sed --in-place 's@^\@@g' /etc/php/7.3/fpm/pool.d/monica.conf 65463 DEBUG + ynh_replace_string '--match_string=.*listen = .*' '--replace_string=listen = /var/run/php/php7.3-fpm-monica.sock' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65463 DEBUG + local legacy_args=mrf 65463 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 65463 DEBUG + local -A args_array 65463 DEBUG + local match_string 65464 DEBUG + local replace_string 65464 DEBUG + local target_file 65464 DEBUG + ynh_handle_getopts_args '--match_string=.*listen = .*' '--replace_string=listen = /var/run/php/php7.3-fpm-monica.sock' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65464 DEBUG + set +o xtrace 65565 DEBUG + local delimit=@ 65565 DEBUG + match_string='.*listen = .*' 65565 DEBUG + replace_string='listen = /var/run/php/php7.3-fpm-monica.sock' 65566 DEBUG + sed --in-place 's@.*listen = .*@listen = /var/run/php/php7.3-fpm-monica.sock@g' /etc/php/7.3/fpm/pool.d/monica.conf 65566 DEBUG + ynh_replace_string '--match_string=^user = .*' '--replace_string=user = monica' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65566 DEBUG + local legacy_args=mrf 65566 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 65567 DEBUG + local -A args_array 65567 DEBUG + local match_string 65567 DEBUG + local replace_string 65567 DEBUG + local target_file 65567 DEBUG + ynh_handle_getopts_args '--match_string=^user = .*' '--replace_string=user = monica' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65568 DEBUG + set +o xtrace 65568 DEBUG + local delimit=@ 65568 DEBUG + match_string='^user = .*' 65568 DEBUG + replace_string='user = monica' 65568 DEBUG + sed --in-place 's@^user = .*@user = monica@g' /etc/php/7.3/fpm/pool.d/monica.conf 65569 DEBUG + ynh_replace_string '--match_string=^group = .*' '--replace_string=group = monica' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65569 DEBUG + local legacy_args=mrf 65569 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 65569 DEBUG + local -A args_array 65570 DEBUG + local match_string 65570 DEBUG + local replace_string 65570 DEBUG + local target_file 65570 DEBUG + ynh_handle_getopts_args '--match_string=^group = .*' '--replace_string=group = monica' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65571 DEBUG + set +o xtrace 65671 DEBUG + local delimit=@ 65671 DEBUG + match_string='^group = .*' 65672 DEBUG + replace_string='group = monica' 65672 DEBUG + sed --in-place 's@^group = .*@group = monica@g' /etc/php/7.3/fpm/pool.d/monica.conf 65672 DEBUG + ynh_replace_string '--match_string=.*chdir = .*' '--replace_string=chdir = /var/www/monica' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65672 DEBUG + local legacy_args=mrf 65673 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 65673 DEBUG + local -A args_array 65673 DEBUG + local match_string 65673 DEBUG + local replace_string 65673 DEBUG + local target_file 65674 DEBUG + ynh_handle_getopts_args '--match_string=.*chdir = .*' '--replace_string=chdir = /var/www/monica' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65674 DEBUG + set +o xtrace 65674 DEBUG + local delimit=@ 65674 DEBUG + match_string='.*chdir = .*' 65675 DEBUG + replace_string='chdir = /var/www/monica' 65675 DEBUG + sed --in-place 's@.*chdir = .*@chdir = /var/www/monica@g' /etc/php/7.3/fpm/pool.d/monica.conf 65675 DEBUG + ynh_replace_string '--match_string=.*pm = .*' '--replace_string=pm = ondemand' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65675 DEBUG + local legacy_args=mrf 65675 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 65676 DEBUG + local -A args_array 65676 DEBUG + local match_string 65676 DEBUG + local replace_string 65676 DEBUG + local target_file 65677 DEBUG + ynh_handle_getopts_args '--match_string=.*pm = .*' '--replace_string=pm = ondemand' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65677 DEBUG + set +o xtrace 65777 DEBUG + local delimit=@ 65778 DEBUG + match_string='.*pm = .*' 65778 DEBUG + replace_string='pm = ondemand' 65778 DEBUG + sed --in-place 's@.*pm = .*@pm = ondemand@g' /etc/php/7.3/fpm/pool.d/monica.conf 65778 DEBUG + ynh_replace_string '--match_string=.*pm.max_children = .*' '--replace_string=pm.max_children = 32' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65779 DEBUG + local legacy_args=mrf 65779 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 65779 DEBUG + local -A args_array 65780 DEBUG + local match_string 65780 DEBUG + local replace_string 65780 DEBUG + local target_file 65780 DEBUG + ynh_handle_getopts_args '--match_string=.*pm.max_children = .*' '--replace_string=pm.max_children = 32' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65781 DEBUG + set +o xtrace 65781 DEBUG + local delimit=@ 65781 DEBUG + match_string='.*pm.max_children = .*' 65781 DEBUG + replace_string='pm.max_children = 32' 65782 DEBUG + sed --in-place 's@.*pm.max_children = .*@pm.max_children = 32@g' /etc/php/7.3/fpm/pool.d/monica.conf 65782 DEBUG + ynh_replace_string '--match_string=.*pm.max_requests = .*' '--replace_string=pm.max_requests = 500' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65782 DEBUG + local legacy_args=mrf 65782 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 65782 DEBUG + local -A args_array 65783 DEBUG + local match_string 65783 DEBUG + local replace_string 65783 DEBUG + local target_file 65783 DEBUG + ynh_handle_getopts_args '--match_string=.*pm.max_requests = .*' '--replace_string=pm.max_requests = 500' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65784 DEBUG + set +o xtrace 65884 DEBUG + local delimit=@ 65884 DEBUG + match_string='.*pm.max_requests = .*' 65885 DEBUG + replace_string='pm.max_requests = 500' 65885 DEBUG + sed --in-place 's@.*pm.max_requests = .*@pm.max_requests = 500@g' /etc/php/7.3/fpm/pool.d/monica.conf 65885 DEBUG + ynh_replace_string '--match_string=.*request_terminate_timeout = .*' '--replace_string=request_terminate_timeout = 1d' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65885 DEBUG + local legacy_args=mrf 65886 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 65886 DEBUG + local -A args_array 65886 DEBUG + local match_string 65886 DEBUG + local replace_string 65887 DEBUG + local target_file 65887 DEBUG + ynh_handle_getopts_args '--match_string=.*request_terminate_timeout = .*' '--replace_string=request_terminate_timeout = 1d' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65887 DEBUG + set +o xtrace 65887 DEBUG + local delimit=@ 65888 DEBUG + match_string='.*request_terminate_timeout = .*' 65888 DEBUG + replace_string='request_terminate_timeout = 1d' 65888 DEBUG + sed --in-place 's@.*request_terminate_timeout = .*@request_terminate_timeout = 1d@g' /etc/php/7.3/fpm/pool.d/monica.conf 65888 DEBUG + '' 65888 DEBUG + '' 65889 DEBUG + ynh_replace_string '--match_string=.*pm.process_idle_timeout = .*' '--replace_string=pm.process_idle_timeout = 10s' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65889 DEBUG + local legacy_args=mrf 65889 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 65889 DEBUG + local -A args_array 65890 DEBUG + local match_string 65890 DEBUG + local replace_string 65890 DEBUG + local target_file 65890 DEBUG + ynh_handle_getopts_args '--match_string=.*pm.process_idle_timeout = .*' '--replace_string=pm.process_idle_timeout = 10s' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65891 DEBUG + set +o xtrace 65991 DEBUG + local delimit=@ 65991 DEBUG + match_string='.*pm.process_idle_timeout = .*' 65992 DEBUG + replace_string='pm.process_idle_timeout = 10s' 65992 DEBUG + sed --in-place 's@.*pm.process_idle_timeout = .*@pm.process_idle_timeout = 10s@g' /etc/php/7.3/fpm/pool.d/monica.conf 65992 DEBUG + '' 65993 DEBUG + ynh_replace_string '--match_string=.*\(pm.start_servers = .*\)' '--replace_string=;\1' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65993 DEBUG + local legacy_args=mrf 65993 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 65993 DEBUG + local -A args_array 65993 DEBUG + local match_string 65994 DEBUG + local replace_string 65994 DEBUG + local target_file 65994 DEBUG + ynh_handle_getopts_args '--match_string=.*\(pm.start_servers = .*\)' '--replace_string=;\1' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 65994 DEBUG + set +o xtrace 65995 DEBUG + local delimit=@ 65995 DEBUG + match_string='.*\(pm.start_servers = .*\)' 65995 DEBUG + replace_string=';\1' 65995 DEBUG + sed --in-place 's@.*\(pm.start_servers = .*\)@;\1@g' /etc/php/7.3/fpm/pool.d/monica.conf 66096 DEBUG + ynh_replace_string '--match_string=.*\(pm.min_spare_servers = .*\)' '--replace_string=;\1' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 66096 DEBUG + local legacy_args=mrf 66096 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 66097 DEBUG + local -A args_array 66097 DEBUG + local match_string 66097 DEBUG + local replace_string 66097 DEBUG + local target_file 66098 DEBUG + ynh_handle_getopts_args '--match_string=.*\(pm.min_spare_servers = .*\)' '--replace_string=;\1' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 66098 DEBUG + set +o xtrace 66098 DEBUG + local delimit=@ 66098 DEBUG + match_string='.*\(pm.min_spare_servers = .*\)' 66098 DEBUG + replace_string=';\1' 66099 DEBUG + sed --in-place 's@.*\(pm.min_spare_servers = .*\)@;\1@g' /etc/php/7.3/fpm/pool.d/monica.conf 66099 DEBUG + ynh_replace_string '--match_string=.*\(pm.max_spare_servers = .*\)' '--replace_string=;\1' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 66099 DEBUG + local legacy_args=mrf 66099 DEBUG + args_array=(=match_string= =replace_string= =target_file=) 66100 DEBUG + local -A args_array 66100 DEBUG + local match_string 66100 DEBUG + local replace_string 66100 DEBUG + local target_file 66101 DEBUG + ynh_handle_getopts_args '--match_string=.*\(pm.max_spare_servers = .*\)' '--replace_string=;\1' --target_file=/etc/php/7.3/fpm/pool.d/monica.conf 66101 DEBUG + set +o xtrace 66201 DEBUG + local delimit=@ 66202 DEBUG + match_string='.*\(pm.max_spare_servers = .*\)' 66202 DEBUG + replace_string=';\1' 66202 DEBUG + sed --in-place 's@.*\(pm.max_spare_servers = .*\)@;\1@g' /etc/php/7.3/fpm/pool.d/monica.conf 66203 DEBUG + '' 66203 DEBUG + '' 66203 DEBUG + chown root: /etc/php/7.3/fpm/pool.d/monica.conf 66203 DEBUG + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/monica.conf 66203 DEBUG + local legacy_args=f 66204 DEBUG + args_array=(=file=) 66204 DEBUG + local -A args_array 66204 DEBUG + local file 66204 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/monica.conf 66205 DEBUG + set +o xtrace 66205 DEBUG + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_monica.conf 66205 DEBUG ++ md5sum /etc/php/7.3/fpm/pool.d/monica.conf 66205 DEBUG ++ cut '--delimiter= ' --fields=1 66205 DEBUG + ynh_app_setting_set --app=monica --key=checksum__etc_php_7.3_fpm_pool.d_monica.conf --value=30b69d347c9a1c7ec25fa3d10f2ad726 66206 DEBUG + local legacy_args=akv 66206 DEBUG + args_array=(=app= =key= =value=) 66206 DEBUG + local -A args_array 66206 DEBUG + local app 66207 DEBUG + local key 66207 DEBUG + local value 66207 DEBUG + ynh_handle_getopts_args --app=monica --key=checksum__etc_php_7.3_fpm_pool.d_monica.conf --value=30b69d347c9a1c7ec25fa3d10f2ad726 66207 DEBUG + set +o xtrace 66207 DEBUG + ynh_app_setting set monica checksum__etc_php_7.3_fpm_pool.d_monica.conf 30b69d347c9a1c7ec25fa3d10f2ad726 66208 DEBUG + ] 66208 DEBUG + ACTION=set 66208 DEBUG + APP=monica 66208 DEBUG + KEY=checksum__etc_php_7.3_fpm_pool.d_monica.conf 66208 DEBUG + VALUE=30b69d347c9a1c7ec25fa3d10f2ad726 66209 DEBUG + python2.7 - 66309 DEBUG + ] 66309 DEBUG + '' 66310 DEBUG + unset backup_file_checksum 66310 DEBUG + '' 66310 DEBUG + '' 66310 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 66311 DEBUG + local legacy_args=nalpte 66311 DEBUG + args_array=(=service_name= =action= =line_match= =log_path= =timeout= =length=) 66311 DEBUG + local -A args_array 66311 DEBUG + local service_name 66312 DEBUG + local action 66312 DEBUG + local line_match 66312 DEBUG + local length 66312 DEBUG + local log_path 66312 DEBUG + local timeout 66313 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 66313 DEBUG + set +o xtrace 66413 DEBUG + service_name=php7.3-fpm 66414 DEBUG + action=reload 66414 DEBUG + line_match= 66414 DEBUG + length=20 66414 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 66415 DEBUG + timeout=300 66415 DEBUG + ] 66415 DEBUG + '' 66415 DEBUG + action=reload-or-restart 66415 DEBUG + systemctl reload-or-restart php7.3-fpm 66416 DEBUG + ] 66416 DEBUG ++ ynh_app_setting_get --app=monica --key=phpversion 66416 DEBUG ++ local legacy_args=ak 66416 DEBUG ++ args_array=(=app= =key=) 66417 DEBUG ++ local -A args_array 66417 DEBUG ++ local app 66417 DEBUG ++ local key 66417 DEBUG ++ ynh_handle_getopts_args --app=monica --key=phpversion 66418 DEBUG ++ set +o xtrace 66418 DEBUG ++ ynh_app_setting get monica phpversion 66418 DEBUG ++ ] 66418 DEBUG ++ ACTION=get 66418 DEBUG ++ APP=monica 66419 DEBUG ++ KEY=phpversion 66419 DEBUG ++ VALUE= 66419 DEBUG ++ python2.7 - 66520 DEBUG ++ ] 66520 DEBUG + phpversion=7.3 66520 DEBUG + ynh_script_progression '--message=Installing composer dependencies...' 66520 DEBUG + set +o xtrace 66521 DEBUG + set +o xtrace 66621 DEBUG + echo '! Helper used in legacy mode !' 66621 INFO > Installing composer dependencies... 66622 DEBUG + set +x 66622 DEBUG + echo ' > Installing composer dependencies...' 66622 DEBUG + set -o xtrace 66622 DEBUG + ynh_exec_warn_less ynh_install_composer --phpversion=7.3 --workdir=/var/www/monica 66623 DEBUG + eval ynh_install_composer --phpversion=7.3 --workdir=/var/www/monica 66623 DEBUG ++ ynh_install_composer --phpversion=7.3 --workdir=/var/www/monica 66623 DEBUG ++ local legacy_args=vwa 66623 DEBUG ++ args_array=(=phpversion= =workdir= =install_args=) 66624 DEBUG ++ declare -Ar args_array 66624 DEBUG ++ local phpversion 66624 DEBUG ++ local workdir 66624 DEBUG ++ local install_args 66624 DEBUG ++ ynh_handle_getopts_args --phpversion=7.3 --workdir=/var/www/monica 66625 DEBUG ++ set +o xtrace 66625 DEBUG ++ workdir=/var/www/monica 66625 DEBUG ++ phpversion=7.3 66625 DEBUG ++ install_args= 66626 DEBUG ++ curl -sS https://getcomposer.org/installer 66626 DEBUG ++ COMPOSER_HOME=/var/www/monica/.composer 66626 DEBUG ++ php7.3 -- --install-dir=/var/www/monica 66927 DEBUG All settings correct for using Composer 66928 DEBUG Downloading... 68031 DEBUG 68031 DEBUG Composer (version 2.0.7) successfully installed to: /var/www/monica/composer.phar 68032 DEBUG Use it: php /var/www/monica/composer.phar 68032 DEBUG 68033 DEBUG ++ ynh_composer_exec --phpversion=7.3 --workdir=/var/www/monica '--commands=install --no-dev ' 68033 DEBUG ++ local legacy_args=vwc 68033 DEBUG ++ args_array=(=phpversion= =workdir= =commands=) 68033 DEBUG ++ declare -Ar args_array 68033 DEBUG ++ local phpversion 68034 DEBUG ++ local workdir 68034 DEBUG ++ local commands 68034 DEBUG ++ ynh_handle_getopts_args --phpversion=7.3 --workdir=/var/www/monica '--commands=install --no-dev ' 68034 DEBUG ++ set +o xtrace 68035 DEBUG ++ workdir=/var/www/monica 68035 DEBUG ++ phpversion=7.3 68035 DEBUG ++ COMPOSER_HOME=/var/www/monica/.composer 68035 DEBUG ++ php7.3 /var/www/monica/composer.phar install --no-dev -d /var/www/monica --no-interaction 68236 DEBUG > App\Helpers\ComposerScripts::preInstall 68236 DEBUG Installing dependencies from lock file 68237 DEBUG Verifying lock file contents can be installed on current platform. 68237 DEBUG Your lock file does not contain a compatible set of packages. Please run composer update. 68237 DEBUG 68237 DEBUG Problem 1 68238 DEBUG - ocramius/package-versions is locked to version 1.4.2 and an update of this package was not requested. 68238 DEBUG - ocramius/package-versions 1.4.2 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api but it does not match the constraint. 68238 DEBUG Problem 2 68238 DEBUG - ocramius/package-versions 1.4.2 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api but it does not match the constraint. 68238 DEBUG - jean85/pretty-package-versions 1.2 requires ocramius/package-versions ^1.2.0 -> satisfiable by ocramius/package-versions. 68239 DEBUG - jean85/pretty-package-versions is locked to version 1.2 and an update of this package was not requested. 68239 DEBUG 68239 DEBUG ocramius/package-versions only provides support for Composer 2 in 1.8+, which requires PHP 7.4. 68239 DEBUG If you can not upgrade PHP you can require composer/package-versions-deprecated to resolve this with PHP 7.0+. 68240 DEBUG 68240 DEBUG You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2. 68240 DEBUG ++ ynh_die 'Unable to update core dependencies with Composer.' 68240 DEBUG ++ local legacy_args=mc 68240 DEBUG ++ args_array=(=message= =ret_code=) 68241 DEBUG ++ local -A args_array 68241 DEBUG ++ local message 68241 DEBUG ++ local ret_code 68241 DEBUG ++ ynh_handle_getopts_args 'Unable to update core dependencies with Composer.' 68241 DEBUG ++ set +o xtrace 68242 DEBUG ++ echo '! Helper used in legacy mode !' 68242 DEBUG ++ set +x 68242 DEBUG ++ ret_code=1 68242 DEBUG ++ echo 'Unable to update core dependencies with Composer.' 68243 DEBUG Unable to update core dependencies with Composer. 68243 DEBUG ++ exit 1 68243 DEBUG + ynh_exit_properly 68243 DEBUG + local exit_code=1 68243 DEBUG + '' 68244 DEBUG + trap '' EXIT 68244 DEBUG + set +o errexit 68244 DEBUG + set +o nounset 68244 DEBUG + sleep 0.5 68746 DEBUG + type -t ynh_clean_setup 68746 DEBUG + exit 1 68777 ERROR Could not install monica: An error occurred inside the app installation script 68778 INFO The operation 'Install the 'monica' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20201119-003223-app_install-monica --share' to get help 68804 WARNING Here's an extract of the logs before the crash. It might help debugging the error: 68805 INFO DEBUG - Verifying lock file contents can be installed on current platform. 68805 INFO DEBUG - Your lock file does not contain a compatible set of packages. Please run composer update. 68805 INFO DEBUG - 68805 INFO DEBUG - Problem 1 68805 INFO DEBUG - - ocramius/package-versions is locked to version 1.4.2 and an update of this package was not requested. 68805 INFO DEBUG - - ocramius/package-versions 1.4.2 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api but it does not match the constraint. 68805 INFO DEBUG - Problem 2 68806 INFO DEBUG - - ocramius/package-versions 1.4.2 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api but it does not match the constraint. 68806 INFO DEBUG - - jean85/pretty-package-versions 1.2 requires ocramius/package-versions ^1.2.0 -> satisfiable by ocramius/package-versions. 68806 INFO DEBUG - - jean85/pretty-package-versions is locked to version 1.2 and an update of this package was not requested. 68806 INFO DEBUG - 68806 INFO DEBUG - ocramius/package-versions only provides support for Composer 2 in 1.8+, which requires PHP 7.4. 68806 INFO DEBUG - If you can not upgrade PHP you can require composer/package-versions-deprecated to resolve this with PHP 7.0+. 68806 INFO DEBUG - 68807 INFO DEBUG - You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2. 68807 INFO DEBUG - ++ ynh_die 'Unable to update core dependencies with Composer.' 68807 INFO DEBUG - ++ ret_code=1 68807 INFO DEBUG - ++ echo 'Unable to update core dependencies with Composer.' 68807 INFO DEBUG - Unable to update core dependencies with Composer. 68807 INFO DEBUG - ++ exit 1 68807 INFO DEBUG - + ynh_exit_properly 68828 WARNING Removing the app following the installation failure... 68836 DEBUG Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/monica_ynh-testing/scripts YNH_STDINFO=/tmp/tmp1rZdMo/stdinfo YNH_APP_INSTANCE_NAME=monica YNH_INTERFACE=cli YNH_APP_ID=monica YNH_STDRETURN=/tmp/tmp_oc3eo/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./remove" monica 7>&1'... 68836 DEBUG About to run the command '' 68843 DEBUG + source _common.sh 68843 DEBUG ++ pkg_dependencies= 68844 DEBUG ++ YNH_PHP_VERSION=7.3 68844 DEBUG ++ extra_php_dependencies='php7.3-cli php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-intl php7.3-xml php7.3-curl php7.3-gd php7.3-gmp php7.3-redis' 68844 DEBUG + source /usr/share/yunohost/helpers 68845 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d 68845 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68845 DEBUG ++ '' 68845 DEBUG ++ . /usr/share/yunohost/helpers.d/apt 68845 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68846 DEBUG ++ '' 68846 DEBUG ++ . /usr/share/yunohost/helpers.d/backup 68846 DEBUG +++ CAN_BIND=1 68846 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68847 DEBUG ++ '' 68847 DEBUG ++ . /usr/share/yunohost/helpers.d/fail2ban 68947 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68948 DEBUG ++ '' 68948 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts 68948 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68948 DEBUG ++ '' 68948 DEBUG ++ . /usr/share/yunohost/helpers.d/hardware 68949 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68949 DEBUG ++ '' 68949 DEBUG ++ . /usr/share/yunohost/helpers.d/logging 68949 DEBUG +++ increment_progression=0 68950 DEBUG +++ previous_weight=0 68950 DEBUG +++ max_progression=-1 68950 DEBUG +++ progress_scale=20 68950 DEBUG +++ progress_string2='####################' 68950 DEBUG +++ progress_string1=++++++++++++++++++++ 68951 DEBUG +++ progress_string0=.................... 68951 DEBUG ++++ date +%s 68951 DEBUG +++ base_time=1605745981 68951 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68951 DEBUG ++ '' 68952 DEBUG ++ . /usr/share/yunohost/helpers.d/logrotate 68952 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68952 DEBUG ++ '' 68952 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql 68952 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql 68953 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68953 DEBUG ++ '' 68953 DEBUG ++ . /usr/share/yunohost/helpers.d/network 68953 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68954 DEBUG ++ '' 68954 DEBUG ++ . /usr/share/yunohost/helpers.d/nginx 68954 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68954 DEBUG ++ '' 68954 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs 68955 DEBUG +++ n_version=6.5.1 68955 DEBUG +++ n_install_dir=/opt/node_n 68955 DEBUG +++ node_version_path=/opt/node_n/n/versions/node 68955 DEBUG +++ export N_PREFIX=/opt/node_n 68956 DEBUG +++ N_PREFIX=/opt/node_n 68956 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68956 DEBUG ++ '' 68956 DEBUG ++ . /usr/share/yunohost/helpers.d/php 68956 DEBUG +++ readonly YNH_DEFAULT_PHP_VERSION=7.3 68957 DEBUG +++ YNH_DEFAULT_PHP_VERSION=7.3 68957 DEBUG +++ YNH_PHP_VERSION=7.3 68957 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68957 DEBUG ++ '' 68957 DEBUG ++ . /usr/share/yunohost/helpers.d/postgresql 68958 DEBUG +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql 68958 DEBUG +++ PSQL_VERSION=11 68958 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68958 DEBUG ++ '' 68959 DEBUG ++ . /usr/share/yunohost/helpers.d/setting 68959 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68959 DEBUG ++ '' 68959 DEBUG ++ . /usr/share/yunohost/helpers.d/string 68959 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68960 DEBUG ++ '' 68960 DEBUG ++ . /usr/share/yunohost/helpers.d/systemd 68960 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68960 DEBUG ++ '' 68961 DEBUG ++ . /usr/share/yunohost/helpers.d/user 68961 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 68961 DEBUG ++ '' 68961 DEBUG ++ . /usr/share/yunohost/helpers.d/utils 68961 DEBUG + ynh_script_progression '--message=Loading installation settings...' 68962 DEBUG + set +o xtrace 68962 DEBUG + set +o xtrace 68962 DEBUG + echo '! Helper used in legacy mode !' 68962 DEBUG + set +x 68962 DEBUG + echo ' > Loading installation settings...' 68963 DEBUG + set -o xtrace 68963 DEBUG + app=monica 68963 DEBUG ++ ynh_app_setting_get --app=monica --key=domain 68963 DEBUG ++ local legacy_args=ak 68964 DEBUG ++ args_array=(=app= =key=) 68964 DEBUG ++ local -A args_array 68964 DEBUG ++ local app 68964 DEBUG ++ local key 68964 DEBUG ++ ynh_handle_getopts_args --app=monica --key=domain 68965 DEBUG ++ set +o xtrace 68965 DEBUG ++ ynh_app_setting get monica domain 68965 DEBUG ++ ] 68965 DEBUG ++ ACTION=get 68966 DEBUG ++ APP=monica 68966 DEBUG ++ KEY=domain 68966 DEBUG ++ VALUE= 68966 DEBUG ++ python2.7 - 69067 DEBUG ++ ] 69067 INFO > Loading installation settings... 69067 DEBUG + domain=test.capatain2.hosttweb.com 69068 DEBUG ++ ynh_app_setting_get --app=monica --key=db_name 69068 DEBUG ++ local legacy_args=ak 69068 DEBUG ++ args_array=(=app= =key=) 69068 DEBUG ++ local -A args_array 69068 DEBUG ++ local app 69069 DEBUG ++ local key 69069 DEBUG ++ ynh_handle_getopts_args --app=monica --key=db_name 69069 DEBUG ++ set +o xtrace 69069 DEBUG ++ ynh_app_setting get monica db_name 69070 DEBUG ++ ] 69070 DEBUG ++ ACTION=get 69070 DEBUG ++ APP=monica 69070 DEBUG ++ KEY=db_name 69071 DEBUG ++ VALUE= 69071 DEBUG ++ python2.7 - 69171 DEBUG ++ ] 69172 DEBUG + db_name=monica 69172 DEBUG + db_user=monica 69172 DEBUG ++ ynh_app_setting_get --app=monica --key=final_path 69172 DEBUG ++ local legacy_args=ak 69173 DEBUG ++ args_array=(=app= =key=) 69173 DEBUG ++ local -A args_array 69173 DEBUG ++ local app 69173 DEBUG ++ local key 69173 DEBUG ++ ynh_handle_getopts_args --app=monica --key=final_path 69174 DEBUG ++ set +o xtrace 69274 DEBUG ++ ynh_app_setting get monica final_path 69274 DEBUG ++ ] 69275 DEBUG ++ ACTION=get 69275 DEBUG ++ APP=monica 69275 DEBUG ++ KEY=final_path 69275 DEBUG ++ VALUE= 69276 DEBUG ++ python2.7 - 69376 DEBUG ++ ] 69376 DEBUG + final_path=/var/www/monica 69377 DEBUG + ynh_script_progression '--message=Removing the MySQL database...' 69377 DEBUG + set +o xtrace 69377 DEBUG + set +o xtrace 69378 DEBUG + echo '! Helper used in legacy mode !' 69378 DEBUG + set +x 69378 DEBUG + echo ' > Removing the MySQL database...' 69378 DEBUG + set -o xtrace 69379 DEBUG + ynh_mysql_remove_db --db_user=monica --db_name=monica 69379 DEBUG + local legacy_args=un 69379 DEBUG + args_array=(=db_user= =db_name=) 69379 DEBUG + local -A args_array 69379 DEBUG + local db_user 69380 DEBUG + local db_name 69380 DEBUG + ynh_handle_getopts_args --db_user=monica --db_name=monica 69380 DEBUG + set +o xtrace 69380 DEBUG ++ cat /etc/yunohost/mysql 69381 DEBUG + local mysql_root_password=TEtjWTbazn 69381 DEBUG + mysqlshow --user=root --password=TEtjWTbazn 69381 DEBUG + grep --quiet '^| monica' 69381 DEBUG + ynh_mysql_drop_db monica 69382 DEBUG + ynh_mysql_execute_as_root '--sql=DROP DATABASE monica;' 69382 DEBUG + local legacy_args=sd 69382 DEBUG + args_array=(=sql= =database=) 69382 DEBUG + local -A args_array 69383 DEBUG + local sql 69383 DEBUG + local database 69383 DEBUG + ynh_handle_getopts_args '--sql=DROP DATABASE monica;' 69383 DEBUG + set +o xtrace 69384 DEBUG + database= 69384 DEBUG + '' 69384 DEBUG ++ cat /etc/yunohost/mysql 69384 DEBUG + ynh_mysql_connect_as --user=root --password=TEtjWTbazn 69384 DEBUG + local legacy_args=upd 69385 DEBUG + args_array=(=user= =password= =database=) 69385 DEBUG + local -A args_array 69385 DEBUG + local user 69385 DEBUG + local password 69386 DEBUG + local database 69386 DEBUG + ynh_handle_getopts_args --user=root --password=TEtjWTbazn 69386 DEBUG + set +o xtrace 69486 DEBUG + database= 69487 INFO > Removing the MySQL database... 69487 DEBUG + mysql --user=root --password=TEtjWTbazn --batch '' 69487 DEBUG + ynh_mysql_user_exists --user=monica 69487 DEBUG + local legacy_args=u 69488 DEBUG + args_array=(=user=) 69488 DEBUG + local -A args_array 69488 DEBUG + local user 69488 DEBUG + ynh_handle_getopts_args --user=monica 69489 DEBUG + set +o xtrace 69489 DEBUG ++ ynh_mysql_execute_as_root '--sql=SELECT User from mysql.user WHERE User = '\''monica'\'';' 69489 DEBUG ++ local legacy_args=sd 69489 DEBUG ++ args_array=(=sql= =database=) 69490 DEBUG ++ local -A args_array 69490 DEBUG ++ local sql 69490 DEBUG ++ local database 69491 DEBUG ++ ynh_handle_getopts_args '--sql=SELECT User from mysql.user WHERE User = '\''monica'\'';' 69491 DEBUG ++ set +o xtrace 69491 DEBUG ++ database= 69491 DEBUG ++ '' 69491 DEBUG +++ cat /etc/yunohost/mysql 69492 DEBUG ++ ynh_mysql_connect_as --user=root --password=TEtjWTbazn 69492 DEBUG ++ local legacy_args=upd 69492 DEBUG ++ args_array=(=user= =password= =database=) 69492 DEBUG ++ local -A args_array 69493 DEBUG ++ local user 69493 DEBUG ++ local password 69493 DEBUG ++ local database 69493 DEBUG ++ ynh_handle_getopts_args --user=root --password=TEtjWTbazn 69493 DEBUG ++ set +o xtrace 69494 DEBUG ++ database= 69494 DEBUG ++ mysql --user=root --password=TEtjWTbazn --batch '' 69494 DEBUG + ] 69494 DEBUG + return 0 69495 DEBUG + ynh_mysql_drop_user monica 69495 DEBUG + ynh_mysql_execute_as_root '--sql=DROP USER '\''monica'\''@'\''localhost'\'';' 69495 DEBUG + local legacy_args=sd 69495 DEBUG + args_array=(=sql= =database=) 69496 DEBUG + local -A args_array 69496 DEBUG + local sql 69496 DEBUG + local database 69497 DEBUG + ynh_handle_getopts_args '--sql=DROP USER '\''monica'\''@'\''localhost'\'';' 69497 DEBUG + set +o xtrace 69597 DEBUG + database= 69598 INFO > Removing dependencies... 69598 DEBUG + '' 69598 DEBUG ++ cat /etc/yunohost/mysql 69598 DEBUG + ynh_mysql_connect_as --user=root --password=TEtjWTbazn 69598 DEBUG + local legacy_args=upd 69599 DEBUG + args_array=(=user= =password= =database=) 69599 DEBUG + local -A args_array 69599 DEBUG + local user 69599 DEBUG + local password 69600 DEBUG + local database 69600 DEBUG + ynh_handle_getopts_args --user=root --password=TEtjWTbazn 69600 DEBUG + set +o xtrace 69600 DEBUG + database= 69600 DEBUG + mysql --user=root --password=TEtjWTbazn --batch '' 69601 DEBUG + ynh_script_progression '--message=Removing dependencies...' 69601 DEBUG + set +o xtrace 69601 DEBUG + set +o xtrace 69601 DEBUG + echo '! Helper used in legacy mode !' 69602 DEBUG + set +x 69602 DEBUG + echo ' > Removing dependencies...' 69602 DEBUG + set -o xtrace 69602 DEBUG + ynh_remove_app_dependencies 69602 DEBUG + local dep_app=monica 69603 DEBUG + ynh_package_autopurge monica-ynh-deps 69603 DEBUG + ynh_apt autoremove --purge monica-ynh-deps 69603 DEBUG + ynh_wait_dpkg_free 69603 DEBUG + local try 69603 DEBUG + set +o xtrace 70405 DEBUG + return 0 70406 DEBUG + LC_ALL=C 70406 DEBUG + DEBIAN_FRONTEND=noninteractive 70406 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge monica-ynh-deps 71208 DEBUG Reading package lists... 71409 DEBUG Building dependency tree... 71410 DEBUG Reading state information... 71510 DEBUG The following packages will be REMOVED: 71511 DEBUG libzip4* monica-ynh-deps* php-igbinary* php-redis* php7.3-bcmath* 71511 DEBUG php7.3-gmp* php7.3-zip* 71912 DEBUG 0 upgraded, 0 newly installed, 7 to remove and 6 not upgraded. 71912 DEBUG After this operation, 1236 kB disk space will be freed. 71913 DEBUG (Reading database ... 38046 files and directories currently installed.) 71913 DEBUG Removing monica-ynh-deps (2.17.0~ynh2) ... 72415 DEBUG Removing php7.3-zip (7.3.19-1~deb10u1) ... 72816 DEBUG Removing libzip4:amd64 (1.5.1-4) ... 73318 DEBUG Removing php-redis (4.2.0-1) ... 73720 DEBUG Removing php-igbinary (3.0.0-1) ... 74021 DEBUG Removing php7.3-bcmath (7.3.19-1~deb10u1) ... 74422 DEBUG Removing php7.3-gmp (7.3.19-1~deb10u1) ... 74824 DEBUG Processing triggers for libc-bin (2.28-10) ... 75025 DEBUG Processing triggers for php7.3-fpm (7.3.19-1~deb10u1) ... 75126 WARNING invoke-rc.d: policy-rc.d denied execution of restart. 75327 DEBUG (Reading database ... 37990 files and directories currently installed.) 75327 DEBUG Purging configuration files for php7.3-bcmath (7.3.19-1~deb10u1) ... 75528 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 75528 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 75830 DEBUG Purging configuration files for php7.3-gmp (7.3.19-1~deb10u1) ... 76031 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 76031 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 76332 DEBUG Purging configuration files for php-igbinary (3.0.0-1) ... 76734 DEBUG Purging configuration files for php7.3-zip (7.3.19-1~deb10u1) ... 76935 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 76935 DEBUG /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor 77236 DEBUG Purging configuration files for php-redis (4.2.0-1) ... 77738 DEBUG + ynh_script_progression '--message=Removing app main directory...' 77738 DEBUG + set +o xtrace 77739 DEBUG + set +o xtrace 77739 DEBUG + echo '! Helper used in legacy mode !' 77739 DEBUG + set +x 77739 DEBUG + echo ' > Removing app main directory...' 77740 DEBUG + set -o xtrace 77740 DEBUG + ynh_secure_remove --file=/var/www/monica 77740 DEBUG + local legacy_args=f 77740 DEBUG + args_array=(=file=) 77741 DEBUG + local -A args_array 77741 DEBUG + local file 77741 DEBUG + ynh_handle_getopts_args --file=/var/www/monica 77741 DEBUG + set +o xtrace 77741 DEBUG + local 'forbidden_path= /var/www /home/yunohost.app' 77742 DEBUG + '' 77742 DEBUG + ] 77742 DEBUG + ] 77742 DEBUG + ]+$ ]] 77743 DEBUG + ] 77743 DEBUG + '' 77743 DEBUG + rm --recursive /var/www/monica 77844 DEBUG + ynh_script_progression '--message=Removing nginx web server configuration...' 77844 INFO > Removing app main directory... 77844 DEBUG + set +o xtrace 77844 DEBUG + set +o xtrace 77845 DEBUG + echo '! Helper used in legacy mode !' 77845 DEBUG + set +x 77845 DEBUG + echo ' > Removing nginx web server configuration...' 77845 DEBUG + set -o xtrace 77846 DEBUG + ynh_remove_nginx_config 77846 DEBUG + ynh_secure_remove --file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 77846 DEBUG + local legacy_args=f 77846 DEBUG + args_array=(=file=) 77847 DEBUG + local -A args_array 77847 DEBUG + local file 77847 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 77847 DEBUG + set +o xtrace 77847 DEBUG + local 'forbidden_path= /var/www /home/yunohost.app' 77848 DEBUG + '' 77848 DEBUG + ] 77848 DEBUG + ] 77848 DEBUG + ]+$ ]] 77848 DEBUG + ] 77849 DEBUG + '' 77849 DEBUG + rm --recursive /etc/nginx/conf.d/test.capatain2.hosttweb.com.d/monica.conf 77949 DEBUG + ynh_systemd_action --service_name=nginx --action=reload 77950 INFO > Removing nginx web server configuration... 77950 DEBUG + local legacy_args=nalpte 77950 DEBUG + args_array=(=service_name= =action= =line_match= =log_path= =timeout= =length=) 77950 DEBUG + local -A args_array 77951 DEBUG + local service_name 77951 DEBUG + local action 77951 DEBUG + local line_match 77951 DEBUG + local length 77951 DEBUG + local log_path 77952 DEBUG + local timeout 77952 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload 77952 DEBUG + set +o xtrace 77952 DEBUG + service_name=nginx 77953 DEBUG + action=reload 77953 DEBUG + line_match= 77953 DEBUG + length=20 77953 DEBUG + log_path=/var/log/nginx/nginx.log 77953 DEBUG + timeout=300 77954 DEBUG + ] 77954 DEBUG + '' 77954 DEBUG + action=reload-or-restart 77954 DEBUG + systemctl reload-or-restart nginx 78055 DEBUG + ] 78055 DEBUG + ynh_script_progression '--message=Removing php-fpm configuration...' 78056 DEBUG + set +o xtrace 78056 DEBUG + set +o xtrace 78056 DEBUG + echo '! Helper used in legacy mode !' 78056 DEBUG + set +x 78057 DEBUG + echo ' > Removing php-fpm configuration...' 78057 DEBUG + set -o xtrace 78057 DEBUG + ynh_remove_fpm_config 78058 DEBUG ++ ynh_app_setting_get --app=monica --key=fpm_config_dir 78058 DEBUG ++ local legacy_args=ak 78058 DEBUG ++ args_array=(=app= =key=) 78058 DEBUG ++ local -A args_array 78059 DEBUG ++ local app 78059 DEBUG ++ local key 78059 DEBUG ++ ynh_handle_getopts_args --app=monica --key=fpm_config_dir 78060 DEBUG ++ set +o xtrace 78060 DEBUG ++ ynh_app_setting get monica fpm_config_dir 78060 DEBUG ++ ] 78060 DEBUG ++ ACTION=get 78061 DEBUG ++ APP=monica 78061 DEBUG ++ KEY=fpm_config_dir 78061 DEBUG ++ VALUE= 78062 DEBUG ++ python2.7 - 78162 DEBUG ++ ] 78162 INFO > Removing php-fpm configuration... 78163 DEBUG + local fpm_config_dir=/etc/php/7.3/fpm 78163 DEBUG ++ ynh_app_setting_get --app=monica --key=fpm_service 78163 DEBUG ++ local legacy_args=ak 78163 DEBUG ++ args_array=(=app= =key=) 78164 DEBUG ++ local -A args_array 78164 DEBUG ++ local app 78164 DEBUG ++ local key 78164 DEBUG ++ ynh_handle_getopts_args --app=monica --key=fpm_service 78165 DEBUG ++ set +o xtrace 78165 DEBUG ++ ynh_app_setting get monica fpm_service 78165 DEBUG ++ ] 78165 DEBUG ++ ACTION=get 78165 DEBUG ++ APP=monica 78166 DEBUG ++ KEY=fpm_service 78166 DEBUG ++ VALUE= 78166 DEBUG ++ python2.7 - 78267 DEBUG ++ ] 78267 DEBUG + local fpm_service=php7.3-fpm 78267 DEBUG ++ ynh_app_setting_get --app=monica --key=fpm_dedicated_service 78267 DEBUG ++ local legacy_args=ak 78268 DEBUG ++ args_array=(=app= =key=) 78268 DEBUG ++ local -A args_array 78268 DEBUG ++ local app 78268 DEBUG ++ local key 78269 DEBUG ++ ynh_handle_getopts_args --app=monica --key=fpm_dedicated_service 78269 DEBUG ++ set +o xtrace 78369 DEBUG ++ ynh_app_setting get monica fpm_dedicated_service 78370 DEBUG ++ ] 78370 DEBUG ++ ACTION=get 78370 DEBUG ++ APP=monica 78370 DEBUG ++ KEY=fpm_dedicated_service 78371 DEBUG ++ VALUE= 78371 DEBUG ++ python2.7 - 78471 DEBUG ++ ] 78472 DEBUG + local dedicated_service=0 78472 DEBUG + dedicated_service=0 78472 DEBUG ++ ynh_app_setting_get monica phpversion 78472 DEBUG ++ local legacy_args=ak 78473 DEBUG ++ args_array=(=app= =key=) 78473 DEBUG ++ local -A args_array 78473 DEBUG ++ local app 78473 DEBUG ++ local key 78474 DEBUG ++ ynh_handle_getopts_args monica phpversion 78474 DEBUG ++ set +o xtrace 78474 DEBUG ++ echo '! Helper used in legacy mode !' 78474 DEBUG ++ set +x 78474 DEBUG ++ ynh_app_setting get monica phpversion 78475 DEBUG ++ ] 78475 DEBUG ++ ACTION=get 78475 DEBUG ++ APP=monica 78475 DEBUG ++ KEY=phpversion 78475 DEBUG ++ VALUE= 78476 DEBUG ++ python2.7 - 78576 DEBUG ++ ] 78576 DEBUG + local phpversion=7.3 78577 DEBUG + phpversion=7.3 78577 DEBUG + '' 78577 DEBUG + '' 78577 DEBUG + ynh_package_is_installed --package=php7.3-fpm 78578 DEBUG + local legacy_args=p 78578 DEBUG + args_array=(=package=) 78578 DEBUG + local -A args_array 78578 DEBUG + local package 78578 DEBUG + ynh_handle_getopts_args --package=php7.3-fpm 78579 DEBUG + set +o xtrace 78579 DEBUG + ynh_wait_dpkg_free 78579 DEBUG + local try 78579 DEBUG + set +o xtrace 79381 DEBUG + return 0 79381 DEBUG + dpkg-query --show '--showformat=${Status}' php7.3-fpm 79382 DEBUG + grep --count 'ok installed' 79382 DEBUG + ynh_systemd_action --service_name=php7.3-fpm --action=reload 79382 DEBUG + local legacy_args=nalpte 79382 DEBUG + args_array=(=service_name= =action= =line_match= =log_path= =timeout= =length=) 79383 DEBUG + local -A args_array 79383 DEBUG + local service_name 79383 DEBUG + local action 79383 DEBUG + local line_match 79384 DEBUG + local length 79384 DEBUG + local log_path 79384 DEBUG + local timeout 79384 DEBUG + ynh_handle_getopts_args --service_name=php7.3-fpm --action=reload 79384 DEBUG + set +o xtrace 79485 DEBUG + service_name=php7.3-fpm 79485 DEBUG + action=reload 79485 DEBUG + line_match= 79486 DEBUG + length=20 79486 DEBUG + log_path=/var/log/php7.3-fpm/php7.3-fpm.log 79486 DEBUG + timeout=300 79486 DEBUG + ] 79487 DEBUG + '' 79487 DEBUG + action=reload-or-restart 79487 DEBUG + systemctl reload-or-restart php7.3-fpm 79487 DEBUG + ] 79488 DEBUG + ynh_secure_remove --file=/etc/php/7.3/fpm/pool.d/monica.conf 79488 DEBUG + local legacy_args=f 79488 DEBUG + args_array=(=file=) 79488 DEBUG + local -A args_array 79489 DEBUG + local file 79489 DEBUG + ynh_handle_getopts_args --file=/etc/php/7.3/fpm/pool.d/monica.conf 79489 DEBUG + set +o xtrace 79489 DEBUG + local 'forbidden_path= /var/www /home/yunohost.app' 79489 DEBUG + '' 79490 DEBUG + ] 79490 DEBUG + ] 79490 DEBUG + ]+$ ]] 79490 DEBUG + ] 79491 DEBUG + '' 79491 DEBUG + rm --recursive /etc/php/7.3/fpm/pool.d/monica.conf 79491 DEBUG + '' 79492 DEBUG + '' 79492 DEBUG + ynh_script_progression '--message=Removing the cron file...' 79492 DEBUG + set +o xtrace 79492 DEBUG + set +o xtrace 79493 DEBUG + echo '! Helper used in legacy mode !' 79493 DEBUG + set +x 79493 DEBUG + echo ' > Removing the cron file...' 79493 DEBUG + set -o xtrace 79493 DEBUG + ynh_secure_remove --file=/etc/cron.d/monica 79494 DEBUG + local legacy_args=f 79494 DEBUG + args_array=(=file=) 79494 DEBUG + local -A args_array 79494 DEBUG + local file 79494 DEBUG + ynh_handle_getopts_args --file=/etc/cron.d/monica 79495 DEBUG + set +o xtrace 79495 DEBUG + local 'forbidden_path= /var/www /home/yunohost.app' 79495 DEBUG + '' 79495 DEBUG + ] 79496 DEBUG + ] 79496 DEBUG + ]+$ ]] 79496 DEBUG + ] 79496 DEBUG + '' 79496 DEBUG + ynh_print_info '--message='\''/etc/cron.d/monica'\'' wasn'\''t deleted because it doesn'\''t exist.' 79497 DEBUG + local legacy_args=m 79497 DEBUG + args_array=(=message=) 79497 DEBUG + local -A args_array 79497 DEBUG + local message 79497 DEBUG + ynh_handle_getopts_args '--message='\''/etc/cron.d/monica'\'' wasn'\''t deleted because it doesn'\''t exist.' 79498 DEBUG + set +o xtrace 79498 DEBUG + echo ''\''/etc/cron.d/monica'\'' wasn'\''t deleted because it doesn'\''t exist.' 79498 DEBUG + ynh_script_progression '--message=Removing the dedicated system user...' 79498 DEBUG + set +o xtrace 79599 DEBUG + set +o xtrace 79599 INFO > Removing the cron file... 79599 DEBUG + echo '! Helper used in legacy mode !' 79600 INFO '/etc/cron.d/monica' wasn't deleted because it doesn't exist. 79600 DEBUG + set +x 79600 INFO > Removing the dedicated system user... 79600 DEBUG + echo ' > Removing the dedicated system user...' 79600 DEBUG + set -o xtrace 79601 DEBUG + ynh_system_user_delete --username=monica 79601 DEBUG + local legacy_args=u 79601 DEBUG + args_array=(=username=) 79601 DEBUG + local -A args_array 79602 DEBUG + local username 79602 DEBUG + ynh_handle_getopts_args --username=monica 79602 DEBUG + set +o xtrace 79602 DEBUG + ynh_system_user_exists monica 79603 DEBUG + local legacy_args=u 79603 DEBUG + args_array=(=username=) 79603 DEBUG + local -A args_array 79603 DEBUG + local username 79603 DEBUG + ynh_handle_getopts_args monica 79604 DEBUG + set +o xtrace 79604 DEBUG + echo '! Helper used in legacy mode !' 79604 DEBUG + set +x 79604 DEBUG + getent passwd monica 79605 DEBUG + deluser monica 79705 DEBUG Removing user `monica' ... 79705 DEBUG Warning: group `monica' has no more members. 80007 DEBUG Done. 80007 DEBUG + ynh_system_group_exists monica 80007 DEBUG + local legacy_args=g 80007 DEBUG + args_array=(=group=) 80008 DEBUG + local -A args_array 80008 DEBUG + local group 80008 DEBUG + ynh_handle_getopts_args monica 80008 DEBUG + set +o xtrace 80009 DEBUG + echo '! Helper used in legacy mode !' 80009 DEBUG + set +x 80009 DEBUG + getent group monica 80009 DEBUG + ynh_script_progression '--message=Removal of monica completed' 80009 DEBUG + set +o xtrace 80010 DEBUG + set +o xtrace 80010 DEBUG + echo '! Helper used in legacy mode !' 80010 DEBUG + set +x 80010 DEBUG + echo ' > Removal of monica completed' 80010 DEBUG + set -o xtrace 80037 DEBUG Permission 'monica.main' deleted 80038 DEBUG To view the log of the operation 'Delete permission 'monica'', use the command 'yunohost log display 20201119-003312-permission_delete-monica' 80044 DEBUG Checking that required services are up and running... 80269 DEBUG To view the log of the operation 'Remove 'monica' after a failed installation', use the command 'yunohost log display 20201119-003300-remove_on_failed_install-monica' 80280 DEBUG The permission database has been resynchronized 80283 DEBUG SSOwat configuration generated 80291 DEBUG action executed in 80.108s 80291 DEBUG lock has been released 80292 ERROR The operation 'Install the 'monica' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20201119-003223-app_install-monica --share' to get help root@test:/# yunohost app install --debug https://github.com/YunoHost-Apps/monica_ynh/tree/testing^C root@test:/# yunohost log display 20201119-003300-remove_on_failed_install-monica description: Remove 'monica' after a failed installation log_path: /var/log/yunohost/categories/operation/20201119-003300-remove_on_failed_install-monica.log logs: - 2020-11-19 00:33:11,652: DEBUG - + set +o xtrace - 2020-11-19 00:33:11,753: DEBUG - + set +o xtrace - 2020-11-19 00:33:11,753: INFO - > Removing the cron file... - 2020-11-19 00:33:11,753: DEBUG - + echo '! Helper used in legacy mode !' - 2020-11-19 00:33:11,753: INFO - '/etc/cron.d/monica' wasn't deleted because it doesn't exist. - 2020-11-19 00:33:11,753: DEBUG - + set +x - 2020-11-19 00:33:11,754: INFO - > Removing the dedicated system user... - 2020-11-19 00:33:11,754: DEBUG - + echo ' > Removing the dedicated system user...' - 2020-11-19 00:33:11,754: DEBUG - + set -o xtrace - 2020-11-19 00:33:11,754: DEBUG - + ynh_system_user_delete --username=monica - 2020-11-19 00:33:11,755: DEBUG - + local legacy_args=u - 2020-11-19 00:33:11,755: DEBUG - + args_array=(=username=) - 2020-11-19 00:33:11,755: DEBUG - + local -A args_array - 2020-11-19 00:33:11,755: DEBUG - + local username - 2020-11-19 00:33:11,756: DEBUG - + ynh_handle_getopts_args --username=monica - 2020-11-19 00:33:11,756: DEBUG - + set +o xtrace - 2020-11-19 00:33:11,756: DEBUG - + ynh_system_user_exists monica - 2020-11-19 00:33:11,756: DEBUG - + local legacy_args=u - 2020-11-19 00:33:11,756: DEBUG - + args_array=(=username=) - 2020-11-19 00:33:11,757: DEBUG - + local -A args_array - 2020-11-19 00:33:11,757: DEBUG - + local username - 2020-11-19 00:33:11,757: DEBUG - + ynh_handle_getopts_args monica - 2020-11-19 00:33:11,757: DEBUG - + set +o xtrace - 2020-11-19 00:33:11,758: DEBUG - + echo '! Helper used in legacy mode !' - 2020-11-19 00:33:11,758: DEBUG - + set +x - 2020-11-19 00:33:11,758: DEBUG - + getent passwd monica - 2020-11-19 00:33:11,758: DEBUG - + deluser monica - 2020-11-19 00:33:11,859: DEBUG - Removing user `monica' ... - 2020-11-19 00:33:11,859: DEBUG - Warning: group `monica' has no more members. - 2020-11-19 00:33:12,160: DEBUG - Done. - 2020-11-19 00:33:12,161: DEBUG - + ynh_system_group_exists monica - 2020-11-19 00:33:12,161: DEBUG - + local legacy_args=g - 2020-11-19 00:33:12,161: DEBUG - + args_array=(=group=) - 2020-11-19 00:33:12,161: DEBUG - + local -A args_array - 2020-11-19 00:33:12,162: DEBUG - + local group - 2020-11-19 00:33:12,162: DEBUG - + ynh_handle_getopts_args monica - 2020-11-19 00:33:12,162: DEBUG - + set +o xtrace - 2020-11-19 00:33:12,162: DEBUG - + echo '! Helper used in legacy mode !' - 2020-11-19 00:33:12,162: DEBUG - + set +x - 2020-11-19 00:33:12,163: DEBUG - + getent group monica - 2020-11-19 00:33:12,163: DEBUG - + ynh_script_progression '--message=Removal of monica completed' - 2020-11-19 00:33:12,163: DEBUG - + set +o xtrace - 2020-11-19 00:33:12,163: DEBUG - + set +o xtrace - 2020-11-19 00:33:12,164: DEBUG - + echo '! Helper used in legacy mode !' - 2020-11-19 00:33:12,164: DEBUG - + set +x - 2020-11-19 00:33:12,164: DEBUG - + echo ' > Removal of monica completed' - 2020-11-19 00:33:12,164: DEBUG - + set -o xtrace - 2020-11-19 00:33:12,191: DEBUG - Permission 'monica.main' deleted - 2020-11-19 00:33:12,192: DEBUG - To view the log of the operation 'Delete permission 'monica'', use the command 'yunohost log display 20201119-003312-permission_delete-monica' - 2020-11-19 00:33:12,198: DEBUG - Checking that required services are up and running... metadata: ended_at: 2020-11-19 00:33:12 env: YNH_APP_ID: monica YNH_APP_INSTANCE_NAME: monica YNH_APP_INSTANCE_NUMBER: 1 YNH_CWD: /var/cache/yunohost/from_file/monica_ynh-testing/scripts YNH_INTERFACE: cli YNH_STDINFO: /tmp/tmp1rZdMo/stdinfo YNH_STDRETURN: /tmp/tmp_oc3eo/stdreturn error: None operation: remove_on_failed_install related_to: - app - monica started_at: 2020-11-19 00:33:00 success: True yunohost_version: 4.0.8 metadata_path: /var/log/yunohost/categories/operation/20201119-003300-remove_on_failed_install-monica.yml name: 20201119-003300-remove_on_failed_install-monica ```
anmol26s commented 3 years ago

@voarsh2 Till the sub-path issue gets fixed.

You can unofficial try this: $ yunohost app install --debug yunohost app install --debug https://github.com/YunoHost-Apps/monica_ynh/tree/2.19.1

voarsh2 commented 3 years ago

Success. You lot can do more testing and plan a release. Although... I still think /folder/ should be fixed. It can only be installed in / - root.

ericgaspar commented 3 years ago

Sorry, I was pushing towards this branch thinking it was mine ...

ericgaspar commented 3 years ago

!testme

yunohost-bot commented 3 years ago

Alrighty! Test Badge

anmol26s commented 3 years ago

!testme

yunohost-bot commented 3 years ago

Alrighty! Test Badge

anmol26s commented 3 years ago

!testme

yunohost-bot commented 3 years ago

:stuck_out_tongue_winking_eye: Test Badge

anmol26s commented 3 years ago

!testme

yunohost-bot commented 3 years ago

May the CI gods be with you! Test Badge

anmol26s commented 3 years ago

Thanks everyone for your support.