Etherpad My pads installation error

Hello ! I have problems while installing Etherpad My pads on my yunohost with a Raspberry pi 3, I tried trough SSH annd webadmin and got always the same error (see bellow). I already rebooted the raspberry and tried an installation without the MyPads extention.

Did I miss something?

Thank you for your help !

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 4.2.6.1 (stable)
I have access to my server : Through SSH & through the webadmin

The logs:

args:
  app: etherpad_mypads
  args: domain=maindomain.tld&path=%2Fpad&admin=morgue&password='**********'&language=en&is_public=1&export=none&mypads=1&useldap=1
  force: false
  label: Etherpad MyPads
  no_remove_on_failure: false
ended_at: 2021-07-27 06:59:51.130423
env:
  YNH_APP_ARG_ADMIN: morgue
  YNH_APP_ARG_DOMAIN: maindomain.tld
  YNH_APP_ARG_EXPORT: none
  YNH_APP_ARG_IS_PUBLIC: '1'
  YNH_APP_ARG_LANGUAGE: en
  YNH_APP_ARG_MYPADS: '1'
  YNH_APP_ARG_PATH: /pad
  YNH_APP_ARG_USELDAP: '1'
  YNH_APP_ID: etherpad_mypads
  YNH_APP_INSTANCE_NAME: etherpad_mypads
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 1.8.14~ynh1
error: "Une erreur est survenue dans le script d\u2019installation de l\u2019application"
interface: api
operation: app_install
parent: null
related_to:
- - app
  - etherpad_mypads
started_at: 2021-07-27 06:57:27.091650
success: false
yunohost_version: 4.2.6.1

============

