args:
  app: onlyoffice
  args: domain=angott.nohost.me&path=%2Fonlyoffice&nextclouddomain=https%3A%2F%2Fangott.nohost.me%2Fnextcloud%2F&is_public=1
  force: false
  label: OnlyOffice
  no_remove_on_failure: false
ended_at: 2019-11-16 20:33:18.358294
env:
  YNH_APP_ARG_DOMAIN: angott.nohost.me
  YNH_APP_ARG_IS_PUBLIC: 1
  YNH_APP_ARG_NEXTCLOUDDOMAIN: https://angott.nohost.me/nextcloud/
  YNH_APP_ARG_PATH: /onlyoffice
  YNH_APP_ID: onlyoffice
  YNH_APP_INSTANCE_NAME: onlyoffice
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_CWD: /var/cache/yunohost/from_file/onlyoffice_ynh-07c565b882c288a4490302f2123dc0dc1e76a74e/scripts
  YNH_INTERFACE: api
  YNH_STDINFO: /tmp/tmpjsUra2/stdinfo
  YNH_STDRETURN: /tmp/tmp0BLzvD/stdreturn
error: 'Une erreur inattendue est survenue : shell command return code: 1'
operation: app_install
related_to:
- - app
  - onlyoffice
started_at: 2019-11-16 20:32:52.121021
success: false

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

