args:
  app: seafile
  args: domain=interne.amisdeproust.fr&path=%2Fnuage&server_name=Nuage&admin=eric&admin_password='**********'&is_public=1
  force: false
  label: Nuage
  no_remove_on_failure: false
ended_at: 2020-01-11 08:53:10.026507
env:
  YNH_APP_ARG_ADMIN: eric
  YNH_APP_ARG_ADMIN_PASSWORD: '**********'
  YNH_APP_ARG_DOMAIN: interne.amisdeproust.fr
  YNH_APP_ARG_IS_PUBLIC: 1
  YNH_APP_ARG_PATH: /nuage
  YNH_APP_ARG_SERVER_NAME: Nuage
  YNH_APP_ID: seafile
  YNH_APP_INSTANCE_NAME: seafile
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_CWD: /var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts
  YNH_INTERFACE: api
  YNH_STDINFO: /tmp/tmpHCBAxV/stdinfo
  YNH_STDRETURN: /tmp/tmp6apD8w/stdreturn
error: 'Une erreur inattendue est survenue : shell command return code: 1'
operation: app_install
related_to:
- - app
  - seafile
started_at: 2020-01-11 08:50:56.752133
success: false

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

2020-01-11 09:50:56,755: INFO - Installation de l'application seafile …
2020-01-11 09:50:56,901: DEBUG - Exécution de la commande 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts YNH_APP_INSTANCE_NAME=seafile YNH_STDRETURN=/tmp/tmp6apD8w/stdreturn YNH_STDINFO=/tmp/tmpHCBAxV/stdinfo YNH_APP_ARG_ADMIN_PASSWORD=********** YNH_APP_ARG_IS_PUBLIC=1 YNH_APP_ARG_ADMIN=eric YNH_INTERFACE=api YNH_APP_ID=seafile YNH_APP_ARG_PATH=/nuage YNH_APP_ARG_SERVER_NAME=Nuage YNH_APP_ARG_DOMAIN=interne.amisdeproust.fr BASH_XTRACEFD=7 /bin/bash -x "./install" interne.amisdeproust.fr /nuage Nuage eric ********** 1 seafile 7>&1' …
2020-01-11 09:50:56,901: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts YNH_APP_INSTANCE_NAME=seafile YNH_STDRETURN=/tmp/tmp6apD8w/stdreturn YNH_STDINFO=/tmp/tmpHCBAxV/stdinfo YNH_APP_ARG_ADMIN_PASSWORD=********** YNH_APP_ARG_IS_PUBLIC=1 YNH_APP_ARG_ADMIN=eric YNH_INTERFACE=api YNH_APP_ID=seafile YNH_APP_ARG_PATH=/nuage YNH_APP_ARG_SERVER_NAME=Nuage YNH_APP_ARG_DOMAIN=interne.amisdeproust.fr BASH_XTRACEFD=7 /bin/bash -x "./install" interne.amisdeproust.fr /nuage Nuage eric ********** 1 seafile 7>&1']'
2020-01-11 09:50:56,928: DEBUG - + source /usr/share/yunohost/helpers
2020-01-11 09:50:56,930: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2020-01-11 09:50:57,030: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,031: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2020-01-11 09:50:57,031: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt
2020-01-11 09:50:57,031: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,031: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2020-01-11 09:50:57,031: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup
2020-01-11 09:50:57,032: DEBUG - +++ CAN_BIND=1
2020-01-11 09:50:57,032: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,032: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2020-01-11 09:50:57,032: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban
2020-01-11 09:50:57,033: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,033: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2020-01-11 09:50:57,033: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2020-01-11 09:50:57,033: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,034: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2020-01-11 09:50:57,034: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging
2020-01-11 09:50:57,034: DEBUG - +++ increment_progression=0
2020-01-11 09:50:57,034: DEBUG - +++ previous_weight=0
2020-01-11 09:50:57,034: DEBUG - +++ max_progression=-1
2020-01-11 09:50:57,035: DEBUG - +++ progress_scale=20
2020-01-11 09:50:57,036: DEBUG - +++ progress_string2='####################'
2020-01-11 09:50:57,036: DEBUG - +++ progress_string1=++++++++++++++++++++
2020-01-11 09:50:57,036: DEBUG - +++ progress_string0=....................
2020-01-11 09:50:57,037: DEBUG - ++++ date +%s
2020-01-11 09:50:57,037: DEBUG - +++ base_time=1578732656
2020-01-11 09:50:57,037: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,037: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2020-01-11 09:50:57,037: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate
2020-01-11 09:50:57,038: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,038: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2020-01-11 09:50:57,038: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2020-01-11 09:50:57,038: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2020-01-11 09:50:57,038: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,039: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2020-01-11 09:50:57,040: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2020-01-11 09:50:57,040: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,040: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2020-01-11 09:50:57,040: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx
2020-01-11 09:50:57,041: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,041: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2020-01-11 09:50:57,041: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2020-01-11 09:50:57,041: DEBUG - +++ n_install_dir=/opt/node_n
2020-01-11 09:50:57,042: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2020-01-11 09:50:57,042: DEBUG - +++ export N_PREFIX=/opt/node_n
2020-01-11 09:50:57,042: DEBUG - +++ N_PREFIX=/opt/node_n
2020-01-11 09:50:57,042: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,042: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2020-01-11 09:50:57,043: DEBUG - ++ . /usr/share/yunohost/helpers.d/php
2020-01-11 09:50:57,045: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,045: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2020-01-11 09:50:57,045: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql
2020-01-11 09:50:57,046: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2020-01-11 09:50:57,046: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,046: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2020-01-11 09:50:57,046: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2020-01-11 09:50:57,046: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,047: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2020-01-11 09:50:57,047: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2020-01-11 09:50:57,047: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,047: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2020-01-11 09:50:57,047: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd
2020-01-11 09:50:57,048: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,048: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2020-01-11 09:50:57,048: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2020-01-11 09:50:57,048: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-01-11 09:50:57,048: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2020-01-11 09:50:57,049: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2020-01-11 09:50:57,049: DEBUG - + ynh_abort_if_errors
2020-01-11 09:50:57,049: DEBUG - + set -eu
2020-01-11 09:50:57,049: DEBUG - + trap ynh_exit_properly EXIT
2020-01-11 09:50:57,049: DEBUG - + source ./experimental_helper.sh
2020-01-11 09:50:57,050: DEBUG - +++ grep 64
2020-01-11 09:50:57,050: DEBUG - +++ uname -m
2020-01-11 09:50:57,050: DEBUG - ++ '[' -n x86_64 ']'
2020-01-11 09:50:57,050: DEBUG - ++ architecture=x86-64
2020-01-11 09:50:57,050: DEBUG - + source ./_common.sh
2020-01-11 09:50:57,051: DEBUG - ++ app=seafile
2020-01-11 09:50:57,056: DEBUG - ++ [[ -e ../settings/manifest.json ]]
2020-01-11 09:50:57,056: DEBUG - ++ [[ -e ../manifest.json ]]
2020-01-11 09:50:57,056: DEBUG - +++ ynh_app_upstream_version
2020-01-11 09:50:57,056: DEBUG - +++ local legacy_args=m
2020-01-11 09:50:57,056: DEBUG - +++ args_array=([m]=manifest=)
2020-01-11 09:50:57,057: DEBUG - +++ declare -Ar args_array
2020-01-11 09:50:57,057: DEBUG - +++ local manifest
2020-01-11 09:50:57,057: DEBUG - +++ ynh_handle_getopts_args
2020-01-11 09:50:57,057: DEBUG - +++ set +x
2020-01-11 09:50:57,057: DEBUG - +++ manifest=../manifest.json
2020-01-11 09:50:57,058: DEBUG - ++++ ynh_read_manifest --manifest=../manifest.json --manifest_key=**********
2020-01-11 09:50:57,058: DEBUG - ++++ local legacy_args=mk
2020-01-11 09:50:57,058: DEBUG - ++++ args_array=([m]=manifest= [k]=manifest_key=)
2020-01-11 09:50:57,058: DEBUG - ++++ declare -Ar args_array
2020-01-11 09:50:57,058: DEBUG - ++++ local manifest
2020-01-11 09:50:57,059: DEBUG - ++++ local manifest_key
2020-01-11 09:50:57,061: DEBUG - ++++ ynh_handle_getopts_args --manifest=../manifest.json --manifest_key=**********
2020-01-11 09:50:57,061: DEBUG - ++++ set +x
2020-01-11 09:50:57,061: DEBUG - ++++ '[' '!' -e ../manifest.json ']'
2020-01-11 09:50:57,062: DEBUG - ++++ jq .********** ../manifest.json --raw-output
2020-01-11 09:50:57,062: DEBUG - +++ **********_key=**********
2020-01-11 09:50:57,062: DEBUG - +++ echo 7.0.5
2020-01-11 09:50:57,062: DEBUG - ++ seafile_**********=7.0.5
2020-01-11 09:50:57,062: DEBUG - + ynh_script_progression '--message=Validating installation parameters...'
2020-01-11 09:50:57,063: DEBUG - + set +x
2020-01-11 09:50:57,064: DEBUG - + set +x
2020-01-11 09:50:57,065: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:50:57,065: DEBUG - + set +x
2020-01-11 09:50:57,065: DEBUG - + echo '[....................] > Validating installation parameters...'
2020-01-11 09:50:57,065: DEBUG - + set -x
2020-01-11 09:50:57,066: DEBUG - + domain=interne.amisdeproust.fr
2020-01-11 09:50:57,066: DEBUG - ++ ynh_normalize_url_path --path_url /nuage
2020-01-11 09:50:57,066: DEBUG - ++ local legacy_args=p
2020-01-11 09:50:57,066: DEBUG - ++ args_array=([p]=path_url=)
2020-01-11 09:50:57,067: DEBUG - ++ declare -Ar args_array
2020-01-11 09:50:57,068: DEBUG - ++ local path_url
2020-01-11 09:50:57,068: DEBUG - ++ ynh_handle_getopts_args --path_url /nuage
2020-01-11 09:50:57,068: DEBUG - ++ set +x
2020-01-11 09:50:57,068: DEBUG - ++ test -n /nuage
2020-01-11 09:50:57,068: DEBUG - ++ '[' / '!=' / ']'
2020-01-11 09:50:57,069: DEBUG - ++ '[' e == / ']'
2020-01-11 09:50:57,069: DEBUG - ++ echo /nuage
2020-01-11 09:50:57,069: DEBUG - + path_url=/nuage
2020-01-11 09:50:57,069: DEBUG - + server_name=Nuage
2020-01-11 09:50:57,069: DEBUG - + admin=eric
2020-01-11 09:50:57,070: DEBUG - + is_public=1
2020-01-11 09:50:57,070: DEBUG - + seafile_data=/home/yunohost.app/seafile-data
2020-01-11 09:50:57,070: DEBUG - + final_path=/opt/yunohost/seafile
2020-01-11 09:50:57,070: DEBUG - + seafile_user=seafile
2020-01-11 09:50:57,070: DEBUG - + admin_password=**********
2020-01-11 09:50:57,071: DEBUG - + [[ /nuage == \/ ]]
2020-01-11 09:50:57,072: DEBUG - + path_url2=/nuage/
2020-01-11 09:50:57,072: DEBUG - + ynh_webpath_register --app seafile --domain interne.amisdeproust.fr --path_url /nuage
2020-01-11 09:50:57,073: DEBUG - + local legacy_args=adp
2020-01-11 09:50:57,073: DEBUG - + args_array=([a]=app= [d]=domain= [p]=path_url=)
2020-01-11 09:50:57,073: DEBUG - + declare -Ar args_array
2020-01-11 09:50:57,073: DEBUG - + local app
2020-01-11 09:50:57,073: DEBUG - + local domain
2020-01-11 09:50:57,074: DEBUG - + local path_url
2020-01-11 09:50:57,074: DEBUG - + ynh_handle_getopts_args --app seafile --domain interne.amisdeproust.fr --path_url /nuage
2020-01-11 09:50:57,074: DEBUG - + set +x
2020-01-11 09:50:57,174: DEBUG - + sudo yunohost app register-url seafile interne.amisdeproust.fr /nuage
2020-01-11 09:50:57,175: INFO - [....................] > Validating installation parameters...
2020-01-11 09:50:57,678: DEBUG - + test '!' -e /opt/yunohost/seafile
2020-01-11 09:50:57,679: DEBUG - + ynh_script_progression '--message=Finding available ports...'
2020-01-11 09:50:57,679: DEBUG - + set +x
2020-01-11 09:50:57,779: DEBUG - + set +x
2020-01-11 09:50:57,780: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:50:57,780: DEBUG - + set +x
2020-01-11 09:50:57,780: DEBUG - + echo '[....................] > Finding available ports...'
2020-01-11 09:50:57,780: DEBUG - + set -x
2020-01-11 09:50:57,780: DEBUG - ++ ynh_find_port --port 8000
2020-01-11 09:50:57,781: DEBUG - ++ local legacy_args=p
2020-01-11 09:50:57,781: DEBUG - ++ args_array=([p]=port=)
2020-01-11 09:50:57,781: DEBUG - ++ declare -Ar args_array
2020-01-11 09:50:57,781: DEBUG - ++ local port
2020-01-11 09:50:57,781: DEBUG - ++ ynh_handle_getopts_args --port 8000
2020-01-11 09:50:57,781: DEBUG - ++ set +x
2020-01-11 09:50:57,781: DEBUG - ++ test -n 8000
2020-01-11 09:50:57,782: DEBUG - ++ netcat -z 127.0.0.1 8000
2020-01-11 09:50:57,782: DEBUG - ++ echo 8000
2020-01-11 09:50:57,782: DEBUG - + seahub_port=8000
2020-01-11 09:50:57,782: DEBUG - ++ ynh_find_port --port 8082
2020-01-11 09:50:57,782: DEBUG - ++ local legacy_args=p
2020-01-11 09:50:57,782: DEBUG - ++ args_array=([p]=port=)
2020-01-11 09:50:57,782: DEBUG - ++ declare -Ar args_array
2020-01-11 09:50:57,783: DEBUG - ++ local port
2020-01-11 09:50:57,785: INFO - [....................] > Finding available ports...
2020-01-11 09:50:57,785: DEBUG - ++ ynh_handle_getopts_args --port 8082
2020-01-11 09:50:57,786: INFO - [+...................] > Storing installation settings...
2020-01-11 09:50:57,786: DEBUG - ++ set +x
2020-01-11 09:50:57,786: DEBUG - ++ test -n 8082
2020-01-11 09:50:57,786: DEBUG - ++ netcat -z 127.0.0.1 8082
2020-01-11 09:50:57,787: DEBUG - ++ echo 8082
2020-01-11 09:50:57,787: DEBUG - + fileserver_port=8082
2020-01-11 09:50:57,787: DEBUG - ++ ynh_find_port --port 8080
2020-01-11 09:50:57,787: DEBUG - ++ local legacy_args=p
2020-01-11 09:50:57,787: DEBUG - ++ args_array=([p]=port=)
2020-01-11 09:50:57,787: DEBUG - ++ declare -Ar args_array
2020-01-11 09:50:57,787: DEBUG - ++ local port
2020-01-11 09:50:57,788: DEBUG - ++ ynh_handle_getopts_args --port 8080
2020-01-11 09:50:57,788: DEBUG - ++ set +x
2020-01-11 09:50:57,788: DEBUG - ++ test -n 8080
2020-01-11 09:50:57,788: DEBUG - ++ netcat -z 127.0.0.1 8080
2020-01-11 09:50:57,788: DEBUG - ++ echo 8080
2020-01-11 09:50:57,788: DEBUG - + webdav_port=8080
2020-01-11 09:50:57,789: DEBUG - + ynh_script_progression '--message=Storing installation settings...'
2020-01-11 09:50:57,789: DEBUG - + set +x
2020-01-11 09:50:57,789: DEBUG - + set +x
2020-01-11 09:50:57,789: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:50:57,789: DEBUG - + set +x
2020-01-11 09:50:57,789: DEBUG - + echo '[+...................] > Storing installation settings...'
2020-01-11 09:50:57,789: DEBUG - + set -x
2020-01-11 09:50:57,789: DEBUG - + ynh_app_setting_set --app seafile --key server_name --value Nuage
2020-01-11 09:50:57,790: DEBUG - + local legacy_args=akv
2020-01-11 09:50:57,790: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:50:57,790: DEBUG - + declare -Ar args_array
2020-01-11 09:50:57,790: DEBUG - + local app
2020-01-11 09:50:57,790: DEBUG - + local key
2020-01-11 09:50:57,790: DEBUG - + local value
2020-01-11 09:50:57,790: DEBUG - + ynh_handle_getopts_args --app seafile --key server_name --value Nuage
2020-01-11 09:50:57,791: DEBUG - + set +x
2020-01-11 09:50:57,799: DEBUG - + ynh_app_setting set seafile server_name Nuage
2020-01-11 09:50:57,799: DEBUG - + ACTION=set
2020-01-11 09:50:57,800: DEBUG - + APP=seafile
2020-01-11 09:50:57,800: DEBUG - + KEY=server_name
2020-01-11 09:50:57,800: DEBUG - + VALUE=Nuage
2020-01-11 09:50:57,800: DEBUG - + python -
2020-01-11 09:50:57,901: DEBUG - + ynh_app_setting_set --app seafile --key final_path --value /opt/yunohost/seafile
2020-01-11 09:50:57,901: DEBUG - + local legacy_args=akv
2020-01-11 09:50:57,901: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:50:57,901: DEBUG - + declare -Ar args_array
2020-01-11 09:50:57,901: DEBUG - + local app
2020-01-11 09:50:57,902: DEBUG - + local key
2020-01-11 09:50:57,902: DEBUG - + local value
2020-01-11 09:50:57,902: DEBUG - + ynh_handle_getopts_args --app seafile --key final_path --value /opt/yunohost/seafile
2020-01-11 09:50:57,902: DEBUG - + set +x
2020-01-11 09:50:57,902: DEBUG - + ynh_app_setting set seafile final_path /opt/yunohost/seafile
2020-01-11 09:50:57,902: DEBUG - + ACTION=set
2020-01-11 09:50:57,902: DEBUG - + APP=seafile
2020-01-11 09:50:57,903: DEBUG - + KEY=final_path
2020-01-11 09:50:57,903: DEBUG - + VALUE=/opt/yunohost/seafile
2020-01-11 09:50:57,903: DEBUG - + python -
2020-01-11 09:50:58,003: DEBUG - + ynh_app_setting_set --app seafile --key seafile_user --value seafile
2020-01-11 09:50:58,004: DEBUG - + local legacy_args=akv
2020-01-11 09:50:58,004: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:50:58,004: DEBUG - + declare -Ar args_array
2020-01-11 09:50:58,004: DEBUG - + local app
2020-01-11 09:50:58,004: DEBUG - + local key
2020-01-11 09:50:58,004: DEBUG - + local value
2020-01-11 09:50:58,004: DEBUG - + ynh_handle_getopts_args --app seafile --key seafile_user --value seafile
2020-01-11 09:50:58,004: DEBUG - + set +x
2020-01-11 09:50:58,005: DEBUG - + ynh_app_setting set seafile seafile_user seafile
2020-01-11 09:50:58,005: DEBUG - + ACTION=set
2020-01-11 09:50:58,005: DEBUG - + APP=seafile
2020-01-11 09:50:58,005: DEBUG - + KEY=seafile_user
2020-01-11 09:50:58,005: DEBUG - + VALUE=seafile
2020-01-11 09:50:58,005: DEBUG - + python -
2020-01-11 09:50:58,106: DEBUG - + ynh_app_setting_set --app seafile --key admin --value eric
2020-01-11 09:50:58,106: DEBUG - + local legacy_args=akv
2020-01-11 09:50:58,106: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:50:58,106: DEBUG - + declare -Ar args_array
2020-01-11 09:50:58,106: DEBUG - + local app
2020-01-11 09:50:58,107: DEBUG - + local key
2020-01-11 09:50:58,107: DEBUG - + local value
2020-01-11 09:50:58,107: DEBUG - + ynh_handle_getopts_args --app seafile --key admin --value eric
2020-01-11 09:50:58,107: DEBUG - + set +x
2020-01-11 09:50:58,107: DEBUG - + ynh_app_setting set seafile admin eric
2020-01-11 09:50:58,107: DEBUG - + ACTION=set
2020-01-11 09:50:58,107: DEBUG - + APP=seafile
2020-01-11 09:50:58,108: DEBUG - + KEY=admin
2020-01-11 09:50:58,108: DEBUG - + VALUE=eric
2020-01-11 09:50:58,108: DEBUG - + python -
2020-01-11 09:50:58,208: DEBUG - + ynh_app_setting_set --app seafile --key seahub_port --value 8000
2020-01-11 09:50:58,209: DEBUG - + local legacy_args=akv
2020-01-11 09:50:58,209: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:50:58,209: DEBUG - + declare -Ar args_array
2020-01-11 09:50:58,209: DEBUG - + local app
2020-01-11 09:50:58,209: DEBUG - + local key
2020-01-11 09:50:58,209: DEBUG - + local value
2020-01-11 09:50:58,209: DEBUG - + ynh_handle_getopts_args --app seafile --key seahub_port --value 8000
2020-01-11 09:50:58,210: DEBUG - + set +x
2020-01-11 09:50:58,310: DEBUG - + ynh_app_setting set seafile seahub_port 8000
2020-01-11 09:50:58,310: DEBUG - + ACTION=set
2020-01-11 09:50:58,311: DEBUG - + APP=seafile
2020-01-11 09:50:58,311: DEBUG - + KEY=seahub_port
2020-01-11 09:50:58,311: DEBUG - + VALUE=8000
2020-01-11 09:50:58,311: DEBUG - + python -
2020-01-11 09:50:58,412: DEBUG - + ynh_app_setting_set --app seafile --key fileserver_port --value 8082
2020-01-11 09:50:58,412: DEBUG - + local legacy_args=akv
2020-01-11 09:50:58,412: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:50:58,413: DEBUG - + declare -Ar args_array
2020-01-11 09:50:58,413: DEBUG - + local app
2020-01-11 09:50:58,413: DEBUG - + local key
2020-01-11 09:50:58,413: DEBUG - + local value
2020-01-11 09:50:58,413: DEBUG - + ynh_handle_getopts_args --app seafile --key fileserver_port --value 8082
2020-01-11 09:50:58,413: DEBUG - + set +x
2020-01-11 09:50:58,413: DEBUG - + ynh_app_setting set seafile fileserver_port 8082
2020-01-11 09:50:58,413: DEBUG - + ACTION=set
2020-01-11 09:50:58,414: DEBUG - + APP=seafile
2020-01-11 09:50:58,414: DEBUG - + KEY=fileserver_port
2020-01-11 09:50:58,414: DEBUG - + VALUE=8082
2020-01-11 09:50:58,414: DEBUG - + python -
2020-01-11 09:50:58,514: DEBUG - + ynh_app_setting_set --app seafile --key webdav_port --value 8080
2020-01-11 09:50:58,515: DEBUG - + local legacy_args=akv
2020-01-11 09:50:58,515: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:50:58,515: DEBUG - + declare -Ar args_array
2020-01-11 09:50:58,515: DEBUG - + local app
2020-01-11 09:50:58,515: DEBUG - + local key
2020-01-11 09:50:58,516: DEBUG - + local value
2020-01-11 09:50:58,516: DEBUG - + ynh_handle_getopts_args --app seafile --key webdav_port --value 8080
2020-01-11 09:50:58,516: DEBUG - + set +x
2020-01-11 09:50:58,516: DEBUG - + ynh_app_setting set seafile webdav_port 8080
2020-01-11 09:50:58,516: DEBUG - + ACTION=set
2020-01-11 09:50:58,516: DEBUG - + APP=seafile
2020-01-11 09:50:58,516: DEBUG - + KEY=webdav_port
2020-01-11 09:50:58,516: DEBUG - + VALUE=8080
2020-01-11 09:50:58,517: DEBUG - + python -
2020-01-11 09:50:58,617: DEBUG - + ynh_app_setting_set --app seafile --key is_public --value 1
2020-01-11 09:50:58,617: DEBUG - + local legacy_args=akv
2020-01-11 09:50:58,618: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:50:58,618: DEBUG - + declare -Ar args_array
2020-01-11 09:50:58,618: DEBUG - + local app
2020-01-11 09:50:58,618: DEBUG - + local key
2020-01-11 09:50:58,618: DEBUG - + local value
2020-01-11 09:50:58,619: DEBUG - + ynh_handle_getopts_args --app seafile --key is_public --value 1
2020-01-11 09:50:58,619: DEBUG - + set +x
2020-01-11 09:50:58,619: DEBUG - + ynh_app_setting set seafile is_public 1
2020-01-11 09:50:58,619: DEBUG - + ACTION=set
2020-01-11 09:50:58,619: DEBUG - + APP=seafile
2020-01-11 09:50:58,620: DEBUG - + KEY=is_public
2020-01-11 09:50:58,620: DEBUG - + VALUE=1
2020-01-11 09:50:58,620: DEBUG - + python -
2020-01-11 09:50:58,720: DEBUG - + ynh_app_setting_set --app seafile --key installed_********** --value 7.0.5
2020-01-11 09:50:58,721: DEBUG - + local legacy_args=akv
2020-01-11 09:50:58,721: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:50:58,721: DEBUG - + declare -Ar args_array
2020-01-11 09:50:58,721: DEBUG - + local app
2020-01-11 09:50:58,721: DEBUG - + local key
2020-01-11 09:50:58,721: DEBUG - + local value
2020-01-11 09:50:58,722: DEBUG - + ynh_handle_getopts_args --app seafile --key installed_********** --value 7.0.5
2020-01-11 09:50:58,722: DEBUG - + set +x
2020-01-11 09:50:58,722: DEBUG - + ynh_app_setting set seafile installed_********** 7.0.5
2020-01-11 09:50:58,722: DEBUG - + ACTION=set
2020-01-11 09:50:58,722: DEBUG - + APP=seafile
2020-01-11 09:50:58,722: DEBUG - + KEY=installed_**********
2020-01-11 09:50:58,722: DEBUG - + VALUE=7.0.5
2020-01-11 09:50:58,722: DEBUG - + python -
2020-01-11 09:50:58,823: DEBUG - + ynh_script_progression '--message=Configuring system user...'
2020-01-11 09:50:58,823: DEBUG - + set +x
2020-01-11 09:50:58,823: DEBUG - + set +x
2020-01-11 09:50:58,824: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:50:58,824: DEBUG - + set +x
2020-01-11 09:50:58,824: DEBUG - + echo '[#...................] > Configuring system user...'
2020-01-11 09:50:58,824: DEBUG - + set -x
2020-01-11 09:50:58,824: DEBUG - + ynh_system_user_create --username seafile --home_dir /opt/yunohost/seafile
2020-01-11 09:50:58,825: DEBUG - + local legacy_args=uhs
2020-01-11 09:50:58,825: DEBUG - + args_array=([u]=username= [h]=home_dir= [s]=use_shell)
2020-01-11 09:50:58,825: DEBUG - + declare -Ar args_array
2020-01-11 09:50:58,825: DEBUG - + local username
2020-01-11 09:50:58,825: DEBUG - + local home_dir
2020-01-11 09:50:58,826: DEBUG - + local use_shell
2020-01-11 09:50:58,826: DEBUG - + ynh_handle_getopts_args --username seafile --home_dir /opt/yunohost/seafile
2020-01-11 09:50:58,826: DEBUG - + set +x
2020-01-11 09:50:58,826: DEBUG - + use_shell=0
2020-01-11 09:50:58,827: DEBUG - + home_dir=/opt/yunohost/seafile
2020-01-11 09:50:58,828: DEBUG - + ynh_system_user_exists seafile
2020-01-11 09:50:58,828: DEBUG - + local legacy_args=u
2020-01-11 09:50:58,828: DEBUG - + args_array=([u]=username=)
2020-01-11 09:50:58,829: DEBUG - + declare -Ar args_array
2020-01-11 09:50:58,829: DEBUG - + local username
2020-01-11 09:50:58,829: DEBUG - + ynh_handle_getopts_args seafile
2020-01-11 09:50:58,829: DEBUG - + set +x
2020-01-11 09:50:58,930: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:50:58,930: INFO - [#...................] > Configuring system user...
2020-01-11 09:50:58,931: DEBUG - + set +x
2020-01-11 09:50:58,931: INFO - [#+++................] > Installing dependencies...
2020-01-11 09:50:58,931: DEBUG - + getent passwd seafile
2020-01-11 09:50:58,932: DEBUG - + ynh_script_progression '--message=Installing dependencies...' --weight=7
2020-01-11 09:50:58,932: DEBUG - + set +x
2020-01-11 09:50:58,932: DEBUG - + set +x
2020-01-11 09:50:58,932: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:50:58,932: DEBUG - + set +x
2020-01-11 09:50:58,933: DEBUG - + echo '[#+++................] > Installing dependencies...'
2020-01-11 09:50:58,933: DEBUG - + set -x
2020-01-11 09:50:58,933: DEBUG - + install_dependance
2020-01-11 09:50:58,933: DEBUG - + ynh_install_app_dependencies python2.7 python-pip libpython2.7 python-setuptools python-ldap python-urllib3 python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev ffmpeg python-memcache libjpeg62-turbo-dev zlib1g-dev
2020-01-11 09:50:58,933: DEBUG - + local 'dependencies=python2.7 python-pip libpython2.7 python-setuptools python-ldap python-urllib3 python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev ffmpeg python-memcache libjpeg62-turbo-dev zlib1g-dev'
2020-01-11 09:50:58,933: DEBUG - + local 'dependencies=python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-imaging, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev'
2020-01-11 09:50:58,933: DEBUG - + local 'dependencies=python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-imaging, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev'
2020-01-11 09:50:58,934: DEBUG - + local manifest_path=../manifest.json
2020-01-11 09:50:58,934: DEBUG - + '[' '!' -e ../manifest.json ']'
2020-01-11 09:50:58,934: DEBUG - ++ cut -d '"' -f 4
2020-01-11 09:50:58,934: DEBUG - ++ grep '\"**********\": ' ../manifest.json
2020-01-11 09:50:58,934: DEBUG - + local **********=**********
2020-01-11 09:50:58,934: DEBUG - + '[' 10 -eq 0 ']'
2020-01-11 09:50:58,934: DEBUG - + local dep_app=seafile
2020-01-11 09:50:58,934: DEBUG - + grep -q php
2020-01-11 09:50:58,935: DEBUG - + echo python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-imaging, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev
2020-01-11 09:50:58,938: DEBUG - + cat
2020-01-11 09:50:58,938: DEBUG - + ynh_package_install_from_equivs /tmp/seafile-ynh-deps.control
2020-01-11 09:50:58,938: DEBUG - + local controlfile=/tmp/seafile-ynh-deps.control
2020-01-11 09:50:58,938: DEBUG - ++ cut '-d ' -f 2
2020-01-11 09:50:58,939: DEBUG - ++ grep '^Package: ' /tmp/seafile-ynh-deps.control
2020-01-11 09:50:58,939: DEBUG - + local pkgname=seafile-ynh-deps
2020-01-11 09:50:58,939: DEBUG - ++ cut '-d ' -f 2
2020-01-11 09:50:58,939: DEBUG - ++ grep '^Version: ' /tmp/seafile-ynh-deps.control
2020-01-11 09:50:58,939: DEBUG - + local pkg**********=**********
2020-01-11 09:50:58,939: DEBUG - + [[ -z seafile-ynh-deps ]]
2020-01-11 09:50:58,940: DEBUG - + [[ -z ********** ]]
2020-01-11 09:50:58,940: DEBUG - + ynh_package_update
2020-01-11 09:50:58,940: DEBUG - + ynh_apt update
2020-01-11 09:50:58,940: DEBUG - + ynh_wait_dpkg_free
2020-01-11 09:50:58,940: DEBUG - + local try
2020-01-11 09:50:58,940: DEBUG - ++ seq 1 17
2020-01-11 09:50:58,941: DEBUG - + for try in `seq 1 17`
2020-01-11 09:50:58,941: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-01-11 09:50:59,041: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-01-11 09:50:59,041: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-01-11 09:50:59,042: DEBUG - + read dpkg_file
2020-01-11 09:50:59,042: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-01-11 09:50:59,042: DEBUG - + echo ''
2020-01-11 09:50:59,042: DEBUG - + read dpkg_file
2020-01-11 09:50:59,042: DEBUG - + return 0
2020-01-11 09:50:59,042: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-01-11 09:50:59,043: DEBUG - + apt-get -y update
2020-01-11 09:50:59,143: DEBUG - Ign:1 http://deb.debian.org/debian stretch InRelease
2020-01-11 09:50:59,143: DEBUG - Atteint:2 http://security.debian.org stretch/updates InRelease
2020-01-11 09:50:59,144: DEBUG - Atteint:3 http://deb.debian.org/debian stretch-updates InRelease
2020-01-11 09:50:59,244: DEBUG - Atteint:4 http://deb.debian.org/debian stretch Release
2020-01-11 09:51:00,248: DEBUG - Atteint:6 http://forge.yunohost.org/debian stretch InRelease
2020-01-11 09:51:01,451: DEBUG - Lecture des listes de paquets…
2020-01-11 09:51:01,451: DEBUG - ++ mktemp -d
2020-01-11 09:51:01,451: DEBUG - + local TMPDIR=/tmp/tmp.TmbjdNtBB6
2020-01-11 09:51:01,452: DEBUG - + echo 10
2020-01-11 09:51:01,452: DEBUG - + ynh_wait_dpkg_free
2020-01-11 09:51:01,452: DEBUG - + local try
2020-01-11 09:51:01,452: DEBUG - ++ seq 1 17
2020-01-11 09:51:01,452: DEBUG - + for try in `seq 1 17`
2020-01-11 09:51:01,453: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-01-11 09:51:01,653: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-01-11 09:51:01,654: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-01-11 09:51:01,654: DEBUG - + read dpkg_file
2020-01-11 09:51:01,654: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-01-11 09:51:01,654: DEBUG - + echo ''
2020-01-11 09:51:01,655: DEBUG - + read dpkg_file
2020-01-11 09:51:01,655: DEBUG - + return 0
2020-01-11 09:51:01,655: DEBUG - + cp /tmp/seafile-ynh-deps.control /tmp/tmp.TmbjdNtBB6/control
2020-01-11 09:51:01,655: DEBUG - + cd /tmp/tmp.TmbjdNtBB6
2020-01-11 09:51:01,655: DEBUG - + equivs-build ./control
2020-01-11 09:51:02,457: DEBUG - + dpkg --force-depends -i ./seafile-ynh-deps_**********_all.deb
2020-01-11 09:51:02,458: DEBUG - Sélection du paquet seafile-ynh-deps précédemment désélectionné.
2020-01-11 09:51:02,559: DEBUG - (Lecture de la base de données... 51349 fichiers et répertoires déjà installés.)
2020-01-11 09:51:02,560: DEBUG - Préparation du dépaquetage de .../seafile-ynh-deps_**********_all.deb ...
2020-01-11 09:51:02,560: DEBUG - Dépaquetage de seafile-ynh-deps (**********) ...
2020-01-11 09:51:02,661: DEBUG - dpkg: seafile-ynh-deps : problèmes de dépendances, mais configuration comme demandé :
2020-01-11 09:51:02,661: DEBUG -  seafile-ynh-deps dépend de python-simplejson ; cependant :
2020-01-11 09:51:02,661: DEBUG -   Le paquet python-simplejson n'est pas installé.
2020-01-11 09:51:02,661: DEBUG -  seafile-ynh-deps dépend de python-imaging ; cependant :
2020-01-11 09:51:02,662: DEBUG -   Le paquet python-imaging n'est pas installé.
2020-01-11 09:51:02,662: DEBUG -  seafile-ynh-deps dépend de python-mysqldb ; cependant :
2020-01-11 09:51:02,662: DEBUG -   Le paquet python-mysqldb n'est pas installé.
2020-01-11 09:51:02,662: DEBUG -  seafile-ynh-deps dépend de python-flup ; cependant :
2020-01-11 09:51:02,662: DEBUG -   Le paquet python-flup n'est pas installé.
2020-01-11 09:51:02,662: DEBUG -  seafile-ynh-deps dépend de expect ; cependant :
2020-01-11 09:51:02,662: DEBUG -   Le paquet expect n'est pas installé.
2020-01-11 09:51:02,662: DEBUG -  seafile-ynh-deps dépend de python-memcache ; cependant :
2020-01-11 09:51:02,663: DEBUG -   Le paquet python-memcache n'est pas installé.
2020-01-11 09:51:02,663: DEBUG -  seafile-ynh-deps dépend de libjpeg62-turbo-dev ; cependant :
2020-01-11 09:51:02,663: DEBUG -   Le paquet libjpeg62-turbo-dev n'est pas installé.
2020-01-11 09:51:02,663: DEBUG -  seafile-ynh-deps dépend de zlib1g-dev ; cependant :
2020-01-11 09:51:02,663: DEBUG -   Le paquet zlib1g-dev n'est pas installé.
2020-01-11 09:51:02,663: DEBUG - 
2020-01-11 09:51:02,664: DEBUG - Paramétrage de seafile-ynh-deps (**********) ...
2020-01-11 09:51:02,664: DEBUG - + ynh_package_install -f
2020-01-11 09:51:02,664: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
2020-01-11 09:51:02,664: DEBUG - + ynh_wait_dpkg_free
2020-01-11 09:51:02,664: DEBUG - + local try
2020-01-11 09:51:02,664: DEBUG - ++ seq 1 17
2020-01-11 09:51:02,664: DEBUG - + for try in `seq 1 17`
2020-01-11 09:51:02,665: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-01-11 09:51:02,765: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-01-11 09:51:02,766: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-01-11 09:51:02,766: DEBUG - + read dpkg_file
2020-01-11 09:51:02,766: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-01-11 09:51:02,766: DEBUG - + echo ''
2020-01-11 09:51:02,767: DEBUG - + read dpkg_file
2020-01-11 09:51:02,767: DEBUG - + return 0
2020-01-11 09:51:02,767: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-01-11 09:51:02,767: DEBUG - + apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
2020-01-11 09:51:03,068: DEBUG - Lecture des listes de paquets…
2020-01-11 09:51:03,269: DEBUG - Construction de l'arbre des dépendances…
2020-01-11 09:51:03,270: DEBUG - Lecture des informations d'état…
2020-01-11 09:51:03,370: DEBUG - Correction des dépendances... Fait
2020-01-11 09:51:03,571: DEBUG - The following additional packages will be installed:
2020-01-11 09:51:03,572: DEBUG -   expect libjpeg62-turbo-dev python-flup python-imaging python-memcache
2020-01-11 09:51:03,573: DEBUG -   python-mysqldb python-pil python-simplejson tcl-expect zlib1g-dev
2020-01-11 09:51:03,573: DEBUG - Paquets suggérés :
2020-01-11 09:51:03,573: DEBUG -   memcached python-egenix-mxdatetime python-mysqldb-dbg python-pil-doc
2020-01-11 09:51:03,573: DEBUG -   python-pil-dbg
2020-01-11 09:51:03,573: DEBUG - Paquets recommandés :
2020-01-11 09:51:03,574: DEBUG -   tcl8.6 tk8.6
2020-01-11 09:51:03,574: DEBUG - Les NOUVEAUX paquets suivants seront installés :
2020-01-11 09:51:03,574: DEBUG -   expect libjpeg62-turbo-dev python-flup python-imaging python-memcache
2020-01-11 09:51:03,574: DEBUG -   python-mysqldb python-pil python-simplejson tcl-expect zlib1g-dev
2020-01-11 09:51:04,577: DEBUG - 0 mis à jour, 10 nouvellement installés, 0 à enlever et 0 non mis à jour.
2020-01-11 09:51:04,578: DEBUG - Il est nécessaire de prendre 0 o/1 319 ko dans les archives.
2020-01-11 09:51:04,578: DEBUG - Après cette opération, 4 056 ko d'espace disque supplémentaires seront utilisés.
2020-01-11 09:51:04,579: DEBUG - Sélection du paquet tcl-expect:amd64 précédemment désélectionné.
2020-01-11 09:51:04,679: DEBUG - (Lecture de la base de données... 
(Lecture de la base de données... 5%
(Lecture de la base de données... 10%
(Lecture de la base de données... 15%
(Lecture de la base de données... 20%
(Lecture de la base de données... 25%
(Lecture de la base de données... 30%
(Lecture de la base de données... 35%
(Lecture de la base de données... 40%
(Lecture de la base de données... 45%
(Lecture de la base de données... 50%
(Lecture de la base de données... 55%
(Lecture de la base de données... 60%
(Lecture de la base de données... 65%
(Lecture de la base de données... 70%
(Lecture de la base de données... 75%
(Lecture de la base de données... 80%
(Lecture de la base de données... 85%
(Lecture de la base de données... 90%
(Lecture de la base de données... 95%
(Lecture de la base de données... 100%
(Lecture de la base de données... 51353 fichiers et répertoires déjà installés.)
2020-01-11 09:51:04,680: DEBUG - Préparation du dépaquetage de .../0-tcl-expect_5.45-7+deb9u1_amd64.deb ...
2020-01-11 09:51:04,680: DEBUG - Dépaquetage de tcl-expect:amd64 (5.45-7+deb9u1) ...
2020-01-11 09:51:04,781: DEBUG - Sélection du paquet expect précédemment désélectionné.
2020-01-11 09:51:04,781: DEBUG - Préparation du dépaquetage de .../1-expect_5.45-7+deb9u1_amd64.deb ...
2020-01-11 09:51:04,781: DEBUG - Dépaquetage de expect (5.45-7+deb9u1) ...
2020-01-11 09:51:04,982: DEBUG - Sélection du paquet libjpeg62-turbo-dev:amd64 précédemment désélectionné.
2020-01-11 09:51:04,982: DEBUG - Préparation du dépaquetage de .../2-libjpeg62-turbo-dev_1%3a1.5.1-2_amd64.deb ...
2020-01-11 09:51:04,983: DEBUG - Dépaquetage de libjpeg62-turbo-dev:amd64 (1:1.5.1-2) ...
2020-01-11 09:51:05,184: DEBUG - Sélection du paquet python-flup précédemment désélectionné.
2020-01-11 09:51:05,184: DEBUG - Préparation du dépaquetage de .../3-python-flup_1.0.2-5_all.deb ...
2020-01-11 09:51:05,184: DEBUG - Dépaquetage de python-flup (1.0.2-5) ...
2020-01-11 09:51:05,285: DEBUG - Sélection du paquet python-pil:amd64 précédemment désélectionné.
2020-01-11 09:51:05,285: DEBUG - Préparation du dépaquetage de .../4-python-pil_4.0.0-4_amd64.deb ...
2020-01-11 09:51:05,286: DEBUG - Dépaquetage de python-pil:amd64 (4.0.0-4) ...
2020-01-11 09:51:05,487: DEBUG - Sélection du paquet python-imaging précédemment désélectionné.
2020-01-11 09:51:05,487: DEBUG - Préparation du dépaquetage de .../5-python-imaging_4.0.0-4_all.deb ...
2020-01-11 09:51:05,487: DEBUG - Dépaquetage de python-imaging (4.0.0-4) ...
2020-01-11 09:51:05,588: DEBUG - Sélection du paquet python-memcache précédemment désélectionné.
2020-01-11 09:51:05,588: DEBUG - Préparation du dépaquetage de .../6-python-memcache_1.57-2_all.deb ...
2020-01-11 09:51:05,588: DEBUG - Dépaquetage de python-memcache (1.57-2) ...
2020-01-11 09:51:05,689: DEBUG - Sélection du paquet python-mysqldb précédemment désélectionné.
2020-01-11 09:51:05,689: DEBUG - Préparation du dépaquetage de .../7-python-mysqldb_1.3.7-1.1_amd64.deb ...
2020-01-11 09:51:05,690: DEBUG - Dépaquetage de python-mysqldb (1.3.7-1.1) ...
2020-01-11 09:51:05,790: DEBUG - Sélection du paquet python-simplejson précédemment désélectionné.
2020-01-11 09:51:05,791: DEBUG - Préparation du dépaquetage de .../8-python-simplejson_3.10.0-1_amd64.deb ...
2020-01-11 09:51:05,791: DEBUG - Dépaquetage de python-simplejson (3.10.0-1) ...
2020-01-11 09:51:05,891: DEBUG - Sélection du paquet zlib1g-dev:amd64 précédemment désélectionné.
2020-01-11 09:51:05,892: DEBUG - Préparation du dépaquetage de .../9-zlib1g-dev_1%3a1.2.8.dfsg-5_amd64.deb ...
2020-01-11 09:51:05,892: DEBUG - Dépaquetage de zlib1g-dev:amd64 (1:1.2.8.dfsg-5) ...
2020-01-11 09:51:05,993: DEBUG - Paramétrage de python-simplejson (3.10.0-1) ...
2020-01-11 09:51:06,194: DEBUG - Paramétrage de python-memcache (1.57-2) ...
2020-01-11 09:51:06,298: DEBUG - Traitement des actions différées (« triggers ») pour libc-bin (2.24-11+deb9u4) ...
2020-01-11 09:51:06,399: DEBUG - Paramétrage de python-mysqldb (1.3.7-1.1) ...
2020-01-11 09:51:06,600: DEBUG - Paramétrage de tcl-expect:amd64 (5.45-7+deb9u1) ...
2020-01-11 09:51:06,701: DEBUG - Traitement des actions différées (« triggers ») pour man-db (2.7.6.1-2) ...
2020-01-11 09:51:07,441: DEBUG - Paramétrage de python-flup (1.0.2-5) ...
2020-01-11 09:51:07,542: DEBUG - Paramétrage de libjpeg62-turbo-dev:amd64 (1:1.5.1-2) ...
2020-01-11 09:51:07,542: DEBUG - Paramétrage de python-pil:amd64 (4.0.0-4) ...
2020-01-11 09:51:07,843: DEBUG - Paramétrage de zlib1g-dev:amd64 (1:1.2.8.dfsg-5) ...
2020-01-11 09:51:07,944: DEBUG - Paramétrage de expect (5.45-7+deb9u1) ...
2020-01-11 09:51:07,944: DEBUG - Paramétrage de python-imaging (4.0.0-4) ...
2020-01-11 09:51:08,045: DEBUG - Traitement des actions différées (« triggers ») pour libc-bin (2.24-11+deb9u4) ...
2020-01-11 09:51:08,346: DEBUG - + [[ -n /tmp/tmp.TmbjdNtBB6 ]]
2020-01-11 09:51:08,346: DEBUG - + rm -rf /tmp/tmp.TmbjdNtBB6
2020-01-11 09:51:08,346: DEBUG - + ynh_package_is_installed seafile-ynh-deps
2020-01-11 09:51:08,347: DEBUG - + local legacy_args=p
2020-01-11 09:51:08,347: DEBUG - + args_array=([p]=package=)
2020-01-11 09:51:08,347: DEBUG - + declare -Ar args_array
2020-01-11 09:51:08,347: DEBUG - + local package
2020-01-11 09:51:08,347: DEBUG - + ynh_handle_getopts_args seafile-ynh-deps
2020-01-11 09:51:08,347: DEBUG - + set +x
2020-01-11 09:51:08,348: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:51:08,348: DEBUG - + set +x
2020-01-11 09:51:08,348: DEBUG - + ynh_wait_dpkg_free
2020-01-11 09:51:08,348: DEBUG - + local try
2020-01-11 09:51:08,348: DEBUG - ++ seq 1 17
2020-01-11 09:51:08,348: DEBUG - + for try in `seq 1 17`
2020-01-11 09:51:08,348: DEBUG - + sudo lsof /var/lib/dpkg/lock
2020-01-11 09:51:08,449: DEBUG - + local dpkg_dir=/var/lib/dpkg/updates/
2020-01-11 09:51:08,449: DEBUG - ++ ls -1 /var/lib/dpkg/updates/
2020-01-11 09:51:08,449: DEBUG - + read dpkg_file
2020-01-11 09:51:08,449: DEBUG - + grep -Pq '^[[:digit:]]+$'
2020-01-11 09:51:08,550: DEBUG - + echo ''
2020-01-11 09:51:08,550: DEBUG - + read dpkg_file
2020-01-11 09:51:08,550: DEBUG - + return 0
2020-01-11 09:51:08,550: DEBUG - + grep -c 'ok installed'
2020-01-11 09:51:08,551: DEBUG - + dpkg-query -W -f '${Status}' seafile-ynh-deps
2020-01-11 09:51:08,551: DEBUG - + rm /tmp/seafile-ynh-deps.control
2020-01-11 09:51:08,551: DEBUG - + ynh_app_setting_set --app=seafile --key=apt_dependencies '--value=python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-imaging, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev'
2020-01-11 09:51:08,551: DEBUG - + local legacy_args=akv
2020-01-11 09:51:08,552: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:51:08,552: DEBUG - + declare -Ar args_array
2020-01-11 09:51:08,552: DEBUG - + local app
2020-01-11 09:51:08,552: DEBUG - + local key
2020-01-11 09:51:08,552: DEBUG - + local value
2020-01-11 09:51:08,552: DEBUG - + ynh_handle_getopts_args --app=seafile --key=apt_dependencies '--value=python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-imaging, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev'
2020-01-11 09:51:08,552: DEBUG - + set +x
2020-01-11 09:51:08,553: DEBUG - + ynh_app_setting set seafile apt_dependencies 'python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-imaging, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev'
2020-01-11 09:51:08,553: DEBUG - + ACTION=set
2020-01-11 09:51:08,553: DEBUG - + APP=seafile
2020-01-11 09:51:08,553: DEBUG - + KEY=apt_dependencies
2020-01-11 09:51:08,553: DEBUG - + VALUE='python2.7, python-pip, libpython2.7, python-setuptools, python-ldap, python-urllib3, python-simplejson, python-imaging, python-mysqldb, python-flup, expect, python-requests, python-dev, ffmpeg, python-memcache, libjpeg62-turbo-dev, zlib1g-dev'
2020-01-11 09:51:08,554: DEBUG - + python -
2020-01-11 09:51:08,654: DEBUG - + ynh_add_swap 2000
2020-01-11 09:51:08,654: DEBUG - + args_array=([s]=size=)
2020-01-11 09:51:08,655: DEBUG - + declare -Ar args_array
2020-01-11 09:51:08,655: DEBUG - + local size
2020-01-11 09:51:08,655: DEBUG - + ynh_handle_getopts_args 2000
2020-01-11 09:51:08,655: DEBUG - + set +x
2020-01-11 09:51:08,655: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:51:08,656: DEBUG - + set +x
2020-01-11 09:51:08,656: DEBUG - + local swap_max_size=2048000
2020-01-11 09:51:08,656: DEBUG - ++ sed 1d
2020-01-11 09:51:08,656: DEBUG - ++ df --output=avail /
2020-01-11 09:51:08,656: DEBUG - + local free_space=36144700
2020-01-11 09:51:08,656: DEBUG - + local usable_space=18072350
2020-01-11 09:51:08,657: DEBUG - + SD_CARD_CAN_SWAP=0
2020-01-11 09:51:08,657: DEBUG - + ynh_is_main_device_a_sd_card
2020-01-11 09:51:08,658: DEBUG - +++ findmnt / --nofsroot --uniq --output source --noheadings --first-only
2020-01-11 09:51:08,658: DEBUG - ++ lsblk --output PKNAME --noheadings /dev/sda1
2020-01-11 09:51:08,658: DEBUG - + local main_device=sda
2020-01-11 09:51:08,759: DEBUG - + echo sda
2020-01-11 09:51:08,759: DEBUG - + grep --quiet mmc
2020-01-11 09:51:08,759: DEBUG - + return 1
2020-01-11 09:51:08,759: DEBUG - + '[' 18072350 -ge 2048000 ']'
2020-01-11 09:51:08,760: DEBUG - + local swap_size=2048000
2020-01-11 09:51:08,760: DEBUG - + '[' 2048000 -ne 0 ']'
2020-01-11 09:51:08,760: DEBUG - + '[' '!' -e /swap_seafile ']'
2020-01-11 09:51:08,760: DEBUG - + fallocate -l 2048000K /swap_seafile
2020-01-11 09:51:08,760: DEBUG - + chmod 0600 /swap_seafile
2020-01-11 09:51:08,760: DEBUG - + mkswap /swap_seafile
2020-01-11 09:51:08,761: DEBUG - Configure l'espace d'échange (swap) en ********** 1, taille = 2 GiB (2097147904 octets)
2020-01-11 09:51:08,761: DEBUG - pas d'étiquette, UUID=267ed801-8108-4548-903f-8f02bfcbeab9
2020-01-11 09:51:08,761: DEBUG - + swapon /swap_seafile
2020-01-11 09:51:08,862: DEBUG - + echo -e '/swap_seafile swap swap defaults 0 0 #Swap added by seafile'
2020-01-11 09:51:08,862: DEBUG - + sudo -u seafile pip install --user --upgrade Pillow 'moviepy<1.0' certifi idna
2020-01-11 09:51:10,466: DEBUG - Collecting Pillow
2020-01-11 09:51:11,568: DEBUG -   Downloading https://files.pythonhosted.org/packages/12/ad/61f8dfba88c4e56196bf6d056cdbba64dc9c5dfdfbc97d02e6472feed913/Pillow-6.2.2-cp27-cp27mu-manylinux1_x86_64.whl (2.1MB)
2020-01-11 09:51:12,426: DEBUG - Collecting moviepy<1.0
2020-01-11 09:51:12,627: DEBUG -   Downloading https://files.pythonhosted.org/packages/1f/af/98b68b047c47d9430cb4c9ac899cf9d969de3936f888072991ea74da93a8/moviepy-0.2.3.5.tar.gz (372kB)
2020-01-11 09:51:13,340: DEBUG - Collecting certifi
2020-01-11 09:51:13,541: DEBUG -   Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
2020-01-11 09:51:13,542: DEBUG - Collecting idna
2020-01-11 09:51:13,645: DEBUG -   Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
2020-01-11 09:51:13,746: DEBUG - Collecting decorator<5.0,>=4.0.2 (from moviepy<1.0)
2020-01-11 09:51:13,854: DEBUG -   Downloading https://files.pythonhosted.org/packages/8f/b7/f329cfdc75f3d28d12c65980e4469e2fa373f1953f5df6e370e84ea2e875/decorator-4.4.1-py2.py3-none-any.whl
2020-01-11 09:51:13,854: DEBUG - Collecting imageio<3.0,>=2.1.2 (from moviepy<1.0)
2020-01-11 09:51:14,055: DEBUG -   Downloading https://files.pythonhosted.org/packages/0d/07/4d4c7768f3b88d90a999d81ca6852b9c2d38e87d47aab6d64de432293973/imageio-2.6.1.tar.gz (3.4MB)
2020-01-11 09:51:15,358: DEBUG - Collecting numpy (from moviepy<1.0)
2020-01-11 09:51:16,260: DEBUG -   Downloading https://files.pythonhosted.org/packages/3a/5f/47e578b3ae79e2624e205445ab77a1848acdaa2929a00eeef6b16eaaeb20/numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl (17.0MB)
2020-01-11 09:51:24,808: DEBUG - Collecting tqdm<5.0,>=4.11.2 (from moviepy<1.0)
2020-01-11 09:51:25,110: DEBUG -   Downloading https://files.pythonhosted.org/packages/72/c9/7fc20feac72e79032a7c8138fd0d395dc6d8812b5b9edf53c3afd0b31017/tqdm-4.41.1-py2.py3-none-any.whl (56kB)
2020-01-11 09:51:25,110: DEBUG - Collecting enum34 (from imageio<3.0,>=2.1.2->moviepy<1.0)
2020-01-11 09:51:25,311: DEBUG -   Downloading https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
2020-01-11 09:51:25,311: DEBUG - Collecting futures (from imageio<3.0,>=2.1.2->moviepy<1.0)
2020-01-11 09:51:25,412: DEBUG -   Downloading https://files.pythonhosted.org/packages/d8/a6/f46ae3f1da0cd4361c344888f59ec2f5785e69c872e175a748ef6071cdb5/futures-3.3.0-py2-none-any.whl
2020-01-11 09:51:25,412: DEBUG - Building wheels for collected packages: moviepy, imageio
2020-01-11 09:51:25,412: DEBUG -   Running setup.py bdist_wheel for moviepy: started
2020-01-11 09:51:26,114: DEBUG -   Running setup.py bdist_wheel for moviepy: finished with status 'done'
2020-01-11 09:51:26,114: DEBUG -   Stored in directory: /opt/yunohost/seafile/.cache/pip/wheels/ad/92/4d/a6c6307d4c2219d002646bd4a5987e31fd5697f6ea7778b2c0
2020-01-11 09:51:26,114: DEBUG -   Running setup.py bdist_wheel for imageio: started
2020-01-11 09:51:26,816: DEBUG -   Running setup.py bdist_wheel for imageio: finished with status 'done'
2020-01-11 09:51:26,816: DEBUG -   Stored in directory: /opt/yunohost/seafile/.cache/pip/wheels/d9/17/78/0cc28c02169172db51ac1e7944093a4259de894fde450e4871
2020-01-11 09:51:26,917: DEBUG - Successfully built moviepy imageio
2020-01-11 09:51:26,917: DEBUG - Installing collected packages: Pillow, decorator, enum34, futures, numpy, imageio, tqdm, moviepy, certifi, idna
2020-01-11 09:51:29,856: DEBUG - Successfully installed Pillow-6.2.2 certifi-2019.11.28 decorator-4.4.1 enum34-1.1.6 futures-3.3.0 idna-2.8 imageio-2.6.1 moviepy-0.2.3.5 numpy-1.16.6 tqdm-4.41.1
2020-01-11 09:51:29,957: DEBUG - Création du répertoire « /opt/yunohost/seafile ».
2020-01-11 09:51:29,957: DEBUG - + ynh_del_swap
2020-01-11 09:51:29,957: DEBUG - + '[' -e /swap_seafile ']'
2020-01-11 09:51:29,957: DEBUG - + sed -i '/#Swap added by seafile/d' /etc/fstab
2020-01-11 09:51:29,957: DEBUG - + swapoff /swap_seafile
2020-01-11 09:51:29,958: DEBUG - + rm /swap_seafile
2020-01-11 09:51:29,958: DEBUG - + ynh_script_progression '--message=Cleaning data directory...'
2020-01-11 09:51:29,958: DEBUG - + set +x
2020-01-11 09:51:29,958: DEBUG - + set +x
2020-01-11 09:51:29,958: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:51:29,958: DEBUG - + set +x
2020-01-11 09:51:29,958: DEBUG - + echo '[####+...............] > Cleaning data directory...'
2020-01-11 09:51:29,958: DEBUG - + set -x
2020-01-11 09:51:29,959: DEBUG - + test -e /home/yunohost.app/seafile-data
2020-01-11 09:51:29,959: DEBUG - + ynh_script_progression '--message=Creating base directory...'
2020-01-11 09:51:29,959: DEBUG - + set +x
2020-01-11 09:51:29,959: DEBUG - + set +x
2020-01-11 09:51:29,959: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:51:29,959: DEBUG - + set +x
2020-01-11 09:51:29,959: DEBUG - + echo '[#####...............] > Creating base directory...'
2020-01-11 09:51:29,960: DEBUG - + set -x
2020-01-11 09:51:29,960: DEBUG - + mkdir -p /opt/yunohost/seafile
2020-01-11 09:51:29,960: DEBUG - + mkdir -p /opt/yunohost/seafile/installed
2020-01-11 09:51:29,960: DEBUG - + mkdir -p /opt/yunohost/seafile/logs
2020-01-11 09:51:29,960: DEBUG - + mkdir -p /opt/yunohost/seafile/seafile-data
2020-01-11 09:51:29,960: DEBUG - + ynh_script_progression '--message=Installing sources files...' --weight=7
2020-01-11 09:51:29,960: DEBUG - + set +x
2020-01-11 09:51:30,061: DEBUG - + set +x
2020-01-11 09:51:30,062: INFO - [####+...............] > Cleaning data directory...
2020-01-11 09:51:30,064: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:51:30,064: INFO - [#####...............] > Creating base directory...
2020-01-11 09:51:30,064: DEBUG - + set +x
2020-01-11 09:51:30,065: INFO - [#####+++............] > Installing sources files...
2020-01-11 09:51:30,066: DEBUG - + echo '[#####+++............] > Installing sources files...'
2020-01-11 09:51:30,066: DEBUG - + set -x
2020-01-11 09:51:30,067: DEBUG - + install_source
2020-01-11 09:51:30,067: DEBUG - + mkdir /opt/yunohost/seafile/seafile-server-7.0.5
2020-01-11 09:51:30,067: DEBUG - + [[ x86-64 == \i\3\8\6 ]]
2020-01-11 09:51:30,067: DEBUG - + ynh_setup_source /opt/yunohost/seafile/seafile-server-7.0.5 x86-64
2020-01-11 09:51:30,067: DEBUG - + local legacy_args=ds
2020-01-11 09:51:30,068: DEBUG - + args_array=([d]=dest_dir= [s]=source_id=)
2020-01-11 09:51:30,068: DEBUG - + declare -Ar args_array
2020-01-11 09:51:30,068: DEBUG - + local dest_dir
2020-01-11 09:51:30,068: DEBUG - + local source_id
2020-01-11 09:51:30,068: DEBUG - + ynh_handle_getopts_args /opt/yunohost/seafile/seafile-server-7.0.5 x86-64
2020-01-11 09:51:30,069: DEBUG - + set +x
2020-01-11 09:51:30,069: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:51:30,069: DEBUG - + set +x
2020-01-11 09:51:30,069: DEBUG - + source_id=x86-64
2020-01-11 09:51:30,069: DEBUG - + local src_file_path=/var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/../conf/x86-64.src
2020-01-11 09:51:30,070: DEBUG - + '[' '!' -e /var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/../conf/x86-64.src ']'
2020-01-11 09:51:30,070: DEBUG - ++ cut -d= -f2-
2020-01-11 09:51:30,070: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/../conf/x86-64.src
2020-01-11 09:51:30,070: DEBUG - + local src_url=https://download.seadrive.org/seafile-server_7.0.5_x86-64.tar.gz
2020-01-11 09:51:30,070: DEBUG - ++ cut -d= -f2-
2020-01-11 09:51:30,070: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/../conf/x86-64.src
2020-01-11 09:51:30,071: DEBUG - + local src_sum=7eb8814f1bc8ee78c80741fa08cbdce2b5ea8895a87730bde2a1b32d031e8f53
2020-01-11 09:51:30,075: DEBUG - ++ cut -d= -f2-
2020-01-11 09:51:30,075: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/../conf/x86-64.src
2020-01-11 09:51:30,075: DEBUG - + local src_sumprg=sha256sum
2020-01-11 09:51:30,075: DEBUG - ++ cut -d= -f2-
2020-01-11 09:51:30,075: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/../conf/x86-64.src
2020-01-11 09:51:30,076: DEBUG - + local src_format=tar.gz
2020-01-11 09:51:30,076: DEBUG - ++ cut -d= -f2-
2020-01-11 09:51:30,076: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/../conf/x86-64.src
2020-01-11 09:51:30,076: DEBUG - + local src_extract=
2020-01-11 09:51:30,076: DEBUG - ++ cut -d= -f2-
2020-01-11 09:51:30,076: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/../conf/x86-64.src
2020-01-11 09:51:30,077: DEBUG - + local src_in_subdir=true
2020-01-11 09:51:30,077: DEBUG - ++ cut -d= -f2-
2020-01-11 09:51:30,077: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/../conf/x86-64.src
2020-01-11 09:51:30,077: DEBUG - + local src_filename=
2020-01-11 09:51:30,077: DEBUG - + src_sumprg=sha256sum
2020-01-11 09:51:30,078: DEBUG - + src_in_subdir=true
2020-01-11 09:51:30,078: DEBUG - + src_format=tar.gz
2020-01-11 09:51:30,078: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2020-01-11 09:51:30,078: DEBUG - ++ echo tar.gz
2020-01-11 09:51:30,078: DEBUG - + src_format=tar.gz
2020-01-11 09:51:30,078: DEBUG - + src_extract=true
2020-01-11 09:51:30,079: DEBUG - + '[' '' = '' ']'
2020-01-11 09:51:30,079: DEBUG - + src_filename=x86-64.tar.gz
2020-01-11 09:51:30,079: DEBUG - + local local_src=/opt/yunohost-apps-src/seafile/x86-64.tar.gz
2020-01-11 09:51:30,079: DEBUG - + test -e /opt/yunohost-apps-src/seafile/x86-64.tar.gz
2020-01-11 09:51:30,079: DEBUG - ++ wget -nv -O x86-64.tar.gz https://download.seadrive.org/seafile-server_7.0.5_x86-64.tar.gz
2020-01-11 09:51:34,994: DEBUG - + local 'out=2020-01-11 09:51:34 URL:https://download.seadrive.org/seafile-server_7.0.5_x86-64.tar.gz [59521147/59521147] -> "x86-64.tar.gz" [1]'
2020-01-11 09:51:34,995: DEBUG - + sha256sum -c --status
2020-01-11 09:51:34,995: DEBUG - + echo '7eb8814f1bc8ee78c80741fa08cbdce2b5ea8895a87730bde2a1b32d031e8f53 x86-64.tar.gz'
2020-01-11 09:51:35,506: DEBUG - + mkdir -p /opt/yunohost/seafile/seafile-server-7.0.5
2020-01-11 09:51:35,506: DEBUG - + true
2020-01-11 09:51:35,506: DEBUG - + '[' tar.gz = zip ']'
2020-01-11 09:51:35,506: DEBUG - + local strip=
2020-01-11 09:51:35,507: DEBUG - + '[' true '!=' false ']'
2020-01-11 09:51:35,507: DEBUG - + '[' true == true ']'
2020-01-11 09:51:35,507: DEBUG - + local sub_dirs=1
2020-01-11 09:51:35,507: DEBUG - + strip='--strip-components 1'
2020-01-11 09:51:35,507: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2020-01-11 09:51:35,508: DEBUG - + tar -xf x86-64.tar.gz -C /opt/yunohost/seafile/seafile-server-7.0.5 --strip-components 1
2020-01-11 09:51:42,583: DEBUG - ++ wc -l
2020-01-11 09:51:42,584: INFO - [########............] > Configuring MySQL database...
2020-01-11 09:51:42,586: DEBUG - ++ find /var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/../sources/patches/ -type f -name 'x86-64-*.patch'
2020-01-11 09:51:42,586: DEBUG - + ((  0 > 0  ))
2020-01-11 09:51:42,586: DEBUG - + test -e /var/cache/yunohost/from_file/seafile_ynh-16d5f0588f93fe2be5a33929390dc044c54bada2/scripts/../sources/extra_files/x86-64
2020-01-11 09:51:42,586: DEBUG - + ynh_script_progression '--message=Configuring MySQL database...'
2020-01-11 09:51:42,586: DEBUG - + set +x
2020-01-11 09:51:42,587: DEBUG - + set +x
2020-01-11 09:51:42,588: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:51:42,588: DEBUG - + set +x
2020-01-11 09:51:42,588: DEBUG - + echo '[########............] > Configuring MySQL database...'
2020-01-11 09:51:42,588: DEBUG - + set -x
2020-01-11 09:51:42,588: DEBUG - + db_user=seafile
2020-01-11 09:51:42,589: DEBUG - + ynh_mysql_setup_db --db_user seafile --db_name ccnetdb
2020-01-11 09:51:42,589: DEBUG - + local legacy_args=unp
2020-01-11 09:51:42,589: DEBUG - + args_array=([u]=db_user= [n]=db_name= [p]=db_pwd=)
2020-01-11 09:51:42,589: DEBUG - + declare -Ar args_array
2020-01-11 09:51:42,589: DEBUG - + local db_user
2020-01-11 09:51:42,589: DEBUG - + local db_name
2020-01-11 09:51:42,589: DEBUG - + db_pwd=
2020-01-11 09:51:42,590: DEBUG - + ynh_handle_getopts_args --db_user seafile --db_name ccnetdb
2020-01-11 09:51:42,590: DEBUG - + set +x
2020-01-11 09:51:42,590: DEBUG - ++ ynh_string_random
2020-01-11 09:51:42,590: DEBUG - ++ local legacy_args=l
2020-01-11 09:51:42,590: DEBUG - ++ args_array=([l]=length=)
2020-01-11 09:51:42,590: DEBUG - ++ declare -Ar args_array
2020-01-11 09:51:42,591: DEBUG - ++ local length
2020-01-11 09:51:42,592: DEBUG - ++ ynh_handle_getopts_args
2020-01-11 09:51:42,592: DEBUG - ++ set +x
2020-01-11 09:51:42,593: DEBUG - ++ length=24
2020-01-11 09:51:42,593: DEBUG - ++ sed -n 's/\(.\{24\}\).*/\1/p'
2020-01-11 09:51:42,593: DEBUG - ++ tr -c -d A-Za-z0-9
2020-01-11 09:51:42,593: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2020-01-11 09:51:42,593: DEBUG - + local new_db_pwd=**********
2020-01-11 09:51:42,593: DEBUG - + db_pwd=**********
2020-01-11 09:51:42,594: DEBUG - + ynh_mysql_create_db ccnetdb seafile **********
2020-01-11 09:51:42,594: DEBUG - + local db=ccnetdb
2020-01-11 09:51:42,594: DEBUG - + local 'sql=CREATE DATABASE ccnetdb;'
2020-01-11 09:51:42,594: DEBUG - + [[ 3 -gt 1 ]]
2020-01-11 09:51:42,594: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON ccnetdb.* TO '\''seafile'\''@'\''localhost'\'''
2020-01-11 09:51:42,594: DEBUG - + [[ -n ********** ]]
2020-01-11 09:51:42,594: DEBUG - + sql+=' IDENTIFIED BY '\''**********'\'''
2020-01-11 09:51:42,595: DEBUG - + sql+=' WITH GRANT OPTION;'
2020-01-11 09:51:42,596: DEBUG - + ynh_mysql_execute_as_root '--sql=CREATE DATABASE ccnetdb; GRANT ALL PRIVILEGES ON ccnetdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;'
2020-01-11 09:51:42,596: DEBUG - + local legacy_args=sd
2020-01-11 09:51:42,596: DEBUG - + args_array=([s]=sql= [d]=database=)
2020-01-11 09:51:42,596: DEBUG - + declare -Ar args_array
2020-01-11 09:51:42,596: DEBUG - + local sql
2020-01-11 09:51:42,596: DEBUG - + local database
2020-01-11 09:51:42,597: DEBUG - + ynh_handle_getopts_args '--sql=CREATE DATABASE ccnetdb; GRANT ALL PRIVILEGES ON ccnetdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;'
2020-01-11 09:51:42,597: DEBUG - + set +x
2020-01-11 09:51:42,597: DEBUG - + database=
2020-01-11 09:51:42,597: DEBUG - ++ sudo cat /etc/yunohost/mysql
2020-01-11 09:51:42,597: DEBUG - + ynh_mysql_connect_as --user=root --password=********** --database=
2020-01-11 09:51:42,597: DEBUG - + local legacy_args=upd
2020-01-11 09:51:42,597: DEBUG - + args_array=([u]=user= [p]=password= [d]=database=)
2020-01-11 09:51:42,598: DEBUG - + declare -Ar args_array
2020-01-11 09:51:42,598: DEBUG - + local user
2020-01-11 09:51:42,598: DEBUG - + local password
2020-01-11 09:51:42,598: DEBUG - + local database
2020-01-11 09:51:42,598: DEBUG - + ynh_handle_getopts_args --user=root --password=********** --database=
2020-01-11 09:51:42,598: DEBUG - + set +x
2020-01-11 09:51:42,599: DEBUG - + database=
2020-01-11 09:51:42,599: DEBUG - + mysql -u root --password=********** -B ''
2020-01-11 09:51:42,600: DEBUG - + ynh_app_setting_set --app=seafile --key=mysqlpwd --value=**********
2020-01-11 09:51:42,600: DEBUG - + local legacy_args=akv
2020-01-11 09:51:42,600: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:51:42,600: DEBUG - + declare -Ar args_array
2020-01-11 09:51:42,600: DEBUG - + local app
2020-01-11 09:51:42,600: DEBUG - + local key
2020-01-11 09:51:42,600: DEBUG - + local value
2020-01-11 09:51:42,601: DEBUG - + ynh_handle_getopts_args --app=seafile --key=mysqlpwd --value=**********
2020-01-11 09:51:42,601: DEBUG - + set +x
2020-01-11 09:51:42,722: DEBUG - + ynh_app_setting set seafile mysqlpwd **********
2020-01-11 09:51:42,722: DEBUG - + ACTION=set
2020-01-11 09:51:42,722: DEBUG - + APP=seafile
2020-01-11 09:51:42,722: DEBUG - + KEY=mysqlpwd
2020-01-11 09:51:42,723: DEBUG - + VALUE=**********
2020-01-11 09:51:42,723: DEBUG - + python -
2020-01-11 09:51:44,159: DEBUG - + ynh_mysql_setup_db --db_user seafile --db_name seafiledb --db_pwd **********
2020-01-11 09:51:44,160: DEBUG - + local legacy_args=unp
2020-01-11 09:51:44,160: DEBUG - + args_array=([u]=db_user= [n]=db_name= [p]=db_pwd=)
2020-01-11 09:51:44,161: DEBUG - + declare -Ar args_array
2020-01-11 09:51:44,161: DEBUG - + local db_user
2020-01-11 09:51:44,161: DEBUG - + local db_name
2020-01-11 09:51:44,161: DEBUG - + db_pwd=
2020-01-11 09:51:44,161: DEBUG - + ynh_handle_getopts_args --db_user seafile --db_name seafiledb --db_pwd **********
2020-01-11 09:51:44,161: DEBUG - + set +x
2020-01-11 09:51:44,162: DEBUG - ++ ynh_string_random
2020-01-11 09:51:44,162: DEBUG - ++ local legacy_args=l
2020-01-11 09:51:44,162: DEBUG - ++ args_array=([l]=length=)
2020-01-11 09:51:44,162: DEBUG - ++ declare -Ar args_array
2020-01-11 09:51:44,162: DEBUG - ++ local length
2020-01-11 09:51:44,162: DEBUG - ++ ynh_handle_getopts_args
2020-01-11 09:51:44,163: DEBUG - ++ set +x
2020-01-11 09:51:44,165: DEBUG - ++ length=24
2020-01-11 09:51:44,165: DEBUG - ++ sed -n 's/\(.\{24\}\).*/\1/p'
2020-01-11 09:51:44,165: DEBUG - ++ tr -c -d A-Za-z0-9
2020-01-11 09:51:44,166: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2020-01-11 09:51:44,166: DEBUG - + local new_db_pwd=**********
2020-01-11 09:51:44,166: DEBUG - + db_pwd=**********
2020-01-11 09:51:44,166: DEBUG - + ynh_mysql_create_db seafiledb seafile **********
2020-01-11 09:51:44,166: DEBUG - + local db=seafiledb
2020-01-11 09:51:44,167: DEBUG - + local 'sql=CREATE DATABASE seafiledb;'
2020-01-11 09:51:44,167: DEBUG - + [[ 3 -gt 1 ]]
2020-01-11 09:51:44,167: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON seafiledb.* TO '\''seafile'\''@'\''localhost'\'''
2020-01-11 09:51:44,167: DEBUG - + [[ -n ********** ]]
2020-01-11 09:51:44,167: DEBUG - + sql+=' IDENTIFIED BY '\''**********'\'''
2020-01-11 09:51:44,167: DEBUG - + sql+=' WITH GRANT OPTION;'
2020-01-11 09:51:44,168: DEBUG - + ynh_mysql_execute_as_root '--sql=CREATE DATABASE seafiledb; GRANT ALL PRIVILEGES ON seafiledb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;'
2020-01-11 09:51:44,168: DEBUG - + local legacy_args=sd
2020-01-11 09:51:44,168: DEBUG - + args_array=([s]=sql= [d]=database=)
2020-01-11 09:51:44,168: DEBUG - + declare -Ar args_array
2020-01-11 09:51:44,168: DEBUG - + local sql
2020-01-11 09:51:44,168: DEBUG - + local database
2020-01-11 09:51:44,168: DEBUG - + ynh_handle_getopts_args '--sql=CREATE DATABASE seafiledb; GRANT ALL PRIVILEGES ON seafiledb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;'
2020-01-11 09:51:44,169: DEBUG - + set +x
2020-01-11 09:51:44,169: DEBUG - + database=
2020-01-11 09:51:44,169: DEBUG - ++ sudo cat /etc/yunohost/mysql
2020-01-11 09:51:44,169: DEBUG - + ynh_mysql_connect_as --user=root --password=********** --database=
2020-01-11 09:51:44,169: DEBUG - + local legacy_args=upd
2020-01-11 09:51:44,169: DEBUG - + args_array=([u]=user= [p]=password= [d]=database=)
2020-01-11 09:51:44,169: DEBUG - + declare -Ar args_array
2020-01-11 09:51:44,170: DEBUG - + local user
2020-01-11 09:51:44,170: DEBUG - + local password
2020-01-11 09:51:44,170: DEBUG - + local database
2020-01-11 09:51:44,170: DEBUG - + ynh_handle_getopts_args --user=root --password=********** --database=
2020-01-11 09:51:44,170: DEBUG - + set +x
2020-01-11 09:51:44,170: DEBUG - + database=
2020-01-11 09:51:44,170: DEBUG - + mysql -u root --password=********** -B ''
2020-01-11 09:51:44,271: DEBUG - + ynh_app_setting_set --app=seafile --key=mysqlpwd --value=**********
2020-01-11 09:51:44,271: DEBUG - + local legacy_args=akv
2020-01-11 09:51:44,271: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:51:44,271: DEBUG - + declare -Ar args_array
2020-01-11 09:51:44,272: DEBUG - + local app
2020-01-11 09:51:44,272: DEBUG - + local key
2020-01-11 09:51:44,272: DEBUG - + local value
2020-01-11 09:51:44,272: DEBUG - + ynh_handle_getopts_args --app=seafile --key=mysqlpwd --value=**********
2020-01-11 09:51:44,272: DEBUG - + set +x
2020-01-11 09:51:44,273: DEBUG - + ynh_app_setting set seafile mysqlpwd **********
2020-01-11 09:51:44,273: DEBUG - + ACTION=set
2020-01-11 09:51:44,273: DEBUG - + APP=seafile
2020-01-11 09:51:44,273: DEBUG - + KEY=mysqlpwd
2020-01-11 09:51:44,273: DEBUG - + VALUE=**********
2020-01-11 09:51:44,273: DEBUG - + python -
2020-01-11 09:51:44,586: DEBUG - + ynh_mysql_setup_db --db_user seafile --db_name seahubdb --db_pwd **********
2020-01-11 09:51:44,586: DEBUG - + local legacy_args=unp
2020-01-11 09:51:44,587: DEBUG - + args_array=([u]=db_user= [n]=db_name= [p]=db_pwd=)
2020-01-11 09:51:44,587: DEBUG - + declare -Ar args_array
2020-01-11 09:51:44,587: DEBUG - + local db_user
2020-01-11 09:51:44,587: DEBUG - + local db_name
2020-01-11 09:51:44,588: DEBUG - + db_pwd=
2020-01-11 09:51:44,588: DEBUG - + ynh_handle_getopts_args --db_user seafile --db_name seahubdb --db_pwd **********
2020-01-11 09:51:44,588: DEBUG - + set +x
2020-01-11 09:51:44,689: DEBUG - ++ ynh_string_random
2020-01-11 09:51:44,689: DEBUG - ++ local legacy_args=l
2020-01-11 09:51:44,690: DEBUG - ++ args_array=([l]=length=)
2020-01-11 09:51:44,690: DEBUG - ++ declare -Ar args_array
2020-01-11 09:51:44,690: DEBUG - ++ local length
2020-01-11 09:51:44,690: DEBUG - ++ ynh_handle_getopts_args
2020-01-11 09:51:44,690: DEBUG - ++ set +x
2020-01-11 09:51:44,690: DEBUG - ++ length=24
2020-01-11 09:51:44,691: DEBUG - ++ sed -n 's/\(.\{24\}\).*/\1/p'
2020-01-11 09:51:44,691: DEBUG - ++ tr -c -d A-Za-z0-9
2020-01-11 09:51:44,691: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2020-01-11 09:51:44,691: DEBUG - + local new_db_pwd=**********
2020-01-11 09:51:44,691: DEBUG - + db_pwd=**********
2020-01-11 09:51:44,691: DEBUG - + ynh_mysql_create_db seahubdb seafile **********
2020-01-11 09:51:44,692: DEBUG - + local db=seahubdb
2020-01-11 09:51:44,692: DEBUG - + local 'sql=CREATE DATABASE seahubdb;'
2020-01-11 09:51:44,692: DEBUG - + [[ 3 -gt 1 ]]
2020-01-11 09:51:44,692: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON seahubdb.* TO '\''seafile'\''@'\''localhost'\'''
2020-01-11 09:51:44,692: DEBUG - + [[ -n ********** ]]
2020-01-11 09:51:44,692: DEBUG - + sql+=' IDENTIFIED BY '\''**********'\'''
2020-01-11 09:51:44,692: DEBUG - + sql+=' WITH GRANT OPTION;'
2020-01-11 09:51:44,693: DEBUG - + ynh_mysql_execute_as_root '--sql=CREATE DATABASE seahubdb; GRANT ALL PRIVILEGES ON seahubdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;'
2020-01-11 09:51:44,693: DEBUG - + local legacy_args=sd
2020-01-11 09:51:44,693: DEBUG - + args_array=([s]=sql= [d]=database=)
2020-01-11 09:51:44,693: DEBUG - + declare -Ar args_array
2020-01-11 09:51:44,693: DEBUG - + local sql
2020-01-11 09:51:44,693: DEBUG - + local database
2020-01-11 09:51:44,694: DEBUG - + ynh_handle_getopts_args '--sql=CREATE DATABASE seahubdb; GRANT ALL PRIVILEGES ON seahubdb.* TO '\''seafile'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;'
2020-01-11 09:51:44,694: DEBUG - + set +x
2020-01-11 09:51:44,694: DEBUG - + database=
2020-01-11 09:51:44,694: DEBUG - ++ sudo cat /etc/yunohost/mysql
2020-01-11 09:51:44,694: DEBUG - + ynh_mysql_connect_as --user=root --password=********** --database=
2020-01-11 09:51:44,694: DEBUG - + local legacy_args=upd
2020-01-11 09:51:44,694: DEBUG - + args_array=([u]=user= [p]=password= [d]=database=)
2020-01-11 09:51:44,694: DEBUG - + declare -Ar args_array
2020-01-11 09:51:44,695: DEBUG - + local user
2020-01-11 09:51:44,699: DEBUG - + local password
2020-01-11 09:51:44,699: DEBUG - + local database
2020-01-11 09:51:44,699: DEBUG - + ynh_handle_getopts_args --user=root --password=********** --database=
2020-01-11 09:51:44,699: DEBUG - + set +x
2020-01-11 09:51:44,700: DEBUG - + database=
2020-01-11 09:51:44,700: DEBUG - + mysql -u root --password=********** -B ''
2020-01-11 09:51:44,700: DEBUG - + ynh_app_setting_set --app=seafile --key=mysqlpwd --value=**********
2020-01-11 09:51:44,700: DEBUG - + local legacy_args=akv
2020-01-11 09:51:44,700: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:51:44,700: DEBUG - + declare -Ar args_array
2020-01-11 09:51:44,700: DEBUG - + local app
2020-01-11 09:51:44,701: DEBUG - + local key
2020-01-11 09:51:44,701: DEBUG - + local value
2020-01-11 09:51:44,701: DEBUG - + ynh_handle_getopts_args --app=seafile --key=mysqlpwd --value=**********
2020-01-11 09:51:44,701: DEBUG - + set +x
2020-01-11 09:51:44,701: DEBUG - + ynh_app_setting set seafile mysqlpwd **********
2020-01-11 09:51:44,701: DEBUG - + ACTION=set
2020-01-11 09:51:44,701: DEBUG - + APP=seafile
2020-01-11 09:51:44,702: DEBUG - + KEY=mysqlpwd
2020-01-11 09:51:44,702: DEBUG - + VALUE=**********
2020-01-11 09:51:44,702: DEBUG - + python -
2020-01-11 09:51:44,802: DEBUG - + ynh_script_progression '--message=Configuring application...' --weight=3
2020-01-11 09:51:44,803: DEBUG - + set +x
2020-01-11 09:51:44,803: DEBUG - + set +x
2020-01-11 09:51:44,803: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:51:44,803: DEBUG - + set +x
2020-01-11 09:51:44,903: DEBUG - + echo '[########++..........] > Configuring application...'
2020-01-11 09:51:44,904: INFO - [########++..........] > Configuring application...
2020-01-11 09:51:44,905: DEBUG - + set -x
2020-01-11 09:51:44,906: DEBUG - + chmod +x expect_scripts/install.exp
2020-01-11 09:51:44,906: DEBUG - + chmod +x /opt/yunohost/seafile/seafile-server-7.0.5/setup-seafile-mysql.sh
2020-01-11 09:51:44,906: DEBUG - + expect_scripts/install.exp /opt/yunohost/seafile/seafile-server-7.0.5 Nuage interne.amisdeproust.fr /home/yunohost.app/seafile-data 8082 **********
2020-01-11 09:51:44,906: DEBUG - spawn /opt/yunohost/seafile/seafile-server-7.0.5/setup-seafile-mysql.sh
2020-01-11 09:51:44,906: DEBUG - Checking python on this machine ...
2020-01-11 09:51:44,907: DEBUG -   Checking python module: python-mysqldb ... Done.
2020-01-11 09:51:44,911: DEBUG - 
2020-01-11 09:51:45,012: DEBUG - -----------------------------------------------------------------
2020-01-11 09:51:45,012: DEBUG - This script will guide you to setup your seafile server using MySQL.
2020-01-11 09:51:45,012: DEBUG - Make sure you have read seafile server manual at
2020-01-11 09:51:45,013: DEBUG - 
2020-01-11 09:51:45,013: DEBUG -         https://github.com/haiwen/seafile/wiki
2020-01-11 09:51:45,013: DEBUG - 
2020-01-11 09:51:45,013: DEBUG - Press ENTER to continue
2020-01-11 09:51:45,014: DEBUG - 
2020-01-11 09:51:45,014: DEBUG - -----------------------------------------------------------------
2020-01-11 09:51:45,014: DEBUG - 
2020-01-11 09:51:45,014: DEBUG - 
2020-01-11 09:51:45,014: DEBUG - What is the name of the server? It will be displayed on the client.
2020-01-11 09:51:45,015: DEBUG - 3 - 15 letters or digits
2020-01-11 09:51:45,015: DEBUG - [ server name ] Nuage
2020-01-11 09:51:45,015: DEBUG - 
2020-01-11 09:51:45,015: DEBUG - What is the ip or domain of the server?
2020-01-11 09:51:45,015: DEBUG - For example: www.mycompany.com, 192.168.1.101
2020-01-11 09:51:45,016: DEBUG - [ This server's ip or domain ] interne.amisdeproust.fr
2020-01-11 09:51:45,016: DEBUG - 
2020-01-11 09:51:45,016: DEBUG - Where do you want to put your seafile data?
2020-01-11 09:51:45,016: DEBUG - Please use a volume with enough free space
2020-01-11 09:51:45,016: DEBUG - [ default "/opt/yunohost/seafile/seafile-data" ] 
<ile/seafile-data" ] /home/yunohost.app/seafile-data
2020-01-11 09:51:45,016: DEBUG - 
2020-01-11 09:51:45,017: DEBUG - Which port do you want to use for the seafile fileserver?
2020-01-11 09:51:45,017: DEBUG - [ default "8082" ] 8082
2020-01-11 09:51:45,017: DEBUG - 
2020-01-11 09:51:45,017: DEBUG - -------------------------------------------------------
2020-01-11 09:51:45,017: DEBUG - Please choose a way to initialize seafile databases:
2020-01-11 09:51:45,018: DEBUG - -------------------------------------------------------
2020-01-11 09:51:45,018: DEBUG - 
2020-01-11 09:51:45,018: DEBUG - [1] Create new ccnet/seafile/seahub databases
2020-01-11 09:51:45,018: DEBUG - [2] Use existing ccnet/seafile/seahub databases
2020-01-11 09:51:45,018: DEBUG - 
2020-01-11 09:51:45,018: DEBUG - [ 1 or 2 ] 2
2020-01-11 09:51:45,019: DEBUG - 
2020-01-11 09:51:45,019: DEBUG - What is the host of mysql server?
2020-01-11 09:51:45,019: DEBUG - [ default "localhost" ] localhost
2020-01-11 09:51:45,019: DEBUG - 
2020-01-11 09:51:45,019: DEBUG - What is the port of mysql server?
2020-01-11 09:51:45,019: DEBUG - [ default "3306" ] 3306
2020-01-11 09:51:45,020: DEBUG - 
2020-01-11 09:51:45,020: DEBUG - Which mysql user to use for seafile?
2020-01-11 09:51:45,020: DEBUG - [ mysql user for seafile ] seafile
2020-01-11 09:51:45,020: DEBUG - 
2020-01-11 09:51:45,020: DEBUG - What is the password for mysql user "seafile"?
2020-01-11 09:51:45,020: DEBUG - [ password for seafile ]
2020-01-11 09:51:45,021: DEBUG - 
2020-01-11 09:51:45,021: DEBUG - verifying password of user seafile ...  done
2020-01-11 09:51:45,021: DEBUG - 
2020-01-11 09:51:45,021: DEBUG - Enter the existing database name for ccnet:
2020-01-11 09:51:45,021: DEBUG - [ ccnet database ] ccnetdb
2020-01-11 09:51:45,021: DEBUG - 
2020-01-11 09:51:45,125: DEBUG - verifying user "seafile" access to database ccnetdb ...  done
2020-01-11 09:51:45,126: DEBUG - 
2020-01-11 09:51:45,126: DEBUG - Enter the existing database name for seafile:
2020-01-11 09:51:45,126: DEBUG - [ seafile database ] seafiledb
2020-01-11 09:51:45,127: DEBUG - 
2020-01-11 09:51:45,127: DEBUG - verifying user "seafile" access to database seafiledb ...  done
2020-01-11 09:51:45,127: DEBUG - 
2020-01-11 09:51:45,128: DEBUG - Enter the existing database name for seahub:
2020-01-11 09:51:45,128: DEBUG - [ seahub database ] seahubdb
2020-01-11 09:51:45,128: DEBUG - 
2020-01-11 09:51:45,128: DEBUG - verifying user "seafile" access to database seahubdb ...  done
2020-01-11 09:51:45,128: DEBUG - 
2020-01-11 09:51:45,129: DEBUG - ---------------------------------
2020-01-11 09:51:45,129: DEBUG - This is your configuration
2020-01-11 09:51:45,129: DEBUG - ---------------------------------
2020-01-11 09:51:45,129: DEBUG - 
2020-01-11 09:51:45,129: DEBUG -     server name:            Nuage
2020-01-11 09:51:45,129: DEBUG -     server ip/domain:       interne.amisdeproust.fr
2020-01-11 09:51:45,129: DEBUG - 
2020-01-11 09:51:45,129: DEBUG -     seafile data dir:       /home/yunohost.app/seafile-data
2020-01-11 09:51:45,130: DEBUG -     fileserver port:        8082
2020-01-11 09:51:45,130: DEBUG - 
2020-01-11 09:51:45,130: DEBUG -     database:               use existing
2020-01-11 09:51:45,130: DEBUG -     ccnet database:         ccnetdb
2020-01-11 09:51:45,130: DEBUG -     seafile database:       seafiledb
2020-01-11 09:51:45,130: DEBUG -     seahub database:        seahubdb
2020-01-11 09:51:45,131: DEBUG -     database user:          seafile
2020-01-11 09:51:45,131: DEBUG - 
2020-01-11 09:51:45,131: DEBUG - 
2020-01-11 09:51:45,131: DEBUG - 
2020-01-11 09:51:45,131: DEBUG - ---------------------------------
2020-01-11 09:51:45,131: DEBUG - Press ENTER to continue, or Ctrl-C to abort
2020-01-11 09:51:45,131: DEBUG - ---------------------------------
2020-01-11 09:51:59,138: DEBUG - + ynh_replace_string --match_string http:// --replace_string https:// --target_file /opt/yunohost/seafile/conf/ccnet.conf
2020-01-11 09:51:59,138: DEBUG - + local legacy_args=mrf
2020-01-11 09:51:59,139: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:51:59,139: DEBUG - + declare -Ar args_array
2020-01-11 09:51:59,139: DEBUG - + local match_string
2020-01-11 09:51:59,139: DEBUG - + local replace_string
2020-01-11 09:51:59,139: DEBUG - + local target_file
2020-01-11 09:51:59,140: DEBUG - + ynh_handle_getopts_args --match_string http:// --replace_string https:// --target_file /opt/yunohost/seafile/conf/ccnet.conf
2020-01-11 09:51:59,140: DEBUG - + set +x
2020-01-11 09:51:59,140: DEBUG - + local delimit=@
2020-01-11 09:51:59,140: DEBUG - + match_string=http://
2020-01-11 09:51:59,140: DEBUG - + replace_string=https://
2020-01-11 09:51:59,140: DEBUG - + sudo sed --in-place s@http://@https://@g /opt/yunohost/seafile/conf/ccnet.conf
2020-01-11 09:51:59,263: DEBUG - + ynh_replace_string --match_string :8000 --replace_string /nuage --target_file /opt/yunohost/seafile/conf/ccnet.conf
2020-01-11 09:51:59,263: DEBUG - + local legacy_args=mrf
2020-01-11 09:51:59,263: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:51:59,263: DEBUG - + declare -Ar args_array
2020-01-11 09:51:59,264: DEBUG - + local match_string
2020-01-11 09:51:59,264: DEBUG - + local replace_string
2020-01-11 09:51:59,264: DEBUG - + local target_file
2020-01-11 09:51:59,265: DEBUG - + ynh_handle_getopts_args --match_string :8000 --replace_string /nuage --target_file /opt/yunohost/seafile/conf/ccnet.conf
2020-01-11 09:51:59,265: DEBUG - + set +x
2020-01-11 09:51:59,265: DEBUG - + local delimit=@
2020-01-11 09:51:59,265: DEBUG - + match_string=:8000
2020-01-11 09:51:59,266: DEBUG - + replace_string=/nuage
2020-01-11 09:51:59,266: DEBUG - + sudo sed --in-place s@:8000@/nuage@g /opt/yunohost/seafile/conf/ccnet.conf
2020-01-11 09:51:59,266: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,266: DEBUG - + echo 'FILE_SERVER_ROOT = "https://interne.amisdeproust.fr/seafhttp"'
2020-01-11 09:51:59,367: DEBUG - FILE_SERVER_ROOT = "https://interne.amisdeproust.fr/seafhttp"
2020-01-11 09:51:59,367: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,367: DEBUG - + echo 'SITE_ROOT = "/nuage/"'
2020-01-11 09:51:59,367: DEBUG - SITE_ROOT = "/nuage/"
2020-01-11 09:51:59,367: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,367: DEBUG - + echo 'SERVE_STATIC = False'
2020-01-11 09:51:59,368: DEBUG - SERVE_STATIC = False
2020-01-11 09:51:59,368: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,368: DEBUG - + echo 'MEDIA_URL = "/nuage/media/"'
2020-01-11 09:51:59,368: DEBUG - MEDIA_URL = "/nuage/media/"
2020-01-11 09:51:59,368: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,368: DEBUG - + echo 'COMPRESS_URL = MEDIA_URL'
2020-01-11 09:51:59,368: DEBUG - COMPRESS_URL = MEDIA_URL
2020-01-11 09:51:59,369: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,369: DEBUG - + echo 'STATIC_URL = MEDIA_URL + '\''assets/'\'''
2020-01-11 09:51:59,369: DEBUG - STATIC_URL = MEDIA_URL + 'assets/'
2020-01-11 09:51:59,369: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,369: DEBUG - + echo 'LOGIN_URL = '\''/nuage/accounts/login/'\'''
2020-01-11 09:51:59,369: DEBUG - LOGIN_URL = '/nuage/accounts/login/'
2020-01-11 09:51:59,370: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,370: DEBUG - + echo 'ALLOWED_HOSTS = ['\''interne.amisdeproust.fr'\'']'
2020-01-11 09:51:59,370: DEBUG - ALLOWED_HOSTS = ['interne.amisdeproust.fr']
2020-01-11 09:51:59,370: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,370: DEBUG - + echo 'EMAIL_USE_TLS = False'
2020-01-11 09:51:59,370: DEBUG - EMAIL_USE_TLS = False
2020-01-11 09:51:59,370: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,371: DEBUG - + echo 'EMAIL_HOST = "localhost"'
2020-01-11 09:51:59,372: DEBUG - EMAIL_HOST = "localhost"
2020-01-11 09:51:59,372: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,372: DEBUG - + echo 'EMAIL_HOST_USER = "seafile@interne.amisdeproust.fr"'
2020-01-11 09:51:59,372: DEBUG - EMAIL_HOST_USER = "seafile@interne.amisdeproust.fr"
2020-01-11 09:51:59,372: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,372: DEBUG - + echo 'EMAIL_PORT = "25"'
2020-01-11 09:51:59,373: DEBUG - EMAIL_PORT = "25"
2020-01-11 09:51:59,373: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,373: DEBUG - + echo 'DEFAULT_FROM_EMAIL = "seafile@interne.amisdeproust.fr"'
2020-01-11 09:51:59,373: DEBUG - DEFAULT_FROM_EMAIL = "seafile@interne.amisdeproust.fr"
2020-01-11 09:51:59,473: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,474: DEBUG - + echo 'SERVER_EMAIL = "seafile@interne.amisdeproust.fr"'
2020-01-11 09:51:59,474: DEBUG - SERVER_EMAIL = "seafile@interne.amisdeproust.fr"
2020-01-11 09:51:59,474: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,474: DEBUG - + echo 'EMAIL_HOST_PASSWORD = ""'
2020-01-11 09:51:59,474: DEBUG - EMAIL_HOST_PASSWORD = ""
2020-01-11 09:51:59,474: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,475: DEBUG - ++ cat /etc/timezone
2020-01-11 09:51:59,475: DEBUG - + echo 'TIME_ZONE = ""'
2020-01-11 09:51:59,475: DEBUG - TIME_ZONE = ""
2020-01-11 09:51:59,475: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,475: DEBUG - + echo 'ENABLE_REMOTE_USER_AUTHENTICATION = True'
2020-01-11 09:51:59,475: DEBUG - ENABLE_REMOTE_USER_AUTHENTICATION = True
2020-01-11 09:51:59,476: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,476: DEBUG - + echo 'REMOTE_USER_HEADER = '\''HTTP_EMAIL'\'''
2020-01-11 09:51:59,476: DEBUG - REMOTE_USER_HEADER = 'HTTP_EMAIL'
2020-01-11 09:51:59,476: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,476: DEBUG - + echo 'REMOTE_USER_CREATE_UNKNOWN_USER = False'
2020-01-11 09:51:59,476: DEBUG - REMOTE_USER_CREATE_UNKNOWN_USER = False
2020-01-11 09:51:59,476: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,477: DEBUG - + echo 'REMOTE_USER_PROTECTED_PATH = ['\''/nuage'\'', '\''/nuage/accounts/login'\'']'
2020-01-11 09:51:59,477: DEBUG - REMOTE_USER_PROTECTED_PATH = ['/nuage', '/nuage/accounts/login']
2020-01-11 09:51:59,477: DEBUG - + tee -a /opt/yunohost/seafile/conf/ccnet.conf
2020-01-11 09:51:59,477: DEBUG - + echo '[LDAP]'
2020-01-11 09:51:59,477: DEBUG - [LDAP]
2020-01-11 09:51:59,477: DEBUG - + tee -a /opt/yunohost/seafile/conf/ccnet.conf
2020-01-11 09:51:59,478: DEBUG - + echo 'HOST = ldap://localhost:389'
2020-01-11 09:51:59,478: DEBUG - HOST = ldap://localhost:389
2020-01-11 09:51:59,478: DEBUG - + tee -a /opt/yunohost/seafile/conf/ccnet.conf
2020-01-11 09:51:59,478: DEBUG - + echo 'BASE = ou=users,dc=yunohost,dc=org'
2020-01-11 09:51:59,478: DEBUG - BASE = ou=users,dc=yunohost,dc=org
2020-01-11 09:51:59,478: DEBUG - + tee -a /opt/yunohost/seafile/conf/ccnet.conf
2020-01-11 09:51:59,478: DEBUG - + echo 'LOGIN_ATTR = mail'
2020-01-11 09:51:59,479: DEBUG - LOGIN_ATTR = mail
2020-01-11 09:51:59,483: DEBUG - + tee -a /opt/yunohost/seafile/conf/seahub_settings.py
2020-01-11 09:51:59,483: DEBUG - + echo 'ENABLE_WIKI = True'
2020-01-11 09:51:59,483: DEBUG - ENABLE_WIKI = True
2020-01-11 09:51:59,483: DEBUG - + ynh_replace_string --match_string en_US.UTF-8 --replace_string fr_FR.UTF-8 --target_file /opt/yunohost/seafile/seafile-server-7.0.5/seahub.sh
2020-01-11 09:51:59,484: DEBUG - + local legacy_args=mrf
2020-01-11 09:51:59,484: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:51:59,484: DEBUG - + declare -Ar args_array
2020-01-11 09:51:59,484: DEBUG - + local match_string
2020-01-11 09:51:59,484: DEBUG - + local replace_string
2020-01-11 09:51:59,484: DEBUG - + local target_file
2020-01-11 09:51:59,484: DEBUG - + ynh_handle_getopts_args --match_string en_US.UTF-8 --replace_string fr_FR.UTF-8 --target_file /opt/yunohost/seafile/seafile-server-7.0.5/seahub.sh
2020-01-11 09:51:59,485: DEBUG - + set +x
2020-01-11 09:51:59,485: DEBUG - + local delimit=@
2020-01-11 09:51:59,485: DEBUG - + match_string=en_US.UTF-8
2020-01-11 09:51:59,485: DEBUG - + replace_string=fr_FR.UTF-8
2020-01-11 09:51:59,485: DEBUG - + sudo sed --in-place s@en_US.UTF-8@fr_FR.UTF-8@g /opt/yunohost/seafile/seafile-server-7.0.5/seahub.sh
2020-01-11 09:51:59,485: DEBUG - + sed --in-place -r 's@bind = "127\.0\.0\.1:[[:digit:]]+"@bind = "127.0.0.1:8000"@g' /opt/yunohost/seafile/conf/gunicorn.conf
2020-01-11 09:51:59,485: DEBUG - + cp ../conf/seafdav.conf /opt/yunohost/seafile/conf/seafdav.conf
2020-01-11 09:51:59,486: DEBUG - + ynh_replace_string --match_string __WEBDAV_PORT__ --replace_string 8080 --target_file /opt/yunohost/seafile/conf/seafdav.conf
2020-01-11 09:51:59,486: DEBUG - + local legacy_args=mrf
2020-01-11 09:51:59,486: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:51:59,486: DEBUG - + declare -Ar args_array
2020-01-11 09:51:59,486: DEBUG - + local match_string
2020-01-11 09:51:59,486: DEBUG - + local replace_string
2020-01-11 09:51:59,497: DEBUG - + local target_file
2020-01-11 09:51:59,498: DEBUG - + ynh_handle_getopts_args --match_string __WEBDAV_PORT__ --replace_string 8080 --target_file /opt/yunohost/seafile/conf/seafdav.conf
2020-01-11 09:51:59,498: DEBUG - + set +x
2020-01-11 09:51:59,498: DEBUG - + local delimit=@
2020-01-11 09:51:59,498: DEBUG - + match_string=__WEBDAV_PORT__
2020-01-11 09:51:59,498: DEBUG - + replace_string=8080
2020-01-11 09:51:59,499: DEBUG - + sudo sed --in-place s@__WEBDAV_PORT__@8080@g /opt/yunohost/seafile/conf/seafdav.conf
2020-01-11 09:51:59,933: DEBUG - + ynh_script_progression '--message=Configuring a systemd service...' --weight=2
2020-01-11 09:51:59,933: DEBUG - + set +x
2020-01-11 09:51:59,933: DEBUG - + set +x
2020-01-11 09:51:59,933: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:51:59,934: DEBUG - + set +x
2020-01-11 09:51:59,934: DEBUG - + echo '[##########+.........] > Configuring a systemd service...'
2020-01-11 09:51:59,934: DEBUG - + set -x
2020-01-11 09:51:59,934: DEBUG - + ynh_add_systemd_config --service seafile --template seafile.service
2020-01-11 09:51:59,934: DEBUG - + local legacy_args=st
2020-01-11 09:51:59,934: DEBUG - + args_array=([s]=service= [t]=template=)
2020-01-11 09:51:59,934: DEBUG - + declare -Ar args_array
2020-01-11 09:51:59,935: INFO - [##########+.........] > Configuring a systemd service...
2020-01-11 09:51:59,936: DEBUG - + local service
2020-01-11 09:51:59,936: DEBUG - + local template
2020-01-11 09:51:59,936: DEBUG - + ynh_handle_getopts_args --service seafile --template seafile.service
2020-01-11 09:51:59,936: DEBUG - + set +x
2020-01-11 09:51:59,939: DEBUG - + local service=seafile
2020-01-11 09:51:59,939: DEBUG - + local template=seafile.service
2020-01-11 09:51:59,939: DEBUG - + finalsystemdconf=/etc/systemd/system/seafile.service
2020-01-11 09:51:59,939: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/seafile.service
2020-01-11 09:51:59,940: DEBUG - + local legacy_args=f
2020-01-11 09:51:59,940: DEBUG - + args_array=([f]=file=)
2020-01-11 09:51:59,940: DEBUG - + declare -Ar args_array
2020-01-11 09:51:59,940: DEBUG - + local file
2020-01-11 09:51:59,940: DEBUG - + ynh_handle_getopts_args --file=/etc/systemd/system/seafile.service
2020-01-11 09:51:59,940: DEBUG - + set +x
2020-01-11 09:51:59,940: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_seafile.service
2020-01-11 09:51:59,941: DEBUG - ++ ynh_app_setting_get --app=seafile --key=**********
2020-01-11 09:51:59,941: DEBUG - ++ local legacy_args=ak
2020-01-11 09:51:59,941: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-01-11 09:51:59,941: DEBUG - ++ declare -Ar args_array
2020-01-11 09:51:59,941: DEBUG - ++ local app
2020-01-11 09:51:59,941: DEBUG - ++ local key
2020-01-11 09:51:59,941: DEBUG - ++ ynh_handle_getopts_args --app=seafile --key=**********
2020-01-11 09:51:59,942: DEBUG - ++ set +x
2020-01-11 09:51:59,942: DEBUG - ++ ynh_app_setting get seafile **********
2020-01-11 09:51:59,942: DEBUG - ++ ACTION=get
2020-01-11 09:51:59,942: DEBUG - ++ APP=seafile
2020-01-11 09:51:59,942: DEBUG - ++ KEY=**********
2020-01-11 09:51:59,942: DEBUG - ++ VALUE=
2020-01-11 09:51:59,942: DEBUG - ++ python -
2020-01-11 09:52:06,004: DEBUG - + local checksum_value=
2020-01-11 09:52:06,005: DEBUG - + backup_file_checksum=
2020-01-11 09:52:06,005: DEBUG - + '[' -n '' ']'
2020-01-11 09:52:06,006: DEBUG - + sudo cp ../conf/seafile.service /etc/systemd/system/seafile.service
2020-01-11 09:52:06,106: DEBUG - + test -n /opt/yunohost/seafile
2020-01-11 09:52:06,106: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/yunohost/seafile --target_file=/etc/systemd/system/seafile.service
2020-01-11 09:52:06,107: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:06,107: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:06,107: DEBUG - + declare -Ar args_array
2020-01-11 09:52:06,107: DEBUG - + local match_string
2020-01-11 09:52:06,108: DEBUG - + local replace_string
2020-01-11 09:52:06,108: DEBUG - + local target_file
2020-01-11 09:52:06,108: DEBUG - + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/opt/yunohost/seafile --target_file=/etc/systemd/system/seafile.service
2020-01-11 09:52:06,108: DEBUG - + set +x
2020-01-11 09:52:06,108: DEBUG - + local delimit=@
2020-01-11 09:52:06,108: DEBUG - + match_string=__FINALPATH__
2020-01-11 09:52:06,109: DEBUG - + replace_string=/opt/yunohost/seafile
2020-01-11 09:52:06,109: DEBUG - + sudo sed --in-place s@__FINALPATH__@/opt/yunohost/seafile@g /etc/systemd/system/seafile.service
2020-01-11 09:52:06,109: DEBUG - + test -n seafile
2020-01-11 09:52:06,109: DEBUG - + ynh_replace_string --match_string=__APP__ --replace_string=seafile --target_file=/etc/systemd/system/seafile.service
2020-01-11 09:52:06,109: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:06,109: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:06,109: DEBUG - + declare -Ar args_array
2020-01-11 09:52:06,110: DEBUG - + local match_string
2020-01-11 09:52:06,110: DEBUG - + local replace_string
2020-01-11 09:52:06,110: DEBUG - + local target_file
2020-01-11 09:52:06,110: DEBUG - + ynh_handle_getopts_args --match_string=__APP__ --replace_string=seafile --target_file=/etc/systemd/system/seafile.service
2020-01-11 09:52:06,110: DEBUG - + set +x
2020-01-11 09:52:06,110: DEBUG - + local delimit=@
2020-01-11 09:52:06,115: DEBUG - + match_string=__APP__
2020-01-11 09:52:06,116: DEBUG - + replace_string=seafile
2020-01-11 09:52:06,116: DEBUG - + sudo sed --in-place s@__APP__@seafile@g /etc/systemd/system/seafile.service
2020-01-11 09:52:06,217: DEBUG - + ynh_store_file_checksum --file=/etc/systemd/system/seafile.service
2020-01-11 09:52:06,217: DEBUG - + local legacy_args=f
2020-01-11 09:52:06,217: DEBUG - + args_array=([f]=file=)
2020-01-11 09:52:06,218: DEBUG - + declare -Ar args_array
2020-01-11 09:52:06,218: DEBUG - + local file
2020-01-11 09:52:06,218: DEBUG - + ynh_handle_getopts_args --file=/etc/systemd/system/seafile.service
2020-01-11 09:52:06,218: DEBUG - + set +x
2020-01-11 09:52:06,219: DEBUG - + local checksum_setting_name=**********
2020-01-11 09:52:06,219: DEBUG - ++ cut '-d ' -f1
2020-01-11 09:52:06,219: DEBUG - ++ sudo md5sum /etc/systemd/system/seafile.service
2020-01-11 09:52:06,220: DEBUG - + ynh_app_setting_set --app=seafile --key=********** --value=ce6760b3b55e33bf1667c869c11ee24c
2020-01-11 09:52:06,220: DEBUG - + local legacy_args=akv
2020-01-11 09:52:06,222: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:52:06,222: DEBUG - + declare -Ar args_array
2020-01-11 09:52:06,222: DEBUG - + local app
2020-01-11 09:52:06,223: DEBUG - + local key
2020-01-11 09:52:06,223: DEBUG - + local value
2020-01-11 09:52:06,223: DEBUG - + ynh_handle_getopts_args --app=seafile --key=********** --value=ce6760b3b55e33bf1667c869c11ee24c
2020-01-11 09:52:06,223: DEBUG - + set +x
2020-01-11 09:52:06,223: DEBUG - + ynh_app_setting set seafile ********** ce6760b3b55e33bf1667c869c11ee24c
2020-01-11 09:52:06,224: DEBUG - + ACTION=set
2020-01-11 09:52:06,224: DEBUG - + APP=seafile
2020-01-11 09:52:06,224: DEBUG - + KEY=**********
2020-01-11 09:52:06,224: DEBUG - + VALUE=ce6760b3b55e33bf1667c869c11ee24c
2020-01-11 09:52:06,224: DEBUG - + python -
2020-01-11 09:52:06,425: DEBUG - + '[' -n '' ']'
2020-01-11 09:52:06,425: DEBUG - + unset backup_file_checksum
2020-01-11 09:52:06,426: DEBUG - + sudo chown root: /etc/systemd/system/seafile.service
2020-01-11 09:52:06,426: DEBUG - + sudo systemctl enable seafile
2020-01-11 09:52:06,526: WARNING - Created symlink /etc/systemd/system/multi-user.target.wants/seafile.service → /etc/systemd/system/seafile.service.
2020-01-11 09:52:07,047: DEBUG - + sudo systemctl daemon-reload
2020-01-11 09:52:07,248: DEBUG - + ynh_add_systemd_config --service seahub --template seahub.service
2020-01-11 09:52:07,249: DEBUG - + local legacy_args=st
2020-01-11 09:52:07,249: DEBUG - + args_array=([s]=service= [t]=template=)
2020-01-11 09:52:07,249: DEBUG - + declare -Ar args_array
2020-01-11 09:52:07,249: DEBUG - + local service
2020-01-11 09:52:07,249: DEBUG - + local template
2020-01-11 09:52:07,250: DEBUG - + ynh_handle_getopts_args --service seahub --template seahub.service
2020-01-11 09:52:07,250: DEBUG - + set +x
2020-01-11 09:52:07,250: DEBUG - + local service=seahub
2020-01-11 09:52:07,250: DEBUG - + local template=seahub.service
2020-01-11 09:52:07,250: DEBUG - + finalsystemdconf=/etc/systemd/system/seahub.service
2020-01-11 09:52:07,250: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/seahub.service
2020-01-11 09:52:07,251: DEBUG - + local legacy_args=f
2020-01-11 09:52:07,251: DEBUG - + args_array=([f]=file=)
2020-01-11 09:52:07,251: DEBUG - + declare -Ar args_array
2020-01-11 09:52:07,251: DEBUG - + local file
2020-01-11 09:52:07,251: DEBUG - + ynh_handle_getopts_args --file=/etc/systemd/system/seahub.service
2020-01-11 09:52:07,252: DEBUG - + set +x
2020-01-11 09:52:07,252: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_seahub.service
2020-01-11 09:52:07,252: DEBUG - ++ ynh_app_setting_get --app=seafile --key=**********
2020-01-11 09:52:07,252: DEBUG - ++ local legacy_args=ak
2020-01-11 09:52:07,252: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-01-11 09:52:07,253: DEBUG - ++ declare -Ar args_array
2020-01-11 09:52:07,354: DEBUG - ++ local app
2020-01-11 09:52:07,354: DEBUG - ++ local key
2020-01-11 09:52:07,354: DEBUG - ++ ynh_handle_getopts_args --app=seafile --key=**********
2020-01-11 09:52:07,355: DEBUG - ++ set +x
2020-01-11 09:52:07,355: DEBUG - ++ ynh_app_setting get seafile **********
2020-01-11 09:52:07,355: DEBUG - ++ ACTION=get
2020-01-11 09:52:07,355: DEBUG - ++ APP=seafile
2020-01-11 09:52:07,355: DEBUG - ++ KEY=**********
2020-01-11 09:52:07,356: DEBUG - ++ VALUE=
2020-01-11 09:52:07,356: DEBUG - ++ python -
2020-01-11 09:52:07,657: DEBUG - + local checksum_value=
2020-01-11 09:52:07,658: DEBUG - + backup_file_checksum=
2020-01-11 09:52:07,658: DEBUG - + '[' -n '' ']'
2020-01-11 09:52:07,659: DEBUG - + sudo cp ../conf/seahub.service /etc/systemd/system/seahub.service
2020-01-11 09:52:07,759: DEBUG - + test -n /opt/yunohost/seafile
2020-01-11 09:52:07,760: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/yunohost/seafile --target_file=/etc/systemd/system/seahub.service
2020-01-11 09:52:07,760: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:07,760: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:07,760: DEBUG - + declare -Ar args_array
2020-01-11 09:52:07,760: DEBUG - + local match_string
2020-01-11 09:52:07,761: DEBUG - + local replace_string
2020-01-11 09:52:07,761: DEBUG - + local target_file
2020-01-11 09:52:07,761: DEBUG - + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/opt/yunohost/seafile --target_file=/etc/systemd/system/seahub.service
2020-01-11 09:52:07,761: DEBUG - + set +x
2020-01-11 09:52:07,761: DEBUG - + local delimit=@
2020-01-11 09:52:07,762: DEBUG - + match_string=__FINALPATH__
2020-01-11 09:52:07,762: DEBUG - + replace_string=/opt/yunohost/seafile
2020-01-11 09:52:07,762: DEBUG - + sudo sed --in-place s@__FINALPATH__@/opt/yunohost/seafile@g /etc/systemd/system/seahub.service
2020-01-11 09:52:07,863: DEBUG - + test -n seafile
2020-01-11 09:52:07,863: DEBUG - + ynh_replace_string --match_string=__APP__ --replace_string=seafile --target_file=/etc/systemd/system/seahub.service
2020-01-11 09:52:07,863: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:07,863: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:07,863: DEBUG - + declare -Ar args_array
2020-01-11 09:52:07,864: DEBUG - + local match_string
2020-01-11 09:52:07,864: DEBUG - + local replace_string
2020-01-11 09:52:07,864: DEBUG - + local target_file
2020-01-11 09:52:07,864: DEBUG - + ynh_handle_getopts_args --match_string=__APP__ --replace_string=seafile --target_file=/etc/systemd/system/seahub.service
2020-01-11 09:52:07,864: DEBUG - + set +x
2020-01-11 09:52:07,864: DEBUG - + local delimit=@
2020-01-11 09:52:07,864: DEBUG - + match_string=__APP__
2020-01-11 09:52:07,864: DEBUG - + replace_string=seafile
2020-01-11 09:52:07,865: DEBUG - + sudo sed --in-place s@__APP__@seafile@g /etc/systemd/system/seahub.service
2020-01-11 09:52:07,965: DEBUG - + ynh_store_file_checksum --file=/etc/systemd/system/seahub.service
2020-01-11 09:52:07,965: DEBUG - + local legacy_args=f
2020-01-11 09:52:07,966: DEBUG - + args_array=([f]=file=)
2020-01-11 09:52:07,966: DEBUG - + declare -Ar args_array
2020-01-11 09:52:07,966: DEBUG - + local file
2020-01-11 09:52:07,966: DEBUG - + ynh_handle_getopts_args --file=/etc/systemd/system/seahub.service
2020-01-11 09:52:07,966: DEBUG - + set +x
2020-01-11 09:52:07,966: DEBUG - + local checksum_setting_name=**********
2020-01-11 09:52:07,966: DEBUG - ++ cut '-d ' -f1
2020-01-11 09:52:07,966: DEBUG - ++ sudo md5sum /etc/systemd/system/seahub.service
2020-01-11 09:52:08,067: DEBUG - + ynh_app_setting_set --app=seafile --key=********** --value=4f43a26e28ecb54d365a7e63799e6663
2020-01-11 09:52:08,067: DEBUG - + local legacy_args=akv
2020-01-11 09:52:08,067: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:52:08,067: DEBUG - + declare -Ar args_array
2020-01-11 09:52:08,068: DEBUG - + local app
2020-01-11 09:52:08,068: DEBUG - + local key
2020-01-11 09:52:08,068: DEBUG - + local value
2020-01-11 09:52:08,068: DEBUG - + ynh_handle_getopts_args --app=seafile --key=********** --value=4f43a26e28ecb54d365a7e63799e6663
2020-01-11 09:52:08,068: DEBUG - + set +x
2020-01-11 09:52:08,068: DEBUG - + ynh_app_setting set seafile ********** 4f43a26e28ecb54d365a7e63799e6663
2020-01-11 09:52:08,068: DEBUG - + ACTION=set
2020-01-11 09:52:08,069: DEBUG - + APP=seafile
2020-01-11 09:52:08,069: DEBUG - + KEY=**********
2020-01-11 09:52:08,069: DEBUG - + VALUE=4f43a26e28ecb54d365a7e63799e6663
2020-01-11 09:52:08,069: DEBUG - + python -
2020-01-11 09:52:09,658: DEBUG - + '[' -n '' ']'
2020-01-11 09:52:09,659: DEBUG - + unset backup_file_checksum
2020-01-11 09:52:09,659: DEBUG - + sudo chown root: /etc/systemd/system/seahub.service
2020-01-11 09:52:09,659: DEBUG - + sudo systemctl enable seahub
2020-01-11 09:52:09,760: WARNING - Created symlink /etc/systemd/system/multi-user.target.wants/seahub.service → /etc/systemd/system/seahub.service.
2020-01-11 09:52:09,961: DEBUG - + sudo systemctl daemon-reload
2020-01-11 09:52:10,162: DEBUG - + ynh_script_progression '--message=Configuring nginx...' --weight=1
2020-01-11 09:52:10,163: DEBUG - + set +x
2020-01-11 09:52:10,263: DEBUG - + set +x
2020-01-11 09:52:10,263: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:10,264: DEBUG - + set +x
2020-01-11 09:52:10,264: DEBUG - + echo '[###########.........] > Configuring nginx...'
2020-01-11 09:52:10,264: DEBUG - + set -x
2020-01-11 09:52:10,264: DEBUG - + ynh_add_nginx_config 'seahub_port fileserver_port webdav_port'
2020-01-11 09:52:10,264: DEBUG - + finalnginxconf=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:10,264: DEBUG - + local 'others_var=seahub_port fileserver_port webdav_port'
2020-01-11 09:52:10,265: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:10,265: DEBUG - + local legacy_args=f
2020-01-11 09:52:10,265: DEBUG - + args_array=([f]=file=)
2020-01-11 09:52:10,265: DEBUG - + declare -Ar args_array
2020-01-11 09:52:10,265: DEBUG - + local file
2020-01-11 09:52:10,265: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:10,266: DEBUG - + set +x
2020-01-11 09:52:10,266: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_interne.amisdeproust.fr.d_seafile.conf
2020-01-11 09:52:10,266: DEBUG - ++ ynh_app_setting_get --app=seafile --key=**********
2020-01-11 09:52:10,266: DEBUG - ++ local legacy_args=ak
2020-01-11 09:52:10,266: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-01-11 09:52:10,267: DEBUG - ++ declare -Ar args_array
2020-01-11 09:52:10,269: INFO - [###########.........] > Configuring nginx...
2020-01-11 09:52:10,270: DEBUG - ++ local app
2020-01-11 09:52:10,270: DEBUG - ++ local key
2020-01-11 09:52:10,270: DEBUG - ++ ynh_handle_getopts_args --app=seafile --key=**********
2020-01-11 09:52:10,270: DEBUG - ++ set +x
2020-01-11 09:52:10,371: DEBUG - ++ ynh_app_setting get seafile **********
2020-01-11 09:52:10,371: DEBUG - ++ ACTION=get
2020-01-11 09:52:10,371: DEBUG - ++ APP=seafile
2020-01-11 09:52:10,371: DEBUG - ++ KEY=**********
2020-01-11 09:52:10,372: DEBUG - ++ VALUE=
2020-01-11 09:52:10,372: DEBUG - ++ python -
2020-01-11 09:52:11,465: DEBUG - + local checksum_value=
2020-01-11 09:52:11,465: DEBUG - + backup_file_checksum=
2020-01-11 09:52:11,465: DEBUG - + '[' -n '' ']'
2020-01-11 09:52:11,466: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,466: DEBUG - + test -n /nuage
2020-01-11 09:52:11,466: DEBUG - + local path_url_slash_less=/nuage
2020-01-11 09:52:11,466: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/nuage/ --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,466: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:11,467: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:11,467: DEBUG - + declare -Ar args_array
2020-01-11 09:52:11,467: DEBUG - + local match_string
2020-01-11 09:52:11,468: DEBUG - + local replace_string
2020-01-11 09:52:11,468: DEBUG - + local target_file
2020-01-11 09:52:11,468: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/nuage/ --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,468: DEBUG - + set +x
2020-01-11 09:52:11,470: DEBUG - + local delimit=@
2020-01-11 09:52:11,470: DEBUG - + match_string=__PATH__/
2020-01-11 09:52:11,470: DEBUG - + replace_string=/nuage/
2020-01-11 09:52:11,471: DEBUG - + sudo sed --in-place s@__PATH__/@/nuage/@g /etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,471: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/nuage --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,471: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:11,471: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:11,472: DEBUG - + declare -Ar args_array
2020-01-11 09:52:11,473: DEBUG - + local match_string
2020-01-11 09:52:11,473: DEBUG - + local replace_string
2020-01-11 09:52:11,474: DEBUG - + local target_file
2020-01-11 09:52:11,475: DEBUG - + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/nuage --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,475: DEBUG - + set +x
2020-01-11 09:52:11,479: DEBUG - + local delimit=@
2020-01-11 09:52:11,479: DEBUG - + match_string=__PATH__
2020-01-11 09:52:11,479: DEBUG - + replace_string=/nuage
2020-01-11 09:52:11,480: DEBUG - + sudo sed --in-place s@__PATH__@/nuage@g /etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,604: DEBUG - + test -n interne.amisdeproust.fr
2020-01-11 09:52:11,605: DEBUG - + ynh_replace_string --match_string=__DOMAIN__ --replace_string=interne.amisdeproust.fr --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,605: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:11,605: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:11,605: DEBUG - + declare -Ar args_array
2020-01-11 09:52:11,606: DEBUG - + local match_string
2020-01-11 09:52:11,606: DEBUG - + local replace_string
2020-01-11 09:52:11,606: DEBUG - + local target_file
2020-01-11 09:52:11,606: DEBUG - + ynh_handle_getopts_args --match_string=__DOMAIN__ --replace_string=interne.amisdeproust.fr --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,606: DEBUG - + set +x
2020-01-11 09:52:11,607: DEBUG - + local delimit=@
2020-01-11 09:52:11,607: DEBUG - + match_string=__DOMAIN__
2020-01-11 09:52:11,607: DEBUG - + replace_string=interne.amisdeproust.fr
2020-01-11 09:52:11,607: DEBUG - + sudo sed --in-place s@__DOMAIN__@interne.amisdeproust.fr@g /etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,708: DEBUG - + test -n ''
2020-01-11 09:52:11,708: DEBUG - + test -n seafile
2020-01-11 09:52:11,708: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=seafile --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,709: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:11,709: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:11,709: DEBUG - + declare -Ar args_array
2020-01-11 09:52:11,709: DEBUG - + local match_string
2020-01-11 09:52:11,709: DEBUG - + local replace_string
2020-01-11 09:52:11,710: DEBUG - + local target_file
2020-01-11 09:52:11,710: DEBUG - + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=seafile --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,710: DEBUG - + set +x
2020-01-11 09:52:11,710: DEBUG - + local delimit=@
2020-01-11 09:52:11,710: DEBUG - + match_string=__NAME__
2020-01-11 09:52:11,711: DEBUG - + replace_string=seafile
2020-01-11 09:52:11,711: DEBUG - + sudo sed --in-place s@__NAME__@seafile@g /etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,711: DEBUG - + test -n /opt/yunohost/seafile
2020-01-11 09:52:11,711: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/yunohost/seafile --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,712: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:11,712: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:11,712: DEBUG - + declare -Ar args_array
2020-01-11 09:52:11,712: DEBUG - + local match_string
2020-01-11 09:52:11,712: DEBUG - + local replace_string
2020-01-11 09:52:11,713: DEBUG - + local target_file
2020-01-11 09:52:11,713: DEBUG - + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/opt/yunohost/seafile --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,713: DEBUG - + set +x
2020-01-11 09:52:11,713: DEBUG - + local delimit=@
2020-01-11 09:52:11,713: DEBUG - + match_string=__FINALPATH__
2020-01-11 09:52:11,713: DEBUG - + replace_string=/opt/yunohost/seafile
2020-01-11 09:52:11,714: DEBUG - + sudo sed --in-place s@__FINALPATH__@/opt/yunohost/seafile@g /etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,814: DEBUG - + for var_to_replace in $others_var
2020-01-11 09:52:11,814: DEBUG - + ynh_replace_string --match_string=__SEAHUB_PORT__ --replace_string=8000 --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,815: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:11,815: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:11,815: DEBUG - + declare -Ar args_array
2020-01-11 09:52:11,815: DEBUG - + local match_string
2020-01-11 09:52:11,816: DEBUG - + local replace_string
2020-01-11 09:52:11,816: DEBUG - + local target_file
2020-01-11 09:52:11,816: DEBUG - + ynh_handle_getopts_args --match_string=__SEAHUB_PORT__ --replace_string=8000 --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,816: DEBUG - + set +x
2020-01-11 09:52:11,816: DEBUG - + local delimit=@
2020-01-11 09:52:11,817: DEBUG - + match_string=__SEAHUB_PORT__
2020-01-11 09:52:11,817: DEBUG - + replace_string=8000
2020-01-11 09:52:11,817: DEBUG - + sudo sed --in-place s@__SEAHUB_PORT__@8000@g /etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,817: DEBUG - + for var_to_replace in $others_var
2020-01-11 09:52:11,817: DEBUG - + ynh_replace_string --match_string=__FILESERVER_PORT__ --replace_string=8082 --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,818: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:11,818: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:11,818: DEBUG - + declare -Ar args_array
2020-01-11 09:52:11,818: DEBUG - + local match_string
2020-01-11 09:52:11,818: DEBUG - + local replace_string
2020-01-11 09:52:11,823: DEBUG - + local target_file
2020-01-11 09:52:11,823: DEBUG - + ynh_handle_getopts_args --match_string=__FILESERVER_PORT__ --replace_string=8082 --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,823: DEBUG - + set +x
2020-01-11 09:52:11,823: DEBUG - + local delimit=@
2020-01-11 09:52:11,824: DEBUG - + match_string=__FILESERVER_PORT__
2020-01-11 09:52:11,824: DEBUG - + replace_string=8082
2020-01-11 09:52:11,824: DEBUG - + sudo sed --in-place s@__FILESERVER_PORT__@8082@g /etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,927: DEBUG - + for var_to_replace in $others_var
2020-01-11 09:52:11,927: DEBUG - + ynh_replace_string --match_string=__WEBDAV_PORT__ --replace_string=8080 --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,927: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:11,928: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:11,928: DEBUG - + declare -Ar args_array
2020-01-11 09:52:11,928: DEBUG - + local match_string
2020-01-11 09:52:11,928: DEBUG - + local replace_string
2020-01-11 09:52:11,929: DEBUG - + local target_file
2020-01-11 09:52:11,929: DEBUG - + ynh_handle_getopts_args --match_string=__WEBDAV_PORT__ --replace_string=8080 --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,929: DEBUG - + set +x
2020-01-11 09:52:11,929: DEBUG - + local delimit=@
2020-01-11 09:52:11,929: DEBUG - + match_string=__WEBDAV_PORT__
2020-01-11 09:52:11,930: DEBUG - + replace_string=8080
2020-01-11 09:52:11,930: DEBUG - + sudo sed --in-place s@__WEBDAV_PORT__@8080@g /etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,930: DEBUG - + '[' /nuage '!=' / ']'
2020-01-11 09:52:11,930: DEBUG - + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,930: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:11,931: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:11,933: DEBUG - + declare -Ar args_array
2020-01-11 09:52:11,934: DEBUG - + local match_string
2020-01-11 09:52:11,934: DEBUG - + local replace_string
2020-01-11 09:52:11,934: DEBUG - + local target_file
2020-01-11 09:52:11,934: DEBUG - + ynh_handle_getopts_args '--match_string=^#sub_path_only' --replace_string= --target_file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,935: DEBUG - + set +x
2020-01-11 09:52:11,937: DEBUG - + local delimit=@
2020-01-11 09:52:11,937: DEBUG - + match_string='^#sub_path_only'
2020-01-11 09:52:11,937: DEBUG - + replace_string=
2020-01-11 09:52:11,938: DEBUG - + sudo sed --in-place 's@^#sub_path_only@@g' /etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,938: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,938: DEBUG - + local legacy_args=f
2020-01-11 09:52:11,938: DEBUG - + args_array=([f]=file=)
2020-01-11 09:52:11,939: DEBUG - + declare -Ar args_array
2020-01-11 09:52:11,940: DEBUG - + local file
2020-01-11 09:52:11,940: DEBUG - + ynh_handle_getopts_args --file=/etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:11,940: DEBUG - + set +x
2020-01-11 09:52:12,041: DEBUG - + local checksum_setting_name=**********
2020-01-11 09:52:12,041: DEBUG - ++ cut '-d ' -f1
2020-01-11 09:52:12,041: DEBUG - ++ sudo md5sum /etc/nginx/conf.d/interne.amisdeproust.fr.d/seafile.conf
2020-01-11 09:52:12,041: DEBUG - + ynh_app_setting_set --app=seafile --key=********** --value=afd4903837950d63cf2734d20eda6bdb
2020-01-11 09:52:12,042: DEBUG - + local legacy_args=akv
2020-01-11 09:52:12,042: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:52:12,042: DEBUG - + declare -Ar args_array
2020-01-11 09:52:12,042: DEBUG - + local app
2020-01-11 09:52:12,042: DEBUG - + local key
2020-01-11 09:52:12,042: DEBUG - + local value
2020-01-11 09:52:12,042: DEBUG - + ynh_handle_getopts_args --app=seafile --key=********** --value=afd4903837950d63cf2734d20eda6bdb
2020-01-11 09:52:12,043: DEBUG - + set +x
2020-01-11 09:52:12,043: DEBUG - + ynh_app_setting set seafile ********** afd4903837950d63cf2734d20eda6bdb
2020-01-11 09:52:12,043: DEBUG - + ACTION=set
2020-01-11 09:52:12,043: DEBUG - + APP=seafile
2020-01-11 09:52:12,043: DEBUG - + KEY=**********
2020-01-11 09:52:12,043: DEBUG - + VALUE=afd4903837950d63cf2734d20eda6bdb
2020-01-11 09:52:12,043: DEBUG - + python -
2020-01-11 09:52:12,146: DEBUG - + '[' -n '' ']'
2020-01-11 09:52:12,147: DEBUG - + unset backup_file_checksum
2020-01-11 09:52:12,147: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2020-01-11 09:52:12,147: DEBUG - + local legacy_args=nalpte
2020-01-11 09:52:12,147: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2020-01-11 09:52:12,148: DEBUG - + declare -Ar args_array
2020-01-11 09:52:12,148: DEBUG - + local service_name
2020-01-11 09:52:12,148: DEBUG - + local action
2020-01-11 09:52:12,148: DEBUG - + local line_match
2020-01-11 09:52:12,148: DEBUG - + local length
2020-01-11 09:52:12,149: DEBUG - + local log_path
2020-01-11 09:52:12,149: DEBUG - + local timeout
2020-01-11 09:52:12,149: DEBUG - + ynh_handle_getopts_args --service_name=nginx --action=reload
2020-01-11 09:52:12,149: DEBUG - + set +x
2020-01-11 09:52:12,150: DEBUG - + local service_name=nginx
2020-01-11 09:52:12,150: DEBUG - + local action=reload
2020-01-11 09:52:12,150: DEBUG - + local log_path=/var/log/nginx/nginx.log
2020-01-11 09:52:12,150: DEBUG - + local length=20
2020-01-11 09:52:12,150: DEBUG - + local timeout=300
2020-01-11 09:52:12,150: DEBUG - + [[ -n '' ]]
2020-01-11 09:52:12,151: DEBUG - + '[' reload == reload ']'
2020-01-11 09:52:12,155: DEBUG - + action=reload-or-restart
2020-01-11 09:52:12,155: DEBUG - + systemctl reload-or-restart nginx
2020-01-11 09:52:12,456: DEBUG - + [[ -n '' ]]
2020-01-11 09:52:12,472: DEBUG - + cp expect_scripts/first_launch.exp /opt/yunohost/seafile
2020-01-11 09:52:12,673: DEBUG - + chmod +x /opt/yunohost/seafile/first_launch.exp
2020-01-11 09:52:12,673: DEBUG - + chown -R seafile:seafile /opt/yunohost/seafile
2020-01-11 09:52:12,774: DEBUG - + chown -R seafile:seafile /home/yunohost.app/seafile-data
2020-01-11 09:52:12,774: DEBUG - + sleep 5
2020-01-11 09:52:17,787: DEBUG - + ynh_debug_exec ls /opt/yunohost/seafile/ccnet
2020-01-11 09:52:17,788: WARNING - [DEBUG] mykey.peer
2020-01-11 09:52:17,788: DEBUG - ++ eval ls /opt/yunohost/seafile/ccnet
2020-01-11 09:52:17,789: WARNING - seafile.ini
2020-01-11 09:52:17,789: DEBUG - +++ ls /opt/yunohost/seafile/ccnet
2020-01-11 09:52:17,789: DEBUG - + ynh_debug '--message=mykey.peer
2020-01-11 09:52:17,789: DEBUG - seafile.ini'
2020-01-11 09:52:17,789: DEBUG - + set +x
2020-01-11 09:52:17,790: DEBUG - + set +x
2020-01-11 09:52:17,790: DEBUG - + su - seafile -s /bin/bash -c '/opt/yunohost/seafile/seafile-server-7.0.5/seafile.sh start'
2020-01-11 09:52:17,890: DEBUG - 
2020-01-11 09:52:17,890: DEBUG - [01/11/20 09:52:17] ../common/session.c(132): using config file /opt/yunohost/seafile/conf/ccnet.conf
2020-01-11 09:52:17,891: DEBUG - Starting seafile server, please wait ...
2020-01-11 09:52:17,991: WARNING - ** Message: seafile-controller.c(718): No seafevents.
2020-01-11 09:52:17,992: WARNING - 
2020-01-11 09:52:20,913: DEBUG - Seafile server started
2020-01-11 09:52:20,914: DEBUG - 
2020-01-11 09:52:20,914: DEBUG - Done.
2020-01-11 09:52:20,914: DEBUG - + ynh_replace_special_string --match_string __ADMIN_PASSWORD__ --replace_string ********** --target_file /opt/yunohost/seafile/first_launch.exp
2020-01-11 09:52:20,914: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:20,914: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:20,914: DEBUG - + declare -Ar args_array
2020-01-11 09:52:20,914: DEBUG - + local match_string
2020-01-11 09:52:20,915: DEBUG - + local replace_string
2020-01-11 09:52:20,915: DEBUG - + local target_file
2020-01-11 09:52:20,915: DEBUG - + ynh_handle_getopts_args --match_string __ADMIN_PASSWORD__ --replace_string ********** --target_file /opt/yunohost/seafile/first_launch.exp
2020-01-11 09:52:20,915: DEBUG - + set +x
2020-01-11 09:52:21,016: DEBUG - + match_string=__ADMIN_PASSWORD__
2020-01-11 09:52:21,016: DEBUG - + replace_string=**********
2020-01-11 09:52:21,016: DEBUG - + match_string=__ADMIN_PASSWORD__
2020-01-11 09:52:21,016: DEBUG - + replace_string=**********
2020-01-11 09:52:21,016: DEBUG - + ynh_replace_string --match_string=__ADMIN_PASSWORD__ --replace_string=********** --target_file=/opt/yunohost/seafile/first_launch.exp
2020-01-11 09:52:21,017: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:21,017: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:21,017: DEBUG - + declare -Ar args_array
2020-01-11 09:52:21,017: DEBUG - + local match_string
2020-01-11 09:52:21,017: DEBUG - + local replace_string
2020-01-11 09:52:21,017: DEBUG - + local target_file
2020-01-11 09:52:21,018: DEBUG - + ynh_handle_getopts_args --match_string=__ADMIN_PASSWORD__ --replace_string=********** --target_file=/opt/yunohost/seafile/first_launch.exp
2020-01-11 09:52:21,018: DEBUG - + set +x
2020-01-11 09:52:21,018: DEBUG - + local delimit=@
2020-01-11 09:52:21,018: DEBUG - + match_string=__ADMIN_PASSWORD__
2020-01-11 09:52:21,018: DEBUG - + replace_string='mKNm\@27rZj'
2020-01-11 09:52:21,018: DEBUG - + sudo sed --in-place 's@__ADMIN_PASSWORD__@mKNm\@27rZj@g' /opt/yunohost/seafile/first_launch.exp
2020-01-11 09:52:21,019: DEBUG - ++ ynh_user_get_info --username eric --key mail
2020-01-11 09:52:21,023: DEBUG - ++ local legacy_args=uk
2020-01-11 09:52:21,023: DEBUG - ++ args_array=([u]=username= [k]=key=)
2020-01-11 09:52:21,023: DEBUG - ++ declare -Ar args_array
2020-01-11 09:52:21,023: DEBUG - ++ local username
2020-01-11 09:52:21,024: DEBUG - ++ local key
2020-01-11 09:52:21,024: DEBUG - ++ ynh_handle_getopts_args --username eric --key mail
2020-01-11 09:52:21,024: DEBUG - ++ set +x
2020-01-11 09:52:21,024: DEBUG - ++ ynh_get_plain_key mail
2020-01-11 09:52:21,024: DEBUG - ++ local prefix=#
2020-01-11 09:52:21,024: DEBUG - ++ local founded=0
2020-01-11 09:52:21,024: DEBUG - ++ local key_=mail
2020-01-11 09:52:21,024: DEBUG - ++ shift
2020-01-11 09:52:21,025: DEBUG - ++ read line
2020-01-11 09:52:21,025: DEBUG - ++ sudo yunohost user info eric --output-as plain
2020-01-11 09:52:35,656: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,657: DEBUG - ++ [[ #username =~ ^#mail$ ]]
2020-01-11 09:52:35,657: DEBUG - ++ read line
2020-01-11 09:52:35,657: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,657: DEBUG - ++ [[ eric =~ ^#mail$ ]]
2020-01-11 09:52:35,657: DEBUG - ++ read line
2020-01-11 09:52:35,657: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,657: DEBUG - ++ [[ #firstname =~ ^#mail$ ]]
2020-01-11 09:52:35,658: DEBUG - ++ read line
2020-01-11 09:52:35,658: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,658: DEBUG - ++ [[ Eric =~ ^#mail$ ]]
2020-01-11 09:52:35,658: DEBUG - ++ read line
2020-01-11 09:52:35,658: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,658: DEBUG - ++ [[ #lastname =~ ^#mail$ ]]
2020-01-11 09:52:35,658: DEBUG - ++ read line
2020-01-11 09:52:35,659: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,661: DEBUG - ++ [[ Unger =~ ^#mail$ ]]
2020-01-11 09:52:35,661: DEBUG - ++ read line
2020-01-11 09:52:35,661: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,662: DEBUG - ++ [[ #mailbox-quota =~ ^#mail$ ]]
2020-01-11 09:52:35,662: DEBUG - ++ read line
2020-01-11 09:52:35,662: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,662: DEBUG - ++ [[ ##use =~ ^#mail$ ]]
2020-01-11 09:52:35,662: DEBUG - ++ read line
2020-01-11 09:52:35,662: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,662: DEBUG - ++ [[ 10.0K =~ ^#mail$ ]]
2020-01-11 09:52:35,663: DEBUG - ++ read line
2020-01-11 09:52:35,663: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,663: DEBUG - ++ [[ ##limit =~ ^#mail$ ]]
2020-01-11 09:52:35,663: DEBUG - ++ read line
2020-01-11 09:52:35,663: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,663: DEBUG - ++ [[ Pas de quota =~ ^#mail$ ]]
2020-01-11 09:52:35,663: DEBUG - ++ read line
2020-01-11 09:52:35,663: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,664: DEBUG - ++ [[ #mail-forward =~ ^#mail$ ]]
2020-01-11 09:52:35,664: DEBUG - ++ read line
2020-01-11 09:52:35,664: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,664: DEBUG - ++ [[ eunger@gmail.com =~ ^#mail$ ]]
2020-01-11 09:52:35,664: DEBUG - ++ read line
2020-01-11 09:52:35,664: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,664: DEBUG - ++ [[ #mail-aliases =~ ^#mail$ ]]
2020-01-11 09:52:35,664: DEBUG - ++ read line
2020-01-11 09:52:35,665: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,665: DEBUG - ++ [[ root@unger.fr =~ ^#mail$ ]]
2020-01-11 09:52:35,665: DEBUG - ++ read line
2020-01-11 09:52:35,665: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,666: DEBUG - ++ [[ admin@unger.fr =~ ^#mail$ ]]
2020-01-11 09:52:35,666: DEBUG - ++ read line
2020-01-11 09:52:35,666: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,666: DEBUG - ++ [[ webmaster@unger.fr =~ ^#mail$ ]]
2020-01-11 09:52:35,668: DEBUG - ++ read line
2020-01-11 09:52:35,668: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,668: DEBUG - ++ [[ postmaster@unger.fr =~ ^#mail$ ]]
2020-01-11 09:52:35,669: DEBUG - ++ read line
2020-01-11 09:52:35,669: DEBUG - ++ [[ 0 == \1 ]]
2020-01-11 09:52:35,669: DEBUG - ++ [[ #mail =~ ^#mail$ ]]
2020-01-11 09:52:35,669: DEBUG - ++ [[ -n '' ]]
2020-01-11 09:52:35,669: DEBUG - ++ founded=1
2020-01-11 09:52:35,669: DEBUG - ++ read line
2020-01-11 09:52:35,670: DEBUG - ++ [[ 1 == \1 ]]
2020-01-11 09:52:35,670: DEBUG - ++ [[ eric@unger.fr =~ ^#[^#] ]]
2020-01-11 09:52:35,670: DEBUG - ++ echo eric@unger.fr
2020-01-11 09:52:35,670: DEBUG - ++ read line
2020-01-11 09:52:35,670: DEBUG - ++ [[ 1 == \1 ]]
2020-01-11 09:52:35,670: DEBUG - ++ [[ #fullname =~ ^#[^#] ]]
2020-01-11 09:52:35,670: DEBUG - ++ return
2020-01-11 09:52:35,670: DEBUG - + admin_email=eric@unger.fr
2020-01-11 09:52:35,671: DEBUG - + su - seafile -s /bin/bash -c '/opt/yunohost/seafile/first_launch.exp /opt/yunohost/seafile/seafile-server-7.0.5 eric@unger.fr'
2020-01-11 09:52:35,671: DEBUG - spawn /opt/yunohost/seafile/seafile-server-7.0.5/seahub.sh start
2020-01-11 09:52:35,672: DEBUG - 
2020-01-11 09:52:35,772: DEBUG - Starting seahub at port 8000 ...
2020-01-11 09:52:35,873: DEBUG - 
2020-01-11 09:52:35,873: DEBUG - ----------------------------------------
2020-01-11 09:52:35,873: DEBUG - It's the first time you start the seafile server. Now let's create the admin account
2020-01-11 09:52:35,874: DEBUG - ----------------------------------------
2020-01-11 09:52:35,874: DEBUG - 
2020-01-11 09:52:35,874: DEBUG - What is the email for the admin account?
2020-01-11 09:52:35,874: DEBUG - [ admin email ] eric@unger.fr
2020-01-11 09:52:35,874: DEBUG - 
2020-01-11 09:52:35,875: DEBUG - What is the password for the admin account?
2020-01-11 09:52:35,875: DEBUG - [ admin password ]
2020-01-11 09:52:35,875: DEBUG - 
2020-01-11 09:52:35,875: DEBUG - Enter the password again:
2020-01-11 09:52:35,876: DEBUG - [ admin password again ]
2020-01-11 09:52:35,976: DEBUG - 
2020-01-11 09:52:35,976: DEBUG - 
2020-01-11 09:52:35,976: DEBUG - 
2020-01-11 09:52:35,977: DEBUG - ----------------------------------------
2020-01-11 09:52:35,977: DEBUG - Successfully created seafile admin
2020-01-11 09:52:35,977: DEBUG - ----------------------------------------
2020-01-11 09:52:35,977: DEBUG - 
2020-01-11 09:52:35,977: DEBUG - 
2020-01-11 09:52:35,977: DEBUG - 
2020-01-11 09:52:41,674: DEBUG - 
2020-01-11 09:52:41,675: DEBUG - Seahub is started
2020-01-11 09:52:41,675: DEBUG - 
2020-01-11 09:52:41,675: DEBUG - Done.
2020-01-11 09:52:41,676: DEBUG - 
2020-01-11 09:52:41,676: DEBUG - + ynh_secure_remove --file=/opt/yunohost/seafile/first_launch.exp
2020-01-11 09:52:41,676: DEBUG - + local legacy_args=f
2020-01-11 09:52:41,677: DEBUG - + args_array=([f]=file=)
2020-01-11 09:52:41,677: DEBUG - + declare -Ar args_array
2020-01-11 09:52:41,677: DEBUG - + local file
2020-01-11 09:52:41,677: DEBUG - + ynh_handle_getopts_args --file=/opt/yunohost/seafile/first_launch.exp
2020-01-11 09:52:41,677: DEBUG - + set +x
2020-01-11 09:52:41,677: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2020-01-11 09:52:41,678: DEBUG - + '[' 1 -ge 2 ']'
2020-01-11 09:52:41,678: DEBUG - + [[      /var/www     /home/yunohost.app =~ /opt/yunohost/seafile/first_launch\.exp ]]
2020-01-11 09:52:41,678: DEBUG - + [[ /opt/yunohost/seafile/first_launch.exp =~ ^/[[:alnum:]]+$ ]]
2020-01-11 09:52:41,678: DEBUG - + [[ p = \/ ]]
2020-01-11 09:52:41,678: DEBUG - + '[' -e /opt/yunohost/seafile/first_launch.exp ']'
2020-01-11 09:52:41,678: DEBUG - + sudo rm -R /opt/yunohost/seafile/first_launch.exp
2020-01-11 09:52:41,678: DEBUG - + ynh_script_progression '--message=Protecting directory...'
2020-01-11 09:52:41,683: DEBUG - + set +x
2020-01-11 09:52:41,783: DEBUG - + set +x
2020-01-11 09:52:41,784: INFO - [###########.........] > Protecting directory...
2020-01-11 09:52:41,785: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:41,785: DEBUG - + set +x
2020-01-11 09:52:41,785: DEBUG - + echo '[###########.........] > Protecting directory...'
2020-01-11 09:52:41,785: DEBUG - + set -x
2020-01-11 09:52:41,786: DEBUG - + set_permission
2020-01-11 09:52:41,786: DEBUG - + chown -R seafile:seafile /opt/yunohost/seafile
2020-01-11 09:52:41,987: DEBUG - + test -e /home/yunohost.app/seafile-data
2020-01-11 09:52:41,987: INFO - [###########+........] > Configuring permissions...
2020-01-11 09:52:41,988: DEBUG - + chown -R seafile:seafile /home/yunohost.app/seafile-data
2020-01-11 09:52:41,988: DEBUG - + ynh_script_progression '--message=Configuring permissions...'
2020-01-11 09:52:41,988: DEBUG - + set +x
2020-01-11 09:52:41,988: DEBUG - + set +x
2020-01-11 09:52:41,989: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:41,989: DEBUG - + set +x
2020-01-11 09:52:41,989: DEBUG - + echo '[###########+........] > Configuring permissions...'
2020-01-11 09:52:41,989: DEBUG - + set -x
2020-01-11 09:52:41,990: DEBUG - + python3 ../conf/add_sso_conf.py
2020-01-11 09:52:41,990: DEBUG - + ynh_app_setting_set --app seafile --key unprotected_uris --value /media
2020-01-11 09:52:41,990: DEBUG - + local legacy_args=akv
2020-01-11 09:52:41,990: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:52:41,991: DEBUG - + declare -Ar args_array
2020-01-11 09:52:41,991: DEBUG - + local app
2020-01-11 09:52:41,991: DEBUG - + local key
2020-01-11 09:52:41,991: DEBUG - + local value
2020-01-11 09:52:41,991: DEBUG - + ynh_handle_getopts_args --app seafile --key unprotected_uris --value /media
2020-01-11 09:52:41,991: DEBUG - + set +x
2020-01-11 09:52:42,092: DEBUG - + ynh_app_setting set seafile unprotected_uris /media
2020-01-11 09:52:42,092: DEBUG - + ACTION=set
2020-01-11 09:52:42,092: DEBUG - + APP=seafile
2020-01-11 09:52:42,093: DEBUG - + KEY=unprotected_uris
2020-01-11 09:52:42,093: DEBUG - + VALUE=/media
2020-01-11 09:52:42,093: DEBUG - + python -
2020-01-11 09:52:42,194: DEBUG - + '[' 1 = 0 ']'
2020-01-11 09:52:42,195: DEBUG - + ynh_app_setting_set --app seafile --key unprotected_uris --value /
2020-01-11 09:52:42,195: DEBUG - + local legacy_args=akv
2020-01-11 09:52:42,195: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:52:42,195: DEBUG - + declare -Ar args_array
2020-01-11 09:52:42,196: DEBUG - + local app
2020-01-11 09:52:42,196: DEBUG - + local key
2020-01-11 09:52:42,196: DEBUG - + local value
2020-01-11 09:52:42,196: DEBUG - + ynh_handle_getopts_args --app seafile --key unprotected_uris --value /
2020-01-11 09:52:42,196: DEBUG - + set +x
2020-01-11 09:52:42,196: DEBUG - + ynh_app_setting set seafile unprotected_uris /
2020-01-11 09:52:42,197: DEBUG - + ACTION=set
2020-01-11 09:52:42,197: DEBUG - + APP=seafile
2020-01-11 09:52:42,197: DEBUG - + KEY=unprotected_uris
2020-01-11 09:52:42,197: DEBUG - + VALUE=/
2020-01-11 09:52:42,197: DEBUG - + python -
2020-01-11 09:52:42,298: DEBUG - + ynh_script_progression '--message=Configuring log rotation...'
2020-01-11 09:52:42,298: DEBUG - + set +x
2020-01-11 09:52:42,298: DEBUG - + set +x
2020-01-11 09:52:42,299: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:42,299: DEBUG - + set +x
2020-01-11 09:52:42,299: DEBUG - + echo '[############........] > Configuring log rotation...'
2020-01-11 09:52:42,299: DEBUG - + set -x
2020-01-11 09:52:42,300: DEBUG - + ynh_use_logrotate --logfile /opt/yunohost/seafile/logs
2020-01-11 09:52:42,300: DEBUG - + local legacy_args=lnuya
2020-01-11 09:52:42,300: DEBUG - + args_array=([l]=logfile= [n]=nonappend [u]=specific_user= [y]=non [a]=append)
2020-01-11 09:52:42,300: DEBUG - + declare -Ar args_array
2020-01-11 09:52:42,301: DEBUG - + local logfile
2020-01-11 09:52:42,301: DEBUG - + local nonappend
2020-01-11 09:52:42,301: DEBUG - + local specific_user
2020-01-11 09:52:42,301: DEBUG - + ynh_handle_getopts_args --logfile /opt/yunohost/seafile/logs
2020-01-11 09:52:42,301: DEBUG - + set +x
2020-01-11 09:52:42,301: DEBUG - + local logfile=/opt/yunohost/seafile/logs
2020-01-11 09:52:42,302: DEBUG - + local nonappend=0
2020-01-11 09:52:42,302: DEBUG - + local specific_user=
2020-01-11 09:52:42,302: DEBUG - + '[' 2 -gt 0 ']'
2020-01-11 09:52:42,302: DEBUG - + '[' --logfile == --non-append ']'
2020-01-11 09:52:42,302: DEBUG - + '[' 2 -gt 1 ']'
2020-01-11 09:52:42,302: DEBUG - + '[' /opt/yunohost/seafile/logs == --non-append ']'
2020-01-11 09:52:42,305: DEBUG - + '[' 2 -gt 0 ']'
2020-01-11 09:52:42,305: DEBUG - ++ echo -
2020-01-11 09:52:42,305: DEBUG - + '[' - '!=' - ']'
2020-01-11 09:52:42,306: DEBUG - + local 'customtee=tee -a'
2020-01-11 09:52:42,306: DEBUG - + '[' 0 -eq 1 ']'
2020-01-11 09:52:42,306: DEBUG - + '[' -n /opt/yunohost/seafile/logs ']'
2020-01-11 09:52:42,306: DEBUG - + '[' '!' -f --logfile ']'
2020-01-11 09:52:42,306: DEBUG - ++ echo /opt/yunohost/seafile/logs
2020-01-11 09:52:42,306: DEBUG - + '[' /opt/yunohost/seafile/logs '!=' log ']'
2020-01-11 09:52:42,306: DEBUG - + local 'logfile=/opt/yunohost/seafile/logs/*.log'
2020-01-11 09:52:42,307: DEBUG - + local su_directive=
2020-01-11 09:52:42,307: DEBUG - + [[ -n '' ]]
2020-01-11 09:52:42,307: DEBUG - + cat
2020-01-11 09:52:42,308: DEBUG - ++ dirname '/opt/yunohost/seafile/logs/*.log'
2020-01-11 09:52:42,408: DEBUG - + sudo mkdir -p /opt/yunohost/seafile/logs
2020-01-11 09:52:42,408: INFO - [############........] > Configuring log rotation...
2020-01-11 09:52:42,410: DEBUG - + sudo tee -a /etc/logrotate.d/seafile
2020-01-11 09:52:42,410: DEBUG - + cat seafile-logrotate
2020-01-11 09:52:42,410: DEBUG - + ln -s /opt/yunohost/seafile/logs /var/log/seafile
2020-01-11 09:52:42,410: DEBUG - + ynh_script_progression '--message=Configuring fail2ban...' --weight=10
2020-01-11 09:52:42,410: DEBUG - + set +x
2020-01-11 09:52:42,410: DEBUG - + set +x
2020-01-11 09:52:42,411: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:42,411: DEBUG - + set +x
2020-01-11 09:52:42,411: DEBUG - + echo '[############+++++...] > Configuring fail2ban...'
2020-01-11 09:52:42,411: DEBUG - + set -x
2020-01-11 09:52:42,411: DEBUG - + ynh_add_fail2ban_config --use_template --others_var final_path
2020-01-11 09:52:42,412: DEBUG - + local legacy_args=lrmptv
2020-01-11 09:52:42,412: DEBUG - + args_array=([l]=logpath= [r]=failregex= [m]=max_retry= [p]=ports= [t]=use_template [v]=others_var=)
2020-01-11 09:52:42,412: DEBUG - + declare -Ar args_array
2020-01-11 09:52:42,412: DEBUG - + local logpath
2020-01-11 09:52:42,412: DEBUG - + local failregex
2020-01-11 09:52:42,412: DEBUG - + local max_retry
2020-01-11 09:52:42,413: DEBUG - + local ports
2020-01-11 09:52:42,413: DEBUG - + local others_var
2020-01-11 09:52:42,413: DEBUG - + local use_template
2020-01-11 09:52:42,413: DEBUG - + ynh_handle_getopts_args --use_template --others_var final_path
2020-01-11 09:52:42,413: DEBUG - + set +x
2020-01-11 09:52:42,514: DEBUG - + use_template=1
2020-01-11 09:52:42,514: INFO - [############+++++...] > Configuring fail2ban...
2020-01-11 09:52:42,514: DEBUG - + max_retry=3
2020-01-11 09:52:42,514: DEBUG - + ports=http,https
2020-01-11 09:52:42,515: DEBUG - + finalfail2banjailconf=/etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,515: DEBUG - + finalfail2banfilterconf=/etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:42,515: DEBUG - + ynh_backup_if_checksum_is_different /etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,515: DEBUG - + local legacy_args=f
2020-01-11 09:52:42,515: DEBUG - + args_array=([f]=file=)
2020-01-11 09:52:42,515: DEBUG - + declare -Ar args_array
2020-01-11 09:52:42,515: DEBUG - + local file
2020-01-11 09:52:42,516: DEBUG - + ynh_handle_getopts_args /etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,516: DEBUG - + set +x
2020-01-11 09:52:42,516: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:42,516: DEBUG - + set +x
2020-01-11 09:52:42,516: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_jail.d_seafile.conf
2020-01-11 09:52:42,516: DEBUG - ++ ynh_app_setting_get --app=seafile --key=**********
2020-01-11 09:52:42,516: DEBUG - ++ local legacy_args=ak
2020-01-11 09:52:42,517: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-01-11 09:52:42,517: DEBUG - ++ declare -Ar args_array
2020-01-11 09:52:42,517: DEBUG - ++ local app
2020-01-11 09:52:42,517: DEBUG - ++ local key
2020-01-11 09:52:42,517: DEBUG - ++ ynh_handle_getopts_args --app=seafile --key=**********
2020-01-11 09:52:42,517: DEBUG - ++ set +x
2020-01-11 09:52:42,517: DEBUG - ++ ynh_app_setting get seafile **********
2020-01-11 09:52:42,518: DEBUG - ++ ACTION=get
2020-01-11 09:52:42,518: DEBUG - ++ APP=seafile
2020-01-11 09:52:42,518: DEBUG - ++ KEY=**********
2020-01-11 09:52:42,518: DEBUG - ++ VALUE=
2020-01-11 09:52:42,518: DEBUG - ++ python -
2020-01-11 09:52:42,619: DEBUG - + local checksum_value=
2020-01-11 09:52:42,619: DEBUG - + backup_file_checksum=
2020-01-11 09:52:42,619: DEBUG - + '[' -n '' ']'
2020-01-11 09:52:42,619: DEBUG - + ynh_backup_if_checksum_is_different /etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:42,619: DEBUG - + local legacy_args=f
2020-01-11 09:52:42,620: DEBUG - + args_array=([f]=file=)
2020-01-11 09:52:42,620: DEBUG - + declare -Ar args_array
2020-01-11 09:52:42,620: DEBUG - + local file
2020-01-11 09:52:42,620: DEBUG - + ynh_handle_getopts_args /etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:42,620: DEBUG - + set +x
2020-01-11 09:52:42,620: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:42,620: DEBUG - + set +x
2020-01-11 09:52:42,621: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_filter.d_seafile.conf
2020-01-11 09:52:42,621: DEBUG - ++ ynh_app_setting_get --app=seafile --key=**********
2020-01-11 09:52:42,621: DEBUG - ++ local legacy_args=ak
2020-01-11 09:52:42,621: DEBUG - ++ args_array=([a]=app= [k]=key=)
2020-01-11 09:52:42,621: DEBUG - ++ declare -Ar args_array
2020-01-11 09:52:42,621: DEBUG - ++ local app
2020-01-11 09:52:42,621: DEBUG - ++ local key
2020-01-11 09:52:42,622: DEBUG - ++ ynh_handle_getopts_args --app=seafile --key=**********
2020-01-11 09:52:42,622: DEBUG - ++ set +x
2020-01-11 09:52:42,622: DEBUG - ++ ynh_app_setting get seafile **********
2020-01-11 09:52:42,622: DEBUG - ++ ACTION=get
2020-01-11 09:52:42,622: DEBUG - ++ APP=seafile
2020-01-11 09:52:42,622: DEBUG - ++ KEY=**********
2020-01-11 09:52:42,623: DEBUG - ++ VALUE=
2020-01-11 09:52:42,627: DEBUG - ++ python -
2020-01-11 09:52:42,727: DEBUG - + local checksum_value=
2020-01-11 09:52:42,728: DEBUG - + backup_file_checksum=
2020-01-11 09:52:42,728: DEBUG - + '[' -n '' ']'
2020-01-11 09:52:42,728: DEBUG - + '[' 1 -eq 1 ']'
2020-01-11 09:52:42,728: DEBUG - + cp ../conf/f2b_jail.conf /etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,728: DEBUG - + cp ../conf/f2b_filter.conf /etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:42,729: DEBUG - + '[' -n seafile ']'
2020-01-11 09:52:42,729: DEBUG - + ynh_replace_string __APP__ seafile /etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,729: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:42,729: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:42,729: DEBUG - + declare -Ar args_array
2020-01-11 09:52:42,729: DEBUG - + local match_string
2020-01-11 09:52:42,730: DEBUG - + local replace_string
2020-01-11 09:52:42,730: DEBUG - + local target_file
2020-01-11 09:52:42,730: DEBUG - + ynh_handle_getopts_args __APP__ seafile /etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,730: DEBUG - + set +x
2020-01-11 09:52:42,730: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:42,730: DEBUG - + set +x
2020-01-11 09:52:42,730: DEBUG - + local delimit=@
2020-01-11 09:52:42,730: DEBUG - + match_string=__APP__
2020-01-11 09:52:42,731: DEBUG - + replace_string=seafile
2020-01-11 09:52:42,731: DEBUG - + sudo sed --in-place s@__APP__@seafile@g /etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,732: DEBUG - + ynh_replace_string __APP__ seafile /etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:42,732: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:42,732: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:42,732: DEBUG - + declare -Ar args_array
2020-01-11 09:52:42,732: DEBUG - + local match_string
2020-01-11 09:52:42,732: DEBUG - + local replace_string
2020-01-11 09:52:42,732: DEBUG - + local target_file
2020-01-11 09:52:42,733: DEBUG - + ynh_handle_getopts_args __APP__ seafile /etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:42,733: DEBUG - + set +x
2020-01-11 09:52:42,733: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:42,733: DEBUG - + set +x
2020-01-11 09:52:42,733: DEBUG - + local delimit=@
2020-01-11 09:52:42,733: DEBUG - + match_string=__APP__
2020-01-11 09:52:42,734: DEBUG - + replace_string=seafile
2020-01-11 09:52:42,734: DEBUG - + sudo sed --in-place s@__APP__@seafile@g /etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:42,835: DEBUG - + for var_to_replace in ${others_var:-}
2020-01-11 09:52:42,835: DEBUG - + ynh_replace_string --match_string=__FINAL_PATH__ --replace_string=/opt/yunohost/seafile --target_file=/etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,835: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:42,835: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:42,836: DEBUG - + declare -Ar args_array
2020-01-11 09:52:42,836: DEBUG - + local match_string
2020-01-11 09:52:42,836: DEBUG - + local replace_string
2020-01-11 09:52:42,836: DEBUG - + local target_file
2020-01-11 09:52:42,836: DEBUG - + ynh_handle_getopts_args --match_string=__FINAL_PATH__ --replace_string=/opt/yunohost/seafile --target_file=/etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,837: DEBUG - + set +x
2020-01-11 09:52:42,837: DEBUG - + local delimit=@
2020-01-11 09:52:42,837: DEBUG - + match_string=__FINAL_PATH__
2020-01-11 09:52:42,837: DEBUG - + replace_string=/opt/yunohost/seafile
2020-01-11 09:52:42,837: DEBUG - + sudo sed --in-place s@__FINAL_PATH__@/opt/yunohost/seafile@g /etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,837: DEBUG - + ynh_replace_string --match_string=__FINAL_PATH__ --replace_string=/opt/yunohost/seafile --target_file=/etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:42,838: DEBUG - + local legacy_args=mrf
2020-01-11 09:52:42,838: DEBUG - + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
2020-01-11 09:52:42,838: DEBUG - + declare -Ar args_array
2020-01-11 09:52:42,838: DEBUG - + local match_string
2020-01-11 09:52:42,838: DEBUG - + local replace_string
2020-01-11 09:52:42,839: DEBUG - + local target_file
2020-01-11 09:52:42,846: DEBUG - + ynh_handle_getopts_args --match_string=__FINAL_PATH__ --replace_string=/opt/yunohost/seafile --target_file=/etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:42,846: DEBUG - + set +x
2020-01-11 09:52:42,846: DEBUG - + local delimit=@
2020-01-11 09:52:42,847: DEBUG - + match_string=__FINAL_PATH__
2020-01-11 09:52:42,848: DEBUG - + replace_string=/opt/yunohost/seafile
2020-01-11 09:52:42,848: DEBUG - + sudo sed --in-place s@__FINAL_PATH__@/opt/yunohost/seafile@g /etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:42,848: DEBUG - + ynh_store_file_checksum /etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,848: DEBUG - + local legacy_args=f
2020-01-11 09:52:42,848: DEBUG - + args_array=([f]=file=)
2020-01-11 09:52:42,849: DEBUG - + declare -Ar args_array
2020-01-11 09:52:42,849: DEBUG - + local file
2020-01-11 09:52:42,849: DEBUG - + ynh_handle_getopts_args /etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,849: DEBUG - + set +x
2020-01-11 09:52:42,849: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:42,850: DEBUG - + set +x
2020-01-11 09:52:42,950: DEBUG - + local checksum_setting_name=**********
2020-01-11 09:52:42,950: DEBUG - ++ cut '-d ' -f1
2020-01-11 09:52:42,951: DEBUG - ++ sudo md5sum /etc/fail2ban/jail.d/seafile.conf
2020-01-11 09:52:42,951: DEBUG - + ynh_app_setting_set --app=seafile --key=********** --value=86f920634e98ce60de99594fc53199a7
2020-01-11 09:52:42,951: DEBUG - + local legacy_args=akv
2020-01-11 09:52:42,951: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:52:42,951: DEBUG - + declare -Ar args_array
2020-01-11 09:52:42,952: DEBUG - + local app
2020-01-11 09:52:42,952: DEBUG - + local key
2020-01-11 09:52:42,952: DEBUG - + local value
2020-01-11 09:52:42,952: DEBUG - + ynh_handle_getopts_args --app=seafile --key=********** --value=86f920634e98ce60de99594fc53199a7
2020-01-11 09:52:42,952: DEBUG - + set +x
2020-01-11 09:52:42,953: DEBUG - + ynh_app_setting set seafile ********** 86f920634e98ce60de99594fc53199a7
2020-01-11 09:52:42,953: DEBUG - + ACTION=set
2020-01-11 09:52:42,953: DEBUG - + APP=seafile
2020-01-11 09:52:42,953: DEBUG - + KEY=**********
2020-01-11 09:52:42,953: DEBUG - + VALUE=86f920634e98ce60de99594fc53199a7
2020-01-11 09:52:42,954: DEBUG - + python -
2020-01-11 09:52:43,054: DEBUG - + '[' -n '' ']'
2020-01-11 09:52:43,054: DEBUG - + unset backup_file_checksum
2020-01-11 09:52:43,055: DEBUG - + ynh_store_file_checksum /etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:43,055: DEBUG - + local legacy_args=f
2020-01-11 09:52:43,055: DEBUG - + args_array=([f]=file=)
2020-01-11 09:52:43,055: DEBUG - + declare -Ar args_array
2020-01-11 09:52:43,056: DEBUG - + local file
2020-01-11 09:52:43,056: DEBUG - + ynh_handle_getopts_args /etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:43,056: DEBUG - + set +x
2020-01-11 09:52:43,056: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:43,056: DEBUG - + set +x
2020-01-11 09:52:43,057: DEBUG - + local checksum_setting_name=**********
2020-01-11 09:52:43,057: DEBUG - ++ cut '-d ' -f1
2020-01-11 09:52:43,057: DEBUG - ++ sudo md5sum /etc/fail2ban/filter.d/seafile.conf
2020-01-11 09:52:43,158: DEBUG - + ynh_app_setting_set --app=seafile --key=********** --value=d40fc5313c2480ec7f9c6a64b8b00806
2020-01-11 09:52:43,158: DEBUG - + local legacy_args=akv
2020-01-11 09:52:43,158: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2020-01-11 09:52:43,158: DEBUG - + declare -Ar args_array
2020-01-11 09:52:43,158: DEBUG - + local app
2020-01-11 09:52:43,159: DEBUG - + local key
2020-01-11 09:52:43,159: DEBUG - + local value
2020-01-11 09:52:43,159: DEBUG - + ynh_handle_getopts_args --app=seafile --key=********** --value=d40fc5313c2480ec7f9c6a64b8b00806
2020-01-11 09:52:43,159: DEBUG - + set +x
2020-01-11 09:52:43,159: DEBUG - + ynh_app_setting set seafile ********** d40fc5313c2480ec7f9c6a64b8b00806
2020-01-11 09:52:43,159: DEBUG - + ACTION=set
2020-01-11 09:52:43,160: DEBUG - + APP=seafile
2020-01-11 09:52:43,160: DEBUG - + KEY=**********
2020-01-11 09:52:43,160: DEBUG - + VALUE=d40fc5313c2480ec7f9c6a64b8b00806
2020-01-11 09:52:43,160: DEBUG - + python -
2020-01-11 09:52:43,260: DEBUG - + '[' -n '' ']'
2020-01-11 09:52:43,261: DEBUG - + unset backup_file_checksum
2020-01-11 09:52:43,261: DEBUG - + ynh_systemd_action --service_name=fail2ban --action=reload
2020-01-11 09:52:43,261: DEBUG - + local legacy_args=nalpte
2020-01-11 09:52:43,261: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2020-01-11 09:52:43,261: DEBUG - + declare -Ar args_array
2020-01-11 09:52:43,261: DEBUG - + local service_name
2020-01-11 09:52:43,261: DEBUG - + local action
2020-01-11 09:52:43,262: DEBUG - + local line_match
2020-01-11 09:52:43,262: DEBUG - + local length
2020-01-11 09:52:43,262: DEBUG - + local log_path
2020-01-11 09:52:43,262: DEBUG - + local timeout
2020-01-11 09:52:43,262: DEBUG - + ynh_handle_getopts_args --service_name=fail2ban --action=reload
2020-01-11 09:52:43,262: DEBUG - + set +x
2020-01-11 09:52:43,262: DEBUG - + local service_name=fail2ban
2020-01-11 09:52:43,263: DEBUG - + local action=reload
2020-01-11 09:52:43,263: DEBUG - + local log_path=/var/log/fail2ban/fail2ban.log
2020-01-11 09:52:43,263: DEBUG - + local length=20
2020-01-11 09:52:43,263: DEBUG - + local timeout=300
2020-01-11 09:52:43,263: DEBUG - + [[ -n '' ]]
2020-01-11 09:52:43,263: DEBUG - + '[' reload == reload ']'
2020-01-11 09:52:43,263: DEBUG - + action=reload-or-restart
2020-01-11 09:52:43,264: DEBUG - + systemctl reload-or-restart fail2ban
2020-01-11 09:52:56,811: DEBUG - + [[ -n '' ]]
2020-01-11 09:52:56,812: DEBUG - ++ grep 'WARNING.*seafile.*'
2020-01-11 09:52:56,812: DEBUG - ++ tail -n50
2020-01-11 09:52:56,812: DEBUG - ++ journalctl -u fail2ban
2020-01-11 09:52:56,912: DEBUG - + local fail2ban_error=
2020-01-11 09:52:56,913: DEBUG - + [[ -n '' ]]
2020-01-11 09:52:56,913: DEBUG - + yunohost service add seafile
2020-01-11 09:52:57,926: DEBUG - Le service 'seafile' a été ajouté
2020-01-11 09:52:57,926: DEBUG - + yunohost service add seahub
2020-01-11 09:52:58,228: DEBUG - Le service 'seahub' a été ajouté
2020-01-11 09:52:58,331: DEBUG - + ynh_script_progression '--message=Stoping services...' --weight=3
2020-01-11 09:52:58,331: INFO - [#################+..] > Stoping services...
2020-01-11 09:52:58,332: DEBUG - + set +x
2020-01-11 09:52:58,332: DEBUG - + set +x
2020-01-11 09:52:58,333: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:52:58,333: DEBUG - + set +x
2020-01-11 09:52:58,333: DEBUG - + echo '[#################+..] > Stoping services...'
2020-01-11 09:52:58,333: DEBUG - + set -x
2020-01-11 09:52:58,334: DEBUG - + su - seafile -s /bin/bash -c '/opt/yunohost/seafile/seafile-server-latest/seafile.sh stop'
2020-01-11 09:52:58,334: DEBUG - 
2020-01-11 09:52:58,334: DEBUG - Stopping seafile server ...
2020-01-11 09:52:58,435: DEBUG - Done.
2020-01-11 09:52:58,435: DEBUG - + su - seafile -s /bin/bash -c '/opt/yunohost/seafile/seafile-server-latest/seahub.sh stop'
2020-01-11 09:52:58,435: DEBUG - 
2020-01-11 09:52:58,435: DEBUG - Seahub is not running
2020-01-11 09:52:58,435: DEBUG - Done.
2020-01-11 09:52:58,436: DEBUG - 
2020-01-11 09:52:58,436: DEBUG - + sleep 2
2020-01-11 09:53:00,441: DEBUG - + pkill -f seafile-controller
2020-01-11 09:53:00,442: DEBUG - + true
2020-01-11 09:53:00,442: DEBUG - + pkill -f seaf-server
2020-01-11 09:53:00,544: DEBUG - + true
2020-01-11 09:53:00,545: INFO - [##################+.] > Starting seafile services...
2020-01-11 09:53:00,546: DEBUG - + ynh_script_progression '--message=Starting seafile services...' --weight=3
2020-01-11 09:53:00,547: DEBUG - + set +x
2020-01-11 09:53:00,548: DEBUG - + set +x
2020-01-11 09:53:00,548: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:53:00,548: DEBUG - + set +x
2020-01-11 09:53:00,548: DEBUG - + echo '[##################+.] > Starting seafile services...'
2020-01-11 09:53:00,549: DEBUG - + set -x
2020-01-11 09:53:00,549: DEBUG - + ynh_systemd_action --service_name seafile -l 'spawned seaf-server, pid ' -p /var/log/seafile/controller.log
2020-01-11 09:53:00,549: DEBUG - + local legacy_args=nalpte
2020-01-11 09:53:00,549: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2020-01-11 09:53:00,549: DEBUG - + declare -Ar args_array
2020-01-11 09:53:00,549: DEBUG - + local service_name
2020-01-11 09:53:00,550: DEBUG - + local action
2020-01-11 09:53:00,550: DEBUG - + local line_match
2020-01-11 09:53:00,550: DEBUG - + local length
2020-01-11 09:53:00,550: DEBUG - + local log_path
2020-01-11 09:53:00,550: DEBUG - + local timeout
2020-01-11 09:53:00,551: DEBUG - + ynh_handle_getopts_args --service_name seafile -l 'spawned seaf-server, pid ' -p /var/log/seafile/controller.log
2020-01-11 09:53:00,555: DEBUG - + set +x
2020-01-11 09:53:00,555: DEBUG - + local service_name=seafile
2020-01-11 09:53:00,555: DEBUG - + local action=start
2020-01-11 09:53:00,556: DEBUG - + local log_path=/var/log/seafile/controller.log
2020-01-11 09:53:00,556: DEBUG - + local length=20
2020-01-11 09:53:00,556: DEBUG - + local timeout=300
2020-01-11 09:53:00,556: DEBUG - + [[ -n spawned seaf-server, pid  ]]
2020-01-11 09:53:00,556: DEBUG - ++ mktemp
2020-01-11 09:53:00,556: DEBUG - + local templog=/tmp/tmp.fdU6ih3K2Z
2020-01-11 09:53:00,557: DEBUG - + '[' /var/log/seafile/controller.log == systemd ']'
2020-01-11 09:53:00,557: DEBUG - + local pid_tail=4335
2020-01-11 09:53:00,557: DEBUG - + '[' start == reload ']'
2020-01-11 09:53:00,557: DEBUG - + systemctl start seafile
2020-01-11 09:53:00,557: DEBUG - + tail -F -n0 /var/log/seafile/controller.log
2020-01-11 09:53:03,665: DEBUG - + [[ -n spawned seaf-server, pid  ]]
2020-01-11 09:53:03,665: DEBUG - + local i=0
2020-01-11 09:53:03,766: DEBUG - ++ seq 1 300
2020-01-11 09:53:03,766: INFO - The service seafile has correctly started.
2020-01-11 09:53:03,767: DEBUG - + for i in $(seq 1 $timeout)
2020-01-11 09:53:03,767: DEBUG - + grep --quiet 'spawned seaf-server, pid ' /tmp/tmp.fdU6ih3K2Z
2020-01-11 09:53:03,767: DEBUG - + ynh_print_info '--message=The service seafile has correctly started.'
2020-01-11 09:53:03,767: DEBUG - + local legacy_args=m
2020-01-11 09:53:03,767: DEBUG - + args_array=([m]=message=)
2020-01-11 09:53:03,768: DEBUG - + declare -Ar args_array
2020-01-11 09:53:03,768: DEBUG - + local message
2020-01-11 09:53:03,768: DEBUG - + ynh_handle_getopts_args '--message=The service seafile has correctly started.'
2020-01-11 09:53:03,768: DEBUG - + set +x
2020-01-11 09:53:03,768: DEBUG - + echo 'The service seafile has correctly started.'
2020-01-11 09:53:03,769: DEBUG - + break
2020-01-11 09:53:03,769: DEBUG - + '[' 1 -ge 3 ']'
2020-01-11 09:53:03,769: DEBUG - + '[' 1 -eq 300 ']'
2020-01-11 09:53:03,769: DEBUG - + ynh_clean_check_starting
2020-01-11 09:53:03,769: DEBUG - + kill -s 15 4335
2020-01-11 09:53:03,769: DEBUG - + ynh_secure_remove /tmp/tmp.fdU6ih3K2Z
2020-01-11 09:53:03,769: DEBUG - + local legacy_args=f
2020-01-11 09:53:03,770: DEBUG - + args_array=([f]=file=)
2020-01-11 09:53:03,770: DEBUG - /usr/share/yunohost/helpers.d/utils : ligne 1 :  4335 Complété              tail -F -n0 "$log_path" > "$templog" 2>&1
2020-01-11 09:53:03,770: DEBUG - + declare -Ar args_array
2020-01-11 09:53:03,770: DEBUG - + local file
2020-01-11 09:53:03,770: DEBUG - + ynh_handle_getopts_args /tmp/tmp.fdU6ih3K2Z
2020-01-11 09:53:03,770: DEBUG - + set +x
2020-01-11 09:53:03,770: DEBUG - + echo '! Helper used in legacy mode !'
2020-01-11 09:53:03,771: DEBUG - + set +x
2020-01-11 09:53:03,774: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2020-01-11 09:53:03,775: DEBUG - + '[' 1 -ge 2 ']'
2020-01-11 09:53:03,775: DEBUG - + [[      /var/www     /home/yunohost.app =~ /tmp/tmp\.fdU6ih3K2Z ]]
2020-01-11 09:53:03,775: DEBUG - + [[ /tmp/tmp.fdU6ih3K2Z =~ ^/[[:alnum:]]+$ ]]
2020-01-11 09:53:03,775: DEBUG - + [[ Z = \/ ]]
2020-01-11 09:53:03,775: DEBUG - + '[' -e /tmp/tmp.fdU6ih3K2Z ']'
2020-01-11 09:53:03,776: DEBUG - + sudo rm -R /tmp/tmp.fdU6ih3K2Z
2020-01-11 09:53:03,776: DEBUG - + ynh_systemd_action --service_name seahub -l 'Started Seafile hub.' -p systemd
2020-01-11 09:53:03,776: DEBUG - + local legacy_args=nalpte
2020-01-11 09:53:03,776: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2020-01-11 09:53:03,776: DEBUG - + declare -Ar args_array
2020-01-11 09:53:03,776: DEBUG - + local service_name
2020-01-11 09:53:03,776: DEBUG - + local action
2020-01-11 09:53:03,776: DEBUG - + local line_match
2020-01-11 09:53:03,777: DEBUG - + local length
2020-01-11 09:53:03,777: DEBUG - + local log_path
2020-01-11 09:53:03,777: DEBUG - + local timeout
2020-01-11 09:53:03,777: DEBUG - + ynh_handle_getopts_args --service_name seahub -l 'Started Seafile hub.' -p systemd
2020-01-11 09:53:03,777: DEBUG - + set +x
2020-01-11 09:53:03,777: DEBUG - + local service_name=seahub
2020-01-11 09:53:03,777: DEBUG - + local action=start
2020-01-11 09:53:03,777: DEBUG - + local log_path=systemd
2020-01-11 09:53:03,778: DEBUG - + local length=20
2020-01-11 09:53:03,778: DEBUG - + local timeout=300
2020-01-11 09:53:03,778: DEBUG - + [[ -n Started Seafile hub. ]]
2020-01-11 09:53:03,778: DEBUG - ++ mktemp
2020-01-11 09:53:03,778: DEBUG - + local templog=/tmp/tmp.hYDyA8Oglr
2020-01-11 09:53:03,778: DEBUG - + '[' systemd == systemd ']'
2020-01-11 09:53:03,778: DEBUG - + local pid_tail=4422
2020-01-11 09:53:03,778: DEBUG - + '[' start == reload ']'
2020-01-11 09:53:03,778: DEBUG - + systemctl start seahub
2020-01-11 09:53:03,779: DEBUG - + journalctl --unit=seahub --follow --since=-0 --quiet
2020-01-11 09:53:09,295: DEBUG - + journalctl --no-pager --lines=20 -u seahub
2020-01-11 09:53:09,296: WARNING - Job for seahub.service failed because the control process exited with error code.
2020-01-11 09:53:09,296: DEBUG - + test -e systemd
2020-01-11 09:53:09,296: WARNING - See "systemctl status seahub.service" and "journalctl -xe" for details.
2020-01-11 09:53:09,297: DEBUG - + false
2020-01-11 09:53:09,297: WARNING - -- Logs begin at Thu 2020-01-09 23:14:54 CET, end at Sat 2020-01-11 09:53:09 CET. --
2020-01-11 09:53:09,297: DEBUG - + ynh_exit_properly
2020-01-11 09:53:09,297: WARNING - janv. 11 09:53:03 www.unger.fr systemd[1]: Starting Seafile hub...
2020-01-11 09:53:09,298: DEBUG - + local exit_code=1
2020-01-11 09:53:09,298: WARNING - janv. 11 09:53:03 www.unger.fr seahub.sh[4424]: LC_ALL is not set in ENV, set to fr_FR.UTF-8
2020-01-11 09:53:09,298: DEBUG - + '[' 1 -eq 0 ']'
2020-01-11 09:53:09,298: WARNING - janv. 11 09:53:03 www.unger.fr seahub.sh[4424]: Starting seahub at port 8000 ...
2020-01-11 09:53:09,299: DEBUG - + trap '' EXIT
2020-01-11 09:53:09,299: WARNING - janv. 11 09:53:09 www.unger.fr systemd[1]: seahub.service: Control process exited, code=exited status=1
2020-01-11 09:53:09,300: DEBUG - + set +eu
2020-01-11 09:53:09,300: WARNING - janv. 11 09:53:09 www.unger.fr systemd[1]: Failed to start Seafile hub.
2020-01-11 09:53:09,300: DEBUG - + sleep 0.5
2020-01-11 09:53:09,300: WARNING - janv. 11 09:53:09 www.unger.fr systemd[1]: seahub.service: Unit entered failed state.
2020-01-11 09:53:09,301: WARNING - janv. 11 09:53:09 www.unger.fr systemd[1]: seahub.service: Failed with result 'exit-code'.
2020-01-11 09:53:09,803: DEBUG - + ynh_print_err '--message=!!\n  seafile'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-01-11 09:53:09,803: WARNING - [ERR] !!
2020-01-11 09:53:09,803: DEBUG - + local legacy_args=m
2020-01-11 09:53:09,804: WARNING -   seafile's script has encountered an error. Its execution was cancelled.
2020-01-11 09:53:09,804: DEBUG - + args_array=([m]=message=)
2020-01-11 09:53:09,804: WARNING - !!
2020-01-11 09:53:09,804: DEBUG - + declare -Ar args_array
2020-01-11 09:53:09,804: DEBUG - + local message
2020-01-11 09:53:09,805: DEBUG - + ynh_handle_getopts_args '--message=!!\n  seafile'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-01-11 09:53:09,805: DEBUG - + set +x
2020-01-11 09:53:09,805: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n  seafile'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-01-11 09:53:09,805: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n  seafile'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-01-11 09:53:09,805: DEBUG - + '[' api == cli ']'
2020-01-11 09:53:09,805: DEBUG - + type -t ynh_clean_setup
2020-01-11 09:53:09,805: DEBUG - + ynh_clean_setup
2020-01-11 09:53:09,805: DEBUG - + pkill -f seafile-controller
2020-01-11 09:53:09,806: DEBUG - + pkill -f seaf-server
2020-01-11 09:53:09,806: DEBUG - + pkill -f ccnet-server
2020-01-11 09:53:09,806: DEBUG - + pkill -f seahub
2020-01-11 09:53:09,907: DEBUG - + ynh_die
2020-01-11 09:53:09,907: WARNING - ./_common.sh : ligne 36 :  4422 Complété              journalctl --unit=$service_name --follow --since=-0 --quiet > "$templog"
2020-01-11 09:53:09,908: DEBUG - + local legacy_args=mc
2020-01-11 09:53:09,908: WARNING - 
2020-01-11 09:53:09,909: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2020-01-11 09:53:09,909: DEBUG - + declare -Ar args_array
2020-01-11 09:53:09,909: DEBUG - + local message
2020-01-11 09:53:09,910: DEBUG - + local ret_code
2020-01-11 09:53:09,910: DEBUG - + ynh_handle_getopts_args
2020-01-11 09:53:09,910: DEBUG - + set +x
2020-01-11 09:53:09,910: DEBUG - + echo ''
2020-01-11 09:53:09,911: DEBUG - + exit 1