2021-07-27 07:57:27,123: INFO - Installation de etherpad_mypads...
2021-07-27 07:57:27,693: DEBUG - Permission 'etherpad_mypads.main' mise à jour
2021-07-27 07:57:28,114: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20210727-065727-permission_url-etherpad_mypads" style="text-decoration:underline"> Mise à jour de l’URL associée à l’autorisation 'etherpad_mypads' </a>'
2021-07-27 07:57:28,986: DEBUG - The permission database has been resynchronized
2021-07-27 07:57:29,530: DEBUG - La configuration de SSOwat a été regénérée
2021-07-27 07:57:29,974: DEBUG - Permission 'etherpad_mypads.main' créée
2021-07-27 07:57:29,975: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20210727-065727-permission_create-etherpad_mypads" style="text-decoration:underline"> Créer permission 'etherpad_mypads' </a>'
2021-07-27 07:57:30,023: DEBUG - Executing command '/bin/bash -x "./install"  7>&1'
2021-07-27 07:57:30,048: DEBUG - + '[' 0 -eq 1 ']'
2021-07-27 07:57:30,050: DEBUG - + source _common.sh
2021-07-27 07:57:30,051: DEBUG - ++ abiword_app_depencencies=abiword
2021-07-27 07:57:30,052: DEBUG - ++ libreoffice_app_dependencies='unoconv libreoffice-writer'
2021-07-27 07:57:30,052: DEBUG - ++ nodejs_version=14
2021-07-27 07:57:30,053: DEBUG - ++ mypads_version=1.7.21
2021-07-27 07:57:30,053: DEBUG - ++ ep_align_version=0.3.34
2021-07-27 07:57:30,054: DEBUG - ++ ep_author_hover_version=0.3.21
2021-07-27 07:57:30,054: DEBUG - ++ ep_comments_page_version=0.1.63
2021-07-27 07:57:30,055: DEBUG - ++ ep_countable_version=0.0.11
2021-07-27 07:57:30,055: DEBUG - ++ ep_delete_empty_pads_version=0.0.7
2021-07-27 07:57:30,056: DEBUG - ++ ep_font_color_version=0.0.45
2021-07-27 07:57:30,056: DEBUG - ++ ep_headings2_version=0.2.30
2021-07-27 07:57:30,057: DEBUG - ++ ep_markdown_version=0.1.36
2021-07-27 07:57:30,058: DEBUG - ++ ep_page_view_version=0.5.24
2021-07-27 07:57:30,058: DEBUG - ++ ep_spellcheck_version=0.0.28
2021-07-27 07:57:30,059: DEBUG - ++ ep_subscript_and_superscript_version=0.2.30
2021-07-27 07:57:30,059: DEBUG - ++ ep_table_of_contents_version=0.3.22
2021-07-27 07:57:30,060: DEBUG - ++ ep_font_size_version=0.4.25
2021-07-27 07:57:30,061: DEBUG - + source /usr/share/yunohost/helpers
2021-07-27 07:57:30,067: DEBUG - +++ set +o
2021-07-27 07:57:30,068: DEBUG - +++ grep xtrace
2021-07-27 07:57:30,074: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-07-27 07:57:30,075: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2021-07-27 07:57:30,284: DEBUG - + ynh_abort_if_errors
2021-07-27 07:57:30,286: DEBUG - + set -o errexit
2021-07-27 07:57:30,287: DEBUG - + set -o nounset
2021-07-27 07:57:30,288: DEBUG - + trap ynh_exit_properly EXIT
2021-07-27 07:57:30,289: DEBUG - + domain=maindomain.tld
2021-07-27 07:57:30,290: DEBUG - + path_url=/pad
2021-07-27 07:57:30,291: DEBUG - + admin=morgue
2021-07-27 07:57:30,291: DEBUG - + ynh_print_OFF
2021-07-27 07:57:30,292: DEBUG - + exec
2021-07-27 07:57:30,293: DEBUG - + echo ynh_print_ON
2021-07-27 07:57:30,293: DEBUG - + language=en
2021-07-27 07:57:30,294: DEBUG - + is_public=1
2021-07-27 07:57:30,294: DEBUG - + export=none
2021-07-27 07:57:30,295: DEBUG - + mypads=1
2021-07-27 07:57:30,295: DEBUG - + useldap=1
2021-07-27 07:57:30,296: DEBUG - + app=etherpad_mypads
2021-07-27 07:57:30,498: INFO - [....................] > Validating installation parameters...
2021-07-27 07:57:30,501: DEBUG - + echo '[....................] > Validating installation parameters...'
2021-07-27 07:57:30,503: DEBUG - + ynh_print_OFF
2021-07-27 07:57:30,504: DEBUG - + exec
2021-07-27 07:57:30,504: DEBUG - + echo ynh_print_ON
2021-07-27 07:57:30,505: DEBUG - + final_path=/var/www/etherpad_mypads
2021-07-27 07:57:30,506: DEBUG - + test '!' -e /var/www/etherpad_mypads
2021-07-27 07:57:30,507: DEBUG - + ynh_webpath_register --app=etherpad_mypads --domain=maindomain.tld --path_url=/pad
2021-07-27 07:57:30,715: DEBUG - + yunohost app register-url etherpad_mypads maindomain.tld /pad
2021-07-27 07:57:36,761: DEBUG - + echo '[....................] > Storing installation settings...'
2021-07-27 07:57:36,763: INFO - [....................] > Storing installation settings...
2021-07-27 07:57:36,765: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=domain --value=maindomain.tld
2021-07-27 07:57:36,995: DEBUG - + [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:36,996: DEBUG - + ynh_app_setting set etherpad_mypads domain maindomain.tld
2021-07-27 07:57:37,305: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=path --value=/pad
2021-07-27 07:57:37,524: DEBUG - + [[ path =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:37,525: DEBUG - + ynh_app_setting set etherpad_mypads path /pad
2021-07-27 07:57:37,798: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=admin --value=morgue
2021-07-27 07:57:38,019: DEBUG - + [[ admin =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:38,020: DEBUG - + ynh_app_setting set etherpad_mypads admin morgue
2021-07-27 07:57:38,294: DEBUG - + ynh_print_OFF
2021-07-27 07:57:38,295: DEBUG - + exec
2021-07-27 07:57:38,791: DEBUG - + echo ynh_print_ON
2021-07-27 07:57:38,793: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=language --value=en
2021-07-27 07:57:39,008: DEBUG - + [[ language =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:39,009: DEBUG - + ynh_app_setting set etherpad_mypads language en
2021-07-27 07:57:39,285: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=export --value=none
2021-07-27 07:57:39,505: DEBUG - + [[ export =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:39,507: DEBUG - + ynh_app_setting set etherpad_mypads export none
2021-07-27 07:57:39,782: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=mypads --value=1
2021-07-27 07:57:40,001: DEBUG - + [[ mypads =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:40,002: DEBUG - + ynh_app_setting set etherpad_mypads mypads 1
2021-07-27 07:57:40,281: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=useldap --value=1
2021-07-27 07:57:40,498: DEBUG - + [[ useldap =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:40,500: DEBUG - + ynh_app_setting set etherpad_mypads useldap 1
2021-07-27 07:57:40,779: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=overwrite_settings --value=1
2021-07-27 07:57:41,079: DEBUG - + [[ overwrite_settings =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:41,081: DEBUG - + ynh_app_setting set etherpad_mypads overwrite_settings 1
2021-07-27 07:57:41,383: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=overwrite_credentials --value=1
2021-07-27 07:57:41,602: DEBUG - + [[ overwrite_credentials =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:41,603: DEBUG - + ynh_app_setting set etherpad_mypads overwrite_credentials 1
2021-07-27 07:57:41,883: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=overwrite_nginx --value=1
2021-07-27 07:57:42,102: DEBUG - + [[ overwrite_nginx =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:42,104: DEBUG - + ynh_app_setting set etherpad_mypads overwrite_nginx 1
2021-07-27 07:57:42,384: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=overwrite_systemd --value=1
2021-07-27 07:57:42,604: DEBUG - + [[ overwrite_systemd =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:42,606: DEBUG - + ynh_app_setting set etherpad_mypads overwrite_systemd 1
2021-07-27 07:57:43,127: DEBUG - + echo '[....................] > Finding an available port...'
2021-07-27 07:57:43,130: INFO - [....................] > Finding an available port...
2021-07-27 07:57:43,132: DEBUG - ++ ynh_find_port --port=9001
2021-07-27 07:57:43,166: DEBUG - ++ test -n 9001
2021-07-27 07:57:43,167: DEBUG - ++ ynh_port_available --port=9001
2021-07-27 07:57:43,203: DEBUG - ++ ss --numeric --listening --tcp --udp
2021-07-27 07:57:43,205: DEBUG - ++ grep --quiet --extended-regexp ':9001$'
2021-07-27 07:57:43,207: DEBUG - ++ awk '{print$5}'
2021-07-27 07:57:43,256: DEBUG - ++ grep -q 'port: '\''9001'\''' /etc/yunohost/apps/anarchism/settings.yml /etc/yunohost/apps/etherpad_mypads/settings.yml /etc/yunohost/apps/hedgedoc/settings.yml /etc/yunohost/apps/nextcloud/settings.yml /etc/yunohost/apps/opensondage/settings.yml /etc/yunohost/apps/rainloop/settings.yml
2021-07-27 07:57:43,262: DEBUG - ++ return 0
2021-07-27 07:57:43,263: DEBUG - ++ echo 9001
2021-07-27 07:57:43,264: DEBUG - + port=9001
2021-07-27 07:57:43,265: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=port --value=9001
2021-07-27 07:57:43,503: DEBUG - + [[ port =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:57:43,505: DEBUG - + ynh_app_setting set etherpad_mypads port 9001
2021-07-27 07:57:44,028: DEBUG - + echo '[++++++..............] > Installing dependencies...'
2021-07-27 07:57:44,030: INFO - [++++++..............] > Installing dependencies...
2021-07-27 07:57:44,033: DEBUG - + '[' none = abiword ']'
2021-07-27 07:57:44,034: DEBUG - + '[' none = libreoffice ']'
2021-07-27 07:57:44,281: DEBUG - + echo '[######+.............] > Installing NodeJS...'
2021-07-27 07:57:44,284: INFO - [######+.............] > Installing NodeJS...
2021-07-27 07:57:44,286: DEBUG - + ynh_install_nodejs --nodejs_version=14
2021-07-27 07:57:44,317: DEBUG - + mkdir --parents /opt/node_n
2021-07-27 07:57:44,322: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:57:44,325: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:57:44,327: DEBUG - ++ sed s@/usr/local/bin:@@
2021-07-27 07:57:44,334: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:57:44,335: DEBUG - + test -x /usr/bin/node
2021-07-27 07:57:44,335: DEBUG - + mv /usr/bin/node /usr/bin/node_n
2021-07-27 07:57:44,343: DEBUG - + test -x /usr/bin/npm
2021-07-27 07:57:44,345: DEBUG - + /opt/node_n/bin/n --version
2021-07-27 07:57:44,392: DEBUG - ++ /opt/node_n/bin/n --version
2021-07-27 07:57:44,438: DEBUG - + dpkg --compare-versions 7.2.2 lt 7.2.2
2021-07-27 07:57:44,445: DEBUG - + ynh_replace_string '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
2021-07-27 07:57:44,663: DEBUG - + local delimit=@
2021-07-27 07:57:44,665: DEBUG - + match_string='^N_PREFIX=${N_PREFIX-.*}$'
2021-07-27 07:57:44,665: DEBUG - + replace_string='N_PREFIX=${N_PREFIX-/opt/node_n}'
2021-07-27 07:57:44,666: DEBUG - + sed --in-place 's@^N_PREFIX=${N_PREFIX-.*}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g' /opt/node_n/bin/n
2021-07-27 07:57:44,674: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:57:44,675: DEBUG - + test -x /usr/bin/node_n
2021-07-27 07:57:44,675: DEBUG - + mv /usr/bin/node_n /usr/bin/node
2021-07-27 07:57:44,680: DEBUG - + test -x /usr/bin/npm_n
2021-07-27 07:57:44,682: DEBUG - ++ uname --machine
2021-07-27 07:57:44,686: DEBUG - + uname=armv7l
2021-07-27 07:57:44,687: DEBUG - + [[ armv7l =~ aarch64 ]]
2021-07-27 07:57:44,688: DEBUG - + [[ armv7l =~ arm64 ]]
2021-07-27 07:57:44,689: DEBUG - + n 14
2021-07-27 07:58:03,064: DEBUG -    installed : v14.17.3 (with npm 6.14.13)
2021-07-27 07:58:03,069: DEBUG - ++ sort --version-sort
2021-07-27 07:58:03,070: DEBUG - ++ find /opt/node_n/n/versions/node/14 /opt/node_n/n/versions/node/14.17.3 -maxdepth 0
2021-07-27 07:58:03,071: DEBUG - ++ tail --lines=1
2021-07-27 07:58:03,078: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/14.17.3
2021-07-27 07:58:03,080: DEBUG - ++ basename /opt/node_n/n/versions/node/14.17.3
2021-07-27 07:58:03,087: DEBUG - + real_nodejs_version=14.17.3
2021-07-27 07:58:03,088: DEBUG - + '[' '!' -e /opt/node_n/n/versions/node/14 ']'
2021-07-27 07:58:03,089: DEBUG - + echo etherpad_mypads:14
2021-07-27 07:58:03,090: DEBUG - + tee --append /opt/node_n/ynh_app_version
2021-07-27 07:58:03,102: DEBUG - etherpad_mypads:14
2021-07-27 07:58:03,104: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=nodejs_version --value=14
2021-07-27 07:58:03,326: DEBUG - + [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:58:03,327: DEBUG - + ynh_app_setting set etherpad_mypads nodejs_version 14
2021-07-27 07:58:03,615: DEBUG - + ynh_cron_upgrade_node
2021-07-27 07:58:03,617: DEBUG - + cat
2021-07-27 07:58:03,621: DEBUG - + chmod +x /opt/node_n/node_update.sh
2021-07-27 07:58:03,625: DEBUG - + cat
2021-07-27 07:58:03,631: DEBUG - + chmod +x /etc/cron.daily/node_update
2021-07-27 07:58:03,635: DEBUG - + ynh_use_nodejs
2021-07-27 07:58:03,637: DEBUG - ++ ynh_app_setting_get --app=etherpad_mypads --key=nodejs_version
2021-07-27 07:58:03,745: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:58:03,746: DEBUG - ++ ynh_app_setting get etherpad_mypads nodejs_version
2021-07-27 07:58:04,037: DEBUG - + nodejs_version=14
2021-07-27 07:58:04,039: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/14/bin
2021-07-27 07:58:04,040: DEBUG - + shopt -s expand_aliases
2021-07-27 07:58:04,040: DEBUG - + ynh_node=/opt/node_n/n/versions/node/14/bin/node
2021-07-27 07:58:04,041: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/14/bin/node
2021-07-27 07:58:04,042: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/14/bin/npm
2021-07-27 07:58:04,043: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/14/bin/npm
2021-07-27 07:58:04,044: DEBUG - + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: != *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\4\/\b\i\n* ]]
2021-07-27 07:58:04,044: DEBUG - + PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:58:04,045: DEBUG - + node_PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:58:04,046: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:58:04,047: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:58:04,196: DEBUG - + echo '[#######.............] > Creating a MySQL database...'
2021-07-27 07:58:04,199: INFO - [#######.............] > Creating a MySQL database...
2021-07-27 07:58:04,202: DEBUG - ++ ynh_sanitize_dbid --db_name=etherpad_mypads
2021-07-27 07:58:04,237: DEBUG - ++ echo etherpad_mypads
2021-07-27 07:58:04,238: DEBUG - + db_name=etherpad_mypads
2021-07-27 07:58:04,239: DEBUG - + db_user=etherpad_mypads
2021-07-27 07:58:04,240: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=db_name --value=etherpad_mypads
2021-07-27 07:58:04,477: DEBUG - + [[ db_name =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:58:04,479: DEBUG - + ynh_app_setting set etherpad_mypads db_name etherpad_mypads
2021-07-27 07:58:04,768: DEBUG - + ynh_mysql_setup_db --db_user=etherpad_mypads --db_name=etherpad_mypads
2021-07-27 07:58:04,772: DEBUG - + db_pwd=
2021-07-27 07:58:04,921: DEBUG - ++ ynh_string_random
2021-07-27 07:58:04,932: DEBUG - ++ length=24
2021-07-27 07:58:04,932: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2021-07-27 07:58:04,933: DEBUG - ++ tr --complement --delete A-Za-z0-9
2021-07-27 07:58:04,934: DEBUG - ++ sed --quiet 's/\(.\{24\}\).*/\1/p'
2021-07-27 07:58:04,949: DEBUG - + local new_db_pwd=**********
2021-07-27 07:58:04,951: DEBUG - + db_pwd=**********
2021-07-27 07:58:04,952: DEBUG - + ynh_mysql_create_db etherpad_mypads etherpad_mypads **********
2021-07-27 07:58:04,953: DEBUG - + local db=etherpad_mypads
2021-07-27 07:58:04,953: DEBUG - + local 'sql=CREATE DATABASE etherpad_mypads;'
2021-07-27 07:58:04,954: DEBUG - + [[ 3 -gt 1 ]]
2021-07-27 07:58:04,955: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON etherpad_mypads.* TO '\''etherpad_mypads'\''@'\''localhost'\'''
2021-07-27 07:58:04,956: DEBUG - + [[ -n ********** ]]
2021-07-27 07:58:04,956: DEBUG - + sql+=' IDENTIFIED BY '\''**********'\'''
2021-07-27 07:58:04,957: DEBUG - + sql+=' WITH GRANT OPTION;'
2021-07-27 07:58:04,958: DEBUG - + ynh_mysql_execute_as_root '--sql=CREATE DATABASE etherpad_mypads; GRANT ALL PRIVILEGES ON etherpad_mypads.* TO '\''etherpad_mypads'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;'
2021-07-27 07:58:05,011: DEBUG - + database=
2021-07-27 07:58:05,012: DEBUG - + '[' -n '' ']'
2021-07-27 07:58:05,013: DEBUG - + mysql -B ''
2021-07-27 07:58:05,079: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=mysqlpwd --value=**********
2021-07-27 07:58:05,315: DEBUG - + [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:58:05,317: DEBUG - + ynh_app_setting set etherpad_mypads mysqlpwd **********
2021-07-27 07:58:05,872: DEBUG - + echo '[#######.............] > Configuring system user...'
2021-07-27 07:58:05,874: INFO - [#######.............] > Configuring system user...
2021-07-27 07:58:05,876: DEBUG - + ynh_system_user_create --username=etherpad_mypads --home_dir=/var/www/etherpad_mypads
2021-07-27 07:58:06,087: DEBUG - + use_shell=0
2021-07-27 07:58:06,088: DEBUG - + home_dir=/var/www/etherpad_mypads
2021-07-27 07:58:06,089: DEBUG - + groups=
2021-07-27 07:58:06,090: DEBUG - + ynh_system_user_exists etherpad_mypads
2021-07-27 07:58:06,124: DEBUG - + getent passwd etherpad_mypads
2021-07-27 07:58:06,139: DEBUG - + '[' -n /var/www/etherpad_mypads ']'
2021-07-27 07:58:06,140: DEBUG - + local 'user_home_dir=--home-dir /var/www/etherpad_mypads'
2021-07-27 07:58:06,141: DEBUG - + '[' 0 -eq 1 ']'
2021-07-27 07:58:06,141: DEBUG - + local 'shell=--shell /usr/sbin/nologin'
2021-07-27 07:58:06,142: DEBUG - + useradd --home-dir /var/www/etherpad_mypads --system --user-group etherpad_mypads --shell /usr/sbin/nologin
2021-07-27 07:58:06,662: INFO - [#######.............] > Setting up source files...
2021-07-27 07:58:06,665: DEBUG - + echo '[#######.............] > Setting up source files...'
2021-07-27 07:58:06,668: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=final_path --value=/var/www/etherpad_mypads
2021-07-27 07:58:06,981: DEBUG - + [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:58:06,983: DEBUG - + ynh_app_setting set etherpad_mypads final_path /var/www/etherpad_mypads
2021-07-27 07:58:07,293: DEBUG - + ynh_setup_source --dest_dir=/var/www/etherpad_mypads
2021-07-27 07:58:07,377: DEBUG - + source_id=app
2021-07-27 07:58:07,378: DEBUG - + keep=
2021-07-27 07:58:07,379: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/app.src
2021-07-27 07:58:07,381: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/app.src
2021-07-27 07:58:07,382: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-27 07:58:07,388: DEBUG - + local src_url=https://github.com/ether/etherpad-lite/archive/1.8.14.tar.gz
2021-07-27 07:58:07,391: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/app.src
2021-07-27 07:58:07,393: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-27 07:58:07,399: DEBUG - + local src_sum=5404035675fb5ee9349d42927895bb3933590823612ebe31ca4cc523afdac49e
2021-07-27 07:58:07,402: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/app.src
2021-07-27 07:58:07,404: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-27 07:58:07,410: DEBUG - + local src_sumprg=sha256sum
2021-07-27 07:58:07,413: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/app.src
2021-07-27 07:58:07,415: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-27 07:58:07,422: DEBUG - + local src_format=
2021-07-27 07:58:07,425: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/app.src
2021-07-27 07:58:07,426: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-27 07:58:07,432: DEBUG - + local src_extract=
2021-07-27 07:58:07,436: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/app.src
2021-07-27 07:58:07,437: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-27 07:58:07,443: DEBUG - + local src_in_subdir=true
2021-07-27 07:58:07,446: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/app.src
2021-07-27 07:58:07,448: DEBUG - ++ cut --delimiter== --fields=2-
2021-07-27 07:58:07,454: DEBUG - + local src_filename=
2021-07-27 07:58:07,455: DEBUG - + src_sumprg=sha256sum
2021-07-27 07:58:07,456: DEBUG - + src_in_subdir=true
2021-07-27 07:58:07,458: DEBUG - + src_format=tar.gz
2021-07-27 07:58:07,459: DEBUG - ++ echo tar.gz
2021-07-27 07:58:07,460: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2021-07-27 07:58:07,464: DEBUG - + src_format=tar.gz
2021-07-27 07:58:07,465: DEBUG - + src_extract=true
2021-07-27 07:58:07,466: DEBUG - + '[' '' = '' ']'
2021-07-27 07:58:07,466: DEBUG - + src_filename=app.tar.gz
2021-07-27 07:58:07,467: DEBUG - + local local_src=/opt/yunohost-apps-src/etherpad_mypads/app.tar.gz
2021-07-27 07:58:07,468: DEBUG - + mkdir -p /var/cache/yunohost/download/etherpad_mypads/
2021-07-27 07:58:07,470: DEBUG - + src_filename=/var/cache/yunohost/download/etherpad_mypads/app.tar.gz
2021-07-27 07:58:07,471: DEBUG - + test -e /opt/yunohost-apps-src/etherpad_mypads/app.tar.gz
2021-07-27 07:58:07,472: DEBUG - + '[' -n https://github.com/ether/etherpad-lite/archive/1.8.14.tar.gz ']'
2021-07-27 07:58:07,474: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/etherpad_mypads/app.tar.gz https://github.com/ether/etherpad-lite/archive/1.8.14.tar.gz
2021-07-27 07:58:14,085: DEBUG - + out='2021-07-27 07:58:14 URL:https://codeload.github.com/ether/etherpad-lite/tar.gz/1.8.14 [4262330] -> "/var/cache/yunohost/download/etherpad_mypads/app.tar.gz" [1]'
2021-07-27 07:58:14,087: DEBUG - + echo '5404035675fb5ee9349d42927895bb3933590823612ebe31ca4cc523afdac49e /var/cache/yunohost/download/etherpad_mypads/app.tar.gz'
2021-07-27 07:58:14,088: DEBUG - + sha256sum --check --status
2021-07-27 07:58:14,171: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2021-07-27 07:58:14,175: DEBUG - + '[' -n '' ']'
2021-07-27 07:58:14,176: DEBUG - + mkdir --parents /var/www/etherpad_mypads
2021-07-27 07:58:14,180: DEBUG - + '[' -n /var/www/etherpad_mypads ']'
2021-07-27 07:58:14,181: DEBUG - + '[' /var/www/etherpad_mypads == /var/www/etherpad_mypads ']'
2021-07-27 07:58:14,182: DEBUG - + _ynh_apply_default_permissions /var/www/etherpad_mypads
2021-07-27 07:58:14,184: DEBUG - + local target=/var/www/etherpad_mypads
2021-07-27 07:58:14,185: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/manifest.json
2021-07-27 07:58:14,186: DEBUG - ++ tr -d '>= '
2021-07-27 07:58:14,237: DEBUG - + local ynh_requirement=4.2.4
2021-07-27 07:58:14,238: DEBUG - + '[' -z 4.2.4 ']'
2021-07-27 07:58:14,239: DEBUG - + '[' 4.2.4 == null ']'
2021-07-27 07:58:14,240: DEBUG - + dpkg --compare-versions 4.2.4 ge 4.2
2021-07-27 07:58:14,245: DEBUG - + chmod o-rwx /var/www/etherpad_mypads
2021-07-27 07:58:14,249: DEBUG - + chmod g-w /var/www/etherpad_mypads
2021-07-27 07:58:14,253: DEBUG - + chown -R root:root /var/www/etherpad_mypads
2021-07-27 07:58:14,268: DEBUG - + ynh_system_user_exists etherpad_mypads
2021-07-27 07:58:14,302: DEBUG - + getent passwd etherpad_mypads
2021-07-27 07:58:14,311: DEBUG - + chown etherpad_mypads:etherpad_mypads /var/www/etherpad_mypads
2021-07-27 07:58:14,321: DEBUG - + true
2021-07-27 07:58:14,322: DEBUG - + '[' tar.gz = zip ']'
2021-07-27 07:58:14,323: DEBUG - + local strip=
2021-07-27 07:58:14,324: DEBUG - + '[' true '!=' false ']'
2021-07-27 07:58:14,325: DEBUG - + '[' true == true ']'
2021-07-27 07:58:14,325: DEBUG - + local sub_dirs=1
2021-07-27 07:58:14,326: DEBUG - + strip='--strip-components 1'
2021-07-27 07:58:14,326: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2021-07-27 07:58:14,327: DEBUG - + tar --extract --file=/var/cache/yunohost/download/etherpad_mypads/app.tar.gz --directory=/var/www/etherpad_mypads --strip-components 1
2021-07-27 07:58:14,611: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/etherpad_mypads/app.tar.gz
2021-07-27 07:58:14,645: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2021-07-27 07:58:14,646: DEBUG - + '[' 1 -ge 2 ']'
2021-07-27 07:58:14,647: DEBUG - + [[ -z /var/cache/yunohost/download/etherpad_mypads/app.tar.gz ]]
2021-07-27 07:58:14,648: DEBUG - + [[      /var/www     /home/yunohost.app =~ /var/cache/yunohost/download/etherpad_mypads/app\.tar\.gz ]]
2021-07-27 07:58:14,649: DEBUG - + [[ /var/cache/yunohost/download/etherpad_mypads/app.tar.gz =~ ^/[[:alnum:]]+$ ]]
2021-07-27 07:58:14,650: DEBUG - + [[ z = \/ ]]
2021-07-27 07:58:14,650: DEBUG - + '[' -e /var/cache/yunohost/download/etherpad_mypads/app.tar.gz ']'
2021-07-27 07:58:14,651: DEBUG - + rm --recursive /var/cache/yunohost/download/etherpad_mypads/app.tar.gz
2021-07-27 07:58:14,656: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/sources/patches/ ']'
2021-07-27 07:58:14,657: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/sources/extra_files/app
2021-07-27 07:58:14,658: DEBUG - + '[' -n '' ']'
2021-07-27 07:58:14,659: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2021-07-27 07:58:14,918: DEBUG - + echo '[#######.............] > Configuring NGINX web server...'
2021-07-27 07:58:14,921: INFO - [#######.............] > Configuring NGINX web server...
2021-07-27 07:58:14,923: DEBUG - + ynh_add_nginx_config
2021-07-27 07:58:14,924: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:14,925: DEBUG - + '[' /pad '!=' / ']'
2021-07-27 07:58:14,926: DEBUG - + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/nginx.conf
2021-07-27 07:58:15,161: DEBUG - + local delimit=@
2021-07-27 07:58:15,163: DEBUG - + match_string='^#sub_path_only'
2021-07-27 07:58:15,163: DEBUG - + replace_string=
2021-07-27 07:58:15,164: DEBUG - + sed --in-place 's@^#sub_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/nginx.conf
2021-07-27 07:58:15,169: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/nginx.conf --destination=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,286: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf//var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/nginx.conf ']'
2021-07-27 07:58:15,287: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/nginx.conf ']'
2021-07-27 07:58:15,288: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/nginx.conf
2021-07-27 07:58:15,289: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,321: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_etherpad_mypads.conf
2021-07-27 07:58:15,323: DEBUG - ++ ynh_app_setting_get --app=etherpad_mypads --key=checksum__etc_nginx_conf.d_maindomain.tld.d_etherpad_mypads.conf
2021-07-27 07:58:15,432: DEBUG - ++ [[ checksum__etc_nginx_conf.d_maindomain.tld.d_etherpad_mypads.conf =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:58:15,434: DEBUG - ++ ynh_app_setting get etherpad_mypads checksum__etc_nginx_conf.d_maindomain.tld.d_etherpad_mypads.conf
2021-07-27 07:58:15,715: DEBUG - + local checksum_value=
2021-07-27 07:58:15,716: DEBUG - + backup_file_checksum=
2021-07-27 07:58:15,717: DEBUG - + '[' -n '' ']'
2021-07-27 07:58:15,718: DEBUG - + touch /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,720: DEBUG - + chown root:root /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,724: DEBUG - + chmod 640 /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,728: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/nginx.conf /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,735: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,736: DEBUG - + local target=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,738: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/manifest.json
2021-07-27 07:58:15,740: DEBUG - ++ tr -d '>= '
2021-07-27 07:58:15,758: DEBUG - + local ynh_requirement=4.2.4
2021-07-27 07:58:15,759: DEBUG - + '[' -z 4.2.4 ']'
2021-07-27 07:58:15,760: DEBUG - + '[' 4.2.4 == null ']'
2021-07-27 07:58:15,761: DEBUG - + dpkg --compare-versions 4.2.4 ge 4.2
2021-07-27 07:58:15,765: DEBUG - + chmod o-rwx /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,769: DEBUG - + chmod g-w /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,773: DEBUG - + chown -R root:root /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,777: DEBUG - + ynh_system_user_exists etherpad_mypads
2021-07-27 07:58:15,813: DEBUG - + getent passwd etherpad_mypads
2021-07-27 07:58:15,818: DEBUG - + chown etherpad_mypads:etherpad_mypads /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,822: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:15,859: DEBUG - + test -n /pad
2021-07-27 07:58:15,861: DEBUG - + local path_url_slash_less=/pad
2021-07-27 07:58:15,862: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/pad/ --target_file=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:16,083: DEBUG - + local delimit=@
2021-07-27 07:58:16,084: DEBUG - + match_string=__PATH__/
2021-07-27 07:58:16,085: DEBUG - + replace_string=/pad/
2021-07-27 07:58:16,086: DEBUG - + sed --in-place s@__PATH__/@/pad/@g /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:16,091: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/pad --target_file=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:16,320: DEBUG - + local delimit=@
2021-07-27 07:58:16,322: DEBUG - + match_string=__PATH__
2021-07-27 07:58:16,323: DEBUG - + replace_string=/pad
2021-07-27 07:58:16,323: DEBUG - + sed --in-place s@__PATH__@/pad@g /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:16,328: DEBUG - + test -n etherpad_mypads
2021-07-27 07:58:16,330: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=etherpad_mypads --target_file=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:16,596: DEBUG - + local delimit=@
2021-07-27 07:58:16,598: DEBUG - + match_string=__NAME__
2021-07-27 07:58:16,599: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:58:16,600: DEBUG - + sed --in-place s@__NAME__@etherpad_mypads@g /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:16,605: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=etherpad_mypads --target_file=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:16,913: DEBUG - + local delimit=@
2021-07-27 07:58:16,914: DEBUG - + match_string=__NAMETOCHANGE__
2021-07-27 07:58:16,915: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:58:16,916: DEBUG - + sed --in-place s@__NAMETOCHANGE__@etherpad_mypads@g /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:16,922: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=etherpad_mypads --target_file=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:17,241: DEBUG - + local delimit=@
2021-07-27 07:58:17,242: DEBUG - + match_string=__USER__
2021-07-27 07:58:17,243: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:58:17,245: DEBUG - + sed --in-place s@__USER__@etherpad_mypads@g /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:17,252: DEBUG - + test -n /var/www/etherpad_mypads
2021-07-27 07:58:17,253: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/etherpad_mypads --target_file=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:17,561: DEBUG - + local delimit=@
2021-07-27 07:58:17,562: DEBUG - + match_string=__FINALPATH__
2021-07-27 07:58:17,563: DEBUG - + replace_string=/var/www/etherpad_mypads
2021-07-27 07:58:17,564: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/etherpad_mypads@g /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:17,572: DEBUG - + test -n 7.3
2021-07-27 07:58:17,574: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:17,820: DEBUG - + local delimit=@
2021-07-27 07:58:17,821: DEBUG - + match_string=__PHPVERSION__
2021-07-27 07:58:17,822: DEBUG - + replace_string=7.3
2021-07-27 07:58:17,823: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:17,828: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:58:17,829: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:18,062: DEBUG - + local delimit=@
2021-07-27 07:58:18,063: DEBUG - + match_string=__YNH_NODE_LOAD_PATH__
2021-07-27 07:58:18,064: DEBUG - + replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:58:18,065: DEBUG - + sed --in-place s@__YNH_NODE_LOAD_PATH__@PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:18,069: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
2021-07-27 07:58:18,073: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:18,075: DEBUG - ++ sort --unique
2021-07-27 07:58:18,076: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-07-27 07:58:18,084: DEBUG - + local delimit=@
2021-07-27 07:58:18,085: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-07-27 07:58:18,086: DEBUG - + [[ -v port ]]
2021-07-27 07:58:18,087: DEBUG - + match_string=__PORT__
2021-07-27 07:58:18,087: DEBUG - + match_string=__PORT__
2021-07-27 07:58:18,088: DEBUG - + replace_string=9001
2021-07-27 07:58:18,089: DEBUG - + replace_string=9001
2021-07-27 07:58:18,089: DEBUG - + replace_string=9001
2021-07-27 07:58:18,090: DEBUG - + sed --in-place s@__PORT__@9001@g /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:18,092: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:18,126: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_etherpad_mypads.conf
2021-07-27 07:58:18,130: DEBUG - ++ md5sum /etc/nginx/conf.d/maindomain.tld.d/etherpad_mypads.conf
2021-07-27 07:58:18,131: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-07-27 07:58:18,141: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=checksum__etc_nginx_conf.d_maindomain.tld.d_etherpad_mypads.conf --value=aff6ef524cf0d41a39ef4aae077b1cd7
2021-07-27 07:58:18,380: DEBUG - + [[ checksum__etc_nginx_conf.d_maindomain.tld.d_etherpad_mypads.conf =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:58:18,382: DEBUG - + ynh_app_setting set etherpad_mypads checksum__etc_nginx_conf.d_maindomain.tld.d_etherpad_mypads.conf aff6ef524cf0d41a39ef4aae077b1cd7
2021-07-27 07:58:18,716: DEBUG - + '[' -n '' ']'
2021-07-27 07:58:18,717: DEBUG - + unset backup_file_checksum
2021-07-27 07:58:18,718: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2021-07-27 07:58:19,010: DEBUG - + service_name=nginx
2021-07-27 07:58:19,011: DEBUG - + action=reload
2021-07-27 07:58:19,012: DEBUG - + line_match=
2021-07-27 07:58:19,013: DEBUG - + length=20
2021-07-27 07:58:19,013: DEBUG - + log_path=/var/log/nginx/nginx.log
2021-07-27 07:58:19,014: DEBUG - + timeout=300
2021-07-27 07:58:19,014: DEBUG - + '[' reload == stop ']'
2021-07-27 07:58:19,015: DEBUG - + [[ -n '' ]]
2021-07-27 07:58:19,015: DEBUG - + '[' reload == reload ']'
2021-07-27 07:58:19,016: DEBUG - + action=reload-or-restart
2021-07-27 07:58:19,017: DEBUG - + systemctl reload-or-restart nginx
2021-07-27 07:58:19,420: DEBUG - + [[ -n '' ]]
2021-07-27 07:58:19,595: DEBUG - + echo '[#######.............] > Configuring log rotation...'
2021-07-27 07:58:19,597: DEBUG - + mkdir -p /var/log/etherpad_mypads
2021-07-27 07:58:19,598: INFO - [#######.............] > Configuring log rotation...
2021-07-27 07:58:19,603: DEBUG - + touch /var/log/etherpad_mypads/etherpad.log
2021-07-27 07:58:19,607: DEBUG - + install_log=/var/log/etherpad_mypads/installation.log
2021-07-27 07:58:19,608: DEBUG - + touch /var/log/etherpad_mypads/installation.log
2021-07-27 07:58:19,612: DEBUG - + chown etherpad_mypads -R /var/log/etherpad_mypads
2021-07-27 07:58:19,616: DEBUG - + ynh_use_logrotate --specific_user=etherpad_mypads/etherpad_mypads
2021-07-27 07:58:19,771: DEBUG - + logfile=
2021-07-27 07:58:19,772: DEBUG - + nonappend=0
2021-07-27 07:58:19,774: DEBUG - + specific_user=etherpad_mypads/etherpad_mypads
2021-07-27 07:58:19,775: DEBUG - + '[' 1 -gt 0 ']'
2021-07-27 07:58:19,776: DEBUG - + '[' --specific_user=etherpad_mypads/etherpad_mypads == --non-append ']'
2021-07-27 07:58:19,777: DEBUG - + '[' 1 -gt 1 ']'
2021-07-27 07:58:19,778: DEBUG - + '[' 1 -gt 0 ']'
2021-07-27 07:58:19,779: DEBUG - ++ echo -
2021-07-27 07:58:19,780: DEBUG - + '[' - '!=' - ']'
2021-07-27 07:58:19,781: DEBUG - + local 'customtee=tee --append'
2021-07-27 07:58:19,782: DEBUG - + '[' 0 -eq 1 ']'
2021-07-27 07:58:19,783: DEBUG - + '[' -n '' ']'
2021-07-27 07:58:19,784: DEBUG - + logfile='/var/log/etherpad_mypads/*.log'
2021-07-27 07:58:19,785: DEBUG - + local su_directive=
2021-07-27 07:58:19,786: DEBUG - + [[ -n etherpad_mypads/etherpad_mypads ]]
2021-07-27 07:58:19,787: DEBUG - + su_directive='	# Run logorotate as specific user - group
2021-07-27 07:58:19,789: DEBUG -     su etherpad_mypads etherpad_mypads'
2021-07-27 07:58:19,789: DEBUG - + cat
2021-07-27 07:58:19,790: DEBUG - ++ dirname '/var/log/etherpad_mypads/*.log'
2021-07-27 07:58:19,791: DEBUG - + mkdir --parents /var/log/etherpad_mypads
2021-07-27 07:58:19,797: DEBUG - + cat etherpad_mypads-logrotate
2021-07-27 07:58:19,798: DEBUG - + tee --append /etc/logrotate.d/etherpad_mypads
2021-07-27 07:58:20,074: INFO - [#######+++++........] > Installing Etherpad...
2021-07-27 07:58:20,077: DEBUG - + echo '[#######+++++........] > Installing Etherpad...'
2021-07-27 07:58:20,079: DEBUG - + chown -R etherpad_mypads: /var/www/etherpad_mypads
2021-07-27 07:58:20,100: DEBUG - + pushd /var/www/etherpad_mypads
2021-07-27 07:58:20,101: DEBUG - /var/www/etherpad_mypads /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/scripts
2021-07-27 07:58:20,103: DEBUG - + ynh_use_nodejs
2021-07-27 07:58:20,104: DEBUG - ++ ynh_app_setting_get --app=etherpad_mypads --key=nodejs_version
2021-07-27 07:58:20,219: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:58:20,220: DEBUG - ++ ynh_app_setting get etherpad_mypads nodejs_version
2021-07-27 07:58:20,501: DEBUG - + nodejs_version=14
2021-07-27 07:58:20,502: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/14/bin
2021-07-27 07:58:20,504: DEBUG - + shopt -s expand_aliases
2021-07-27 07:58:20,505: DEBUG - + ynh_node=/opt/node_n/n/versions/node/14/bin/node
2021-07-27 07:58:20,506: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/14/bin/node
2021-07-27 07:58:20,507: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/14/bin/npm
2021-07-27 07:58:20,507: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/14/bin/npm
2021-07-27 07:58:20,508: DEBUG - + [[ :/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: != *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\4\/\b\i\n* ]]
2021-07-27 07:58:20,508: DEBUG - + node_PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:58:20,509: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:58:20,510: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:58:20,510: DEBUG - + ynh_exec_as etherpad_mypads env PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin bin/installDeps.sh
2021-07-27 07:58:20,511: DEBUG - + local user=etherpad_mypads
2021-07-27 07:58:20,512: DEBUG - + shift 1
2021-07-27 07:58:20,513: DEBUG - ++ whoami
2021-07-27 07:58:20,514: DEBUG - + [[ etherpad_mypads = root ]]
2021-07-27 07:58:20,515: DEBUG - + sudo -u etherpad_mypads env PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin bin/installDeps.sh
2021-07-27 07:58:21,863: DEBUG - Copy the settings template to settings.json...
2021-07-27 07:58:21,868: DEBUG - Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.
2021-07-27 07:59:20,811: DEBUG - added 713 packages in 56.374s
2021-07-27 07:59:20,849: DEBUG - Clearing minified cache...
2021-07-27 07:59:20,947: DEBUG - + popd
2021-07-27 07:59:20,947: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/scripts
2021-07-27 07:59:21,262: INFO - [############+.......] > Configuring Etherpad...
2021-07-27 07:59:21,265: DEBUG - + echo '[############+.......] > Configuring Etherpad...'
2021-07-27 07:59:21,267: DEBUG - + cp ../conf/settings.json /var/www/etherpad_mypads/settings.json
2021-07-27 07:59:21,320: DEBUG - + ynh_replace_string --match_string=__PORT__ --replace_string=9001 --target_file=/var/www/etherpad_mypads/settings.json
2021-07-27 07:59:21,567: DEBUG - + local delimit=@
2021-07-27 07:59:21,568: DEBUG - + match_string=__PORT__
2021-07-27 07:59:21,569: DEBUG - + replace_string=9001
2021-07-27 07:59:21,570: DEBUG - + sed --in-place s@__PORT__@9001@g /var/www/etherpad_mypads/settings.json
2021-07-27 07:59:21,652: DEBUG - + '[' none = abiword ']'
2021-07-27 07:59:21,653: DEBUG - + '[' none = libreoffice ']'
2021-07-27 07:59:21,655: DEBUG - + ynh_replace_string --match_string=__LANGUAGE__ --replace_string=en --target_file=/var/www/etherpad_mypads/settings.json
2021-07-27 07:59:21,987: DEBUG - + local delimit=@
2021-07-27 07:59:21,988: DEBUG - + match_string=__LANGUAGE__
2021-07-27 07:59:21,989: DEBUG - + replace_string=en
2021-07-27 07:59:21,990: DEBUG - + sed --in-place s@__LANGUAGE__@en@g /var/www/etherpad_mypads/settings.json
2021-07-27 07:59:22,000: DEBUG - + '[' 1 -eq 1 ']'
2021-07-27 07:59:22,001: DEBUG - + '[' 1 -eq 1 ']'
2021-07-27 07:59:22,003: DEBUG - + ynh_replace_string '--match_string=//noldap\(.*\)' '--replace_string=\1 //useldap' --target_file=/var/www/etherpad_mypads/settings.json
2021-07-27 07:59:22,264: DEBUG - + local delimit=@
2021-07-27 07:59:22,266: DEBUG - + match_string='//noldap\(.*\)'
2021-07-27 07:59:22,267: DEBUG - + replace_string='\1 //useldap'
2021-07-27 07:59:22,268: DEBUG - + sed --in-place 's@//noldap\(.*\)@\1 //useldap@g' /var/www/etherpad_mypads/settings.json
2021-07-27 07:59:22,284: DEBUG - + ynh_store_file_checksum --file=/var/www/etherpad_mypads/settings.json
2021-07-27 07:59:22,441: DEBUG - + local checksum_setting_name=checksum__var_www_etherpad_mypads_settings.json
2021-07-27 07:59:22,442: DEBUG - ++ md5sum /var/www/etherpad_mypads/settings.json
2021-07-27 07:59:22,443: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-07-27 07:59:22,443: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=checksum__var_www_etherpad_mypads_settings.json --value=17a1fcfefad090a810102f92ae905e38
2021-07-27 07:59:22,585: DEBUG - + [[ checksum__var_www_etherpad_mypads_settings.json =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:59:22,586: DEBUG - + ynh_app_setting set etherpad_mypads checksum__var_www_etherpad_mypads_settings.json 17a1fcfefad090a810102f92ae905e38
2021-07-27 07:59:23,517: DEBUG - + '[' -n '' ']'
2021-07-27 07:59:23,518: DEBUG - + unset backup_file_checksum
2021-07-27 07:59:23,519: DEBUG - + ynh_add_config --template=../conf/credentials.json --destination=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:23,628: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/../conf/credentials.json ']'
2021-07-27 07:59:23,629: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/../conf/credentials.json
2021-07-27 07:59:23,630: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:23,663: DEBUG - + local checksum_setting_name=checksum__var_www_etherpad_mypads_credentials.json
2021-07-27 07:59:23,665: DEBUG - ++ ynh_app_setting_get --app=etherpad_mypads --key=checksum__var_www_etherpad_mypads_credentials.json
2021-07-27 07:59:23,778: DEBUG - ++ [[ checksum__var_www_etherpad_mypads_credentials.json =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:59:23,780: DEBUG - ++ ynh_app_setting get etherpad_mypads checksum__var_www_etherpad_mypads_credentials.json
2021-07-27 07:59:24,069: DEBUG - + local checksum_value=
2021-07-27 07:59:24,070: DEBUG - + backup_file_checksum=
2021-07-27 07:59:24,071: DEBUG - + '[' -n '' ']'
2021-07-27 07:59:24,072: DEBUG - + touch /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,073: DEBUG - + chown root:root /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,079: DEBUG - + chmod 640 /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,084: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/../conf/credentials.json /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,095: DEBUG - + _ynh_apply_default_permissions /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,096: DEBUG - + local target=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,099: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/manifest.json
2021-07-27 07:59:24,101: DEBUG - ++ tr -d '>= '
2021-07-27 07:59:24,125: DEBUG - + local ynh_requirement=4.2.4
2021-07-27 07:59:24,127: DEBUG - + '[' -z 4.2.4 ']'
2021-07-27 07:59:24,128: DEBUG - + '[' 4.2.4 == null ']'
2021-07-27 07:59:24,128: DEBUG - + dpkg --compare-versions 4.2.4 ge 4.2
2021-07-27 07:59:24,138: DEBUG - + chmod o-rwx /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,142: DEBUG - + chmod g-w /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,147: DEBUG - + chown -R root:root /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,153: DEBUG - + ynh_system_user_exists etherpad_mypads
2021-07-27 07:59:24,198: DEBUG - + getent passwd etherpad_mypads
2021-07-27 07:59:24,204: DEBUG - + chown etherpad_mypads:etherpad_mypads /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,210: DEBUG - + ynh_replace_vars --file=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,257: DEBUG - + test -n /pad
2021-07-27 07:59:24,259: DEBUG - + local path_url_slash_less=/pad
2021-07-27 07:59:24,260: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/pad/ --target_file=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,559: DEBUG - + local delimit=@
2021-07-27 07:59:24,561: DEBUG - + match_string=__PATH__/
2021-07-27 07:59:24,562: DEBUG - + replace_string=/pad/
2021-07-27 07:59:24,563: DEBUG - + sed --in-place s@__PATH__/@/pad/@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,569: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/pad --target_file=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,870: DEBUG - + local delimit=@
2021-07-27 07:59:24,872: DEBUG - + match_string=__PATH__
2021-07-27 07:59:24,873: DEBUG - + replace_string=/pad
2021-07-27 07:59:24,874: DEBUG - + sed --in-place s@__PATH__@/pad@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:24,881: DEBUG - + test -n etherpad_mypads
2021-07-27 07:59:24,883: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=etherpad_mypads --target_file=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:25,162: DEBUG - + local delimit=@
2021-07-27 07:59:25,164: DEBUG - + match_string=__NAME__
2021-07-27 07:59:25,165: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:25,165: DEBUG - + sed --in-place s@__NAME__@etherpad_mypads@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:25,170: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=etherpad_mypads --target_file=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:25,405: DEBUG - + local delimit=@
2021-07-27 07:59:25,406: DEBUG - + match_string=__NAMETOCHANGE__
2021-07-27 07:59:25,407: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:25,408: DEBUG - + sed --in-place s@__NAMETOCHANGE__@etherpad_mypads@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:25,413: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=etherpad_mypads --target_file=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:25,646: DEBUG - + local delimit=@
2021-07-27 07:59:25,647: DEBUG - + match_string=__USER__
2021-07-27 07:59:25,648: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:25,649: DEBUG - + sed --in-place s@__USER__@etherpad_mypads@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:25,654: DEBUG - + test -n /var/www/etherpad_mypads
2021-07-27 07:59:25,655: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/etherpad_mypads --target_file=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:25,936: DEBUG - + local delimit=@
2021-07-27 07:59:25,938: DEBUG - + match_string=__FINALPATH__
2021-07-27 07:59:25,938: DEBUG - + replace_string=/var/www/etherpad_mypads
2021-07-27 07:59:25,939: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/etherpad_mypads@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:25,946: DEBUG - + test -n 7.3
2021-07-27 07:59:25,948: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:26,264: DEBUG - + local delimit=@
2021-07-27 07:59:26,265: DEBUG - + match_string=__PHPVERSION__
2021-07-27 07:59:26,266: DEBUG - + replace_string=7.3
2021-07-27 07:59:26,267: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:26,271: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:59:26,273: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:26,508: DEBUG - + local delimit=@
2021-07-27 07:59:26,510: DEBUG - + match_string=__YNH_NODE_LOAD_PATH__
2021-07-27 07:59:26,510: DEBUG - + replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:59:26,511: DEBUG - + sed --in-place s@__YNH_NODE_LOAD_PATH__@PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:26,516: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
2021-07-27 07:59:26,520: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:26,521: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-07-27 07:59:26,523: DEBUG - ++ sort --unique
2021-07-27 07:59:26,533: DEBUG - + local delimit=@
2021-07-27 07:59:26,534: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-07-27 07:59:26,535: DEBUG - + [[ -v admin ]]
2021-07-27 07:59:26,536: DEBUG - + match_string=__ADMIN__
2021-07-27 07:59:26,536: DEBUG - + match_string=__ADMIN__
2021-07-27 07:59:26,537: DEBUG - + replace_string=morgue
2021-07-27 07:59:26,538: DEBUG - + replace_string=morgue
2021-07-27 07:59:26,539: DEBUG - + replace_string=morgue
2021-07-27 07:59:26,539: DEBUG - + sed --in-place s@__ADMIN__@morgue@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:26,541: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-07-27 07:59:26,542: DEBUG - + [[ -v db_pwd ]]
2021-07-27 07:59:26,543: DEBUG - + match_string=__DB_PWD__
2021-07-27 07:59:26,544: DEBUG - + match_string=__DB_PWD__
2021-07-27 07:59:26,544: DEBUG - + replace_string=**********
2021-07-27 07:59:26,545: DEBUG - + replace_string=**********
2021-07-27 07:59:26,546: DEBUG - + replace_string=**********
2021-07-27 07:59:26,547: DEBUG - + sed --in-place s@__DB_PWD__@**********@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:26,548: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-07-27 07:59:26,550: DEBUG - + [[ -v db_user ]]
2021-07-27 07:59:26,550: DEBUG - + match_string=__DB_USER__
2021-07-27 07:59:26,551: DEBUG - + match_string=__DB_USER__
2021-07-27 07:59:26,552: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:26,552: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:26,553: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:26,554: DEBUG - + sed --in-place s@__DB_USER__@etherpad_mypads@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:26,556: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-07-27 07:59:26,558: DEBUG - + [[ -v password ]]
2021-07-27 07:59:26,559: DEBUG - + match_string=__PASSWORD__
2021-07-27 07:59:26,559: DEBUG - + match_string=__PASSWORD__
2021-07-27 07:59:26,560: DEBUG - + replace_string=**********
2021-07-27 07:59:26,561: DEBUG - + replace_string=**********
2021-07-27 07:59:26,562: DEBUG - + replace_string=**********
2021-07-27 07:59:26,562: DEBUG - + sed --in-place s@__PASSWORD__@**********@g /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:26,565: DEBUG - + ynh_store_file_checksum --file=/var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:26,600: DEBUG - + local checksum_setting_name=checksum__var_www_etherpad_mypads_credentials.json
2021-07-27 07:59:26,603: DEBUG - ++ md5sum /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:26,605: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-07-27 07:59:26,610: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=checksum__var_www_etherpad_mypads_credentials.json --value=47059a90ffaf6c6c368d929f7da84679
2021-07-27 07:59:26,844: DEBUG - + [[ checksum__var_www_etherpad_mypads_credentials.json =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:59:26,845: DEBUG - + ynh_app_setting set etherpad_mypads checksum__var_www_etherpad_mypads_credentials.json 47059a90ffaf6c6c368d929f7da84679
2021-07-27 07:59:27,167: DEBUG - + '[' -n '' ']'
2021-07-27 07:59:27,168: DEBUG - + unset backup_file_checksum
2021-07-27 07:59:27,169: DEBUG - + chmod 600 /var/www/etherpad_mypads/credentials.json
2021-07-27 07:59:27,171: DEBUG - + chmod 750 /var/www/etherpad_mypads
2021-07-27 07:59:27,175: DEBUG - + chmod o-rwx /var/www/etherpad_mypads
2021-07-27 07:59:27,180: DEBUG - + chown -R etherpad_mypads: /var/www/etherpad_mypads
2021-07-27 07:59:28,456: INFO - [#############.......] > Configuring a systemd service...
2021-07-27 07:59:28,459: DEBUG - + echo '[#############.......] > Configuring a systemd service...'
2021-07-27 07:59:28,461: DEBUG - + ynh_add_systemd_config
2021-07-27 07:59:28,469: DEBUG - + service=etherpad_mypads
2021-07-27 07:59:28,471: DEBUG - + template=systemd.service
2021-07-27 07:59:28,471: DEBUG - + others_var=
2021-07-27 07:59:28,472: DEBUG - + [[ -z '' ]]
2021-07-27 07:59:28,473: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/systemd.service --destination=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:28,575: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf//var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/systemd.service ']'
2021-07-27 07:59:28,577: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/systemd.service ']'
2021-07-27 07:59:28,578: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/systemd.service
2021-07-27 07:59:28,579: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:28,613: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_etherpad_mypads.service
2021-07-27 07:59:28,615: DEBUG - ++ ynh_app_setting_get --app=etherpad_mypads --key=checksum__etc_systemd_system_etherpad_mypads.service
2021-07-27 07:59:28,728: DEBUG - ++ [[ checksum__etc_systemd_system_etherpad_mypads.service =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:59:28,730: DEBUG - ++ ynh_app_setting get etherpad_mypads checksum__etc_systemd_system_etherpad_mypads.service
2021-07-27 07:59:29,021: DEBUG - + local checksum_value=
2021-07-27 07:59:29,022: DEBUG - + backup_file_checksum=
2021-07-27 07:59:29,023: DEBUG - + '[' -n '' ']'
2021-07-27 07:59:29,023: DEBUG - + touch /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,025: DEBUG - + chown root:root /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,029: DEBUG - + chmod 640 /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,033: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/conf/systemd.service /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,041: DEBUG - + _ynh_apply_default_permissions /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,043: DEBUG - + local target=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,046: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/manifest.json
2021-07-27 07:59:29,047: DEBUG - ++ tr -d '>= '
2021-07-27 07:59:29,066: DEBUG - + local ynh_requirement=4.2.4
2021-07-27 07:59:29,067: DEBUG - + '[' -z 4.2.4 ']'
2021-07-27 07:59:29,068: DEBUG - + '[' 4.2.4 == null ']'
2021-07-27 07:59:29,068: DEBUG - + dpkg --compare-versions 4.2.4 ge 4.2
2021-07-27 07:59:29,076: DEBUG - + chmod o-rwx /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,080: DEBUG - + chmod g-w /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,083: DEBUG - + chown -R root:root /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,088: DEBUG - + ynh_system_user_exists etherpad_mypads
2021-07-27 07:59:29,125: DEBUG - + getent passwd etherpad_mypads
2021-07-27 07:59:29,130: DEBUG - + chown etherpad_mypads:etherpad_mypads /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,135: DEBUG - + ynh_replace_vars --file=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,171: DEBUG - + test -n /pad
2021-07-27 07:59:29,172: DEBUG - + local path_url_slash_less=/pad
2021-07-27 07:59:29,173: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/pad/ --target_file=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,402: DEBUG - + local delimit=@
2021-07-27 07:59:29,403: DEBUG - + match_string=__PATH__/
2021-07-27 07:59:29,403: DEBUG - + replace_string=/pad/
2021-07-27 07:59:29,404: DEBUG - + sed --in-place s@__PATH__/@/pad/@g /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,412: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/pad --target_file=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,652: DEBUG - + local delimit=@
2021-07-27 07:59:29,654: DEBUG - + match_string=__PATH__
2021-07-27 07:59:29,654: DEBUG - + replace_string=/pad
2021-07-27 07:59:29,655: DEBUG - + sed --in-place s@__PATH__@/pad@g /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,660: DEBUG - + test -n etherpad_mypads
2021-07-27 07:59:29,661: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=etherpad_mypads --target_file=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,894: DEBUG - + local delimit=@
2021-07-27 07:59:29,895: DEBUG - + match_string=__NAME__
2021-07-27 07:59:29,896: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:29,897: DEBUG - + sed --in-place s@__NAME__@etherpad_mypads@g /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:29,902: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=etherpad_mypads --target_file=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:30,185: DEBUG - + local delimit=@
2021-07-27 07:59:30,187: DEBUG - + match_string=__NAMETOCHANGE__
2021-07-27 07:59:30,188: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:30,189: DEBUG - + sed --in-place s@__NAMETOCHANGE__@etherpad_mypads@g /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:30,199: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=etherpad_mypads --target_file=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:30,497: DEBUG - + local delimit=@
2021-07-27 07:59:30,499: DEBUG - + match_string=__USER__
2021-07-27 07:59:30,500: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:30,501: DEBUG - + sed --in-place s@__USER__@etherpad_mypads@g /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:30,506: DEBUG - + test -n /var/www/etherpad_mypads
2021-07-27 07:59:30,508: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/etherpad_mypads --target_file=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:30,807: DEBUG - + local delimit=@
2021-07-27 07:59:30,809: DEBUG - + match_string=__FINALPATH__
2021-07-27 07:59:30,810: DEBUG - + replace_string=/var/www/etherpad_mypads
2021-07-27 07:59:30,811: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/etherpad_mypads@g /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:30,819: DEBUG - + test -n 7.3
2021-07-27 07:59:30,820: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:31,138: DEBUG - + local delimit=@
2021-07-27 07:59:31,140: DEBUG - + match_string=__PHPVERSION__
2021-07-27 07:59:31,141: DEBUG - + replace_string=7.3
2021-07-27 07:59:31,142: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:31,149: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:59:31,151: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:31,466: DEBUG - + local delimit=@
2021-07-27 07:59:31,468: DEBUG - + match_string=__YNH_NODE_LOAD_PATH__
2021-07-27 07:59:31,469: DEBUG - + replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2021-07-27 07:59:31,470: DEBUG - + sed --in-place s@__YNH_NODE_LOAD_PATH__@PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:31,477: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
2021-07-27 07:59:31,482: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:31,484: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-07-27 07:59:31,485: DEBUG - ++ sort --unique
2021-07-27 07:59:31,497: DEBUG - + local delimit=@
2021-07-27 07:59:31,499: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-07-27 07:59:31,500: DEBUG - + [[ -v app ]]
2021-07-27 07:59:31,501: DEBUG - + match_string=__APP__
2021-07-27 07:59:31,502: DEBUG - + match_string=__APP__
2021-07-27 07:59:31,502: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:31,503: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:31,504: DEBUG - + replace_string=etherpad_mypads
2021-07-27 07:59:31,505: DEBUG - + sed --in-place s@__APP__@etherpad_mypads@g /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:31,507: DEBUG - + ynh_store_file_checksum --file=/etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:31,555: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_etherpad_mypads.service
2021-07-27 07:59:31,559: DEBUG - ++ md5sum /etc/systemd/system/etherpad_mypads.service
2021-07-27 07:59:31,561: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-07-27 07:59:31,570: DEBUG - + ynh_app_setting_set --app=etherpad_mypads --key=checksum__etc_systemd_system_etherpad_mypads.service --value=9b604848f128cf369e70de779667aa30
2021-07-27 07:59:31,877: DEBUG - + [[ checksum__etc_systemd_system_etherpad_mypads.service =~ (unprotected|protected|skipped)_ ]]
2021-07-27 07:59:31,879: DEBUG - + ynh_app_setting set etherpad_mypads checksum__etc_systemd_system_etherpad_mypads.service 9b604848f128cf369e70de779667aa30
2021-07-27 07:59:32,211: DEBUG - + '[' -n '' ']'
2021-07-27 07:59:32,213: DEBUG - + unset backup_file_checksum
2021-07-27 07:59:32,214: DEBUG - + systemctl enable etherpad_mypads --quiet
2021-07-27 07:59:33,855: DEBUG - + systemctl daemon-reload
2021-07-27 07:59:34,701: DEBUG - + yunohost service add etherpad_mypads '--description=Collaborative editor' --log=/var/log/etherpad_mypads/etherpad.log
2021-07-27 07:59:36,186: DEBUG - The service 'etherpad_mypads' was added
2021-07-27 07:59:36,638: DEBUG - + echo '[#############+++++..] > Installing Etherpad plugins...'
2021-07-27 07:59:36,640: INFO - [#############+++++..] > Installing Etherpad plugins...
2021-07-27 07:59:36,644: DEBUG - + pushd /var/www/etherpad_mypads
2021-07-27 07:59:36,645: DEBUG - /var/www/etherpad_mypads /var/cache/yunohost/app_tmp_work_dirs/app_90x_6nua/scripts
2021-07-27 07:59:36,646: DEBUG - + /opt/node_n/n/versions/node/14/bin/npm install ep_align@0.3.34
2021-07-27 07:59:49,602: DEBUG - + ynh_exit_properly
2021-07-27 07:59:49,603: DEBUG - + local exit_code=1
2021-07-27 07:59:49,604: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-07-27 07:59:49,607: DEBUG - + '[' 1 -eq 0 ']'
2021-07-27 07:59:49,608: DEBUG - + trap '' EXIT
2021-07-27 07:59:49,608: DEBUG - + set +o errexit
2021-07-27 07:59:49,609: DEBUG - + set +o nounset
2021-07-27 07:59:49,610: DEBUG - + sleep 0.5
2021-07-27 07:59:50,117: DEBUG - + type -t ynh_clean_setup
2021-07-27 07:59:50,118: DEBUG - + ynh_clean_setup
2021-07-27 07:59:50,119: DEBUG - + ynh_clean_check_starting
2021-07-27 07:59:50,120: DEBUG - + '[' -n '' ']'
2021-07-27 07:59:50,121: DEBUG - + '[' -n '' ']'
2021-07-27 07:59:50,122: DEBUG - + exit 1
2021-07-27 07:59:51,127: ERROR - Impossible d’installer etherpad_mypads : Une erreur est survenue dans le script d’installation de l’application

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.