2019-11-16 21:32:52,165: INFO - Installation de l'application onlyoffice …
2019-11-16 21:32:52,653: DEBUG - Exécution de la commande 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/onlyoffice_ynh-07c565b882c288a4490302f2123dc0dc1e76a74e/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_STDRETURN=/tmp/tmp0BLzvD/stdreturn YNH_STDINFO=/tmp/tmpjsUra2/stdinfo YNH_APP_INSTANCE_NAME=onlyoffice YNH_APP_ARG_NEXTCLOUDDOMAIN=https://angott.nohost.me/nextcloud/ YNH_APP_ID=onlyoffice YNH_APP_ARG_PATH=/onlyoffice YNH_INTERFACE=api YNH_APP_ARG_DOMAIN=angott.nohost.me BASH_XTRACEFD=7 /bin/bash -x "./install" angott.nohost.me /onlyoffice https://angott.nohost.me/nextcloud/ 1 onlyoffice 7>&1' …
2019-11-16 21:32:52,657: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/onlyoffice_ynh-07c565b882c288a4490302f2123dc0dc1e76a74e/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_STDRETURN=/tmp/tmp0BLzvD/stdreturn YNH_STDINFO=/tmp/tmpjsUra2/stdinfo YNH_APP_INSTANCE_NAME=onlyoffice YNH_APP_ARG_NEXTCLOUDDOMAIN=https://angott.nohost.me/nextcloud/ YNH_APP_ID=onlyoffice YNH_APP_ARG_PATH=/onlyoffice YNH_INTERFACE=api YNH_APP_ARG_DOMAIN=angott.nohost.me BASH_XTRACEFD=7 /bin/bash -x "./install" angott.nohost.me /onlyoffice https://angott.nohost.me/nextcloud/ 1 onlyoffice 7>&1']'
2019-11-16 21:32:52,825: DEBUG - + source _common.sh
2019-11-16 21:32:52,829: DEBUG - ++ pkg_dependencies='postgresql libstdc++6 redis-server rabbitmq-server libcurl4-nss-dev'
2019-11-16 21:32:52,831: DEBUG - + source ynh_add_extra_apt_repos__3
2019-11-16 21:32:52,833: DEBUG - + source /usr/share/yunohost/helpers
2019-11-16 21:32:52,836: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2019-11-16 21:32:52,838: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,841: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2019-11-16 21:32:52,844: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt
2019-11-16 21:32:52,846: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,848: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2019-11-16 21:32:52,850: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup
2019-11-16 21:32:52,852: DEBUG - +++ CAN_BIND=1
2019-11-16 21:32:52,853: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,855: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2019-11-16 21:32:52,857: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban
2019-11-16 21:32:52,859: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,860: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2019-11-16 21:32:52,862: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2019-11-16 21:32:52,864: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,866: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2019-11-16 21:32:52,867: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging
2019-11-16 21:32:52,869: DEBUG - +++ increment_progression=0
2019-11-16 21:32:52,871: DEBUG - +++ previous_weight=0
2019-11-16 21:32:52,873: DEBUG - +++ max_progression=-1
2019-11-16 21:32:52,875: DEBUG - +++ progress_scale=20
2019-11-16 21:32:52,876: DEBUG - +++ progress_string2='####################'
2019-11-16 21:32:52,878: DEBUG - +++ progress_string1=++++++++++++++++++++
2019-11-16 21:32:52,880: DEBUG - +++ progress_string0=....................
2019-11-16 21:32:52,882: DEBUG - ++++ date +%s
2019-11-16 21:32:52,884: DEBUG - +++ base_time=1573936372
2019-11-16 21:32:52,886: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,888: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2019-11-16 21:32:52,890: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate
2019-11-16 21:32:52,892: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,894: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2019-11-16 21:32:52,896: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2019-11-16 21:32:52,898: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2019-11-16 21:32:52,899: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,901: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2019-11-16 21:32:52,903: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2019-11-16 21:32:52,905: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,906: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2019-11-16 21:32:52,908: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx
2019-11-16 21:32:52,910: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,912: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2019-11-16 21:32:52,913: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2019-11-16 21:32:52,915: DEBUG - +++ n_install_dir=/opt/node_n
2019-11-16 21:32:52,917: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2019-11-16 21:32:52,919: DEBUG - +++ export N_PREFIX=/opt/node_n
2019-11-16 21:32:52,920: DEBUG - +++ N_PREFIX=/opt/node_n
2019-11-16 21:32:52,922: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,924: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2019-11-16 21:32:52,925: DEBUG - ++ . /usr/share/yunohost/helpers.d/php
2019-11-16 21:32:52,927: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,929: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2019-11-16 21:32:52,931: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql
2019-11-16 21:32:52,932: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2019-11-16 21:32:52,934: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,936: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2019-11-16 21:32:52,938: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2019-11-16 21:32:52,939: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,941: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2019-11-16 21:32:52,943: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2019-11-16 21:32:52,945: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:52,947: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2019-11-16 21:32:52,948: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd
2019-11-16 21:32:53,051: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:53,054: INFO - Validating installation parameters...
2019-11-16 21:32:53,060: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2019-11-16 21:32:53,063: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2019-11-16 21:32:53,065: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-11-16 21:32:53,067: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2019-11-16 21:32:53,069: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2019-11-16 21:32:53,071: DEBUG - + ynh_abort_if_errors
2019-11-16 21:32:53,074: DEBUG - + set -eu
2019-11-16 21:32:53,076: DEBUG - + trap ynh_exit_properly EXIT
2019-11-16 21:32:53,078: DEBUG - + domain=angott.nohost.me
2019-11-16 21:32:53,080: DEBUG - + path_url=/onlyoffice
2019-11-16 21:32:53,082: DEBUG - + is_public=1
2019-11-16 21:32:53,084: DEBUG - + nextclouddomain=https://angott.nohost.me/nextcloud/
2019-11-16 21:32:53,087: DEBUG - + app=onlyoffice
2019-11-16 21:32:53,089: DEBUG - + ynh_print_info '--message=Validating installation parameters...'
2019-11-16 21:32:53,091: DEBUG - + local legacy_args=m
2019-11-16 21:32:53,093: DEBUG - + args_array=([m]=message=)
2019-11-16 21:32:53,096: DEBUG - + declare -Ar args_array
2019-11-16 21:32:53,098: DEBUG - + local message
2019-11-16 21:32:53,100: DEBUG - + ynh_handle_getopts_args '--message=Validating installation parameters...'
2019-11-16 21:32:53,102: DEBUG - + set +x
2019-11-16 21:32:53,104: DEBUG - + echo 'Validating installation parameters...'
2019-11-16 21:32:53,106: DEBUG - + ynh_webpath_register --app=onlyoffice --domain=angott.nohost.me --path_url=/onlyoffice
2019-11-16 21:32:53,108: DEBUG - + local legacy_args=adp
2019-11-16 21:32:53,110: DEBUG - + args_array=([a]=app= [d]=domain= [p]=path_url=)
2019-11-16 21:32:53,112: DEBUG - + declare -Ar args_array
2019-11-16 21:32:53,114: DEBUG - + local app
2019-11-16 21:32:53,116: DEBUG - + local domain
2019-11-16 21:32:53,117: DEBUG - + local path_url
2019-11-16 21:32:53,119: DEBUG - + ynh_handle_getopts_args --app=onlyoffice --domain=angott.nohost.me --path_url=/onlyoffice
2019-11-16 21:32:53,121: DEBUG - + set +x
2019-11-16 21:32:53,122: DEBUG - + sudo yunohost app register-url onlyoffice angott.nohost.me /onlyoffice
2019-11-16 21:32:55,836: DEBUG - + ynh_print_info '--message=Storing installation settings...'
2019-11-16 21:32:55,837: DEBUG - + local legacy_args=m
2019-11-16 21:32:55,838: DEBUG - + args_array=([m]=message=)
2019-11-16 21:32:55,839: DEBUG - + declare -Ar args_array
2019-11-16 21:32:55,839: DEBUG - + local message
2019-11-16 21:32:55,840: DEBUG - + ynh_handle_getopts_args '--message=Storing installation settings...'
2019-11-16 21:32:55,842: DEBUG - + set +x
2019-11-16 21:32:55,843: DEBUG - + echo 'Storing installation settings...'
2019-11-16 21:32:55,845: DEBUG - + ynh_app_setting_set --app=onlyoffice --key=domain --value=angott.nohost.me
2019-11-16 21:32:55,851: DEBUG - + local legacy_args=akv
2019-11-16 21:32:55,852: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-11-16 21:32:55,854: DEBUG - + declare -Ar args_array
2019-11-16 21:32:55,855: DEBUG - + local app
2019-11-16 21:32:55,857: DEBUG - + local key
2019-11-16 21:32:55,858: DEBUG - + local value
2019-11-16 21:32:55,860: DEBUG - + ynh_handle_getopts_args --app=onlyoffice --key=domain --value=angott.nohost.me
2019-11-16 21:32:55,861: DEBUG - + set +x
2019-11-16 21:32:55,962: DEBUG - + ynh_app_setting set onlyoffice domain angott.nohost.me
2019-11-16 21:32:55,964: INFO - Storing installation settings...
2019-11-16 21:32:55,965: DEBUG - + ACTION=set
2019-11-16 21:32:55,966: DEBUG - + APP=onlyoffice
2019-11-16 21:32:55,967: DEBUG - + KEY=domain
2019-11-16 21:32:55,967: DEBUG - + VALUE=angott.nohost.me
2019-11-16 21:32:55,968: DEBUG - + python -
2019-11-16 21:32:56,673: DEBUG - + ynh_app_setting_set --app=onlyoffice --key=path --value=/onlyoffice
2019-11-16 21:32:56,675: DEBUG - + local legacy_args=akv
2019-11-16 21:32:56,676: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-11-16 21:32:56,678: DEBUG - + declare -Ar args_array
2019-11-16 21:32:56,679: DEBUG - + local app
2019-11-16 21:32:56,680: DEBUG - + local key
2019-11-16 21:32:56,682: DEBUG - + local value
2019-11-16 21:32:56,683: DEBUG - + ynh_handle_getopts_args --app=onlyoffice --key=path --value=/onlyoffice
2019-11-16 21:32:56,684: DEBUG - + set +x
2019-11-16 21:32:56,686: DEBUG - + ynh_app_setting set onlyoffice path /onlyoffice
2019-11-16 21:32:56,688: DEBUG - + ACTION=set
2019-11-16 21:32:56,690: DEBUG - + APP=onlyoffice
2019-11-16 21:32:56,692: DEBUG - + KEY=path
2019-11-16 21:32:56,703: DEBUG - + VALUE=/onlyoffice
2019-11-16 21:32:56,706: DEBUG - + python -
2019-11-16 21:32:57,612: DEBUG - + ynh_app_setting_set --app=onlyoffice --key=is_public --value=1
2019-11-16 21:32:57,615: DEBUG - + local legacy_args=akv
2019-11-16 21:32:57,617: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-11-16 21:32:57,620: DEBUG - + declare -Ar args_array
2019-11-16 21:32:57,622: DEBUG - + local app
2019-11-16 21:32:57,630: DEBUG - + local key
2019-11-16 21:32:57,632: DEBUG - + local value
2019-11-16 21:32:57,635: DEBUG - + ynh_handle_getopts_args --app=onlyoffice --key=is_public --value=1
2019-11-16 21:32:57,637: DEBUG - + set +x
2019-11-16 21:32:57,744: DEBUG - + ynh_app_setting set onlyoffice is_public 1
2019-11-16 21:32:57,746: DEBUG - + ACTION=set
2019-11-16 21:32:57,748: DEBUG - + APP=onlyoffice
2019-11-16 21:32:57,750: DEBUG - + KEY=is_public
2019-11-16 21:32:57,752: DEBUG - + VALUE=1
2019-11-16 21:32:57,754: DEBUG - + python -
2019-11-16 21:32:58,661: DEBUG - + ynh_app_setting_set --app=onlyoffice --key=nextclouddomain --value=https://angott.nohost.me/nextcloud/
2019-11-16 21:32:58,663: DEBUG - + local legacy_args=akv
2019-11-16 21:32:58,665: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-11-16 21:32:58,666: DEBUG - + declare -Ar args_array
2019-11-16 21:32:58,668: DEBUG - + local app
2019-11-16 21:32:58,670: DEBUG - + local key
2019-11-16 21:32:58,671: DEBUG - + local value
2019-11-16 21:32:58,673: DEBUG - + ynh_handle_getopts_args --app=onlyoffice --key=nextclouddomain --value=https://angott.nohost.me/nextcloud/
2019-11-16 21:32:58,678: DEBUG - + set +x
2019-11-16 21:32:58,780: DEBUG - + ynh_app_setting set onlyoffice nextclouddomain https://angott.nohost.me/nextcloud/
2019-11-16 21:32:58,782: DEBUG - + ACTION=set
2019-11-16 21:32:58,784: DEBUG - + APP=onlyoffice
2019-11-16 21:32:58,786: DEBUG - + KEY=nextclouddomain
2019-11-16 21:32:58,788: DEBUG - + VALUE=https://angott.nohost.me/nextcloud/
2019-11-16 21:32:58,790: DEBUG - + python -
2019-11-16 21:32:59,595: DEBUG - + ynh_print_info '--message=Configuring firewall...'
2019-11-16 21:32:59,597: DEBUG - + local legacy_args=m
2019-11-16 21:32:59,598: INFO - Configuring firewall...
2019-11-16 21:32:59,600: DEBUG - + args_array=([m]=message=)
2019-11-16 21:32:59,601: DEBUG - + declare -Ar args_array
2019-11-16 21:32:59,602: DEBUG - + local message
2019-11-16 21:32:59,606: DEBUG - + ynh_handle_getopts_args '--message=Configuring firewall...'
2019-11-16 21:32:59,607: DEBUG - + set +x
2019-11-16 21:32:59,609: DEBUG - + echo 'Configuring firewall...'
2019-11-16 21:32:59,613: DEBUG - ++ ynh_find_port --port=8095
2019-11-16 21:32:59,615: DEBUG - ++ local legacy_args=p
2019-11-16 21:32:59,616: DEBUG - ++ args_array=([p]=port=)
2019-11-16 21:32:59,621: DEBUG - ++ declare -Ar args_array
2019-11-16 21:32:59,623: DEBUG - ++ local port
2019-11-16 21:32:59,625: DEBUG - ++ ynh_handle_getopts_args --port=8095
2019-11-16 21:32:59,629: DEBUG - ++ set +x
2019-11-16 21:32:59,631: DEBUG - ++ test -n 8095
2019-11-16 21:32:59,632: DEBUG - ++ netcat -z 127.0.0.1 8095
2019-11-16 21:32:59,637: DEBUG - ++ echo 8095
2019-11-16 21:32:59,639: DEBUG - + port=8095
2019-11-16 21:32:59,644: DEBUG - + ynh_app_setting_set --app=onlyoffice --key=port --value=8095
2019-11-16 21:32:59,646: DEBUG - + local legacy_args=akv
2019-11-16 21:32:59,647: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-11-16 21:32:59,649: DEBUG - + declare -Ar args_array
2019-11-16 21:32:59,650: DEBUG - + local app
2019-11-16 21:32:59,651: DEBUG - + local key
2019-11-16 21:32:59,653: DEBUG - + local value
2019-11-16 21:32:59,654: DEBUG - + ynh_handle_getopts_args --app=onlyoffice --key=port --value=8095
2019-11-16 21:32:59,656: DEBUG - + set +x
2019-11-16 21:32:59,657: DEBUG - + ynh_app_setting set onlyoffice port 8095
2019-11-16 21:32:59,659: DEBUG - + ACTION=set
2019-11-16 21:32:59,660: DEBUG - + APP=onlyoffice
2019-11-16 21:32:59,661: DEBUG - + KEY=port
2019-11-16 21:32:59,663: DEBUG - + VALUE=8095
2019-11-16 21:32:59,664: DEBUG - + python -
2019-11-16 21:33:00,369: DEBUG - + ynh_print_info '--message=Add nodejs repository...'
2019-11-16 21:33:00,371: DEBUG - + local legacy_args=m
2019-11-16 21:33:00,373: DEBUG - + args_array=([m]=message=)
2019-11-16 21:33:00,375: DEBUG - + declare -Ar args_array
2019-11-16 21:33:00,377: DEBUG - + local message
2019-11-16 21:33:00,378: DEBUG - + ynh_handle_getopts_args '--message=Add nodejs repository...'
2019-11-16 21:33:00,380: DEBUG - + set +x
2019-11-16 21:33:00,482: DEBUG - + echo 'Add nodejs repository...'
2019-11-16 21:33:00,484: INFO - Add nodejs repository...
2019-11-16 21:33:00,487: DEBUG - + ynh_install_extra_repo '--repo=deb https://deb.nodesource.com/node_8.x stretch main' --key=**********
2019-11-16 21:33:00,490: DEBUG - + local legacy_args=rkpna
2019-11-16 21:33:00,492: DEBUG - + args_array=([r]=repo= [k]=key= [p]=priority= [n]=name= [a]=append)
2019-11-16 21:33:00,494: DEBUG - + declare -Ar args_array
2019-11-16 21:33:00,496: DEBUG - + local repo
2019-11-16 21:33:00,498: DEBUG - + local key
2019-11-16 21:33:00,499: DEBUG - + local priority
2019-11-16 21:33:00,501: DEBUG - + local name
2019-11-16 21:33:00,504: DEBUG - + local append
2019-11-16 21:33:00,506: DEBUG - + ynh_handle_getopts_args '--repo=deb https://deb.nodesource.com/node_8.x stretch main' --key=**********
2019-11-16 21:33:00,508: DEBUG - + set +x
2019-11-16 21:33:00,510: DEBUG - + name=onlyoffice
2019-11-16 21:33:00,513: DEBUG - + append=0
2019-11-16 21:33:00,515: DEBUG - + key=**********
2019-11-16 21:33:00,518: DEBUG - + priority=
2019-11-16 21:33:00,520: DEBUG - + '[' 0 -eq 1 ']'
2019-11-16 21:33:00,521: DEBUG - + append=
2019-11-16 21:33:00,527: DEBUG - + wget_append=tee
2019-11-16 21:33:00,533: DEBUG - + repo='https://deb.nodesource.com/node_8.x stretch main'
2019-11-16 21:33:00,535: DEBUG - ++ echo 'https://deb.nodesource.com/node_8.x stretch main'
2019-11-16 21:33:00,537: DEBUG - ++ awk '{ print $1 }'
2019-11-16 21:33:00,539: DEBUG - + local uri=https://deb.nodesource.com/node_8.x
2019-11-16 21:33:00,541: DEBUG - ++ awk '{ print $2 }'
2019-11-16 21:33:00,543: DEBUG - ++ echo 'https://deb.nodesource.com/node_8.x stretch main'
2019-11-16 21:33:00,545: DEBUG - + local suite=stretch
2019-11-16 21:33:00,547: DEBUG - + local component=main
2019-11-16 21:33:00,549: DEBUG - + ynh_add_repo --uri=https://deb.nodesource.com/node_8.x --suite=stretch --component=main --name=onlyoffice
2019-11-16 21:33:00,551: DEBUG - + local legacy_args=uscna
2019-11-16 21:33:00,553: DEBUG - + args_array=([u]=uri= [s]=suite= [c]=component= [n]=name= [a]=append)
2019-11-16 21:33:00,555: DEBUG - + declare -Ar args_array
2019-11-16 21:33:00,558: DEBUG - + local uri
2019-11-16 21:33:00,560: DEBUG - + local suite
2019-11-16 21:33:00,561: DEBUG - + local component
2019-11-16 21:33:00,564: DEBUG - + local name
2019-11-16 21:33:00,566: DEBUG - + local append
2019-11-16 21:33:00,568: DEBUG - + ynh_handle_getopts_args --uri=https://deb.nodesource.com/node_8.x --suite=stretch --component=main --name=onlyoffice
2019-11-16 21:33:00,570: DEBUG - + set +x
2019-11-16 21:33:00,673: DEBUG - + name=onlyoffice
2019-11-16 21:33:00,675: DEBUG - + append=0
2019-11-16 21:33:00,677: DEBUG - + '[' 0 -eq 1 ']'
2019-11-16 21:33:00,679: DEBUG - + append=tee
2019-11-16 21:33:00,681: DEBUG - + mkdir -p /etc/apt/sources.list.d
2019-11-16 21:33:00,684: DEBUG - + echo 'deb https://deb.nodesource.com/node_8.x stretch main'
2019-11-16 21:33:00,685: DEBUG - + tee /etc/apt/sources.list.d/onlyoffice.list
2019-11-16 21:33:00,688: DEBUG - deb https://deb.nodesource.com/node_8.x stretch main
2019-11-16 21:33:00,690: DEBUG - + local pin=deb.nodesource.com/node_8.x
2019-11-16 21:33:00,692: DEBUG - + pin=deb.nodesource.com
2019-11-16 21:33:00,694: DEBUG - + '[' -n '' ']'
2019-11-16 21:33:00,696: DEBUG - + ynh_pin_repo '--package=*' '--pin=origin "deb.nodesource.com"' --name=onlyoffice
2019-11-16 21:33:00,698: DEBUG - + local legacy_args=pirna
2019-11-16 21:33:00,700: DEBUG - + args_array=([p]=package= [i]=pin= [r]=priority= [n]=name= [a]=append)
2019-11-16 21:33:00,703: DEBUG - + declare -Ar args_array
2019-11-16 21:33:00,705: DEBUG - + local package
2019-11-16 21:33:00,707: DEBUG - + local pin
2019-11-16 21:33:00,709: DEBUG - + local priority
2019-11-16 21:33:00,711: DEBUG - + local name
2019-11-16 21:33:00,713: DEBUG - + local append
2019-11-16 21:33:00,715: DEBUG - + ynh_handle_getopts_args '--package=*' '--pin=origin "deb.nodesource.com"' --name=onlyoffice
2019-11-16 21:33:00,717: DEBUG - + set +x
2019-11-16 21:33:00,820: DEBUG - + package='*'
2019-11-16 21:33:00,823: DEBUG - + priority=50
2019-11-16 21:33:00,825: DEBUG - + name=onlyoffice
2019-11-16 21:33:00,828: DEBUG - + append=0
2019-11-16 21:33:00,831: DEBUG - + '[' 0 -eq 1 ']'
2019-11-16 21:33:00,833: DEBUG - + append=tee
2019-11-16 21:33:00,836: DEBUG - + mkdir -p /etc/apt/preferences.d
2019-11-16 21:33:00,838: DEBUG - + echo 'Package: *
2019-11-16 21:33:00,840: DEBUG - Pin: origin "deb.nodesource.com"
2019-11-16 21:33:00,842: DEBUG - Pin-Priority: 50'
2019-11-16 21:33:00,845: DEBUG - + tee /etc/apt/preferences.d/onlyoffice
2019-11-16 21:33:00,846: DEBUG - Package: *
2019-11-16 21:33:00,848: DEBUG - Pin: origin "deb.nodesource.com"
2019-11-16 21:33:00,850: DEBUG - Pin-Priority: 50
2019-11-16 21:33:00,852: DEBUG - + '[' -n ********** ']'
2019-11-16 21:33:00,854: DEBUG - + mkdir -p /etc/apt/trusted.gpg.d
2019-11-16 21:33:00,856: DEBUG - + wget -q ********** -O -
2019-11-16 21:33:00,858: DEBUG - + gpg --dearmor
2019-11-16 21:33:00,860: DEBUG - + tee /etc/apt/trusted.gpg.d/onlyoffice.gpg
2019-11-16 21:33:01,366: DEBUG - + ynh_package_update
2019-11-16 21:33:01,368: DEBUG - + ynh_apt update
2019-11-16 21:33:01,371: DEBUG - + ynh_wait_dpkg_free
2019-11-16 21:33:01,373: DEBUG - + local try
2019-11-16 21:33:01,375: DEBUG - ++ seq 1 17
2019-11-16 21:33:01,377: DEBUG - + for try in `seq 1 17`
2019-11-16 21:33:01,378: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-11-16 21:33:02,485: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2019-11-16 21:33:02,487: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2019-11-16 21:33:02,488: DEBUG - + read dpkg_file
2019-11-16 21:33:02,489: DEBUG - + echo ''
2019-11-16 21:33:02,491: DEBUG - + grep -Pq '^[[:digit:]]+$'
2019-11-16 21:33:02,492: DEBUG - + read dpkg_file
2019-11-16 21:33:02,493: DEBUG - + return 0
2019-11-16 21:33:02,495: DEBUG - + DEBIAN_FRONTEND=noninteractive
2019-11-16 21:33:02,496: DEBUG - + apt-get -y update
2019-11-16 21:33:03,000: DEBUG - Réception de:1 http://archive.raspberrypi.org/debian stretch InRelease [25,4 kB]
2019-11-16 21:33:03,102: DEBUG - Atteint:2 http://forge.yunohost.org/debian stretch InRelease
2019-11-16 21:33:03,104: DEBUG - Atteint:3 http://raspbian.raspberrypi.org/raspbian stretch InRelease
2019-11-16 21:33:04,310: DEBUG - Réception de:4 https://deb.nodesource.com/node_8.x stretch InRelease [4 620 B]
2019-11-16 21:33:05,716: DEBUG - Réception de:5 https://deb.nodesource.com/node_8.x stretch/main armhf Packages [1 011 B]
2019-11-16 21:33:06,019: DEBUG - 31,0 ko réceptionnés en 2s (10,8 ko/s)
2019-11-16 21:33:10,634: DEBUG - Lecture des listes de paquets…
2019-11-16 21:33:10,735: DEBUG - + ynh_print_info '--message=Add OnlyOffice repository...'
2019-11-16 21:33:10,736: INFO - Add OnlyOffice repository...
2019-11-16 21:33:10,738: DEBUG - + local legacy_args=m
2019-11-16 21:33:10,739: DEBUG - + args_array=([m]=message=)
2019-11-16 21:33:10,740: DEBUG - + declare -Ar args_array
2019-11-16 21:33:10,740: DEBUG - + local message
2019-11-16 21:33:10,741: DEBUG - + ynh_handle_getopts_args '--message=Add OnlyOffice repository...'
2019-11-16 21:33:10,742: DEBUG - + set +x
2019-11-16 21:33:10,742: DEBUG - + echo 'Add OnlyOffice repository...'
2019-11-16 21:33:10,743: DEBUG - + apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
2019-11-16 21:33:11,045: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2019-11-16 21:33:11,148: DEBUG - Executing: /tmp/apt-key-gpghome.3CTKqT2Z7j/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
2019-11-16 21:33:17,470: DEBUG - + ynh_exit_properly
2019-11-16 21:33:17,472: WARNING - gpg: connecting dirmngr at '/run/user/0/gnupg/d.rhwmyqbq8rtginaw1rxd7pc9/S.dirmngr' failed: Échec de l'appel IPC connect
2019-11-16 21:33:17,476: DEBUG - + local exit_code=2
2019-11-16 21:33:17,477: WARNING - gpg: keyserver receive failed: Pas de dirmngr
2019-11-16 21:33:17,481: DEBUG - + '[' 2 -eq 0 ']'
2019-11-16 21:33:17,483: DEBUG - + trap '' EXIT
2019-11-16 21:33:17,485: DEBUG - + set +eu
2019-11-16 21:33:17,486: DEBUG - + sleep 0.5
2019-11-16 21:33:18,090: DEBUG - + ynh_print_err '--message=!!\n  onlyoffice'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-11-16 21:33:18,091: DEBUG - + local legacy_args=m
2019-11-16 21:33:18,092: DEBUG - + args_array=([m]=message=)
2019-11-16 21:33:18,094: DEBUG - + declare -Ar args_array
2019-11-16 21:33:18,095: DEBUG - + local message
2019-11-16 21:33:18,095: DEBUG - + ynh_handle_getopts_args '--message=!!\n  onlyoffice'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-11-16 21:33:18,096: DEBUG - + set +x
2019-11-16 21:33:18,197: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n  onlyoffice'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-11-16 21:33:18,198: WARNING - [ERR] !!
2019-11-16 21:33:18,200: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n  onlyoffice'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-11-16 21:33:18,202: WARNING -   onlyoffice's script has encountered an error. Its execution was cancelled.
2019-11-16 21:33:18,205: DEBUG - + '[' api == cli ']'
2019-11-16 21:33:18,206: WARNING - !!
2019-11-16 21:33:18,209: DEBUG - + type -t ynh_clean_setup
2019-11-16 21:33:18,210: WARNING - 
2019-11-16 21:33:18,213: DEBUG - + ynh_die
2019-11-16 21:33:18,214: DEBUG - + local legacy_args=mc
2019-11-16 21:33:18,215: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-11-16 21:33:18,217: DEBUG - + declare -Ar args_array
2019-11-16 21:33:18,218: DEBUG - + local message
2019-11-16 21:33:18,219: DEBUG - + local ret_code
2019-11-16 21:33:18,220: DEBUG - + ynh_handle_getopts_args
2019-11-16 21:33:18,221: DEBUG - + set +x
2019-11-16 21:33:18,222: DEBUG - + echo ''
2019-11-16 21:33:18,224: DEBUG - + exit 1