ended_at: 2021-03-30 20:08:55.787298
env:
  BASH_XTRACEFD: '7'
  YNH_APP_BACKUP_DIR: /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup
  YNH_APP_ID: galene
  YNH_APP_INSTANCE_NAME: galene
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 0.3.2~ynh3
  YNH_BACKUP_CSV: /home/yunohost.backup/tmp/galene-pre-upgrade1/backup.csv
  YNH_BACKUP_DIR: /home/yunohost.backup/tmp/galene-pre-upgrade1
  YNH_CWD: /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup
  YNH_INTERFACE: api
  YNH_STDRETURN: /tmp/tmpofvxmbvl/stdreturn
error: Impossible de restaurer 'galene'
interface: api
operation: backup_restore_app
parent: null
related_to:
- - app
  - galene
started_at: 2021-03-30 20:07:49.169116
success: false
yunohost_version: 4.2.0

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

2021-03-30 22:07:49,188: INFO - Restauration de galene...
2021-03-30 22:07:49,551: DEBUG - Exécution du script de restauration de l’application 'galene'…
2021-03-30 22:07:50,385: DEBUG - Permission 'galene.main' mise à jour
2021-03-30 22:07:50,676: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20210330-200750-permission_url-galene" style="text-decoration:underline"> Mise à jour de l’URL associée à l’autorisation 'galene' </a>'
2021-03-30 22:07:51,297: DEBUG - Permission 'galene.main' créée
2021-03-30 22:07:51,298: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20210330-200749-permission_create-galene" style="text-decoration:underline"> Créer permission 'galene' </a>'
2021-03-30 22:07:51,601: DEBUG - The permission database has been resynchronized
2021-03-30 22:07:51,981: DEBUG - La configuration de SSOwat a été regénérée
2021-03-30 22:07:53,799: DEBUG - Executing command '/bin/bash -x "/tmp/restore4o7lzv7w/restore"  7>&1'
2021-03-30 22:07:53,831: DEBUG - + source ../settings/scripts/_common.sh
2021-03-30 22:07:53,832: DEBUG - ++ pkg_dependencies='coturn acl'
2021-03-30 22:07:53,833: DEBUG - + source /usr/share/yunohost/helpers
2021-03-30 22:07:53,837: DEBUG - +++ set +o
2021-03-30 22:07:53,838: DEBUG - +++ grep xtrace
2021-03-30 22:07:53,847: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-03-30 22:07:53,848: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2021-03-30 22:07:53,955: DEBUG - + ynh_abort_if_errors
2021-03-30 22:07:53,955: DEBUG - + set -o errexit
2021-03-30 22:07:53,956: DEBUG - + set -o nounset
2021-03-30 22:07:53,956: DEBUG - + trap ynh_exit_properly EXIT
2021-03-30 22:07:54,269: DEBUG - + echo '[+...................] > Loading installation settings...'
2021-03-30 22:07:54,269: DEBUG - + app=galene
2021-03-30 22:07:54,270: DEBUG - ++ ynh_app_setting_get --app=galene --key=domain
2021-03-30 22:07:54,273: INFO - [+...................] > Loading installation settings...
2021-03-30 22:07:54,374: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-03-30 22:07:54,375: DEBUG - ++ ynh_app_setting get galene domain
2021-03-30 22:07:54,537: DEBUG - + domain=meet.domain2.tld
2021-03-30 22:07:54,538: DEBUG - ++ ynh_app_setting_get --app=galene --key=path
2021-03-30 22:07:54,644: DEBUG - ++ [[ path =~ (unprotected|protected|skipped)_ ]]
2021-03-30 22:07:54,645: DEBUG - ++ ynh_app_setting get galene path
2021-03-30 22:07:54,784: DEBUG - + path_url=/
2021-03-30 22:07:54,786: DEBUG - ++ ynh_app_setting_get --app=galene --key=final_path
2021-03-30 22:07:54,928: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-03-30 22:07:54,929: DEBUG - ++ ynh_app_setting get galene final_path
2021-03-30 22:07:55,072: DEBUG - + final_path=/opt/yunohost/galene
2021-03-30 22:07:55,074: DEBUG - ++ ynh_app_setting_get --app=galene --key=group_name
2021-03-30 22:07:55,188: DEBUG - ++ [[ group_name =~ (unprotected|protected|skipped)_ ]]
2021-03-30 22:07:55,189: DEBUG - ++ ynh_app_setting get galene group_name
2021-03-30 22:07:55,330: DEBUG - + group_name=public
2021-03-30 22:07:55,335: DEBUG - ++ ynh_app_setting_get --app=galene --key=port
2021-03-30 22:07:55,441: DEBUG - ++ [[ port =~ (unprotected|protected|skipped)_ ]]
2021-03-30 22:07:55,441: DEBUG - ++ ynh_app_setting get galene port
2021-03-30 22:07:55,593: DEBUG - + port=8443
2021-03-30 22:07:55,594: DEBUG - ++ ynh_app_setting_get --app=galene --key=turnserver_port
2021-03-30 22:07:55,726: DEBUG - ++ [[ turnserver_port =~ (unprotected|protected|skipped)_ ]]
2021-03-30 22:07:55,726: DEBUG - ++ ynh_app_setting get galene turnserver_port
2021-03-30 22:07:55,855: DEBUG - + turnserver_port=1194
2021-03-30 22:07:55,859: DEBUG - ++ ynh_app_setting_get --app=galene --key=turnserver_pwd
2021-03-30 22:07:55,978: DEBUG - ++ [[ turnserver_pwd =~ (unprotected|protected|skipped)_ ]]
2021-03-30 22:07:55,978: DEBUG - ++ ynh_app_setting get galene turnserver_pwd
2021-03-30 22:07:56,135: DEBUG - + turnserver_pwd=**********
2021-03-30 22:07:56,401: DEBUG - + echo '[#+..................] > Validating restoration parameters...'
2021-03-30 22:07:56,402: DEBUG - + ynh_webpath_available --domain=meet.domain2.tld --path_url=/
2021-03-30 22:07:56,404: INFO - [#+..................] > Validating restoration parameters...
2021-03-30 22:07:56,521: DEBUG - + yunohost domain url-available meet.domain2.tld /
2021-03-30 22:07:57,741: DEBUG - False
2021-03-30 22:07:57,864: DEBUG - + test '!' -d /opt/yunohost/galene
2021-03-30 22:07:58,148: INFO - [##+.................] > Reinstalling dependencies...
2021-03-30 22:07:58,149: DEBUG - + echo '[##+.................] > Reinstalling dependencies...'
2021-03-30 22:07:58,150: DEBUG - + ynh_install_app_dependencies coturn acl
2021-03-30 22:07:58,150: DEBUG - + local 'dependencies=coturn acl'
2021-03-30 22:07:58,151: DEBUG - ++ echo 'coturn acl'
2021-03-30 22:07:58,151: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2021-03-30 22:07:58,154: DEBUG - + dependencies='coturn, acl'
2021-03-30 22:07:58,154: DEBUG - + local 'dependencies=coturn, acl'
2021-03-30 22:07:58,155: DEBUG - + local manifest_path=../settings/manifest.json
2021-03-30 22:07:58,156: DEBUG - ++ jq -r .version ../settings/manifest.json
2021-03-30 22:07:58,186: DEBUG - + local version=0.3.2~ynh3
2021-03-30 22:07:58,186: DEBUG - + '[' -z 0.3.2~ynh3 ']'
2021-03-30 22:07:58,187: DEBUG - + '[' 0.3.2~ynh3 == null ']'
2021-03-30 22:07:58,187: DEBUG - + local dep_app=galene
2021-03-30 22:07:58,188: DEBUG - + [[ coturn, acl =~ [<=>] ]]
2021-03-30 22:07:58,188: DEBUG - + echo coturn, acl
2021-03-30 22:07:58,189: DEBUG - + grep --quiet php
2021-03-30 22:07:58,197: DEBUG - + cat
2021-03-30 22:07:58,221: DEBUG - + ynh_package_install_from_equivs /tmp/galene-ynh-deps.control
2021-03-30 22:07:58,222: DEBUG - + local controlfile=/tmp/galene-ynh-deps.control
2021-03-30 22:07:58,222: DEBUG - ++ grep '^Package: ' /tmp/galene-ynh-deps.control
2021-03-30 22:07:58,222: DEBUG - ++ cut '--delimiter= ' --fields=2
2021-03-30 22:07:58,223: DEBUG - + local pkgname=galene-ynh-deps
2021-03-30 22:07:58,223: DEBUG - ++ grep '^Version: ' /tmp/galene-ynh-deps.control
2021-03-30 22:07:58,223: DEBUG - ++ cut '--delimiter= ' --fields=2
2021-03-30 22:07:58,224: DEBUG - + local pkgversion=0.3.2~ynh3
2021-03-30 22:07:58,224: DEBUG - + [[ -z galene-ynh-deps ]]
2021-03-30 22:07:58,224: DEBUG - + [[ -z 0.3.2~ynh3 ]]
2021-03-30 22:07:58,225: DEBUG - + ynh_package_update
2021-03-30 22:07:58,225: DEBUG - + ynh_apt update
2021-03-30 22:07:58,226: DEBUG - + ynh_wait_dpkg_free
2021-03-30 22:07:58,700: DEBUG - + return 0
2021-03-30 22:07:58,701: DEBUG - + LC_ALL=C
2021-03-30 22:07:58,701: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-03-30 22:07:58,702: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2021-03-30 22:07:59,041: DEBUG - Get:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
2021-03-30 22:07:59,085: DEBUG - Get:2 http://archive.raspberrypi.org/debian buster InRelease [32.9 kB]
2021-03-30 22:07:59,168: DEBUG - Hit:3 http://forge.yunohost.org/debian buster InRelease
2021-03-30 22:07:59,372: DEBUG - Hit:4 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease
2021-03-30 22:07:59,500: DEBUG - Get:5 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
2021-03-30 22:07:59,900: DEBUG - Get:6 http://archive.raspberrypi.org/debian buster/main armhf Packages [372 kB]
2021-03-30 22:08:05,451: DEBUG - Fetched 13.4 MB in 6s (2160 kB/s)
2021-03-30 22:08:11,841: DEBUG - Reading package lists...
2021-03-30 22:08:11,961: DEBUG - ++ mktemp --directory
2021-03-30 22:08:11,966: DEBUG - + local TMPDIR=/tmp/tmp.EK4HufCAJM
2021-03-30 22:08:11,966: DEBUG - + echo 10
2021-03-30 22:08:12,559: DEBUG - + ynh_wait_dpkg_free
2021-03-30 22:08:12,993: DEBUG - + return 0
2021-03-30 22:08:12,994: DEBUG - + cp /tmp/galene-ynh-deps.control /tmp/tmp.EK4HufCAJM/control
2021-03-30 22:08:13,001: DEBUG - + cd /tmp/tmp.EK4HufCAJM
2021-03-30 22:08:13,013: DEBUG - + LC_ALL=C
2021-03-30 22:08:13,014: DEBUG - + equivs-build ./control
2021-03-30 22:08:15,392: DEBUG - + LC_ALL=C
2021-03-30 22:08:15,393: DEBUG - + dpkg --force-depends --install ./galene-ynh-deps_0.3.2~ynh3_all.deb
2021-03-30 22:08:15,393: DEBUG - + tee ./dpkg_log
2021-03-30 22:08:15,521: DEBUG - Selecting previously unselected package galene-ynh-deps.
2021-03-30 22:08:16,344: DEBUG - (Reading database ... 76967 files and directories currently installed.)
2021-03-30 22:08:16,353: DEBUG - Preparing to unpack .../galene-ynh-deps_0.3.2~ynh3_all.deb ...
2021-03-30 22:08:16,364: DEBUG - Unpacking galene-ynh-deps (0.3.2~ynh3) ...
2021-03-30 22:08:16,492: DEBUG - dpkg: galene-ynh-deps: dependency problems, but configuring anyway as you requested:
2021-03-30 22:08:16,493: DEBUG -  galene-ynh-deps depends on coturn; however:
2021-03-30 22:08:16,493: DEBUG -   Package coturn is not installed.
2021-03-30 22:08:16,493: DEBUG - 
2021-03-30 22:08:16,494: DEBUG - Setting up galene-ynh-deps (0.3.2~ynh3) ...
2021-03-30 22:08:16,618: DEBUG - + ynh_package_install --fix-broken
2021-03-30 22:08:16,619: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-03-30 22:08:16,619: DEBUG - + ynh_wait_dpkg_free
2021-03-30 22:08:17,093: DEBUG - + return 0
2021-03-30 22:08:17,094: DEBUG - + LC_ALL=C
2021-03-30 22:08:17,094: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-03-30 22:08:17,094: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-03-30 22:08:17,964: DEBUG - Reading package lists...
2021-03-30 22:08:19,365: DEBUG - Building dependency tree...
2021-03-30 22:08:19,371: DEBUG - Reading state information...
2021-03-30 22:08:19,840: DEBUG - Correcting dependencies... Done
2021-03-30 22:08:20,574: DEBUG - The following additional packages will be installed:
2021-03-30 22:08:20,579: DEBUG -   coturn libevent-extra-2.1-6 libevent-openssl-2.1-6 telnet
2021-03-30 22:08:20,585: DEBUG - Suggested packages:
2021-03-30 22:08:20,586: DEBUG -   sip-router xmpp-server
2021-03-30 22:08:20,628: DEBUG - The following NEW packages will be installed:
2021-03-30 22:08:20,633: DEBUG -   coturn libevent-extra-2.1-6 libevent-openssl-2.1-6 telnet
2021-03-30 22:08:22,214: DEBUG - 0 upgraded, 4 newly installed, 0 to remove and 23 not upgraded.
2021-03-30 22:08:22,214: DEBUG - Need to get 0 B/506 kB of archives.
2021-03-30 22:08:22,215: DEBUG - After this operation, 1611 kB of additional disk space will be used.
2021-03-30 22:08:22,357: DEBUG - Selecting previously unselected package telnet.
2021-03-30 22:08:22,507: DEBUG - (Reading database ... 76971 files and directories currently installed.)
2021-03-30 22:08:22,515: DEBUG - Preparing to unpack .../telnet_0.17-41.2_armhf.deb ...
2021-03-30 22:08:22,524: DEBUG - Unpacking telnet (0.17-41.2) ...
2021-03-30 22:08:22,765: DEBUG - Selecting previously unselected package libevent-extra-2.1-6:armhf.
2021-03-30 22:08:22,782: DEBUG - Preparing to unpack .../libevent-extra-2.1-6_2.1.8-stable-4_armhf.deb ...
2021-03-30 22:08:22,813: DEBUG - Unpacking libevent-extra-2.1-6:armhf (2.1.8-stable-4) ...
2021-03-30 22:08:23,033: DEBUG - Selecting previously unselected package libevent-openssl-2.1-6:armhf.
2021-03-30 22:08:23,050: DEBUG - Preparing to unpack .../libevent-openssl-2.1-6_2.1.8-stable-4_armhf.deb ...
2021-03-30 22:08:23,061: DEBUG - Unpacking libevent-openssl-2.1-6:armhf (2.1.8-stable-4) ...
2021-03-30 22:08:23,272: DEBUG - Selecting previously unselected package coturn.
2021-03-30 22:08:23,293: DEBUG - Preparing to unpack .../coturn_4.5.1.1-1.1+deb10u2_armhf.deb ...
2021-03-30 22:08:23,308: DEBUG - Unpacking coturn (4.5.1.1-1.1+deb10u2) ...
2021-03-30 22:08:23,790: DEBUG - Setting up libevent-extra-2.1-6:armhf (2.1.8-stable-4) ...
2021-03-30 22:08:23,825: DEBUG - Setting up telnet (0.17-41.2) ...
2021-03-30 22:08:23,953: DEBUG - update-alternatives: using /usr/bin/telnet.netkit to provide /usr/bin/telnet (telnet) in auto mode
2021-03-30 22:08:23,983: DEBUG - Setting up libevent-openssl-2.1-6:armhf (2.1.8-stable-4) ...
2021-03-30 22:08:24,030: DEBUG - Setting up coturn (4.5.1.1-1.1+deb10u2) ...
2021-03-30 22:08:24,437: DEBUG - Adding group `turnserver' (GID 131) ...
2021-03-30 22:08:24,524: DEBUG - Done.
2021-03-30 22:08:24,796: DEBUG - Adding system user `turnserver' (UID 125) ...
2021-03-30 22:08:24,810: DEBUG - Adding new user `turnserver' (UID 125) with group `turnserver' ...
2021-03-30 22:08:25,101: DEBUG - Not creating home directory `/'.
2021-03-30 22:08:25,109: WARNING - I: Creating /var/lib/turn/turndb from /usr/share/doc/coturn/schema.sql
2021-03-30 22:08:29,641: DEBUG - Created symlink /etc/systemd/system/multi-user.target.wants/coturn.service -> /lib/systemd/system/coturn.service.
2021-03-30 22:08:30,462: DEBUG - Processing triggers for systemd (241-7~deb10u6+rpi1) ...
2021-03-30 22:08:31,235: DEBUG - Processing triggers for man-db (2.8.5-2) ...
2021-03-30 22:08:32,129: DEBUG - Processing triggers for libc-bin (2.28-10+rpi1) ...
2021-03-30 22:08:32,888: DEBUG - + [[ -n /tmp/tmp.EK4HufCAJM ]]
2021-03-30 22:08:32,889: DEBUG - + rm --recursive --force /tmp/tmp.EK4HufCAJM
2021-03-30 22:08:32,893: DEBUG - + ynh_package_is_installed galene-ynh-deps
2021-03-30 22:08:32,926: DEBUG - + ynh_wait_dpkg_free
2021-03-30 22:08:33,426: DEBUG - + return 0
2021-03-30 22:08:33,428: DEBUG - + dpkg-query --show '--showformat=${Status}' galene-ynh-deps
2021-03-30 22:08:33,428: DEBUG - + grep --count 'ok installed'
2021-03-30 22:08:33,484: DEBUG - + rm /tmp/galene-ynh-deps.control
2021-03-30 22:08:33,488: DEBUG - + ynh_app_setting_set --app=galene --key=apt_dependencies '--value=coturn, acl'
2021-03-30 22:08:33,731: DEBUG - + [[ apt_dependencies =~ (unprotected|protected|skipped)_ ]]
2021-03-30 22:08:33,731: DEBUG - + ynh_app_setting set galene apt_dependencies 'coturn, acl'
2021-03-30 22:08:33,891: DEBUG - + ynh_restore_file --origin_path=/etc/nginx/conf.d/meet.domain2.tld.d/galene.conf
2021-03-30 22:08:33,983: DEBUG - + origin_path=/etc/nginx/conf.d/meet.domain2.tld.d/galene.conf
2021-03-30 22:08:33,983: DEBUG - + dest_path=/etc/nginx/conf.d/meet.domain2.tld.d/galene.conf
2021-03-30 22:08:33,984: DEBUG - + not_mandatory=0
2021-03-30 22:08:33,984: DEBUG - + local archive_path=/home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/nginx/conf.d/meet.domain2.tld.d/galene.conf
2021-03-30 22:08:33,984: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/nginx/conf.d/meet.domain2.tld.d/galene.conf ']'
2021-03-30 22:08:33,985: DEBUG - + '[' '!' -f /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/nginx/conf.d/meet.domain2.tld.d/galene.conf ']'
2021-03-30 22:08:33,985: DEBUG - + [[ -e /etc/nginx/conf.d/meet.domain2.tld.d/galene.conf ]]
2021-03-30 22:08:33,986: DEBUG - ++ dirname /etc/nginx/conf.d/meet.domain2.tld.d/galene.conf
2021-03-30 22:08:33,990: DEBUG - + mkdir --parents /etc/nginx/conf.d/meet.domain2.tld.d
2021-03-30 22:08:33,995: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/galene-pre-upgrade1
2021-03-30 22:08:34,010: DEBUG - + mv /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/nginx/conf.d/meet.domain2.tld.d/galene.conf /etc/nginx/conf.d/meet.domain2.tld.d/galene.conf
2021-03-30 22:08:34,293: DEBUG - + echo '[###+................] > Restoring Galène main directory...'
2021-03-30 22:08:34,294: DEBUG - + ynh_restore_file --origin_path=/opt/yunohost/galene
2021-03-30 22:08:34,297: INFO - [###+................] > Restoring Galène main directory...
2021-03-30 22:08:34,387: DEBUG - + origin_path=/opt/yunohost/galene
2021-03-30 22:08:34,388: DEBUG - + dest_path=/opt/yunohost/galene
2021-03-30 22:08:34,388: DEBUG - + not_mandatory=0
2021-03-30 22:08:34,389: DEBUG - + local archive_path=/home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/opt/yunohost/galene
2021-03-30 22:08:34,389: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/opt/yunohost/galene ']'
2021-03-30 22:08:34,390: DEBUG - + [[ -e /opt/yunohost/galene ]]
2021-03-30 22:08:34,390: DEBUG - ++ dirname /opt/yunohost/galene
2021-03-30 22:08:34,394: DEBUG - + mkdir --parents /opt/yunohost
2021-03-30 22:08:34,399: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/galene-pre-upgrade1
2021-03-30 22:08:34,408: DEBUG - + mv /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/opt/yunohost/galene /opt/yunohost/galene
2021-03-30 22:08:42,475: DEBUG - + ynh_restore_file --origin_path=/etc/galene
2021-03-30 22:08:42,573: DEBUG - + origin_path=/etc/galene
2021-03-30 22:08:42,574: DEBUG - + dest_path=/etc/galene
2021-03-30 22:08:42,574: DEBUG - + not_mandatory=0
2021-03-30 22:08:42,575: DEBUG - + local archive_path=/home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/galene
2021-03-30 22:08:42,575: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/galene ']'
2021-03-30 22:08:42,576: DEBUG - + [[ -e /etc/galene ]]
2021-03-30 22:08:42,578: DEBUG - ++ du --summarize --bytes /etc/galene
2021-03-30 22:08:42,578: DEBUG - ++ cut --delimiter=/ --fields=1
2021-03-30 22:08:46,371: DEBUG - + [[ 4775	 -le 500000000 ]]
2021-03-30 22:08:46,373: DEBUG - ++ date +%Y%m%d.%H%M%S
2021-03-30 22:08:46,378: DEBUG - + local backup_file=/home/yunohost.conf/backup//etc/galene.backup.20210330.220846
2021-03-30 22:08:46,380: DEBUG - ++ dirname /home/yunohost.conf/backup//etc/galene.backup.20210330.220846
2021-03-30 22:08:46,384: DEBUG - + mkdir --parents /home/yunohost.conf/backup//etc
2021-03-30 22:08:47,033: DEBUG - + mv /etc/galene /home/yunohost.conf/backup//etc/galene.backup.20210330.220846
2021-03-30 22:08:47,041: DEBUG - ++ dirname /etc/galene
2021-03-30 22:08:47,045: DEBUG - + mkdir --parents /etc
2021-03-30 22:08:47,050: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/galene-pre-upgrade1
2021-03-30 22:08:47,058: DEBUG - + mv /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/galene /etc/galene
2021-03-30 22:08:47,068: DEBUG - + ynh_restore_file --origin_path=/var/log/galene
2021-03-30 22:08:47,160: DEBUG - + origin_path=/var/log/galene
2021-03-30 22:08:47,160: DEBUG - + dest_path=/var/log/galene
2021-03-30 22:08:47,161: DEBUG - + not_mandatory=0
2021-03-30 22:08:47,161: DEBUG - + local archive_path=/home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/var/log/galene
2021-03-30 22:08:47,162: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/var/log/galene ']'
2021-03-30 22:08:47,162: DEBUG - + [[ -e /var/log/galene ]]
2021-03-30 22:08:47,163: DEBUG - ++ dirname /var/log/galene
2021-03-30 22:08:47,167: DEBUG - + mkdir --parents /var/log
2021-03-30 22:08:47,172: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/galene-pre-upgrade1
2021-03-30 22:08:47,180: DEBUG - + mv /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/var/log/galene /var/log/galene
2021-03-30 22:08:47,557: DEBUG - + echo '[####++..............] > Recreating the dedicated system user...'
2021-03-30 22:08:47,558: INFO - [####++..............] > Recreating the dedicated system user...
2021-03-30 22:08:47,559: DEBUG - + ynh_system_user_create --username=galene
2021-03-30 22:08:47,562: DEBUG - + use_shell=0
2021-03-30 22:08:47,563: DEBUG - + home_dir=
2021-03-30 22:08:47,563: DEBUG - + ynh_system_user_exists galene
2021-03-30 22:08:47,595: DEBUG - + getent passwd galene
2021-03-30 22:08:47,606: DEBUG - + '[' -n '' ']'
2021-03-30 22:08:47,607: DEBUG - + local user_home_dir=--no-create-home
2021-03-30 22:08:47,607: DEBUG - + '[' 0 -eq 1 ']'
2021-03-30 22:08:47,607: DEBUG - + local 'shell=--shell /usr/sbin/nologin'
2021-03-30 22:08:47,608: DEBUG - + useradd --no-create-home --system --user-group galene --shell /usr/sbin/nologin
2021-03-30 22:08:49,498: DEBUG - + ynh_system_user_create --username=turnserver
2021-03-30 22:08:49,593: DEBUG - + use_shell=0
2021-03-30 22:08:49,593: DEBUG - + home_dir=
2021-03-30 22:08:49,594: DEBUG - + ynh_system_user_exists turnserver
2021-03-30 22:08:49,629: DEBUG - + getent passwd turnserver
2021-03-30 22:08:49,638: DEBUG - + adduser turnserver ssl-cert
2021-03-30 22:08:49,775: DEBUG - Adding user `turnserver' to group `ssl-cert' ...
2021-03-30 22:08:49,809: DEBUG - Adding user turnserver to group ssl-cert
2021-03-30 22:08:49,901: DEBUG - Done.
2021-03-30 22:08:50,183: INFO - [######+.............] > Restoring the systemd configuration...
2021-03-30 22:08:50,184: DEBUG - + echo '[######+.............] > Restoring the systemd configuration...'
2021-03-30 22:08:50,185: DEBUG - + ynh_restore_file --origin_path=/etc/systemd/system/galene.service
2021-03-30 22:08:50,280: DEBUG - + origin_path=/etc/systemd/system/galene.service
2021-03-30 22:08:50,281: DEBUG - + dest_path=/etc/systemd/system/galene.service
2021-03-30 22:08:50,281: DEBUG - + not_mandatory=0
2021-03-30 22:08:50,281: DEBUG - + local archive_path=/home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/systemd/system/galene.service
2021-03-30 22:08:50,282: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/systemd/system/galene.service ']'
2021-03-30 22:08:50,282: DEBUG - + '[' '!' -f /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/systemd/system/galene.service ']'
2021-03-30 22:08:50,283: DEBUG - + [[ -e /etc/systemd/system/galene.service ]]
2021-03-30 22:08:50,283: DEBUG - ++ dirname /etc/systemd/system/galene.service
2021-03-30 22:08:50,288: DEBUG - + mkdir --parents /etc/systemd/system
2021-03-30 22:08:50,293: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/galene-pre-upgrade1
2021-03-30 22:08:50,302: DEBUG - + mv /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/systemd/system/galene.service /etc/systemd/system/galene.service
2021-03-30 22:08:50,314: DEBUG - + ynh_restore_file --origin_path=/etc/default/coturn-galene
2021-03-30 22:08:50,412: DEBUG - + origin_path=/etc/default/coturn-galene
2021-03-30 22:08:50,412: DEBUG - + dest_path=/etc/default/coturn-galene
2021-03-30 22:08:50,413: DEBUG - + not_mandatory=0
2021-03-30 22:08:50,414: DEBUG - + local archive_path=/home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/default/coturn-galene
2021-03-30 22:08:50,414: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/default/coturn-galene ']'
2021-03-30 22:08:50,415: DEBUG - + '[' '!' -f /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/default/coturn-galene ']'
2021-03-30 22:08:50,415: DEBUG - + [[ -e /etc/default/coturn-galene ]]
2021-03-30 22:08:50,415: DEBUG - ++ dirname /etc/default/coturn-galene
2021-03-30 22:08:50,419: DEBUG - + mkdir --parents /etc/default
2021-03-30 22:08:50,425: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/galene-pre-upgrade1
2021-03-30 22:08:50,434: DEBUG - + mv /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/default/coturn-galene /etc/default/coturn-galene
2021-03-30 22:08:50,444: DEBUG - + ynh_restore_file --origin_path=/etc/systemd/system/coturn-galene.service
2021-03-30 22:08:50,540: DEBUG - + origin_path=/etc/systemd/system/coturn-galene.service
2021-03-30 22:08:50,541: DEBUG - + dest_path=/etc/systemd/system/coturn-galene.service
2021-03-30 22:08:50,541: DEBUG - + not_mandatory=0
2021-03-30 22:08:50,542: DEBUG - + local archive_path=/home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/systemd/system/coturn-galene.service
2021-03-30 22:08:50,542: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/systemd/system/coturn-galene.service ']'
2021-03-30 22:08:50,543: DEBUG - + '[' '!' -f /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/systemd/system/coturn-galene.service ']'
2021-03-30 22:08:50,543: DEBUG - + [[ -e /etc/systemd/system/coturn-galene.service ]]
2021-03-30 22:08:50,544: DEBUG - ++ dirname /etc/systemd/system/coturn-galene.service
2021-03-30 22:08:50,548: DEBUG - + mkdir --parents /etc/systemd/system
2021-03-30 22:08:50,554: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/galene-pre-upgrade1
2021-03-30 22:08:50,562: DEBUG - + mv /home/yunohost.backup/tmp/galene-pre-upgrade1/apps/galene/backup/etc/systemd/system/coturn-galene.service /etc/systemd/system/coturn-galene.service
2021-03-30 22:08:50,569: DEBUG - + systemctl enable galene.service --quiet
2021-03-30 22:08:51,313: DEBUG - + systemctl enable coturn-galene.service --quiet
2021-03-30 22:08:52,247: INFO - [#######+++..........] > Integrating service in YunoHost...
2021-03-30 22:08:52,269: DEBUG - + echo '[#######+++..........] > Integrating service in YunoHost...'
2021-03-30 22:08:52,269: DEBUG - + yunohost service add galene '--description=Videoconferencing server' --log=/var/log/galene/galene.log --needs_exposed_ports 8443
2021-03-30 22:08:52,849: DEBUG - The service 'galene' was added
2021-03-30 22:08:52,923: DEBUG - + yunohost service add coturn-galene '--description=Coturn TURN server' --log=/var/log/galene/turnserver.log --needs_exposed_ports 1194
2021-03-30 22:08:53,506: DEBUG - The service 'coturn-galene' was added
2021-03-30 22:08:53,871: INFO - [##########+++.......] > Starting a systemd service...
2021-03-30 22:08:53,872: DEBUG - + echo '[##########+++.......] > Starting a systemd service...'
2021-03-30 22:08:53,873: DEBUG - + ynh_systemd_action --service_name=galene --action=start --log_path=/var/log/galene/galene.log
2021-03-30 22:08:54,332: DEBUG - + service_name=galene
2021-03-30 22:08:54,333: DEBUG - + action=start
2021-03-30 22:08:54,333: DEBUG - + line_match=
2021-03-30 22:08:54,333: DEBUG - + length=20
2021-03-30 22:08:54,334: DEBUG - + log_path=/var/log/galene/galene.log
2021-03-30 22:08:54,334: DEBUG - + timeout=300
2021-03-30 22:08:54,334: DEBUG - + [[ -n '' ]]
2021-03-30 22:08:54,335: DEBUG - + '[' start == reload ']'
2021-03-30 22:08:54,335: DEBUG - + systemctl start galene
2021-03-30 22:08:54,359: DEBUG - + [[ -n '' ]]
2021-03-30 22:08:54,649: INFO - [#############+++....] > Creating a dhparam file...
2021-03-30 22:08:54,653: DEBUG - + echo '[#############+++....] > Creating a dhparam file...'
2021-03-30 22:08:54,654: DEBUG - + '[' '!' -e /etc/ssl/private/dh2048.pem ']'
2021-03-30 22:08:54,655: DEBUG - + ynh_exec_warn_less yunohost firewall allow --no-upnp TCP 8443
2021-03-30 22:08:54,655: DEBUG - + eval yunohost firewall allow --no-upnp TCP 8443
2021-03-30 22:08:54,655: DEBUG - ++ yunohost firewall allow --no-upnp TCP 8443
2021-03-30 22:08:55,147: DEBUG - Port 8443 is already opened for IPv4 connections
2021-03-30 22:08:55,148: DEBUG - Port 8443 is already opened for IPv6 connections
2021-03-30 22:08:55,201: DEBUG - Traceback (most recent call last):
2021-03-30 22:08:55,202: DEBUG -   File "/usr/bin/yunohost", line 72, in <module>
2021-03-30 22:08:55,203: DEBUG -     parser=parser
2021-03-30 22:08:55,203: DEBUG -   File "/usr/lib/moulinette/yunohost/__init__.py", line 25, in cli
2021-03-30 22:08:55,204: DEBUG -     ret = moulinette.cli(args, output_as=output_as, timeout=timeout, top_parser=parser)
2021-03-30 22:08:55,204: DEBUG -   File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 120, in cli
2021-03-30 22:08:55,205: DEBUG -     args, output_as=output_as, timeout=timeout
2021-03-30 22:08:55,205: DEBUG -   File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 502, in run
2021-03-30 22:08:55,206: DEBUG -     ret = self.actionsmap.process(args, timeout=timeout)
2021-03-30 22:08:55,207: DEBUG -   File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 600, in process
2021-03-30 22:08:55,207: DEBUG -     return func(**arguments)
2021-03-30 22:08:55,208: DEBUG -   File "/usr/lib/moulinette/yunohost/firewall.py", line 101, in firewall_allow
2021-03-30 22:08:55,209: DEBUG -     return firewall_reload()
2021-03-30 22:08:55,209: DEBUG -   File "/usr/lib/moulinette/yunohost/firewall.py", line 223, in firewall_reload
2021-03-30 22:08:55,210: DEBUG -     if ssh_port not in firewall_list()["opened_ports"]:
2021-03-30 22:08:55,211: DEBUG -   File "/usr/lib/moulinette/yunohost/firewall.py", line 191, in firewall_list
2021-03-30 22:08:55,211: DEBUG -     ports[i] = sorted(set(f["TCP"]) | set(f["UDP"]))
2021-03-30 22:08:55,212: DEBUG - TypeError: '<' not supported between instances of 'str' and 'int'
2021-03-30 22:08:55,275: DEBUG - + ynh_exit_properly
2021-03-30 22:08:55,275: DEBUG - + local exit_code=1
2021-03-30 22:08:55,276: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-03-30 22:08:55,278: DEBUG - + '[' 1 -eq 0 ']'
2021-03-30 22:08:55,279: DEBUG - + trap '' EXIT
2021-03-30 22:08:55,279: DEBUG - + set +o errexit
2021-03-30 22:08:55,279: DEBUG - + set +o nounset
2021-03-30 22:08:55,280: DEBUG - + sleep 0.5
2021-03-30 22:08:55,786: ERROR - Impossible de restaurer 'galene'