Restauration Mastodon impossible suite à une migration

Bonjour bonsoir :slight_smile:
J’ai procédé à une migration dernièrement d’une instance YH.

Tout semblait s’être bien passé sauf que je viens de réaliser qu’il manque une app. Elle ne souhaite pas se restorer semble-t-il :confused: J’ai beau relancer un restore depuis l’interface web ou en mode cli c’est pareil. La restauration échoue. Il s’agit de mastodon. Heureusement grâce à votre superbe outils de logging, j’ai pu récupérer le journal d’activités facilement.

Je ne sais pas quoi faire pour avancer, merci beaucoup par avance si vous aviez une idée à partager svp :pray:

Voici les logs:

ended_at: 2020-10-11 21:04:31.175798
env:
  YNH_APP_BACKUP_DIR: /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup
  YNH_APP_ID: mastodon
  YNH_APP_INSTANCE_NAME: mastodon
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_BACKUP_CSV: /home/yunohost.backup/tmp/20201005-200509/backup.csv
  YNH_BACKUP_DIR: /home/yunohost.backup/tmp/20201005-200509
  YNH_CWD: /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup
  YNH_INTERFACE: api
  YNH_STDINFO: /tmp/tmpznKCzi/stdinfo
  YNH_STDRETURN: /tmp/tmpHao8pk/stdreturn
error: "Impossible de restaurer l\u2019application 'mastodon'"
operation: backup_restore_app
related_to:
- - app
  - mastodon
started_at: 2020-10-11 20:59:27.041249
success: false
yunohost_version: 4.0.8

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

2020-10-11 22:59:27,075: INFO - Restauration de l’application mastodon …
2020-10-11 22:59:27,800: DEBUG - Exécution du script de restauration de l’application 'mastodon'…
2020-10-11 22:59:27,977: DEBUG - No default hook for action 'post_app_addaccess' in /usr/share/yunohost/hooks/
2020-10-11 22:59:27,979: DEBUG - No custom hook for action 'post_app_addaccess' in /etc/yunohost/hooks.d/
2020-10-11 22:59:27,980: DEBUG - Permission 'mastodon.main' créée
2020-10-11 22:59:27,981: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20201011-205927-permission_create-mastodon" style="text-decoration:underline"> Créer permission 'mastodon' </a>'
2020-10-11 22:59:28,018: DEBUG - The permission database has been resynchronized
2020-10-11 22:59:28,881: DEBUG - La configuration de SSOwat générée
2020-10-11 22:59:28,935: DEBUG - Exécution de la commande 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup YNH_STDINFO=/tmp/tmpznKCzi/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/20201005-200509/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/20201005-200509 YNH_APP_INSTANCE_NAME=mastodon YNH_INTERFACE=api YNH_APP_ID=mastodon YNH_STDRETURN=/tmp/tmpHao8pk/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restores5esNS/restore" /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup mastodon 7>&1' …
2020-10-11 22:59:28,936: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup YNH_STDINFO=/tmp/tmpznKCzi/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/20201005-200509/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/20201005-200509 YNH_APP_INSTANCE_NAME=mastodon YNH_INTERFACE=api YNH_APP_ID=mastodon YNH_STDRETURN=/tmp/tmpHao8pk/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restores5esNS/restore" /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup mastodon 7>&1']'
2020-10-11 22:59:29,324: DEBUG - + source ../settings/scripts/_common.sh
2020-10-11 22:59:29,327: DEBUG - ++ pkg_dependencies='imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core g++ libprotobuf-dev protobuf-compiler pkg-config gcc autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3|libgdbm6 libgdbm-dev redis-server redis-tools postgresql postgresql-contrib libidn11-dev libicu-dev libjemalloc-dev curl apt-transport-https'
2020-10-11 22:59:29,328: DEBUG - ++ MEMORY_NEEDED=2560
2020-10-11 22:59:29,328: DEBUG - +++ lsb_release --codename --short
2020-10-11 22:59:29,328: DEBUG - ++ '[' buster = buster ']'
2020-10-11 22:59:29,329: DEBUG - ++ RUBY_VERSION=2.6.6
2020-10-11 22:59:29,329: DEBUG - ++ BUNDLER_VERSION=1.17.3
2020-10-11 22:59:29,329: DEBUG - ++ NODEJS_VERSION=12
2020-10-11 22:59:29,330: DEBUG - + source ../settings/scripts/ynh_install_ruby__2
2020-10-11 22:59:29,330: DEBUG - ++ rbenv_install_dir=/opt/rbenv
2020-10-11 22:59:29,330: DEBUG - ++ export RBENV_ROOT=/opt/rbenv
2020-10-11 22:59:29,331: DEBUG - ++ RBENV_ROOT=/opt/rbenv
2020-10-11 22:59:29,331: DEBUG - + source ../settings/scripts/ynh_add_swap
2020-10-11 22:59:29,331: DEBUG - + source /usr/share/yunohost/helpers
2020-10-11 22:59:29,332: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2020-10-11 22:59:29,332: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,332: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2020-10-11 22:59:29,333: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt
2020-10-11 22:59:29,333: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,333: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2020-10-11 22:59:29,337: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup
2020-10-11 22:59:29,337: DEBUG - +++ CAN_BIND=1
2020-10-11 22:59:29,337: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,337: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2020-10-11 22:59:29,338: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban
2020-10-11 22:59:29,338: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,338: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2020-10-11 22:59:29,338: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2020-10-11 22:59:29,338: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,338: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/hardware ']'
2020-10-11 22:59:29,339: DEBUG - ++ . /usr/share/yunohost/helpers.d/hardware
2020-10-11 22:59:29,339: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,339: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2020-10-11 22:59:29,339: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging
2020-10-11 22:59:29,339: DEBUG - +++ increment_progression=0
2020-10-11 22:59:29,340: DEBUG - +++ previous_weight=0
2020-10-11 22:59:29,340: DEBUG - +++ max_progression=-1
2020-10-11 22:59:29,340: DEBUG - +++ progress_scale=20
2020-10-11 22:59:29,340: DEBUG - +++ progress_string2='####################'
2020-10-11 22:59:29,340: DEBUG - +++ progress_string1=++++++++++++++++++++
2020-10-11 22:59:29,341: DEBUG - +++ progress_string0=....................
2020-10-11 22:59:29,341: DEBUG - ++++ date +%s
2020-10-11 22:59:29,341: DEBUG - +++ base_time=1602449969
2020-10-11 22:59:29,341: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,342: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2020-10-11 22:59:29,342: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate
2020-10-11 22:59:29,342: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,342: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2020-10-11 22:59:29,342: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2020-10-11 22:59:29,343: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2020-10-11 22:59:29,343: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,343: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2020-10-11 22:59:29,343: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2020-10-11 22:59:29,343: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,343: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2020-10-11 22:59:29,344: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx
2020-10-11 22:59:29,344: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,344: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2020-10-11 22:59:29,344: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2020-10-11 22:59:29,344: DEBUG - +++ n_version=6.5.1
2020-10-11 22:59:29,344: DEBUG - +++ n_install_dir=/opt/node_n
2020-10-11 22:59:29,345: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2020-10-11 22:59:29,345: DEBUG - +++ export N_PREFIX=/opt/node_n
2020-10-11 22:59:29,345: DEBUG - +++ N_PREFIX=/opt/node_n
2020-10-11 22:59:29,345: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,345: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2020-10-11 22:59:29,346: DEBUG - ++ . /usr/share/yunohost/helpers.d/php
2020-10-11 22:59:29,346: DEBUG - +++ readonly YNH_DEFAULT_PHP_VERSION=7.3
2020-10-11 22:59:29,346: DEBUG - +++ YNH_DEFAULT_PHP_VERSION=7.3
2020-10-11 22:59:29,346: DEBUG - +++ YNH_PHP_VERSION=7.3
2020-10-11 22:59:29,346: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,346: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2020-10-11 22:59:29,347: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql
2020-10-11 22:59:29,347: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2020-10-11 22:59:29,347: DEBUG - +++ PSQL_VERSION=11
2020-10-11 22:59:29,347: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,347: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2020-10-11 22:59:29,348: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2020-10-11 22:59:29,348: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,348: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2020-10-11 22:59:29,348: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2020-10-11 22:59:29,348: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,348: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2020-10-11 22:59:29,348: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd
2020-10-11 22:59:29,348: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,348: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2020-10-11 22:59:29,348: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2020-10-11 22:59:29,349: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2020-10-11 22:59:29,349: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2020-10-11 22:59:29,349: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2020-10-11 22:59:29,349: DEBUG - + echo '[+...................] > Managing script failure...'
2020-10-11 22:59:29,350: DEBUG - + ynh_abort_if_errors
2020-10-11 22:59:29,350: DEBUG - + set -o errexit
2020-10-11 22:59:29,350: DEBUG - + set -o nounset
2020-10-11 22:59:29,350: DEBUG - + trap ynh_exit_properly EXIT
2020-10-11 22:59:29,451: INFO - [+...................] > Managing script failure...
2020-10-11 22:59:29,454: INFO - [#+..................] > Loading settings...
2020-10-11 22:59:29,455: DEBUG - + echo '[#+..................] > Loading settings...'
2020-10-11 22:59:29,455: DEBUG - + app=mastodon
2020-10-11 22:59:29,456: DEBUG - ++ ynh_app_setting_get --app=mastodon --key=domain
2020-10-11 22:59:29,457: DEBUG - ++ ynh_app_setting get mastodon domain
2020-10-11 22:59:29,457: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-10-11 22:59:29,458: DEBUG - ++ ACTION=get
2020-10-11 22:59:29,458: DEBUG - ++ APP=mastodon
2020-10-11 22:59:29,458: DEBUG - ++ KEY=domain
2020-10-11 22:59:29,458: DEBUG - ++ VALUE=
2020-10-11 22:59:29,458: DEBUG - ++ python2.7 -
2020-10-11 22:59:29,759: DEBUG - ++ [[ domain =~ ^(unprotected|skipped)_ ]]
2020-10-11 22:59:29,760: DEBUG - + domain=masto.maindomain.tld
2020-10-11 22:59:29,760: DEBUG - ++ ynh_app_setting_get --app=mastodon --key=path
2020-10-11 22:59:29,761: DEBUG - ++ ynh_app_setting get mastodon path
2020-10-11 22:59:29,762: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-10-11 22:59:29,762: DEBUG - ++ ACTION=get
2020-10-11 22:59:29,762: DEBUG - ++ APP=mastodon
2020-10-11 22:59:29,762: DEBUG - ++ KEY=path
2020-10-11 22:59:29,762: DEBUG - ++ VALUE=
2020-10-11 22:59:29,762: DEBUG - ++ python2.7 -
2020-10-11 22:59:29,963: DEBUG - ++ [[ path =~ ^(unprotected|skipped)_ ]]
2020-10-11 22:59:29,964: DEBUG - + path_url=/
2020-10-11 22:59:29,964: DEBUG - ++ ynh_app_setting_get --app=mastodon --key=final_path
2020-10-11 22:59:30,066: DEBUG - ++ ynh_app_setting get mastodon final_path
2020-10-11 22:59:30,067: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-10-11 22:59:30,067: DEBUG - ++ ACTION=get
2020-10-11 22:59:30,068: DEBUG - ++ APP=mastodon
2020-10-11 22:59:30,068: DEBUG - ++ KEY=final_path
2020-10-11 22:59:30,068: DEBUG - ++ VALUE=
2020-10-11 22:59:30,069: DEBUG - ++ python2.7 -
2020-10-11 22:59:30,169: DEBUG - ++ [[ final_path =~ ^(unprotected|skipped)_ ]]
2020-10-11 22:59:30,170: DEBUG - + final_path=/var/www/mastodon
2020-10-11 22:59:30,170: DEBUG - ++ ynh_app_setting_get --app=mastodon --key=db_name
2020-10-11 22:59:30,171: DEBUG - ++ ynh_app_setting get mastodon db_name
2020-10-11 22:59:30,171: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-10-11 22:59:30,172: DEBUG - ++ ACTION=get
2020-10-11 22:59:30,172: DEBUG - ++ APP=mastodon
2020-10-11 22:59:30,172: DEBUG - ++ KEY=db_name
2020-10-11 22:59:30,172: DEBUG - ++ VALUE=
2020-10-11 22:59:30,172: DEBUG - ++ python2.7 -
2020-10-11 22:59:30,373: DEBUG - ++ [[ db_name =~ ^(unprotected|skipped)_ ]]
2020-10-11 22:59:30,374: DEBUG - + db_name=mastodon_production
2020-10-11 22:59:30,374: DEBUG - + db_user=mastodon
2020-10-11 22:59:30,374: DEBUG - ++ ynh_app_setting_get --app=mastodon --key=db_pwd
2020-10-11 22:59:30,377: DEBUG - ++ ynh_app_setting get mastodon db_pwd
2020-10-11 22:59:30,377: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-10-11 22:59:30,377: DEBUG - ++ ACTION=get
2020-10-11 22:59:30,377: DEBUG - ++ APP=mastodon
2020-10-11 22:59:30,377: DEBUG - ++ KEY=db_pwd
2020-10-11 22:59:30,378: DEBUG - ++ VALUE=
2020-10-11 22:59:30,378: DEBUG - ++ python2.7 -
2020-10-11 22:59:30,479: DEBUG - ++ [[ db_pwd =~ ^(unprotected|skipped)_ ]]
2020-10-11 22:59:30,479: DEBUG - + db_pwd=**********
2020-10-11 22:59:30,582: DEBUG - + echo '[##+.................] > Validating restoration parameters...'
2020-10-11 22:59:30,583: DEBUG - + ynh_webpath_available --domain=masto.maindomain.tld --path_url=/
2020-10-11 22:59:30,685: DEBUG - + yunohost domain url-available masto.maindomain.tld /
2020-10-11 22:59:30,686: INFO - [##+.................] > Validating restoration parameters...
2020-10-11 22:59:31,289: DEBUG - False
2020-10-11 22:59:31,390: DEBUG - + test '!' -d /var/www/mastodon
2020-10-11 22:59:31,391: DEBUG - + echo '[###+................] > Restoring the nginx configuration...'
2020-10-11 22:59:31,392: DEBUG - + ynh_restore_file --origin_path=/etc/nginx/conf.d/masto.maindomain.tld.d/mastodon.conf
2020-10-11 22:59:31,494: DEBUG - + origin_path=/etc/nginx/conf.d/masto.maindomain.tld.d/mastodon.conf
2020-10-11 22:59:31,494: INFO - [###+................] > Restoring the nginx configuration...
2020-10-11 22:59:31,495: DEBUG - + dest_path=/etc/nginx/conf.d/masto.maindomain.tld.d/mastodon.conf
2020-10-11 22:59:31,495: DEBUG - + not_mandatory=0
2020-10-11 22:59:31,496: DEBUG - + local archive_path=/home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/etc/nginx/conf.d/masto.maindomain.tld.d/mastodon.conf
2020-10-11 22:59:31,496: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/etc/nginx/conf.d/masto.maindomain.tld.d/mastodon.conf ']'
2020-10-11 22:59:31,496: DEBUG - + '[' '!' -f /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/etc/nginx/conf.d/masto.maindomain.tld.d/mastodon.conf ']'
2020-10-11 22:59:31,496: DEBUG - + [[ -e /etc/nginx/conf.d/masto.maindomain.tld.d/mastodon.conf ]]
2020-10-11 22:59:31,497: DEBUG - ++ dirname /etc/nginx/conf.d/masto.maindomain.tld.d/mastodon.conf
2020-10-11 22:59:31,497: DEBUG - + mkdir --parents /etc/nginx/conf.d/masto.maindomain.tld.d
2020-10-11 22:59:31,497: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/20201005-200509
2020-10-11 22:59:31,498: DEBUG - + mv /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/etc/nginx/conf.d/masto.maindomain.tld.d/mastodon.conf /etc/nginx/conf.d/masto.maindomain.tld.d/mastodon.conf
2020-10-11 22:59:31,599: INFO - [####+...............] > Restoring the app main directory...
2020-10-11 22:59:31,600: DEBUG - + echo '[####+...............] > Restoring the app main directory...'
2020-10-11 22:59:31,600: DEBUG - + ynh_restore_file --origin_path=/var/www/mastodon
2020-10-11 22:59:31,602: DEBUG - + origin_path=/var/www/mastodon
2020-10-11 22:59:31,602: DEBUG - + dest_path=/var/www/mastodon
2020-10-11 22:59:31,602: DEBUG - + not_mandatory=0
2020-10-11 22:59:31,603: DEBUG - + local archive_path=/home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/var/www/mastodon
2020-10-11 22:59:31,603: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/var/www/mastodon ']'
2020-10-11 22:59:31,603: DEBUG - + [[ -e /var/www/mastodon ]]
2020-10-11 22:59:31,603: DEBUG - ++ dirname /var/www/mastodon
2020-10-11 22:59:31,603: DEBUG - + mkdir --parents /var/www
2020-10-11 22:59:31,603: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/20201005-200509
2020-10-11 22:59:31,604: DEBUG - + mv /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/var/www/mastodon /var/www/mastodon
2020-10-11 22:59:31,705: DEBUG - + echo '[#####+..............] > Recreating the dedicated system user...'
2020-10-11 22:59:31,706: DEBUG - + ynh_system_user_create --username=mastodon --home_dir=/var/www/mastodon
2020-10-11 22:59:31,808: DEBUG - + use_shell=0
2020-10-11 22:59:31,808: INFO - [#####+..............] > Recreating the dedicated system user...
2020-10-11 22:59:31,809: DEBUG - + home_dir=/var/www/mastodon
2020-10-11 22:59:31,809: DEBUG - + ynh_system_user_exists mastodon
2020-10-11 22:59:31,812: DEBUG - + getent passwd mastodon
2020-10-11 22:59:31,812: DEBUG - + '[' -n /var/www/mastodon ']'
2020-10-11 22:59:31,812: DEBUG - + local 'user_home_dir=--home-dir /var/www/mastodon'
2020-10-11 22:59:31,812: DEBUG - + '[' 0 -eq 1 ']'
2020-10-11 22:59:31,812: DEBUG - + local 'shell=--shell /usr/sbin/nologin'
2020-10-11 22:59:31,812: DEBUG - + useradd --home-dir /var/www/mastodon --system --user-group mastodon --shell /usr/sbin/nologin
2020-10-11 22:59:32,014: INFO - [######+.............] > Restoring user rights...
2020-10-11 22:59:32,016: DEBUG - + echo '[######+.............] > Restoring user rights...'
2020-10-11 22:59:32,017: DEBUG - + chown -R mastodon: /var/www/mastodon
2020-10-11 22:59:33,222: INFO - [#######+............] > Adding swap if needed...
2020-10-11 22:59:33,224: DEBUG - + echo '[#######+............] > Adding swap if needed...'
2020-10-11 22:59:33,224: DEBUG - ++ ynh_get_ram --total
2020-10-11 22:59:33,227: DEBUG - ++ ignore_swap=0
2020-10-11 22:59:33,228: DEBUG - ++ only_swap=0
2020-10-11 22:59:33,228: DEBUG - ++ free=0
2020-10-11 22:59:33,228: DEBUG - ++ total=1
2020-10-11 22:59:33,228: DEBUG - ++ '[' 0 -eq 1 ']'
2020-10-11 22:59:33,229: DEBUG - ++ '[' 0 -eq 1 ']'
2020-10-11 22:59:33,229: DEBUG - ++ '[' 1 -eq 1 ']'
2020-10-11 22:59:33,229: DEBUG - +++ vmstat --stats --unit M
2020-10-11 22:59:33,229: DEBUG - +++ grep 'total memory'
2020-10-11 22:59:33,230: DEBUG - +++ awk '{print $1}'
2020-10-11 22:59:33,230: DEBUG - ++ local total_ram=3850
2020-10-11 22:59:33,230: DEBUG - +++ vmstat --stats --unit M
2020-10-11 22:59:33,230: DEBUG - +++ grep 'total swap'
2020-10-11 22:59:33,231: DEBUG - +++ awk '{print $1}'
2020-10-11 22:59:33,231: DEBUG - ++ local total_swap=0
2020-10-11 22:59:33,231: DEBUG - ++ local total_ram_swap=3850
2020-10-11 22:59:33,231: DEBUG - ++ local ram=3850
2020-10-11 22:59:33,232: DEBUG - ++ '[' 0 -eq 1 ']'
2020-10-11 22:59:33,232: DEBUG - ++ '[' 0 -eq 1 ']'
2020-10-11 22:59:33,232: DEBUG - ++ echo 3850
2020-10-11 22:59:33,232: DEBUG - + total_memory=3850
2020-10-11 22:59:33,233: DEBUG - + swap_needed=0
2020-10-11 22:59:33,233: DEBUG - + '[' 3850 -lt 2560 ']'
2020-10-11 22:59:33,335: INFO - [########++..........] > Adding 0 Mo to swap...
2020-10-11 22:59:33,336: DEBUG - + echo '[########++..........] > Adding 0 Mo to swap...'
2020-10-11 22:59:33,336: DEBUG - + ynh_add_swap --size=0
2020-10-11 22:59:33,337: DEBUG - + declare -Ar args_array
2020-10-11 22:59:33,337: DEBUG - + local swap_max_size=0
2020-10-11 22:59:33,337: DEBUG - ++ df --output=avail /
2020-10-11 22:59:33,337: DEBUG - ++ sed 1d
2020-10-11 22:59:33,337: DEBUG - + local free_space=12687068
2020-10-11 22:59:33,338: DEBUG - + local usable_space=6343534
2020-10-11 22:59:33,338: DEBUG - + SD_CARD_CAN_SWAP=0
2020-10-11 22:59:33,338: DEBUG - + ynh_is_main_device_a_sd_card
2020-10-11 22:59:33,338: DEBUG - +++ findmnt / --nofsroot --uniq --output source --noheadings --first-only
2020-10-11 22:59:33,338: DEBUG - ++ lsblk --output PKNAME --noheadings /dev/sda1
2020-10-11 22:59:33,338: DEBUG - + local main_device=sda
2020-10-11 22:59:33,338: DEBUG - + echo sda
2020-10-11 22:59:33,339: DEBUG - + grep --quiet mmc
2020-10-11 22:59:33,339: DEBUG - + return 1
2020-10-11 22:59:33,339: DEBUG - + '[' 6343534 -ge 0 ']'
2020-10-11 22:59:33,339: DEBUG - + local swap_size=0
2020-10-11 22:59:33,339: DEBUG - + '[' 0 -ne 0 ']'
2020-10-11 22:59:33,441: DEBUG - + echo '[##########+.........] > Reinstalling dependencies...'
2020-10-11 22:59:33,441: DEBUG - + ynh_install_nodejs --nodejs_version=12
2020-10-11 22:59:33,543: DEBUG - + mkdir --parents /opt/node_n
2020-10-11 22:59:33,543: INFO - [##########+.........] > Reinstalling dependencies...
2020-10-11 22:59:33,544: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 22:59:33,544: INFO - Installation of N - Node.js version management
2020-10-11 22:59:33,544: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 22:59:33,545: DEBUG - ++ sed s@/usr/local/bin:@@
2020-10-11 22:59:33,545: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 22:59:33,545: DEBUG - + test -x /usr/bin/node
2020-10-11 22:59:33,545: DEBUG - + test -x /usr/bin/npm
2020-10-11 22:59:33,545: DEBUG - + /opt/node_n/bin/n --version
2020-10-11 22:59:33,545: DEBUG - + ynh_install_n
2020-10-11 22:59:33,545: DEBUG - + ynh_print_info '--message=Installation of N - Node.js version management'
2020-10-11 22:59:33,546: DEBUG - + echo 'Installation of N - Node.js version management'
2020-10-11 22:59:33,547: DEBUG - + mkdir --parents ../conf
2020-10-11 22:59:33,547: DEBUG - + echo 'SOURCE_URL=https://github.com/tj/n/archive/v6.5.1.tar.gz
2020-10-11 22:59:33,547: DEBUG - SOURCE_SUM=5833f15893b9951a9ed59487e87b6c181d96b83a525846255872c4f92f0d25dd'
2020-10-11 22:59:33,547: DEBUG - + ynh_setup_source --dest_dir=/opt/node_n/git --source_id=n
2020-10-11 22:59:33,548: DEBUG - + source_id=n
2020-10-11 22:59:33,548: DEBUG - + local src_file_path=/home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/n.src
2020-10-11 22:59:33,548: DEBUG - + '[' '!' -e /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/n.src ']'
2020-10-11 22:59:33,549: DEBUG - ++ grep SOURCE_URL= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/n.src
2020-10-11 22:59:33,549: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 22:59:33,549: DEBUG - + local src_url=https://github.com/tj/n/archive/v6.5.1.tar.gz
2020-10-11 22:59:33,549: DEBUG - ++ grep SOURCE_SUM= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/n.src
2020-10-11 22:59:33,549: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 22:59:33,549: DEBUG - + local src_sum=5833f15893b9951a9ed59487e87b6c181d96b83a525846255872c4f92f0d25dd
2020-10-11 22:59:33,650: DEBUG - ++ grep SOURCE_SUM_PRG= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/n.src
2020-10-11 22:59:33,650: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 22:59:33,650: DEBUG - + local src_sumprg=
2020-10-11 22:59:33,651: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 22:59:33,651: DEBUG - ++ grep SOURCE_FORMAT= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/n.src
2020-10-11 22:59:33,651: DEBUG - + local src_format=
2020-10-11 22:59:33,651: DEBUG - ++ grep SOURCE_EXTRACT= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/n.src
2020-10-11 22:59:33,651: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 22:59:33,652: DEBUG - + local src_extract=
2020-10-11 22:59:33,652: DEBUG - ++ grep SOURCE_IN_SUBDIR= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/n.src
2020-10-11 22:59:33,652: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 22:59:33,652: DEBUG - + local src_in_subdir=
2020-10-11 22:59:33,652: DEBUG - ++ grep SOURCE_FILENAME= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/n.src
2020-10-11 22:59:33,652: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 22:59:33,652: DEBUG - + local src_filename=
2020-10-11 22:59:33,653: DEBUG - + src_sumprg=sha256sum
2020-10-11 22:59:33,653: DEBUG - + src_in_subdir=true
2020-10-11 22:59:33,653: DEBUG - + src_format=tar.gz
2020-10-11 22:59:33,653: DEBUG - ++ echo tar.gz
2020-10-11 22:59:33,654: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2020-10-11 22:59:33,654: DEBUG - + src_format=tar.gz
2020-10-11 22:59:33,654: DEBUG - + src_extract=true
2020-10-11 22:59:33,654: DEBUG - + '[' '' = '' ']'
2020-10-11 22:59:33,654: DEBUG - + src_filename=n.tar.gz
2020-10-11 22:59:33,654: DEBUG - + local local_src=/opt/yunohost-apps-src/mastodon/n.tar.gz
2020-10-11 22:59:33,655: DEBUG - + test -e /opt/yunohost-apps-src/mastodon/n.tar.gz
2020-10-11 22:59:33,655: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=n.tar.gz https://github.com/tj/n/archive/v6.5.1.tar.gz
2020-10-11 22:59:34,358: DEBUG - + out='2020-10-11 22:59:34 URL:https://codeload.github.com/tj/n/tar.gz/v6.5.1 [28501] -> "n.tar.gz" [1]'
2020-10-11 22:59:34,358: DEBUG - + echo '5833f15893b9951a9ed59487e87b6c181d96b83a525846255872c4f92f0d25dd n.tar.gz'
2020-10-11 22:59:34,359: DEBUG - + sha256sum --check --status
2020-10-11 22:59:34,359: DEBUG - + mkdir --parents /opt/node_n/git
2020-10-11 22:59:34,360: DEBUG - + true
2020-10-11 22:59:34,360: DEBUG - + '[' tar.gz = zip ']'
2020-10-11 22:59:34,360: DEBUG - + local strip=
2020-10-11 22:59:34,360: DEBUG - + '[' true '!=' false ']'
2020-10-11 22:59:34,360: DEBUG - + '[' true == true ']'
2020-10-11 22:59:34,361: DEBUG - + local sub_dirs=1
2020-10-11 22:59:34,361: DEBUG - + strip='--strip-components 1'
2020-10-11 22:59:34,361: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2020-10-11 22:59:34,361: DEBUG - + tar --extract --file=n.tar.gz --directory=/opt/node_n/git --strip-components 1
2020-10-11 22:59:34,462: DEBUG - ++ find /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../sources/patches/ -type f -name 'n-*.patch'
2020-10-11 22:59:34,463: DEBUG - ++ wc --lines
2020-10-11 22:59:34,463: DEBUG - + ((  0 > 0  ))
2020-10-11 22:59:34,463: DEBUG - + test -e /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../sources/extra_files/n
2020-10-11 22:59:34,464: DEBUG - + cd /opt/node_n/git
2020-10-11 22:59:34,464: DEBUG - + PREFIX=/opt/node_n
2020-10-11 22:59:34,464: DEBUG - + make install
2020-10-11 22:59:34,464: DEBUG - mkdir -p /opt/node_n/bin/
2020-10-11 22:59:34,464: DEBUG - cp bin/n /opt/node_n/bin/n
2020-10-11 22:59:34,465: DEBUG - + ynh_replace_string '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
2020-10-11 22:59:34,567: DEBUG - + local delimit=@
2020-10-11 22:59:34,567: DEBUG - + match_string='^N_PREFIX=${N_PREFIX-.*}$'
2020-10-11 22:59:34,568: DEBUG - + replace_string='N_PREFIX=${N_PREFIX-/opt/node_n}'
2020-10-11 22:59:34,568: DEBUG - + sed --in-place 's@^N_PREFIX=${N_PREFIX-.*}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g' /opt/node_n/bin/n
2020-10-11 22:59:34,569: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 22:59:34,569: DEBUG - + test -x /usr/bin/node_n
2020-10-11 22:59:34,570: DEBUG - + test -x /usr/bin/npm_n
2020-10-11 22:59:34,570: DEBUG - ++ uname --machine
2020-10-11 22:59:34,571: DEBUG - + uname=x86_64
2020-10-11 22:59:34,571: DEBUG - + [[ x86_64 =~ aarch64 ]]
2020-10-11 22:59:34,571: DEBUG - + [[ x86_64 =~ arm64 ]]
2020-10-11 22:59:34,572: DEBUG - + n 12
2020-10-11 22:59:34,873: DEBUG - 
2020-10-11 22:59:34,873: DEBUG -   installing : node-v12.19.0
2020-10-11 22:59:34,974: DEBUG -        mkdir : /opt/node_n/n/versions/node/12.19.0
2020-10-11 22:59:34,974: DEBUG -        fetch : https://nodejs.org/dist/v12.19.0/node-v12.19.0-linux-x64.tar.xz
2020-10-11 22:59:38,008: DEBUG -    installed : v12.19.0 (with npm 6.14.8)
2020-10-11 22:59:38,009: DEBUG - 
2020-10-11 22:59:38,010: DEBUG - ++ find /opt/node_n/n/versions/node/12.19.0 -maxdepth 0
2020-10-11 22:59:38,010: DEBUG - ++ sort --version-sort
2020-10-11 22:59:38,010: DEBUG - ++ tail --lines=1
2020-10-11 22:59:38,011: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/12.19.0
2020-10-11 22:59:38,011: DEBUG - ++ basename /opt/node_n/n/versions/node/12.19.0
2020-10-11 22:59:38,011: DEBUG - + real_nodejs_version=12.19.0
2020-10-11 22:59:38,011: DEBUG - + '[' '!' -e /opt/node_n/n/versions/node/12 ']'
2020-10-11 22:59:38,012: DEBUG - + ln --symbolic --force --no-target-directory /opt/node_n/n/versions/node/12.19.0 /opt/node_n/n/versions/node/12
2020-10-11 22:59:38,012: DEBUG - + tee --append /opt/node_n/ynh_app_version
2020-10-11 22:59:38,012: DEBUG - + echo mastodon:12
2020-10-11 22:59:38,012: DEBUG - mastodon:12
2020-10-11 22:59:38,012: DEBUG - + ynh_app_setting_set --app=mastodon --key=nodejs_version --value=12
2020-10-11 22:59:38,216: DEBUG - + ynh_app_setting set mastodon nodejs_version 12
2020-10-11 22:59:38,216: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-10-11 22:59:38,216: DEBUG - + ACTION=set
2020-10-11 22:59:38,216: DEBUG - + APP=mastodon
2020-10-11 22:59:38,216: DEBUG - + KEY=nodejs_version
2020-10-11 22:59:38,217: DEBUG - + VALUE=12
2020-10-11 22:59:38,217: DEBUG - + python2.7 -
2020-10-11 22:59:38,317: DEBUG - + [[ nodejs_version =~ ^(unprotected|skipped)_ ]]
2020-10-11 22:59:38,318: DEBUG - + ynh_cron_upgrade_node
2020-10-11 22:59:38,319: DEBUG - + cat
2020-10-11 22:59:38,319: DEBUG - + chmod +x /opt/node_n/node_update.sh
2020-10-11 22:59:38,420: DEBUG - + cat
2020-10-11 22:59:38,420: DEBUG - + chmod +x /etc/cron.daily/node_update
2020-10-11 22:59:38,421: DEBUG - + ynh_use_nodejs
2020-10-11 22:59:38,421: DEBUG - ++ ynh_app_setting_get --app=mastodon --key=nodejs_version
2020-10-11 22:59:38,422: DEBUG - ++ ynh_app_setting get mastodon nodejs_version
2020-10-11 22:59:38,422: DEBUG - ++ [[ get == \d\e\l\e\t\e ]]
2020-10-11 22:59:38,422: DEBUG - ++ ACTION=get
2020-10-11 22:59:38,423: DEBUG - ++ APP=mastodon
2020-10-11 22:59:38,423: DEBUG - ++ KEY=nodejs_version
2020-10-11 22:59:38,423: DEBUG - ++ VALUE=
2020-10-11 22:59:38,423: DEBUG - ++ python2.7 -
2020-10-11 22:59:38,524: DEBUG - ++ [[ nodejs_version =~ ^(unprotected|skipped)_ ]]
2020-10-11 22:59:38,524: DEBUG - + nodejs_version=12
2020-10-11 22:59:38,525: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/12/bin
2020-10-11 22:59:38,525: DEBUG - + shopt -s expand_aliases
2020-10-11 22:59:38,525: DEBUG - + ynh_node=/opt/node_n/n/versions/node/12/bin/node
2020-10-11 22:59:38,525: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/12/bin/node
2020-10-11 22:59:38,526: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/12/bin/npm
2020-10-11 22:59:38,526: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/12/bin/npm
2020-10-11 22:59:38,526: DEBUG - + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: != *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\2\/\b\i\n* ]]
2020-10-11 22:59:38,526: DEBUG - + PATH=/opt/node_n/n/versions/node/12/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 22:59:38,527: DEBUG - + node_PATH=/opt/node_n/n/versions/node/12/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 22:59:38,527: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/12/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 22:59:38,527: DEBUG - + ynh_install_app_dependencies imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core g++ libprotobuf-dev protobuf-compiler pkg-config gcc autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev 'libgdbm3|libgdbm6' libgdbm-dev redis-server redis-tools postgresql postgresql-contrib libidn11-dev libicu-dev libjemalloc-dev curl apt-transport-https
2020-10-11 22:59:38,528: DEBUG - + local 'dependencies=imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core g++ libprotobuf-dev protobuf-compiler pkg-config gcc autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3|libgdbm6 libgdbm-dev redis-server redis-tools postgresql postgresql-contrib libidn11-dev libicu-dev libjemalloc-dev curl apt-transport-https'
2020-10-11 22:59:38,529: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2020-10-11 22:59:38,530: DEBUG - ++ echo 'imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core g++ libprotobuf-dev protobuf-compiler pkg-config gcc autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3|libgdbm6 libgdbm-dev redis-server redis-tools postgresql postgresql-contrib libidn11-dev libicu-dev libjemalloc-dev curl apt-transport-https'
2020-10-11 22:59:38,530: DEBUG - + dependencies='imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3|libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https'
2020-10-11 22:59:38,530: DEBUG - + local 'dependencies=imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3 | libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https'
2020-10-11 22:59:38,531: DEBUG - + local manifest_path=../manifest.json
2020-10-11 22:59:38,531: DEBUG - + '[' '!' -e ../manifest.json ']'
2020-10-11 22:59:38,531: DEBUG - + manifest_path=../settings/manifest.json
2020-10-11 22:59:38,532: DEBUG - ++ grep '\"version\": ' ../settings/manifest.json
2020-10-11 22:59:38,532: DEBUG - ++ cut '--delimiter="' --fields=4
2020-10-11 22:59:38,532: DEBUG - + local version=3.2.0~ynh1
2020-10-11 22:59:38,532: DEBUG - + '[' 10 -eq 0 ']'
2020-10-11 22:59:38,532: DEBUG - + local dep_app=mastodon
2020-10-11 22:59:38,533: DEBUG - + [[ imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3 | libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https =~ [<=>] ]]
2020-10-11 22:59:38,533: DEBUG - + grep --quiet php
2020-10-11 22:59:38,534: DEBUG - + echo imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3 '|' libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https
2020-10-11 22:59:38,538: DEBUG - + cat
2020-10-11 22:59:38,539: DEBUG - + ynh_package_install_from_equivs /tmp/mastodon-ynh-deps.control
2020-10-11 22:59:38,539: DEBUG - + local controlfile=/tmp/mastodon-ynh-deps.control
2020-10-11 22:59:38,539: DEBUG - ++ cut '--delimiter= ' --fields=2
2020-10-11 22:59:38,539: DEBUG - ++ grep '^Package: ' /tmp/mastodon-ynh-deps.control
2020-10-11 22:59:38,540: DEBUG - + local pkgname=mastodon-ynh-deps
2020-10-11 22:59:38,540: DEBUG - ++ cut '--delimiter= ' --fields=2
2020-10-11 22:59:38,648: DEBUG - ++ grep '^Version: ' /tmp/mastodon-ynh-deps.control
2020-10-11 22:59:38,649: DEBUG - + local pkgversion=3.2.0~ynh1
2020-10-11 22:59:38,650: DEBUG - + [[ -z mastodon-ynh-deps ]]
2020-10-11 22:59:38,650: DEBUG - + [[ -z 3.2.0~ynh1 ]]
2020-10-11 22:59:38,650: DEBUG - + ynh_package_update
2020-10-11 22:59:38,650: DEBUG - + ynh_apt update
2020-10-11 22:59:38,651: DEBUG - + ynh_wait_dpkg_free
2020-10-11 22:59:38,752: DEBUG - + return 0
2020-10-11 22:59:38,752: DEBUG - + LC_ALL=C
2020-10-11 22:59:38,753: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-10-11 22:59:38,753: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2020-10-11 22:59:39,054: DEBUG - Hit:1 http://deb.debian.org/debian buster InRelease
2020-10-11 22:59:39,055: DEBUG - Hit:2 http://security.debian.org buster/updates InRelease
2020-10-11 22:59:39,055: DEBUG - Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
2020-10-11 22:59:39,055: DEBUG - Get:4 http://deb.debian.org/debian buster-backports InRelease [46.7 kB]
2020-10-11 22:59:39,156: DEBUG - Hit:5 http://mirror.hetzner.de/debian/packages buster InRelease
2020-10-11 22:59:39,156: DEBUG - Hit:6 http://mirror.hetzner.de/debian/packages buster-updates InRelease
2020-10-11 22:59:39,157: DEBUG - Hit:7 http://forge.yunohost.org/debian buster InRelease
2020-10-11 22:59:39,157: DEBUG - Hit:8 http://mirror.hetzner.de/debian/packages buster-backports InRelease
2020-10-11 22:59:39,258: DEBUG - Hit:9 http://mirror.hetzner.de/debian/security buster/updates InRelease
2020-10-11 22:59:39,760: DEBUG - Hit:10 https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian10 ./ InRelease
2020-10-11 22:59:40,062: DEBUG - Get:11 http://deb.debian.org/debian buster-backports/main amd64 Packages [386 kB]
2020-10-11 22:59:41,366: DEBUG - Fetched 484 kB in 2s (207 kB/s)
2020-10-11 22:59:43,273: DEBUG - Reading package lists...
2020-10-11 22:59:43,273: DEBUG - ++ mktemp --directory
2020-10-11 22:59:43,274: DEBUG - + local TMPDIR=/tmp/tmp.92kL0a1TkC
2020-10-11 22:59:43,274: DEBUG - + echo 10
2020-10-11 22:59:43,274: DEBUG - + ynh_wait_dpkg_free
2020-10-11 22:59:43,475: DEBUG - + return 0
2020-10-11 22:59:43,476: DEBUG - + cp /tmp/mastodon-ynh-deps.control /tmp/tmp.92kL0a1TkC/control
2020-10-11 22:59:43,477: DEBUG - + cd /tmp/tmp.92kL0a1TkC
2020-10-11 22:59:43,477: DEBUG - + LC_ALL=C
2020-10-11 22:59:43,478: DEBUG - + equivs-build ./control
2020-10-11 22:59:44,682: DEBUG - + tee ./dpkg_log
2020-10-11 22:59:44,683: DEBUG - + LC_ALL=C
2020-10-11 22:59:44,683: DEBUG - + dpkg --force-depends --install ./mastodon-ynh-deps_3.2.0~ynh1_all.deb
2020-10-11 22:59:44,783: DEBUG - Selecting previously unselected package mastodon-ynh-deps.
2020-10-11 22:59:45,185: DEBUG - (Reading database ... 66788 files and directories currently installed.)
2020-10-11 22:59:45,186: DEBUG - Preparing to unpack .../mastodon-ynh-deps_3.2.0~ynh1_all.deb ...
2020-10-11 22:59:45,186: DEBUG - Unpacking mastodon-ynh-deps (3.2.0~ynh1) ...
2020-10-11 22:59:45,287: DEBUG - dpkg: mastodon-ynh-deps: dependency problems, but configuring anyway as you requested:
2020-10-11 22:59:45,287: DEBUG -  mastodon-ynh-deps depends on libpq-dev; however:
2020-10-11 22:59:45,288: DEBUG -   Package libpq-dev is not installed.
2020-10-11 22:59:45,288: DEBUG -  mastodon-ynh-deps depends on libxml2-dev; however:
2020-10-11 22:59:45,288: DEBUG -   Package libxml2-dev is not installed.
2020-10-11 22:59:45,289: DEBUG -  mastodon-ynh-deps depends on libxslt1-dev; however:
2020-10-11 22:59:45,289: DEBUG -   Package libxslt1-dev is not installed.
2020-10-11 22:59:45,289: DEBUG -  mastodon-ynh-deps depends on libprotobuf-dev; however:
2020-10-11 22:59:45,290: DEBUG -   Package libprotobuf-dev is not installed.
2020-10-11 22:59:45,290: DEBUG -  mastodon-ynh-deps depends on protobuf-compiler; however:
2020-10-11 22:59:45,290: DEBUG -   Package protobuf-compiler is not installed.
2020-10-11 22:59:45,291: DEBUG -  mastodon-ynh-deps depends on pkg-config; however:
2020-10-11 22:59:45,291: DEBUG -   Package pkg-config is not installed.
2020-10-11 22:59:45,291: DEBUG -  mastodon-ynh-deps depends on libssl-dev; however:
2020-10-11 22:59:45,292: DEBUG -   Package libssl-dev is not installed.
2020-10-11 22:59:45,292: DEBUG -  mastodon-ynh-deps depends on libyaml-dev; however:
2020-10-11 22:59:45,292: DEBUG -   Package libyaml-dev is not installed.
2020-10-11 22:59:45,292: DEBUG -  mastodon-ynh-deps depends on libreadline6-dev; however:
2020-10-11 22:59:45,293: DEBUG -   Package libreadline6-dev is not installed.
2020-10-11 22:59:45,293: DEBUG -  mastodon-ynh-deps depends on zlib1g-dev; however:
2020-10-11 22:59:45,293: DEBUG -   Package zlib1g-dev is not installed.
2020-10-11 22:59:45,293: DEBUG -  mastodon-ynh-deps depends on libncurses5-dev; however:
2020-10-11 22:59:45,294: DEBUG -   Package libncurses5-dev is not installed.
2020-10-11 22:59:45,294: DEBUG -  mastodon-ynh-deps depends on libffi-dev; however:
2020-10-11 22:59:45,294: DEBUG -   Package libffi-dev is not installed.
2020-10-11 22:59:45,295: DEBUG -  mastodon-ynh-deps depends on libgdbm-dev; however:
2020-10-11 22:59:45,295: DEBUG -   Package libgdbm-dev is not installed.
2020-10-11 22:59:45,295: DEBUG -  mastodon-ynh-deps depends on postgresql; however:
2020-10-11 22:59:45,295: DEBUG -   Package postgresql is not installed.
2020-10-11 22:59:45,296: DEBUG -  mastodon-ynh-deps depends on libidn11-dev; however:
2020-10-11 22:59:45,296: DEBUG -   Package libidn11-dev is not installed.
2020-10-11 22:59:45,296: DEBUG -  mastodon-ynh-deps depends on libicu-dev; however:
2020-10-11 22:59:45,296: DEBUG -   Package libicu-dev is not installed.
2020-10-11 22:59:45,296: DEBUG -  mastodon-ynh-deps depends on libjemalloc-dev; however:
2020-10-11 22:59:45,297: DEBUG -   Package libjemalloc-dev is not installed.
2020-10-11 22:59:45,297: DEBUG - 
2020-10-11 22:59:45,297: DEBUG - Setting up mastodon-ynh-deps (3.2.0~ynh1) ...
2020-10-11 22:59:45,297: DEBUG - + ynh_package_install --fix-broken
2020-10-11 22:59:45,297: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2020-10-11 22:59:45,298: DEBUG - + ynh_wait_dpkg_free
2020-10-11 22:59:45,499: DEBUG - + return 0
2020-10-11 22:59:45,499: DEBUG - + LC_ALL=C
2020-10-11 22:59:45,500: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-10-11 22:59:45,500: 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
2020-10-11 22:59:45,701: DEBUG - Reading package lists...
2020-10-11 22:59:46,002: DEBUG - Building dependency tree...
2020-10-11 22:59:46,003: DEBUG - Reading state information...
2020-10-11 22:59:46,204: DEBUG - Correcting dependencies... Done
2020-10-11 22:59:46,506: DEBUG - The following additional packages will be installed:
2020-10-11 22:59:46,506: DEBUG -   icu-devtools libffi-dev libgdbm-dev libicu-dev libidn11-dev libjemalloc-dev
2020-10-11 22:59:46,506: DEBUG -   libncurses-dev libpq-dev libprotobuf-dev libprotobuf-lite17 libprotobuf17
2020-10-11 22:59:46,507: DEBUG -   libprotoc17 libreadline-dev libssl-dev libxml2-dev libxslt1-dev libyaml-dev
2020-10-11 22:59:46,507: DEBUG -   pkg-config postgresql protobuf-compiler zlib1g-dev
2020-10-11 22:59:46,507: DEBUG - Suggested packages:
2020-10-11 22:59:46,507: DEBUG -   icu-doc ncurses-doc postgresql-doc-11 readline-doc libssl-doc libyaml-doc
2020-10-11 22:59:46,507: DEBUG -   postgresql-doc
2020-10-11 22:59:46,507: DEBUG - The following NEW packages will be installed:
2020-10-11 22:59:46,508: DEBUG -   icu-devtools libffi-dev libgdbm-dev libicu-dev libidn11-dev libjemalloc-dev
2020-10-11 22:59:46,508: DEBUG -   libncurses-dev libpq-dev libprotobuf-dev libprotobuf-lite17 libprotobuf17
2020-10-11 22:59:46,508: DEBUG -   libprotoc17 libreadline-dev libssl-dev libxml2-dev libxslt1-dev libyaml-dev
2020-10-11 22:59:46,508: DEBUG -   pkg-config postgresql protobuf-compiler zlib1g-dev
2020-10-11 22:59:47,110: DEBUG - 0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.
2020-10-11 22:59:47,111: DEBUG - Need to get 0 B/17.6 MB of archives.
2020-10-11 22:59:47,111: DEBUG - After this operation, 83.0 MB of additional disk space will be used.
2020-10-11 22:59:47,212: DEBUG - Selecting previously unselected package icu-devtools.
2020-10-11 22:59:47,213: DEBUG - (Reading database ... 66792 files and directories currently installed.)
2020-10-11 22:59:47,213: DEBUG - Preparing to unpack .../00-icu-devtools_63.1-6+deb10u1_amd64.deb ...
2020-10-11 22:59:47,213: DEBUG - Unpacking icu-devtools (63.1-6+deb10u1) ...
2020-10-11 22:59:47,313: DEBUG - Selecting previously unselected package libffi-dev:amd64.
2020-10-11 22:59:47,314: DEBUG - Preparing to unpack .../01-libffi-dev_3.2.1-9_amd64.deb ...
2020-10-11 22:59:47,314: DEBUG - Unpacking libffi-dev:amd64 (3.2.1-9) ...
2020-10-11 22:59:47,415: DEBUG - Selecting previously unselected package libgdbm-dev:amd64.
2020-10-11 22:59:47,415: DEBUG - Preparing to unpack .../02-libgdbm-dev_1.18.1-4_amd64.deb ...
2020-10-11 22:59:47,415: DEBUG - Unpacking libgdbm-dev:amd64 (1.18.1-4) ...
2020-10-11 22:59:47,415: DEBUG - Selecting previously unselected package libicu-dev:amd64.
2020-10-11 22:59:47,516: DEBUG - Preparing to unpack .../03-libicu-dev_63.1-6+deb10u1_amd64.deb ...
2020-10-11 22:59:47,516: DEBUG - Unpacking libicu-dev:amd64 (63.1-6+deb10u1) ...
2020-10-11 22:59:48,720: DEBUG - Selecting previously unselected package pkg-config.
2020-10-11 22:59:48,720: DEBUG - Preparing to unpack .../04-pkg-config_0.29-6_amd64.deb ...
2020-10-11 22:59:48,720: DEBUG - Unpacking pkg-config (0.29-6) ...
2020-10-11 22:59:48,821: DEBUG - Selecting previously unselected package libidn11-dev:amd64.
2020-10-11 22:59:48,821: DEBUG - Preparing to unpack .../05-libidn11-dev_1.33-2.2_amd64.deb ...
2020-10-11 22:59:48,821: DEBUG - Unpacking libidn11-dev:amd64 (1.33-2.2) ...
2020-10-11 22:59:48,922: DEBUG - Selecting previously unselected package libjemalloc-dev.
2020-10-11 22:59:48,922: DEBUG - Preparing to unpack .../06-libjemalloc-dev_5.1.0-3_amd64.deb ...
2020-10-11 22:59:48,923: DEBUG - Unpacking libjemalloc-dev (5.1.0-3) ...
2020-10-11 22:59:49,023: DEBUG - Selecting previously unselected package libncurses-dev:amd64.
2020-10-11 22:59:49,124: DEBUG - Preparing to unpack .../07-libncurses-dev_6.1+20181013-2+deb10u2_amd64.deb ...
2020-10-11 22:59:49,125: DEBUG - Unpacking libncurses-dev:amd64 (6.1+20181013-2+deb10u2) ...
2020-10-11 22:59:49,426: DEBUG - Selecting previously unselected package libpq-dev.
2020-10-11 22:59:49,427: DEBUG - Preparing to unpack .../08-libpq-dev_11.9-0+deb10u1_amd64.deb ...
2020-10-11 22:59:49,628: DEBUG - Unpacking libpq-dev (11.9-0+deb10u1) ...
2020-10-11 22:59:49,829: DEBUG - Selecting previously unselected package zlib1g-dev:amd64.
2020-10-11 22:59:49,829: DEBUG - Preparing to unpack .../09-zlib1g-dev_1%3a1.2.11.dfsg-1_amd64.deb ...
2020-10-11 22:59:49,829: DEBUG - Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-1) ...
2020-10-11 22:59:50,070: DEBUG - Selecting previously unselected package libprotobuf17:amd64.
2020-10-11 22:59:50,071: DEBUG - Preparing to unpack .../10-libprotobuf17_3.6.1.3-2_amd64.deb ...
2020-10-11 22:59:50,272: DEBUG - Unpacking libprotobuf17:amd64 (3.6.1.3-2) ...
2020-10-11 22:59:50,373: DEBUG - Selecting previously unselected package libprotobuf-lite17:amd64.
2020-10-11 22:59:50,373: DEBUG - Preparing to unpack .../11-libprotobuf-lite17_3.6.1.3-2_amd64.deb ...
2020-10-11 22:59:50,374: DEBUG - Unpacking libprotobuf-lite17:amd64 (3.6.1.3-2) ...
2020-10-11 22:59:50,474: DEBUG - Selecting previously unselected package libprotobuf-dev:amd64.
2020-10-11 22:59:50,474: DEBUG - Preparing to unpack .../12-libprotobuf-dev_3.6.1.3-2_amd64.deb ...
2020-10-11 22:59:50,475: DEBUG - Unpacking libprotobuf-dev:amd64 (3.6.1.3-2) ...
2020-10-11 22:59:50,775: DEBUG - Selecting previously unselected package libprotoc17:amd64.
2020-10-11 22:59:50,776: DEBUG - Preparing to unpack .../13-libprotoc17_3.6.1.3-2_amd64.deb ...
2020-10-11 22:59:50,776: DEBUG - Unpacking libprotoc17:amd64 (3.6.1.3-2) ...
2020-10-11 22:59:50,877: DEBUG - Selecting previously unselected package libreadline-dev:amd64.
2020-10-11 22:59:50,877: DEBUG - Preparing to unpack .../14-libreadline-dev_7.0-5_amd64.deb ...
2020-10-11 22:59:50,877: DEBUG - Unpacking libreadline-dev:amd64 (7.0-5) ...
2020-10-11 22:59:50,978: DEBUG - Selecting previously unselected package libssl-dev:amd64.
2020-10-11 22:59:50,978: DEBUG - Preparing to unpack .../15-libssl-dev_1.1.1d-0+deb10u3_amd64.deb ...
2020-10-11 22:59:50,978: DEBUG - Unpacking libssl-dev:amd64 (1.1.1d-0+deb10u3) ...
2020-10-11 22:59:51,279: DEBUG - Selecting previously unselected package libxml2-dev:amd64.
2020-10-11 22:59:51,279: DEBUG - Preparing to unpack .../16-libxml2-dev_2.9.4+dfsg1-7+b3_amd64.deb ...
2020-10-11 22:59:51,279: DEBUG - Unpacking libxml2-dev:amd64 (2.9.4+dfsg1-7+b3) ...
2020-10-11 22:59:51,480: DEBUG - Selecting previously unselected package libxslt1-dev:amd64.
2020-10-11 22:59:51,481: DEBUG - Preparing to unpack .../17-libxslt1-dev_1.1.32-2.2~deb10u1_amd64.deb ...
2020-10-11 22:59:51,481: DEBUG - Unpacking libxslt1-dev:amd64 (1.1.32-2.2~deb10u1) ...
2020-10-11 22:59:51,582: DEBUG - Selecting previously unselected package libyaml-dev:amd64.
2020-10-11 22:59:51,582: DEBUG - Preparing to unpack .../18-libyaml-dev_0.2.1-1_amd64.deb ...
2020-10-11 22:59:51,582: DEBUG - Unpacking libyaml-dev:amd64 (0.2.1-1) ...
2020-10-11 22:59:51,683: DEBUG - Selecting previously unselected package postgresql.
2020-10-11 22:59:51,683: DEBUG - Preparing to unpack .../19-postgresql_11+200+deb10u4_all.deb ...
2020-10-11 22:59:51,683: DEBUG - Unpacking postgresql (11+200+deb10u4) ...
2020-10-11 22:59:51,684: DEBUG - Selecting previously unselected package protobuf-compiler.
2020-10-11 22:59:51,784: DEBUG - Preparing to unpack .../20-protobuf-compiler_3.6.1.3-2_amd64.deb ...
2020-10-11 22:59:51,784: DEBUG - Unpacking protobuf-compiler (3.6.1.3-2) ...
2020-10-11 22:59:51,784: DEBUG - Setting up libncurses-dev:amd64 (6.1+20181013-2+deb10u2) ...
2020-10-11 22:59:51,785: DEBUG - Setting up libyaml-dev:amd64 (0.2.1-1) ...
2020-10-11 22:59:51,785: DEBUG - Setting up libprotobuf-lite17:amd64 (3.6.1.3-2) ...
2020-10-11 22:59:51,885: DEBUG - Setting up libpq-dev (11.9-0+deb10u1) ...
2020-10-11 22:59:51,886: DEBUG - Setting up libreadline-dev:amd64 (7.0-5) ...
2020-10-11 22:59:51,886: DEBUG - Setting up libffi-dev:amd64 (3.2.1-9) ...
2020-10-11 22:59:51,886: DEBUG - Setting up libjemalloc-dev (5.1.0-3) ...
2020-10-11 22:59:51,886: DEBUG - Setting up libssl-dev:amd64 (1.1.1d-0+deb10u3) ...
2020-10-11 22:59:51,887: DEBUG - Setting up icu-devtools (63.1-6+deb10u1) ...
2020-10-11 22:59:51,887: DEBUG - Setting up pkg-config (0.29-6) ...
2020-10-11 22:59:51,987: DEBUG - Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-1) ...
2020-10-11 22:59:51,987: DEBUG - Setting up libprotobuf17:amd64 (3.6.1.3-2) ...
2020-10-11 22:59:51,988: DEBUG - Setting up postgresql (11+200+deb10u4) ...
2020-10-11 22:59:51,988: DEBUG - Setting up libgdbm-dev:amd64 (1.18.1-4) ...
2020-10-11 22:59:51,988: DEBUG - Setting up libicu-dev:amd64 (63.1-6+deb10u1) ...
2020-10-11 22:59:51,988: DEBUG - Setting up libidn11-dev:amd64 (1.33-2.2) ...
2020-10-11 22:59:51,988: DEBUG - Setting up libprotoc17:amd64 (3.6.1.3-2) ...
2020-10-11 22:59:51,988: DEBUG - Setting up protobuf-compiler (3.6.1.3-2) ...
2020-10-11 22:59:51,988: DEBUG - Setting up libprotobuf-dev:amd64 (3.6.1.3-2) ...
2020-10-11 22:59:51,988: DEBUG - Setting up libxml2-dev:amd64 (2.9.4+dfsg1-7+b3) ...
2020-10-11 22:59:51,989: DEBUG - Setting up libxslt1-dev:amd64 (1.1.32-2.2~deb10u1) ...
2020-10-11 22:59:52,089: DEBUG - Processing triggers for man-db (2.8.5-2) ...
2020-10-11 22:59:52,593: DEBUG - Processing triggers for libc-bin (2.28-10) ...
2020-10-11 22:59:52,894: DEBUG - Updating loolwsd systemplate
2020-10-11 22:59:53,096: DEBUG - + [[ -n /tmp/tmp.92kL0a1TkC ]]
2020-10-11 22:59:53,096: DEBUG - + rm --recursive --force /tmp/tmp.92kL0a1TkC
2020-10-11 22:59:53,097: DEBUG - + ynh_package_is_installed mastodon-ynh-deps
2020-10-11 22:59:53,101: DEBUG - + ynh_wait_dpkg_free
2020-10-11 22:59:53,202: DEBUG - + return 0
2020-10-11 22:59:53,202: DEBUG - + grep --count 'ok installed'
2020-10-11 22:59:53,203: DEBUG - + dpkg-query --show '--showformat=${Status}' mastodon-ynh-deps
2020-10-11 22:59:53,203: DEBUG - + rm /tmp/mastodon-ynh-deps.control
2020-10-11 22:59:53,303: DEBUG - + ynh_app_setting_set --app=mastodon --key=apt_dependencies '--value=imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3 | libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https'
2020-10-11 22:59:53,408: DEBUG - + ynh_app_setting set mastodon apt_dependencies 'imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3 | libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https'
2020-10-11 22:59:53,410: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-10-11 22:59:53,410: DEBUG - + ACTION=set
2020-10-11 22:59:53,410: DEBUG - + APP=mastodon
2020-10-11 22:59:53,411: DEBUG - + KEY=apt_dependencies
2020-10-11 22:59:53,411: DEBUG - + VALUE='imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3 | libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https'
2020-10-11 22:59:53,412: DEBUG - + python2.7 -
2020-10-11 22:59:53,512: DEBUG - + [[ apt_dependencies =~ ^(unprotected|skipped)_ ]]
2020-10-11 22:59:53,513: DEBUG - + ynh_install_extra_app_dependencies '--repo=deb https://dl.yarnpkg.com/debian/ stable main' --package=yarn --key=https://dl.yarnpkg.com/debian/pubkey.gpg
2020-10-11 22:59:53,616: DEBUG - + name=mastodon
2020-10-11 22:59:53,616: DEBUG - + key=https://dl.yarnpkg.com/debian/pubkey.gpg
2020-10-11 22:59:53,617: DEBUG - + '[' -n https://dl.yarnpkg.com/debian/pubkey.gpg ']'
2020-10-11 22:59:53,617: DEBUG - + key=--key=https://dl.yarnpkg.com/debian/pubkey.gpg
2020-10-11 22:59:53,617: DEBUG - + ynh_install_extra_repo '--repo=deb https://dl.yarnpkg.com/debian/ stable main' --key=https://dl.yarnpkg.com/debian/pubkey.gpg --priority=995 --name=mastodon
2020-10-11 22:59:53,920: DEBUG - + name=mastodon
2020-10-11 22:59:53,920: DEBUG - + append=0
2020-10-11 22:59:53,920: DEBUG - + key=https://dl.yarnpkg.com/debian/pubkey.gpg
2020-10-11 22:59:53,920: DEBUG - + priority=995
2020-10-11 22:59:53,920: DEBUG - + '[' 0 -eq 1 ']'
2020-10-11 22:59:53,921: DEBUG - + append=
2020-10-11 22:59:53,921: DEBUG - + wget_append=tee
2020-10-11 22:59:53,921: DEBUG - + repo='https://dl.yarnpkg.com/debian/ stable main'
2020-10-11 22:59:53,921: DEBUG - ++ echo 'https://dl.yarnpkg.com/debian/ stable main'
2020-10-11 22:59:53,921: DEBUG - ++ awk '{ print $1 }'
2020-10-11 22:59:53,921: DEBUG - + local uri=https://dl.yarnpkg.com/debian/
2020-10-11 22:59:53,922: DEBUG - ++ awk '{ print $2 }'
2020-10-11 22:59:53,922: DEBUG - ++ echo 'https://dl.yarnpkg.com/debian/ stable main'
2020-10-11 22:59:53,922: DEBUG - + local suite=stable
2020-10-11 22:59:53,922: DEBUG - + local component=main
2020-10-11 22:59:53,922: DEBUG - + ynh_add_repo --uri=https://dl.yarnpkg.com/debian/ --suite=stable --component=main --name=mastodon
2020-10-11 22:59:54,225: DEBUG - + name=mastodon
2020-10-11 22:59:54,225: DEBUG - + append=0
2020-10-11 22:59:54,226: DEBUG - + '[' 0 -eq 1 ']'
2020-10-11 22:59:54,226: DEBUG - + append=tee
2020-10-11 22:59:54,226: DEBUG - + mkdir --parents /etc/apt/sources.list.d
2020-10-11 22:59:54,226: DEBUG - + echo 'deb https://dl.yarnpkg.com/debian/ stable main'
2020-10-11 22:59:54,227: DEBUG - + tee /etc/apt/sources.list.d/mastodon.list
2020-10-11 22:59:54,227: DEBUG - deb https://dl.yarnpkg.com/debian/ stable main
2020-10-11 22:59:54,227: DEBUG - + local pin=dl.yarnpkg.com/debian/
2020-10-11 22:59:54,227: DEBUG - + pin=dl.yarnpkg.com
2020-10-11 22:59:54,227: DEBUG - + '[' -n 995 ']'
2020-10-11 22:59:54,227: DEBUG - + priority=--priority=995
2020-10-11 22:59:54,228: DEBUG - + ynh_pin_repo '--package=*' '--pin=origin "dl.yarnpkg.com"' --priority=995 --name=mastodon
2020-10-11 22:59:54,531: DEBUG - + package='*'
2020-10-11 22:59:54,531: DEBUG - + priority=995
2020-10-11 22:59:54,532: DEBUG - + name=mastodon
2020-10-11 22:59:54,532: DEBUG - + append=0
2020-10-11 22:59:54,532: DEBUG - + '[' 0 -eq 1 ']'
2020-10-11 22:59:54,532: DEBUG - + append=tee
2020-10-11 22:59:54,532: DEBUG - + mkdir --parents /etc/apt/preferences.d
2020-10-11 22:59:54,533: DEBUG - + echo 'Package: *
2020-10-11 22:59:54,533: DEBUG - Pin: origin "dl.yarnpkg.com"
2020-10-11 22:59:54,533: DEBUG - Pin-Priority: 995
2020-10-11 22:59:54,533: DEBUG - '
2020-10-11 22:59:54,534: DEBUG - + tee /etc/apt/preferences.d/mastodon
2020-10-11 22:59:54,534: DEBUG - Package: *
2020-10-11 22:59:54,534: DEBUG - Pin: origin "dl.yarnpkg.com"
2020-10-11 22:59:54,535: DEBUG - Pin-Priority: 995
2020-10-11 22:59:54,535: DEBUG - 
2020-10-11 22:59:54,535: DEBUG - + '[' -n https://dl.yarnpkg.com/debian/pubkey.gpg ']'
2020-10-11 22:59:54,535: DEBUG - + mkdir --parents /etc/apt/trusted.gpg.d
2020-10-11 22:59:54,536: DEBUG - + wget --timeout 900 --quiet https://dl.yarnpkg.com/debian/pubkey.gpg --output-document=-
2020-10-11 22:59:54,536: DEBUG - + gpg --dearmor
2020-10-11 22:59:54,536: DEBUG - + tee /etc/apt/trusted.gpg.d/mastodon.gpg
2020-10-11 22:59:54,837: DEBUG - + ynh_package_update
2020-10-11 22:59:54,838: DEBUG - + ynh_apt update
2020-10-11 22:59:54,838: DEBUG - + ynh_wait_dpkg_free
2020-10-11 22:59:55,039: DEBUG - + return 0
2020-10-11 22:59:55,040: DEBUG - + LC_ALL=C
2020-10-11 22:59:55,040: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-10-11 22:59:55,041: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2020-10-11 22:59:55,242: DEBUG - Hit:1 http://deb.debian.org/debian buster InRelease
2020-10-11 22:59:55,243: DEBUG - Hit:2 http://deb.debian.org/debian buster-updates InRelease
2020-10-11 22:59:55,243: DEBUG - Hit:3 http://deb.debian.org/debian buster-backports InRelease
2020-10-11 22:59:55,243: DEBUG - Hit:4 http://security.debian.org buster/updates InRelease
2020-10-11 22:59:55,243: DEBUG - Hit:5 http://mirror.hetzner.de/debian/packages buster InRelease
2020-10-11 22:59:55,344: DEBUG - Hit:6 http://mirror.hetzner.de/debian/packages buster-updates InRelease
2020-10-11 22:59:55,345: DEBUG - Hit:7 http://forge.yunohost.org/debian buster InRelease
2020-10-11 22:59:55,345: DEBUG - Hit:8 http://mirror.hetzner.de/debian/packages buster-backports InRelease
2020-10-11 22:59:55,345: DEBUG - Hit:9 http://mirror.hetzner.de/debian/security buster/updates InRelease
2020-10-11 22:59:55,346: DEBUG - Get:10 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
2020-10-11 22:59:55,647: DEBUG - Hit:11 https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian10 ./ InRelease
2020-10-11 22:59:57,452: DEBUG - Get:12 https://dl.yarnpkg.com/debian stable/main amd64 Packages [10.1 kB]
2020-10-11 22:59:57,553: DEBUG - Get:13 https://dl.yarnpkg.com/debian stable/main all Packages [10.1 kB]
2020-10-11 22:59:57,654: DEBUG - Fetched 37.2 kB in 2s (15.3 kB/s)
2020-10-11 22:59:59,170: DEBUG - Reading package lists...
2020-10-11 22:59:59,171: DEBUG - + ynh_add_app_dependencies --package=yarn
2020-10-11 22:59:59,172: DEBUG - + replace=0
2020-10-11 22:59:59,173: DEBUG - + local current_dependencies=
2020-10-11 22:59:59,173: DEBUG - + '[' 0 -eq 0 ']'
2020-10-11 22:59:59,173: DEBUG - + local dep_app=mastodon
2020-10-11 22:59:59,173: DEBUG - + ynh_package_is_installed --package=mastodon-ynh-deps
2020-10-11 22:59:59,174: DEBUG - + ynh_wait_dpkg_free
2020-10-11 22:59:59,375: DEBUG - + return 0
2020-10-11 22:59:59,376: DEBUG - + dpkg-query --show '--showformat=${Status}' mastodon-ynh-deps
2020-10-11 22:59:59,376: DEBUG - + grep --count 'ok installed'
2020-10-11 22:59:59,376: DEBUG - ++ dpkg-query --show '--showformat=${Depends}' mastodon-ynh-deps
2020-10-11 22:59:59,376: DEBUG - + current_dependencies='imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3 | libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https '
2020-10-11 22:59:59,376: DEBUG - + current_dependencies='imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3|libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https '
2020-10-11 22:59:59,377: DEBUG - + ynh_install_app_dependencies 'imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3|libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https yarn'
2020-10-11 22:59:59,377: DEBUG - + local 'dependencies=imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3|libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https yarn'
2020-10-11 22:59:59,377: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2020-10-11 22:59:59,377: DEBUG - ++ echo 'imagemagick, ffmpeg, libpq-dev, libxml2-dev, libxslt1-dev, file, git-core, g++, libprotobuf-dev, protobuf-compiler, pkg-config, gcc, autoconf, bison, build-essential, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libgdbm3|libgdbm6, libgdbm-dev, redis-server, redis-tools, postgresql, postgresql-contrib, libidn11-dev, libicu-dev, libjemalloc-dev, curl, apt-transport-https yarn'
2020-10-11 22:59:59,378: DEBUG - + dependencies='imagemagick,, ffmpeg,, libpq-dev,, libxml2-dev,, libxslt1-dev,, file,, git-core,, g++,, libprotobuf-dev,, protobuf-compiler,, pkg-config,, gcc,, autoconf,, bison,, build-essential,, libssl-dev,, libyaml-dev,, libreadline6-dev,, zlib1g-dev,, libncurses5-dev,, libffi-dev,, libgdbm3|libgdbm6,, libgdbm-dev,, redis-server,, redis-tools,, postgresql,, postgresql-contrib,, libidn11-dev,, libicu-dev,, libjemalloc-dev,, curl,, apt-transport-https, yarn'
2020-10-11 22:59:59,378: DEBUG - + local 'dependencies=imagemagick,, ffmpeg,, libpq-dev,, libxml2-dev,, libxslt1-dev,, file,, git-core,, g++,, libprotobuf-dev,, protobuf-compiler,, pkg-config,, gcc,, autoconf,, bison,, build-essential,, libssl-dev,, libyaml-dev,, libreadline6-dev,, zlib1g-dev,, libncurses5-dev,, libffi-dev,, libgdbm3 | libgdbm6,, libgdbm-dev,, redis-server,, redis-tools,, postgresql,, postgresql-contrib,, libidn11-dev,, libicu-dev,, libjemalloc-dev,, curl,, apt-transport-https, yarn'
2020-10-11 22:59:59,378: DEBUG - + local manifest_path=../manifest.json
2020-10-11 22:59:59,379: DEBUG - + '[' '!' -e ../manifest.json ']'
2020-10-11 22:59:59,379: DEBUG - + manifest_path=../settings/manifest.json
2020-10-11 22:59:59,379: DEBUG - ++ grep '\"version\": ' ../settings/manifest.json
2020-10-11 22:59:59,379: DEBUG - ++ cut '--delimiter="' --fields=4
2020-10-11 22:59:59,379: DEBUG - + local version=3.2.0~ynh1
2020-10-11 22:59:59,379: DEBUG - + '[' 10 -eq 0 ']'
2020-10-11 22:59:59,379: DEBUG - + local dep_app=mastodon
2020-10-11 22:59:59,379: DEBUG - + [[ imagemagick,, ffmpeg,, libpq-dev,, libxml2-dev,, libxslt1-dev,, file,, git-core,, g++,, libprotobuf-dev,, protobuf-compiler,, pkg-config,, gcc,, autoconf,, bison,, build-essential,, libssl-dev,, libyaml-dev,, libreadline6-dev,, zlib1g-dev,, libncurses5-dev,, libffi-dev,, libgdbm3 | libgdbm6,, libgdbm-dev,, redis-server,, redis-tools,, postgresql,, postgresql-contrib,, libidn11-dev,, libicu-dev,, libjemalloc-dev,, curl,, apt-transport-https, yarn =~ [<=>] ]]
2020-10-11 22:59:59,380: DEBUG - + grep --quiet php
2020-10-11 22:59:59,380: DEBUG - + echo imagemagick,, ffmpeg,, libpq-dev,, libxml2-dev,, libxslt1-dev,, file,, git-core,, g++,, libprotobuf-dev,, protobuf-compiler,, pkg-config,, gcc,, autoconf,, bison,, build-essential,, libssl-dev,, libyaml-dev,, libreadline6-dev,, zlib1g-dev,, libncurses5-dev,, libffi-dev,, libgdbm3 '|' libgdbm6,, libgdbm-dev,, redis-server,, redis-tools,, postgresql,, postgresql-contrib,, libidn11-dev,, libicu-dev,, libjemalloc-dev,, curl,, apt-transport-https, yarn
2020-10-11 22:59:59,380: DEBUG - + cat
2020-10-11 22:59:59,380: DEBUG - + ynh_package_install_from_equivs /tmp/mastodon-ynh-deps.control
2020-10-11 22:59:59,380: DEBUG - + local controlfile=/tmp/mastodon-ynh-deps.control
2020-10-11 22:59:59,381: DEBUG - ++ grep '^Package: ' /tmp/mastodon-ynh-deps.control
2020-10-11 22:59:59,381: DEBUG - ++ cut '--delimiter= ' --fields=2
2020-10-11 22:59:59,381: DEBUG - + local pkgname=mastodon-ynh-deps
2020-10-11 22:59:59,381: DEBUG - ++ grep '^Version: ' /tmp/mastodon-ynh-deps.control
2020-10-11 22:59:59,381: DEBUG - ++ cut '--delimiter= ' --fields=2
2020-10-11 22:59:59,381: DEBUG - + local pkgversion=3.2.0~ynh1
2020-10-11 22:59:59,381: DEBUG - + [[ -z mastodon-ynh-deps ]]
2020-10-11 22:59:59,382: DEBUG - + [[ -z 3.2.0~ynh1 ]]
2020-10-11 22:59:59,382: DEBUG - + ynh_package_update
2020-10-11 22:59:59,382: DEBUG - + ynh_apt update
2020-10-11 22:59:59,382: DEBUG - + ynh_wait_dpkg_free
2020-10-11 22:59:59,483: DEBUG - + return 0
2020-10-11 22:59:59,484: DEBUG - + LC_ALL=C
2020-10-11 22:59:59,484: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-10-11 22:59:59,484: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2020-10-11 22:59:59,786: DEBUG - Hit:1 http://deb.debian.org/debian buster InRelease
2020-10-11 22:59:59,786: DEBUG - Hit:2 http://deb.debian.org/debian buster-updates InRelease
2020-10-11 22:59:59,786: DEBUG - Hit:3 http://deb.debian.org/debian buster-backports InRelease
2020-10-11 22:59:59,786: DEBUG - Hit:4 http://security.debian.org buster/updates InRelease
2020-10-11 22:59:59,786: DEBUG - Hit:5 http://mirror.hetzner.de/debian/packages buster InRelease
2020-10-11 22:59:59,787: DEBUG - Hit:6 http://mirror.hetzner.de/debian/packages buster-updates InRelease
2020-10-11 22:59:59,787: DEBUG - Hit:7 http://forge.yunohost.org/debian buster InRelease
2020-10-11 22:59:59,787: DEBUG - Hit:8 http://mirror.hetzner.de/debian/packages buster-backports InRelease
2020-10-11 22:59:59,887: DEBUG - Hit:9 http://mirror.hetzner.de/debian/security buster/updates InRelease
2020-10-11 22:59:59,887: DEBUG - Hit:10 https://dl.yarnpkg.com/debian stable InRelease
2020-10-11 23:00:00,188: DEBUG - Hit:11 https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian10 ./ InRelease
2020-10-11 23:00:04,602: DEBUG - Reading package lists...
2020-10-11 23:00:04,602: DEBUG - ++ mktemp --directory
2020-10-11 23:00:04,603: DEBUG - + local TMPDIR=/tmp/tmp.V4NEPo9neZ
2020-10-11 23:00:04,603: DEBUG - + echo 10
2020-10-11 23:00:04,603: DEBUG - + ynh_wait_dpkg_free
2020-10-11 23:00:04,704: DEBUG - + return 0
2020-10-11 23:00:04,704: DEBUG - + cp /tmp/mastodon-ynh-deps.control /tmp/tmp.V4NEPo9neZ/control
2020-10-11 23:00:04,704: DEBUG - + cd /tmp/tmp.V4NEPo9neZ
2020-10-11 23:00:04,704: DEBUG - + LC_ALL=C
2020-10-11 23:00:04,705: DEBUG - + equivs-build ./control
2020-10-11 23:00:05,708: DEBUG - + LC_ALL=C
2020-10-11 23:00:05,708: DEBUG - + dpkg --force-depends --install ./mastodon-ynh-deps_3.2.0~ynh1_all.deb
2020-10-11 23:00:05,708: DEBUG - + tee ./dpkg_log
2020-10-11 23:00:05,810: DEBUG - (Reading database ... 67839 files and directories currently installed.)
2020-10-11 23:00:05,911: DEBUG - Preparing to unpack .../mastodon-ynh-deps_3.2.0~ynh1_all.deb ...
2020-10-11 23:00:06,012: DEBUG - Unpacking mastodon-ynh-deps (3.2.0~ynh1) over (3.2.0~ynh1) ...
2020-10-11 23:00:06,114: DEBUG - dpkg: mastodon-ynh-deps: dependency problems, but configuring anyway as you requested:
2020-10-11 23:00:06,114: DEBUG -  mastodon-ynh-deps depends on yarn; however:
2020-10-11 23:00:06,114: DEBUG -   Package yarn is not installed.
2020-10-11 23:00:06,114: DEBUG - 
2020-10-11 23:00:06,115: DEBUG - Setting up mastodon-ynh-deps (3.2.0~ynh1) ...
2020-10-11 23:00:06,115: DEBUG - + ynh_package_install --fix-broken
2020-10-11 23:00:06,115: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2020-10-11 23:00:06,115: DEBUG - + ynh_wait_dpkg_free
2020-10-11 23:00:06,316: DEBUG - + return 0
2020-10-11 23:00:06,316: DEBUG - + LC_ALL=C
2020-10-11 23:00:06,316: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-10-11 23:00:06,317: 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
2020-10-11 23:00:06,517: DEBUG - Reading package lists...
2020-10-11 23:00:06,919: DEBUG - Building dependency tree...
2020-10-11 23:00:06,919: DEBUG - Reading state information...
2020-10-11 23:00:07,120: DEBUG - Correcting dependencies... Done
2020-10-11 23:00:07,321: DEBUG - The following additional packages will be installed:
2020-10-11 23:00:07,322: DEBUG -   yarn
2020-10-11 23:00:07,322: DEBUG - Recommended packages:
2020-10-11 23:00:07,322: DEBUG -   nodejs
2020-10-11 23:00:07,423: DEBUG - The following NEW packages will be installed:
2020-10-11 23:00:07,423: DEBUG -   yarn
2020-10-11 23:00:07,925: DEBUG - 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2020-10-11 23:00:07,926: DEBUG - Need to get 0 B/891 kB of archives.
2020-10-11 23:00:07,926: DEBUG - After this operation, 5407 kB of additional disk space will be used.
2020-10-11 23:00:08,026: DEBUG - Selecting previously unselected package yarn.
2020-10-11 23:00:08,027: DEBUG - (Reading database ... 67839 files and directories currently installed.)
2020-10-11 23:00:08,027: DEBUG - Preparing to unpack .../archives/yarn_1.22.5-1_all.deb ...
2020-10-11 23:00:08,027: DEBUG - Unpacking yarn (1.22.5-1) ...
2020-10-11 23:00:08,350: DEBUG - Setting up yarn (1.22.5-1) ...
2020-10-11 23:00:08,652: DEBUG - Updating loolwsd systemplate
2020-10-11 23:00:08,752: DEBUG - + [[ -n /tmp/tmp.V4NEPo9neZ ]]
2020-10-11 23:00:08,753: DEBUG - + rm --recursive --force /tmp/tmp.V4NEPo9neZ
2020-10-11 23:00:08,753: DEBUG - + ynh_package_is_installed mastodon-ynh-deps
2020-10-11 23:00:08,756: DEBUG - + ynh_wait_dpkg_free
2020-10-11 23:00:08,957: DEBUG - + return 0
2020-10-11 23:00:08,957: DEBUG - + dpkg-query --show '--showformat=${Status}' mastodon-ynh-deps
2020-10-11 23:00:08,958: DEBUG - + grep --count 'ok installed'
2020-10-11 23:00:08,958: DEBUG - + rm /tmp/mastodon-ynh-deps.control
2020-10-11 23:00:08,958: DEBUG - + ynh_app_setting_set --app=mastodon --key=apt_dependencies '--value=imagemagick,, ffmpeg,, libpq-dev,, libxml2-dev,, libxslt1-dev,, file,, git-core,, g++,, libprotobuf-dev,, protobuf-compiler,, pkg-config,, gcc,, autoconf,, bison,, build-essential,, libssl-dev,, libyaml-dev,, libreadline6-dev,, zlib1g-dev,, libncurses5-dev,, libffi-dev,, libgdbm3 | libgdbm6,, libgdbm-dev,, redis-server,, redis-tools,, postgresql,, postgresql-contrib,, libidn11-dev,, libicu-dev,, libjemalloc-dev,, curl,, apt-transport-https, yarn'
2020-10-11 23:00:09,060: DEBUG - + ynh_app_setting set mastodon apt_dependencies 'imagemagick,, ffmpeg,, libpq-dev,, libxml2-dev,, libxslt1-dev,, file,, git-core,, g++,, libprotobuf-dev,, protobuf-compiler,, pkg-config,, gcc,, autoconf,, bison,, build-essential,, libssl-dev,, libyaml-dev,, libreadline6-dev,, zlib1g-dev,, libncurses5-dev,, libffi-dev,, libgdbm3 | libgdbm6,, libgdbm-dev,, redis-server,, redis-tools,, postgresql,, postgresql-contrib,, libidn11-dev,, libicu-dev,, libjemalloc-dev,, curl,, apt-transport-https, yarn'
2020-10-11 23:00:09,061: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-10-11 23:00:09,061: DEBUG - + ACTION=set
2020-10-11 23:00:09,061: DEBUG - + APP=mastodon
2020-10-11 23:00:09,062: DEBUG - + KEY=apt_dependencies
2020-10-11 23:00:09,062: DEBUG - + VALUE='imagemagick,, ffmpeg,, libpq-dev,, libxml2-dev,, libxslt1-dev,, file,, git-core,, g++,, libprotobuf-dev,, protobuf-compiler,, pkg-config,, gcc,, autoconf,, bison,, build-essential,, libssl-dev,, libyaml-dev,, libreadline6-dev,, zlib1g-dev,, libncurses5-dev,, libffi-dev,, libgdbm3 | libgdbm6,, libgdbm-dev,, redis-server,, redis-tools,, postgresql,, postgresql-contrib,, libidn11-dev,, libicu-dev,, libjemalloc-dev,, curl,, apt-transport-https, yarn'
2020-10-11 23:00:09,062: DEBUG - + python2.7 -
2020-10-11 23:00:09,263: DEBUG - + [[ apt_dependencies =~ ^(unprotected|skipped)_ ]]
2020-10-11 23:00:09,264: DEBUG - + ynh_remove_extra_repo --name=mastodon
2020-10-11 23:00:09,266: DEBUG - + name=mastodon
2020-10-11 23:00:09,266: DEBUG - + ynh_secure_remove /etc/apt/sources.list.d/mastodon.list
2020-10-11 23:00:09,268: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2020-10-11 23:00:09,268: DEBUG - + '[' 1 -ge 2 ']'
2020-10-11 23:00:09,269: DEBUG - + [[ -z /etc/apt/sources.list.d/mastodon.list ]]
2020-10-11 23:00:09,269: DEBUG - + [[      /var/www     /home/yunohost.app =~ /etc/apt/sources\.list\.d/mastodon\.list ]]
2020-10-11 23:00:09,269: DEBUG - + [[ /etc/apt/sources.list.d/mastodon.list =~ ^/[[:alnum:]]+$ ]]
2020-10-11 23:00:09,269: DEBUG - + [[ t = \/ ]]
2020-10-11 23:00:09,269: DEBUG - + '[' -e /etc/apt/sources.list.d/mastodon.list ']'
2020-10-11 23:00:09,269: DEBUG - + rm --recursive /etc/apt/sources.list.d/mastodon.list
2020-10-11 23:00:09,269: DEBUG - + ynh_secure_remove /etc/apt/preferences.d/mastodon
2020-10-11 23:00:09,372: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2020-10-11 23:00:09,372: DEBUG - + '[' 1 -ge 2 ']'
2020-10-11 23:00:09,372: DEBUG - + [[ -z /etc/apt/preferences.d/mastodon ]]
2020-10-11 23:00:09,372: DEBUG - + [[      /var/www     /home/yunohost.app =~ /etc/apt/preferences\.d/mastodon ]]
2020-10-11 23:00:09,373: DEBUG - + [[ /etc/apt/preferences.d/mastodon =~ ^/[[:alnum:]]+$ ]]
2020-10-11 23:00:09,373: DEBUG - + [[ n = \/ ]]
2020-10-11 23:00:09,373: DEBUG - + '[' -e /etc/apt/preferences.d/mastodon ']'
2020-10-11 23:00:09,374: DEBUG - + rm --recursive /etc/apt/preferences.d/mastodon
2020-10-11 23:00:09,374: DEBUG - + ynh_secure_remove /etc/apt/trusted.gpg.d/mastodon.gpg
2020-10-11 23:00:09,376: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2020-10-11 23:00:09,376: DEBUG - + '[' 1 -ge 2 ']'
2020-10-11 23:00:09,377: DEBUG - + [[ -z /etc/apt/trusted.gpg.d/mastodon.gpg ]]
2020-10-11 23:00:09,377: DEBUG - + [[      /var/www     /home/yunohost.app =~ /etc/apt/trusted\.gpg\.d/mastodon\.gpg ]]
2020-10-11 23:00:09,377: DEBUG - + [[ /etc/apt/trusted.gpg.d/mastodon.gpg =~ ^/[[:alnum:]]+$ ]]
2020-10-11 23:00:09,377: DEBUG - + [[ g = \/ ]]
2020-10-11 23:00:09,378: DEBUG - + '[' -e /etc/apt/trusted.gpg.d/mastodon.gpg ']'
2020-10-11 23:00:09,378: DEBUG - + rm --recursive /etc/apt/trusted.gpg.d/mastodon.gpg
2020-10-11 23:00:09,378: DEBUG - + ynh_secure_remove /etc/apt/trusted.gpg.d/mastodon.asc
2020-10-11 23:00:09,380: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2020-10-11 23:00:09,380: DEBUG - + '[' 1 -ge 2 ']'
2020-10-11 23:00:09,380: DEBUG - + [[ -z /etc/apt/trusted.gpg.d/mastodon.asc ]]
2020-10-11 23:00:09,380: DEBUG - + [[      /var/www     /home/yunohost.app =~ /etc/apt/trusted\.gpg\.d/mastodon\.asc ]]
2020-10-11 23:00:09,380: DEBUG - + [[ /etc/apt/trusted.gpg.d/mastodon.asc =~ ^/[[:alnum:]]+$ ]]
2020-10-11 23:00:09,380: DEBUG - + [[ c = \/ ]]
2020-10-11 23:00:09,381: DEBUG - + '[' -e /etc/apt/trusted.gpg.d/mastodon.asc ']'
2020-10-11 23:00:09,381: DEBUG - + ynh_print_info '--message='\''/etc/apt/trusted.gpg.d/mastodon.asc'\'' wasn'\''t deleted because it doesn'\''t exist.'
2020-10-11 23:00:09,382: DEBUG - + echo ''\''/etc/apt/trusted.gpg.d/mastodon.asc'\'' wasn'\''t deleted because it doesn'\''t exist.'
2020-10-11 23:00:09,382: DEBUG - + ynh_package_update
2020-10-11 23:00:09,382: DEBUG - + ynh_apt update
2020-10-11 23:00:09,382: DEBUG - + ynh_wait_dpkg_free
2020-10-11 23:00:09,583: DEBUG - + return 0
2020-10-11 23:00:09,584: INFO - '/etc/apt/trusted.gpg.d/mastodon.asc' wasn't deleted because it doesn't exist.
2020-10-11 23:00:09,590: DEBUG - + LC_ALL=C
2020-10-11 23:00:09,591: DEBUG - + DEBIAN_FRONTEND=noninteractive
2020-10-11 23:00:09,591: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2020-10-11 23:00:09,792: DEBUG - Hit:1 http://deb.debian.org/debian buster InRelease
2020-10-11 23:00:09,792: DEBUG - Hit:2 http://deb.debian.org/debian buster-updates InRelease
2020-10-11 23:00:09,792: DEBUG - Hit:3 http://security.debian.org buster/updates InRelease
2020-10-11 23:00:09,792: DEBUG - Hit:4 http://deb.debian.org/debian buster-backports InRelease
2020-10-11 23:00:09,793: DEBUG - Hit:5 http://forge.yunohost.org/debian buster InRelease
2020-10-11 23:00:09,793: DEBUG - Hit:6 http://mirror.hetzner.de/debian/packages buster InRelease
2020-10-11 23:00:09,793: DEBUG - Hit:7 http://mirror.hetzner.de/debian/packages buster-updates InRelease
2020-10-11 23:00:09,894: DEBUG - Hit:8 http://mirror.hetzner.de/debian/packages buster-backports InRelease
2020-10-11 23:00:09,894: DEBUG - Hit:9 http://mirror.hetzner.de/debian/security buster/updates InRelease
2020-10-11 23:00:10,196: DEBUG - Hit:10 https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian10 ./ InRelease
2020-10-11 23:00:13,606: DEBUG - Reading package lists...
2020-10-11 23:00:13,708: DEBUG - + echo '[###########+........] > Installing Ruby...'
2020-10-11 23:00:13,708: DEBUG - + ynh_install_ruby --ruby_version=2.6.6
2020-10-11 23:00:13,708: DEBUG - + declare -Ar args_array
2020-10-11 23:00:13,809: DEBUG - + mkdir -p /opt/rbenv/plugins/ruby-build
2020-10-11 23:00:13,810: WARNING - Installation of rbenv - ruby version management
2020-10-11 23:00:13,812: INFO - [###########+........] > Installing Ruby...
2020-10-11 23:00:13,812: DEBUG - + CLEAR_PATH=/opt/rbenv/bin:/opt/node_n/n/versions/node/12/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 23:00:13,813: DEBUG - ++ sed s@/usr/local/bin:@@
2020-10-11 23:00:13,813: DEBUG - ++ echo /opt/rbenv/bin:/opt/node_n/n/versions/node/12/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 23:00:13,813: DEBUG - + PATH=/opt/rbenv/bin:/opt/node_n/n/versions/node/12/bin:/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 23:00:13,814: DEBUG - + test -x /usr/bin/ruby
2020-10-11 23:00:13,814: DEBUG - + type rbenv
2020-10-11 23:00:13,814: DEBUG - + ynh_install_rbenv
2020-10-11 23:00:13,814: DEBUG - + echo 'Installation of rbenv - ruby version management'
2020-10-11 23:00:13,815: DEBUG - + mkdir -p ../conf
2020-10-11 23:00:13,815: DEBUG - + echo 'SOURCE_URL=https://github.com/rbenv/rbenv/archive/v1.1.2.tar.gz
2020-10-11 23:00:13,815: DEBUG - SOURCE_SUM=80ad89ffe04c0b481503bd375f05c212bbc7d44ef5f5e649e0acdf25eba86736'
2020-10-11 23:00:13,815: DEBUG - + ynh_setup_source /opt/rbenv rbenv
2020-10-11 23:00:13,817: DEBUG - + source_id=rbenv
2020-10-11 23:00:13,818: DEBUG - + local src_file_path=/home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/rbenv.src
2020-10-11 23:00:13,818: DEBUG - + '[' '!' -e /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/rbenv.src ']'
2020-10-11 23:00:13,818: DEBUG - ++ grep SOURCE_URL= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/rbenv.src
2020-10-11 23:00:13,819: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:13,819: DEBUG - + local src_url=https://github.com/rbenv/rbenv/archive/v1.1.2.tar.gz
2020-10-11 23:00:13,819: DEBUG - ++ grep SOURCE_SUM= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/rbenv.src
2020-10-11 23:00:13,819: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:13,820: DEBUG - + local src_sum=80ad89ffe04c0b481503bd375f05c212bbc7d44ef5f5e649e0acdf25eba86736
2020-10-11 23:00:13,820: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:13,820: DEBUG - ++ grep SOURCE_SUM_PRG= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/rbenv.src
2020-10-11 23:00:13,820: DEBUG - + local src_sumprg=
2020-10-11 23:00:13,820: DEBUG - ++ grep SOURCE_FORMAT= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/rbenv.src
2020-10-11 23:00:13,821: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:13,821: DEBUG - + local src_format=
2020-10-11 23:00:13,821: DEBUG - ++ grep SOURCE_EXTRACT= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/rbenv.src
2020-10-11 23:00:13,821: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:13,821: DEBUG - + local src_extract=
2020-10-11 23:00:13,821: DEBUG - ++ grep SOURCE_IN_SUBDIR= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/rbenv.src
2020-10-11 23:00:13,822: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:13,822: DEBUG - + local src_in_subdir=
2020-10-11 23:00:13,822: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:13,923: DEBUG - ++ grep SOURCE_FILENAME= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/rbenv.src
2020-10-11 23:00:13,923: DEBUG - + local src_filename=
2020-10-11 23:00:13,924: DEBUG - + src_sumprg=sha256sum
2020-10-11 23:00:13,924: DEBUG - + src_in_subdir=true
2020-10-11 23:00:13,924: DEBUG - + src_format=tar.gz
2020-10-11 23:00:13,925: DEBUG - ++ echo tar.gz
2020-10-11 23:00:13,925: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2020-10-11 23:00:13,925: DEBUG - + src_format=tar.gz
2020-10-11 23:00:13,926: DEBUG - + src_extract=true
2020-10-11 23:00:13,926: DEBUG - + '[' '' = '' ']'
2020-10-11 23:00:13,926: DEBUG - + src_filename=rbenv.tar.gz
2020-10-11 23:00:13,927: DEBUG - + local local_src=/opt/yunohost-apps-src/mastodon/rbenv.tar.gz
2020-10-11 23:00:13,927: DEBUG - + test -e /opt/yunohost-apps-src/mastodon/rbenv.tar.gz
2020-10-11 23:00:13,928: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=rbenv.tar.gz https://github.com/rbenv/rbenv/archive/v1.1.2.tar.gz
2020-10-11 23:00:14,530: DEBUG - + out='2020-10-11 23:00:14 URL:https://codeload.github.com/rbenv/rbenv/tar.gz/v1.1.2 [32188] -> "rbenv.tar.gz" [1]'
2020-10-11 23:00:14,530: DEBUG - + echo '80ad89ffe04c0b481503bd375f05c212bbc7d44ef5f5e649e0acdf25eba86736 rbenv.tar.gz'
2020-10-11 23:00:14,530: DEBUG - + sha256sum --check --status
2020-10-11 23:00:14,531: DEBUG - + mkdir --parents /opt/rbenv
2020-10-11 23:00:14,531: DEBUG - + true
2020-10-11 23:00:14,531: DEBUG - + '[' tar.gz = zip ']'
2020-10-11 23:00:14,531: DEBUG - + local strip=
2020-10-11 23:00:14,531: DEBUG - + '[' true '!=' false ']'
2020-10-11 23:00:14,531: DEBUG - + '[' true == true ']'
2020-10-11 23:00:14,531: DEBUG - + local sub_dirs=1
2020-10-11 23:00:14,531: DEBUG - + strip='--strip-components 1'
2020-10-11 23:00:14,531: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2020-10-11 23:00:14,532: DEBUG - + tar --extract --file=rbenv.tar.gz --directory=/opt/rbenv --strip-components 1
2020-10-11 23:00:14,532: DEBUG - ++ find /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../sources/patches/ -type f -name 'rbenv-*.patch'
2020-10-11 23:00:14,532: DEBUG - ++ wc --lines
2020-10-11 23:00:14,532: DEBUG - + ((  0 > 0  ))
2020-10-11 23:00:14,532: DEBUG - + test -e /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../sources/extra_files/rbenv
2020-10-11 23:00:14,532: DEBUG - + mkdir -p ../conf
2020-10-11 23:00:14,532: DEBUG - + echo 'SOURCE_URL=https://github.com/rbenv/ruby-build/archive/v20200520.tar.gz
2020-10-11 23:00:14,532: DEBUG - SOURCE_SUM=52be6908a94fbd4a94f5064e8b19d4a3baa4b773269c3884165518d83bcc8922'
2020-10-11 23:00:14,533: DEBUG - + ynh_setup_source /opt/rbenv/plugins/ruby-build ruby-build
2020-10-11 23:00:14,635: DEBUG - + source_id=ruby-build
2020-10-11 23:00:14,635: DEBUG - + local src_file_path=/home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/ruby-build.src
2020-10-11 23:00:14,635: DEBUG - + '[' '!' -e /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/ruby-build.src ']'
2020-10-11 23:00:14,635: DEBUG - ++ grep SOURCE_URL= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/ruby-build.src
2020-10-11 23:00:14,635: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:14,635: DEBUG - + local src_url=https://github.com/rbenv/ruby-build/archive/v20200520.tar.gz
2020-10-11 23:00:14,636: DEBUG - ++ grep SOURCE_SUM= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/ruby-build.src
2020-10-11 23:00:14,636: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:14,636: DEBUG - + local src_sum=52be6908a94fbd4a94f5064e8b19d4a3baa4b773269c3884165518d83bcc8922
2020-10-11 23:00:14,636: DEBUG - ++ grep SOURCE_SUM_PRG= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/ruby-build.src
2020-10-11 23:00:14,636: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:14,636: DEBUG - + local src_sumprg=
2020-10-11 23:00:14,636: DEBUG - ++ grep SOURCE_FORMAT= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/ruby-build.src
2020-10-11 23:00:14,637: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:14,637: DEBUG - + local src_format=
2020-10-11 23:00:14,637: DEBUG - ++ grep SOURCE_EXTRACT= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/ruby-build.src
2020-10-11 23:00:14,637: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:14,637: DEBUG - + local src_extract=
2020-10-11 23:00:14,637: DEBUG - ++ grep SOURCE_IN_SUBDIR= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/ruby-build.src
2020-10-11 23:00:14,638: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:14,638: DEBUG - + local src_in_subdir=
2020-10-11 23:00:14,638: DEBUG - ++ grep SOURCE_FILENAME= /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../conf/ruby-build.src
2020-10-11 23:00:14,638: DEBUG - ++ cut --delimiter== --fields=2-
2020-10-11 23:00:14,638: DEBUG - + local src_filename=
2020-10-11 23:00:14,638: DEBUG - + src_sumprg=sha256sum
2020-10-11 23:00:14,638: DEBUG - + src_in_subdir=true
2020-10-11 23:00:14,639: DEBUG - + src_format=tar.gz
2020-10-11 23:00:14,639: DEBUG - ++ echo tar.gz
2020-10-11 23:00:14,639: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2020-10-11 23:00:14,639: DEBUG - + src_format=tar.gz
2020-10-11 23:00:14,639: DEBUG - + src_extract=true
2020-10-11 23:00:14,639: DEBUG - + '[' '' = '' ']'
2020-10-11 23:00:14,639: DEBUG - + src_filename=ruby-build.tar.gz
2020-10-11 23:00:14,639: DEBUG - + local local_src=/opt/yunohost-apps-src/mastodon/ruby-build.tar.gz
2020-10-11 23:00:14,640: DEBUG - + test -e /opt/yunohost-apps-src/mastodon/ruby-build.tar.gz
2020-10-11 23:00:14,640: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=ruby-build.tar.gz https://github.com/rbenv/ruby-build/archive/v20200520.tar.gz
2020-10-11 23:00:15,343: DEBUG - + out='2020-10-11 23:00:15 URL:https://codeload.github.com/rbenv/ruby-build/tar.gz/v20200520 [67982] -> "ruby-build.tar.gz" [1]'
2020-10-11 23:00:15,344: DEBUG - + echo '52be6908a94fbd4a94f5064e8b19d4a3baa4b773269c3884165518d83bcc8922 ruby-build.tar.gz'
2020-10-11 23:00:15,344: DEBUG - + sha256sum --check --status
2020-10-11 23:00:15,345: DEBUG - + mkdir --parents /opt/rbenv/plugins/ruby-build
2020-10-11 23:00:15,345: DEBUG - + true
2020-10-11 23:00:15,345: DEBUG - + '[' tar.gz = zip ']'
2020-10-11 23:00:15,345: DEBUG - + local strip=
2020-10-11 23:00:15,345: DEBUG - + '[' true '!=' false ']'
2020-10-11 23:00:15,346: DEBUG - + '[' true == true ']'
2020-10-11 23:00:15,346: DEBUG - + local sub_dirs=1
2020-10-11 23:00:15,346: DEBUG - + strip='--strip-components 1'
2020-10-11 23:00:15,346: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2020-10-11 23:00:15,346: DEBUG - + tar --extract --file=ruby-build.tar.gz --directory=/opt/rbenv/plugins/ruby-build --strip-components 1
2020-10-11 23:00:15,447: DEBUG - ++ find /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../sources/patches/ -type f -name 'ruby-build-*.patch'
2020-10-11 23:00:15,447: DEBUG - ++ wc --lines
2020-10-11 23:00:15,448: DEBUG - + ((  0 > 0  ))
2020-10-11 23:00:15,448: DEBUG - + test -e /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup/../sources/extra_files/ruby-build
2020-10-11 23:00:15,448: DEBUG - + cd /opt/rbenv
2020-10-11 23:00:15,448: DEBUG - + ./src/configure
2020-10-11 23:00:15,448: DEBUG - + make -C src
2020-10-11 23:00:15,448: DEBUG - make: Entering directory '/opt/rbenv/src'
2020-10-11 23:00:15,449: DEBUG - gcc -fPIC     -c -o realpath.o realpath.c
2020-10-11 23:00:15,649: DEBUG - gcc -shared -Wl,-soname,../libexec/rbenv-realpath.dylib  -o ../libexec/rbenv-realpath.dylib realpath.o
2020-10-11 23:00:15,650: DEBUG - make: Leaving directory '/opt/rbenv/src'
2020-10-11 23:00:15,650: DEBUG - + '[' '!' -d /opt/rbenv/shims ']'
2020-10-11 23:00:15,650: DEBUG - + mkdir /opt/rbenv/shims
2020-10-11 23:00:15,651: DEBUG - + PATH=/opt/rbenv/bin:/opt/node_n/n/versions/node/12/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 23:00:15,651: DEBUG - + test -x /usr/bin/ruby_rbenv
2020-10-11 23:00:15,651: DEBUG - + CONFIGURE_OPTS='--disable-install-doc --with-jemalloc'
2020-10-11 23:00:15,651: DEBUG - + MAKE_OPTS=-j2
2020-10-11 23:00:15,651: DEBUG - + rbenv install --skip-existing 2.6.6
2020-10-11 23:00:15,852: WARNING - Downloading ruby-2.6.6.tar.bz2...
2020-10-11 23:00:15,855: WARNING - -> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.6.tar.bz2
2020-10-11 23:00:21,376: WARNING - Installing ruby-2.6.6...
2020-10-11 23:04:29,804: WARNING - Installed ruby-2.6.6 to /opt/rbenv/versions/2.6.6
2020-10-11 23:04:29,809: WARNING - 
2020-10-11 23:04:30,210: DEBUG - + echo mastodon:2.6.6
2020-10-11 23:04:30,211: DEBUG - + tee --append /opt/rbenv/ynh_app_version
2020-10-11 23:04:30,211: DEBUG - mastodon:2.6.6
2020-10-11 23:04:30,211: DEBUG - + ynh_app_setting_set mastodon ruby_version 2.6.6
2020-10-11 23:04:30,314: DEBUG - + ynh_app_setting set mastodon ruby_version 2.6.6
2020-10-11 23:04:30,314: DEBUG - + [[ set == \d\e\l\e\t\e ]]
2020-10-11 23:04:30,314: DEBUG - + ACTION=set
2020-10-11 23:04:30,314: DEBUG - + APP=mastodon
2020-10-11 23:04:30,315: DEBUG - + KEY=ruby_version
2020-10-11 23:04:30,315: DEBUG - + VALUE=2.6.6
2020-10-11 23:04:30,315: DEBUG - + python2.7 -
2020-10-11 23:04:30,516: DEBUG - + [[ ruby_version =~ ^(unprotected|skipped)_ ]]
2020-10-11 23:04:30,516: DEBUG - + echo '#rbenv
2020-10-11 23:04:30,516: DEBUG - export RBENV_ROOT=/opt/rbenv
2020-10-11 23:04:30,517: DEBUG - export PATH="/opt/rbenv/bin:/opt/rbenv/bin:/opt/node_n/n/versions/node/12/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
2020-10-11 23:04:30,517: DEBUG - eval "$(rbenv init -)"
2020-10-11 23:04:30,517: DEBUG - #rbenv'
2020-10-11 23:04:30,517: DEBUG - ++ rbenv init -
2020-10-11 23:04:30,518: DEBUG - + eval 'export PATH="/opt/rbenv/shims:${PATH}"
2020-10-11 23:04:30,518: DEBUG - export RBENV_SHELL=bash
2020-10-11 23:04:30,518: DEBUG - source '\''/opt/rbenv/libexec/../completions/rbenv.bash'\''
2020-10-11 23:04:30,518: DEBUG - command rbenv rehash 2>/dev/null
2020-10-11 23:04:30,519: DEBUG - rbenv() {
2020-10-11 23:04:30,519: DEBUG -   command="${1:-}"
2020-10-11 23:04:30,519: DEBUG -   if [ "$#" -gt 0 ]; then
2020-10-11 23:04:30,519: DEBUG -     shift
2020-10-11 23:04:30,520: DEBUG -   fi
2020-10-11 23:04:30,520: DEBUG - 
2020-10-11 23:04:30,520: DEBUG -   case "$command" in
2020-10-11 23:04:30,520: DEBUG -   rehash|shell)
2020-10-11 23:04:30,520: DEBUG -     eval "$(rbenv "sh-$command" "$@")";;
2020-10-11 23:04:30,521: DEBUG -   *)
2020-10-11 23:04:30,521: DEBUG -     command rbenv "$command" "$@";;
2020-10-11 23:04:30,521: DEBUG -   esac
2020-10-11 23:04:30,521: DEBUG - }'
2020-10-11 23:04:30,522: DEBUG - ++ export PATH=/opt/rbenv/shims:/opt/rbenv/bin:/opt/node_n/n/versions/node/12/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 23:04:30,522: DEBUG - ++ PATH=/opt/rbenv/shims:/opt/rbenv/bin:/opt/node_n/n/versions/node/12/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2020-10-11 23:04:30,522: DEBUG - ++ export RBENV_SHELL=bash
2020-10-11 23:04:30,522: DEBUG - ++ RBENV_SHELL=bash
2020-10-11 23:04:30,522: DEBUG - ++ source /opt/rbenv/libexec/../completions/rbenv.bash
2020-10-11 23:04:30,523: DEBUG - +++ complete -F _rbenv rbenv
2020-10-11 23:04:30,523: DEBUG - ++ command rbenv rehash
2020-10-11 23:04:30,523: DEBUG - ++ rbenv rehash
2020-10-11 23:04:30,523: DEBUG - + cd /var/www/mastodon
2020-10-11 23:04:30,523: DEBUG - + rbenv local 2.6.6
2020-10-11 23:04:30,524: DEBUG - + command=local
2020-10-11 23:04:30,524: DEBUG - + '[' 2 -gt 0 ']'
2020-10-11 23:04:30,524: DEBUG - + shift
2020-10-11 23:04:30,524: DEBUG - + case "$command" in
2020-10-11 23:04:30,524: DEBUG - + command rbenv local 2.6.6
2020-10-11 23:04:30,524: DEBUG - + rbenv local 2.6.6
2020-10-11 23:04:30,625: DEBUG - + pushd /var/www/mastodon/live
2020-10-11 23:04:30,625: WARNING - rbenv: version `2.6.5' is not installed (set by /var/www/mastodon/live/.ruby-version)
2020-10-11 23:04:30,626: DEBUG - /var/www/mastodon/live /home/yunohost.backup/tmp/20201005-200509/apps/mastodon/backup
2020-10-11 23:04:30,627: DEBUG - + gem update --system
2020-10-11 23:04:30,627: DEBUG - + ynh_exit_properly
2020-10-11 23:04:30,627: DEBUG - + local exit_code=1
2020-10-11 23:04:30,627: DEBUG - + '[' 1 -eq 0 ']'
2020-10-11 23:04:30,627: DEBUG - + trap '' EXIT
2020-10-11 23:04:30,627: DEBUG - + set +o errexit
2020-10-11 23:04:30,628: DEBUG - + set +o nounset
2020-10-11 23:04:30,628: DEBUG - + sleep 0.5
2020-10-11 23:04:31,132: DEBUG - + type -t ynh_clean_setup
2020-10-11 23:04:31,134: DEBUG - + ynh_clean_setup
2020-10-11 23:04:31,134: DEBUG - + ynh_clean_check_starting
2020-10-11 23:04:31,134: DEBUG - + '[' -n '' ']'
2020-10-11 23:04:31,134: DEBUG - + '[' -n '' ']'
2020-10-11 23:04:31,135: DEBUG - + exit 1
2020-10-11 23:04:31,171: ERROR - Impossible de restaurer l’application 'mastodon'
Traceback (most recent call last):
  File "/usr/lib/moulinette/yunohost/backup.py", line 1407, in _restore_app
    env=env_dict)[0]
  File "/usr/lib/moulinette/yunohost/hook.py", line 347, in hook_exec
    raise YunohostError('hook_exec_failed', path=path)
YunohostError: Échec de l’exécution du script : /tmp/restores5esNS/restore

J’ai tenté sans grand espoir d’installer un Mastodon tout frais puis d’appliquer la sauvegarde mais en fait j’étais bloqué puisque l’utilitaire de restaurant m’indiquait logiquement “App déjà installé, restauration impossible”.

J’ai ensuite désinstallé le Mastodon clean qui s’était installé pour tenter la restauration et ça ne passe toujours pas, même log que dans le post précédent.

Il y aurait pas moyen sinon d’installer un Mastodon propre puis de restaurer seulement la base de donnée de mon archive de sauvegarde ? En soit, c’est juste ça dont j’ai besoin. Retrouver les comptes enregistrés et les publications.

Please help. Notre collectif n’a plus de présence sur Mastodon pendant ce temps :frowning:

Arf oui c’est pas ouf … perso je pige pas trop le problème à part que ça vient de

DEBUG - + pushd /var/www/mastodon/live
DEBUG - + gem update --system
WARNING - rbenv: version `2.6.5' is not installed (set by /var/www/mastodon/live/.ruby-version)

… bon en écrivant ça je creuse et je comprends qu’il a installé la 2.6.6 mais masto voudrait la 2.6.5 … et je vois que ça vient de : https://github.com/YunoHost-Apps/mastodon_ynh/blob/master/scripts/_common.sh#L12

J’en déduit que tu tentes de restaurer un backup fais en stretch vers buster (pas forcément un probleme - ça devrait marcher) et que c’est pour ça que ça plante

Je sais pas quelle est la bonne façon de procéder, ptete que @yalh76 aurait des infos sur le sujet …

Naivement je tenterais cette manip un peu tricky qui consiste à éditer dans l’archive le fichier _common.sh et changer le 2.6.6 en 2.6.5 ici : https://github.com/YunoHost-Apps/mastodon_ynh/blob/master/scripts/_common.sh#L13

Pour faire ça, si tu as moyen de transférer facilement ton backup.tar.gz entre ta machine et ton serveur, le plus simple est de le télécharger, extraire le fichier de l’archive avec l’outil graphique, l’éditer et le remettre dans l’archive au meme endroit, puis réuploader le fichier sur ton serveur …

Sinon y’a aussi moyen de faire ça en ligne de commande mais c’est galère … mais si la solution précédente ne fonctionne pas je peux te préparer les 4-5 commandes à taper facilement