Arf, que se passe t il ?
Sinon y a t il moyen de se passer du backup ?
sudo yunohost app upgrade --verbose mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh.git
Upgrading apps mastodon
Warning: Upgrading app mastodon...
Downloading...
Extracting...
Done
Checking required packages for mastodon...
Executing script '/var/cache/yunohost/from_file/mastodon_ynh-master/scripts/upgrade'...
+ source _common.sh
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
++ . /usr/share/yunohost/helpers.d/nodejs
+++ n_install_dir=/opt/node_n
+++ node_version_path=/opt/node_n/n/versions/node
+++ export N_PREFIX=/opt/node_n
+++ N_PREFIX=/opt/node_n
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
++ . /usr/share/yunohost/helpers.d/psql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ app=mastodon
++ ynh_app_setting_get mastodon db_name
++ sudo yunohost app setting mastodon db_name --output-as plain --quiet
+ db_name=mastodon_production
++ ynh_app_setting_get mastodon db_pwd
++ sudo yunohost app setting mastodon db_pwd --output-as plain --quiet
+ db_pwd=nRT4pHfs9Qtx3rQqJA2gDooj
++ ynh_app_setting_get mastodon domain
++ sudo yunohost app setting mastodon domain --output-as plain --quiet
+ domain=social.vincentux.fr
++ ynh_app_setting_get mastodon path
++ sudo yunohost app setting mastodon path --output-as plain --quiet
+ path=/
++ ynh_app_setting_get mastodon admin
++ sudo yunohost app setting mastodon admin --output-as plain --quiet
+ admin=vincentux
++ ynh_app_setting_get mastodon language
++ sudo yunohost app setting mastodon language --output-as plain --quiet
+ language=fr_FR
++ ynh_app_setting_get mastodon final_path
++ sudo yunohost app setting mastodon final_path --output-as plain --quiet
+ final_path=/opt/mastodon
+ path_url=/
+ '[' -z mastodon_production ']'
+ '[' -z /opt/mastodon ']'
+ [[ vincentux = '' ]]
+ [[ fr_FR = '' ]]
+ [[ -z nRT4pHfs9Qtx3rQqJA2gDooj ]]
+ ynh_backup_before_upgrade
+ '[' '!' -e /etc/yunohost/apps/mastodon/scripts/backup ']'
+ backup_number=1
+ local old_backup_number=2
+ local app_bck=mastodon
+ NO_BACKUP_UPGRADE=0
+ '[' 0 -eq 0 ']'
+ sudo yunohost backup list
+ grep -q mastodon-pre-upgrade1
+ backup_number=2
+ old_backup_number=1
+ sudo BACKUP_CORE_ONLY=1 yunohost backup create --ignore-system --apps mastodon --name mastodon-pre-upgrade2 --verbose
Running backup script of app 'mastodon'...
Executing script '/tmp/backup_ygn3vU'...
+ '[' '!' -e _common.sh ']'
+ cp ../settings/scripts/_common.sh ./_common.sh
+ cp ../settings/scripts/_future.sh ./_future.sh
+ chmod a+rx _common.sh _future.sh
+ source _common.sh
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
++ . /usr/share/yunohost/helpers.d/nodejs
+++ n_install_dir=/opt/node_n
+++ node_version_path=/opt/node_n/n/versions/node
+++ export N_PREFIX=/opt/node_n
+++ N_PREFIX=/opt/node_n
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
++ . /usr/share/yunohost/helpers.d/psql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ source _future.sh
+ ynh_abort_if_errors
+ set -eu
+ trap ynh_exit_properly EXIT
+ app=mastodon
++ ynh_app_setting_get mastodon domain
++ sudo yunohost app setting mastodon domain --output-as plain --quiet
+ domain=social.vincentux.fr
++ ynh_app_setting_get mastodon final_path
++ sudo yunohost app setting mastodon final_path --output-as plain --quiet
+ final_path=/opt/mastodon
++ ynh_app_setting_get mastodon db_name
++ sudo yunohost app setting mastodon db_name --output-as plain --quiet
+ db_name=mastodon_production
+ '[' -z mastodon_production ']'
+ ynh_backup /opt/mastodon
+ local SRC_PATH=/opt/mastodon
+ local DEST_PATH=
+ local IS_BIG=0
+ BACKUP_CORE_ONLY=1
+ '[' 0 == 1 ']'
+ [[ -e /opt/mastodon ]]
++ realpath /opt/mastodon
+ SRC_PATH=/opt/mastodon
+ [[ -z '' ]]
+ DEST_PATH=opt/mastodon
+ [[ ! -e opt/mastodon ]]
+ local REL_DIR=/apps/mastodon/backup
+ REL_DIR=/apps/mastodon/backup/
+ DEST_PATH=/apps/mastodon/backup/opt/mastodon
+ DEST_PATH=apps/mastodon/backup/opt/mastodon
++ sed -r 's/"/\"\"/g'
++ echo /opt/mastodon
+ local SRC=/opt/mastodon
++ echo apps/mastodon/backup/opt/mastodon
++ sed -r 's/"/\"\"/g'
+ local DEST=apps/mastodon/backup/opt/mastodon
+ echo '"/opt/mastodon","apps/mastodon/backup/opt/mastodon"'
++ dirname /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup/opt/mastodon
+ mkdir -p /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup/opt
+ ynh_backup /etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
+ local SRC_PATH=/etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
+ local DEST_PATH=
+ local IS_BIG=0
+ BACKUP_CORE_ONLY=1
+ '[' 0 == 1 ']'
+ [[ -e /etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf ]]
++ realpath /etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
+ SRC_PATH=/etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
+ [[ -z '' ]]
+ DEST_PATH=etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
+ [[ ! -e etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf ]]
+ local REL_DIR=/apps/mastodon/backup
+ REL_DIR=/apps/mastodon/backup/
+ DEST_PATH=/apps/mastodon/backup/etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
+ DEST_PATH=apps/mastodon/backup/etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
++ echo /etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
++ sed -r 's/"/\"\"/g'
+ local SRC=/etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
++ echo apps/mastodon/backup/etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
++ sed -r 's/"/\"\"/g'
+ local DEST=apps/mastodon/backup/etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
+ echo '"/etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf","apps/mastodon/backup/etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf"'
++ dirname /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup/etc/nginx/conf.d/social.vincentux.fr.d/mastodon.conf
+ mkdir -p /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup/etc/nginx/conf.d/social.vincentux.fr.d
+ ynh_psql_dump_db mastodon_production
+ local db=mastodon_production
+ sudo --login --user=postgres pg_dump mastodon_production
+ ynh_backup /etc/systemd/system/mastodon-web.service
+ local SRC_PATH=/etc/systemd/system/mastodon-web.service
+ local DEST_PATH=
+ local IS_BIG=0
+ BACKUP_CORE_ONLY=1
+ '[' 0 == 1 ']'
+ [[ -e /etc/systemd/system/mastodon-web.service ]]
++ realpath /etc/systemd/system/mastodon-web.service
+ SRC_PATH=/etc/systemd/system/mastodon-web.service
+ [[ -z '' ]]
+ DEST_PATH=etc/systemd/system/mastodon-web.service
+ [[ ! -e etc/systemd/system/mastodon-web.service ]]
+ local REL_DIR=/apps/mastodon/backup
+ REL_DIR=/apps/mastodon/backup/
+ DEST_PATH=/apps/mastodon/backup/etc/systemd/system/mastodon-web.service
+ DEST_PATH=apps/mastodon/backup/etc/systemd/system/mastodon-web.service
++ echo /etc/systemd/system/mastodon-web.service
++ sed -r 's/"/\"\"/g'
+ local SRC=/etc/systemd/system/mastodon-web.service
++ echo apps/mastodon/backup/etc/systemd/system/mastodon-web.service
++ sed -r 's/"/\"\"/g'
+ local DEST=apps/mastodon/backup/etc/systemd/system/mastodon-web.service
+ echo '"/etc/systemd/system/mastodon-web.service","apps/mastodon/backup/etc/systemd/system/mastodon-web.service"'
++ dirname /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup/etc/systemd/system/mastodon-web.service
+ mkdir -p /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup/etc/systemd/system
+ ynh_backup /etc/systemd/system/mastodon-sidekiq.service
+ local SRC_PATH=/etc/systemd/system/mastodon-sidekiq.service
+ local DEST_PATH=
+ local IS_BIG=0
+ BACKUP_CORE_ONLY=1
+ '[' 0 == 1 ']'
+ [[ -e /etc/systemd/system/mastodon-sidekiq.service ]]
++ realpath /etc/systemd/system/mastodon-sidekiq.service
+ SRC_PATH=/etc/systemd/system/mastodon-sidekiq.service
+ [[ -z '' ]]
+ DEST_PATH=etc/systemd/system/mastodon-sidekiq.service
+ [[ ! -e etc/systemd/system/mastodon-sidekiq.service ]]
+ local REL_DIR=/apps/mastodon/backup
+ REL_DIR=/apps/mastodon/backup/
+ DEST_PATH=/apps/mastodon/backup/etc/systemd/system/mastodon-sidekiq.service
+ DEST_PATH=apps/mastodon/backup/etc/systemd/system/mastodon-sidekiq.service
++ sed -r 's/"/\"\"/g'
++ echo /etc/systemd/system/mastodon-sidekiq.service
+ local SRC=/etc/systemd/system/mastodon-sidekiq.service
++ echo apps/mastodon/backup/etc/systemd/system/mastodon-sidekiq.service
++ sed -r 's/"/\"\"/g'
+ local DEST=apps/mastodon/backup/etc/systemd/system/mastodon-sidekiq.service
+ echo '"/etc/systemd/system/mastodon-sidekiq.service","apps/mastodon/backup/etc/systemd/system/mastodon-sidekiq.service"'
++ dirname /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup/etc/systemd/system/mastodon-sidekiq.service
+ mkdir -p /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup/etc/systemd/system
+ ynh_backup /etc/systemd/system/mastodon-streaming.service
+ local SRC_PATH=/etc/systemd/system/mastodon-streaming.service
+ local DEST_PATH=
+ local IS_BIG=0
+ BACKUP_CORE_ONLY=1
+ '[' 0 == 1 ']'
+ [[ -e /etc/systemd/system/mastodon-streaming.service ]]
++ realpath /etc/systemd/system/mastodon-streaming.service
+ SRC_PATH=/etc/systemd/system/mastodon-streaming.service
+ [[ -z '' ]]
+ DEST_PATH=etc/systemd/system/mastodon-streaming.service
+ [[ ! -e etc/systemd/system/mastodon-streaming.service ]]
+ local REL_DIR=/apps/mastodon/backup
+ REL_DIR=/apps/mastodon/backup/
+ DEST_PATH=/apps/mastodon/backup/etc/systemd/system/mastodon-streaming.service
+ DEST_PATH=apps/mastodon/backup/etc/systemd/system/mastodon-streaming.service
++ sed -r 's/"/\"\"/g'
++ echo /etc/systemd/system/mastodon-streaming.service
+ local SRC=/etc/systemd/system/mastodon-streaming.service
++ echo apps/mastodon/backup/etc/systemd/system/mastodon-streaming.service
++ sed -r 's/"/\"\"/g'
+ local DEST=apps/mastodon/backup/etc/systemd/system/mastodon-streaming.service
+ echo '"/etc/systemd/system/mastodon-streaming.service","apps/mastodon/backup/etc/systemd/system/mastodon-streaming.service"'
++ dirname /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup/etc/systemd/system/mastodon-streaming.service
+ mkdir -p /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup/etc/systemd/system
+ ynh_backup /etc/apt/sources.list.d/yarn.list apt_yarn.list
+ local SRC_PATH=/etc/apt/sources.list.d/yarn.list
+ local DEST_PATH=apt_yarn.list
+ local IS_BIG=0
+ BACKUP_CORE_ONLY=1
+ '[' 0 == 1 ']'
+ [[ -e /etc/apt/sources.list.d/yarn.list ]]
++ realpath /etc/apt/sources.list.d/yarn.list
+ SRC_PATH=/etc/apt/sources.list.d/yarn.list
+ [[ -z apt_yarn.list ]]
+ [[ a == \/ ]]
+ [[ t == \/ ]]
+ [[ ! -e apt_yarn.list ]]
+ local REL_DIR=/apps/mastodon/backup
+ REL_DIR=/apps/mastodon/backup/
+ DEST_PATH=/apps/mastodon/backup/apt_yarn.list
+ DEST_PATH=apps/mastodon/backup/apt_yarn.list
++ echo /etc/apt/sources.list.d/yarn.list
++ sed -r 's/"/\"\"/g'
+ local SRC=/etc/apt/sources.list.d/yarn.list
++ sed -r 's/"/\"\"/g'
++ echo apps/mastodon/backup/apt_yarn.list
+ local DEST=apps/mastodon/backup/apt_yarn.list
+ echo '"/etc/apt/sources.list.d/yarn.list","apps/mastodon/backup/apt_yarn.list"'
++ dirname /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup/apt_yarn.list
+ mkdir -p /home/yunohost.backup/tmp/mastodon-pre-upgrade2/apps/mastodon/backup
+ ynh_exit_properly
+ local exit_code=0
+ '[' 0 -eq 0 ']'
+ exit 0
Creating the backup tar archive...
+ '[' 137 -eq 0 ']'
Warning: Backup failed, the upgrade process was aborted.
+ ynh_die 'Backup failed, the upgrade process was aborted.'
+ echo 'Backup failed, the upgrade process was aborted.'
+ exit 1
Error: Unable to upgrade mastodon
Error: No app to upgrade
le backup manuel ne fonctionne pas non plus…
sudo yunohost backup create --apps
Warning: App ffsync has no backup script. Ignoring.
Warning: ls: cannot access /etc/cron.d/yunohost*: No such file or directory
ljf
July 16, 2018, 4:05pm
3
Le backup est long. Ici la comande ne semble pas terminée OU tu n’as pas tout copié.
kanhu
July 16, 2018, 4:11pm
4
@vincentux
Unfortunately you will have to install fresh mastodon instance. I hope you have imported your contact.
Use the develop branch.
$ yunohost app install https://github.com/YunoHost-Apps/mastodon_ynh/tree/develop
bon j’ai supprimé le dossier /archives
et relancé l’update de mastodon
mais toujours la même erreur…
Dans le dossier /archives
que l’update a créée j’ai qu’en même une sauvegarde de mastodon :
/home$ sudo ls yunohost.backup/archives/
mastodon-pre-upgrade1.tar.gz
Suite de mon problème…
j’ai migré Yunohost en Stretch (sans soucis) enfin voilà la fin des logs :
Creating config file /etc/php/7.0/mods-available/intl.ini with new version
Setting up php-intl (1:7.0+49) ...
Setting up php-mysql (1:7.0+49) ...
Setting up yunohost (3.0.0.1) ...
Regenerating configuration, this might take a while...
Success! The configuration has been updated for service 'postfix'
Success! The configuration has been updated for service 'rspamd'
Success! The configuration has been updated for service 'nginx'
Success! The configuration has been updated for service 'dnsmasq'
Warning: The configuration file '/etc/fail2ban/jail.conf' has been manually modified and will not be updated
Success! The configuration has been updated for service 'dovecot'
Launching migrations..
Warning: Running migration 4 php5_to_php7_pools...
Synchronizing state of php7.0-fpm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable php7.0-fpm
Synchronizing state of php5-fpm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable php5-fpm
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
Warning: Running migration 5 postgresql_9p4_to_9p6...
dpkg-query: error: error writing to '<standard output>': Broken pipe
dpkg-query: error: error writing to '<standard output>': Broken pipe
Error: pid file is invalid, please manually kill the stale server process.
Error: could not stop server, aborting
Error: Migration 5 postgresql_9p4_to_9p6 has failed with exception Command 'pg_dropcluster --stop 9.6 main' returned non-zero exit status 1, aborting
Restarting YunoHost firewall...
Setting up php-curl (1:7.0+49) ...
Setting up php-zip (1:7.0+49) ...
Setting up yunohost-admin (3.0.0) ...
Processing triggers for php7.0-fpm (7.0.30-0+deb9u1) ...
Processing triggers for systemd (232-25+deb9u4) ...
Migration complete!
Bon Migration complete! mais ça a cassé Mastodon, du coup j’ai fais un reboot, toujours rien (erreur 502 sur mastodon)
et une mise a jour ne fonctionne toujours pas
sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh.git
Upgrading apps mastodon
Upgrading app mastodon...
Warning: The output directory is not empty
Warning: Backup failed, the upgrade process was aborted.
Error: Unable to upgrade mastodon
Error: No app to upgrade
Une idée ?
Et le backup depuis la webadmin me sort cette erreur :
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 406, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 498, in process
return func(**arguments)
File "/usr/lib/moulinette/yunohost/backup.py", line 2164, in backup_list
d[a] = backup_info(a, human_readable=human_readable)
File "/usr/lib/moulinette/yunohost/backup.py", line 2206, in backup_info
tar.extract('info.json', path=info_dir)
File "/usr/lib/python2.7/tarfile.py", line 2109, in extract
tarinfo = self.getmember(member)
File "/usr/lib/python2.7/tarfile.py", line 1827, in getmember
tarinfo = self._getmember(name)
File "/usr/lib/python2.7/tarfile.py", line 2396, in _getmember
members = self.getmembers()
File "/usr/lib/python2.7/tarfile.py", line 1838, in getmembers
self._load() # all members, we first have to
File "/usr/lib/python2.7/tarfile.py", line 2419, in _load
tarinfo = self.next()
File "/usr/lib/python2.7/tarfile.py", line 2350, in next
self.fileobj.seek(self.offset - 1)
File "/usr/lib/python2.7/gzip.py", line 443, in seek
self.read(1024)
File "/usr/lib/python2.7/gzip.py", line 268, in read
self._read(readsize)
File "/usr/lib/python2.7/gzip.py", line 315, in _read
self._read_eof()
File "/usr/lib/python2.7/gzip.py", line 354, in _read_eof
hex(self.crc)))
IOError: CRC check failed 0xc6324cc3 != 0xbd675114L
Alors j’ai réussi a migrer postgresql en v9.6
mais Mastodon est toujours inaccessible (erreur 502) malgré un reboot du serveur.
[EDIT] backup Mastodon, c’est fait…
sudo yunohost backup create --app mastodon
Success! Backup created
name: 20180723-080949
results:
apps:
mastodon: Success
system:
size: 6895062202
j’ai donc désinstallé Mastodon via la webui
et voulu reinstallé en CLI :
sudo yunohost app install https://github.com/YunoHost-Apps/mastodon_ynh.git
Choose the Mastodon administrator (must be an existing YunoHost user): vincentux
Enter password of this administrator ≥ 8 character:
Choose the application language [en_EN | fr_FR] (default: fr_FR):
Warning: Warning: apt-key output should not be parsed (stdout is not a terminal)
Warning: Warning: apt-key output should not be parsed (stdout is not a terminal)
Warning: adduser: Warning: The home directory `/var/www/mastodon' does not belong to the user you are currently creating.
Warning: Downloading ruby-2.5.1.tar.bz2...
Warning: -> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.bz2
Warning: Installing ruby-2.5.1...
Warning: Installed ruby-2.5.1 to /var/www/mastodon/.rbenv/versions/2.5.1
Warning:
Warning: tr: write error: Broken pipe
Warning: tr: write error: Broken pipe
Warning: error An unexpected error occurred: "EACCES: permission denied, unlink '/var/www/mastodon/live/node_modules/.yarn-integrity'".
Warning: rails aborted!
Warning: StandardError: An error has occurred, all later migrations canceled:
Warning:
Warning: Index name 'index_statuses_20180106' on table 'statuses' already exists
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:1169:in `add_index_options'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/postgresql/schema_statements.rb:465:in `add_index'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:871:in `block in method_missing'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:840:in `block in say_with_time'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:840:in `say_with_time'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:860:in `method_missing'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/strong_migrations-0.2.2/lib/strong_migrations/migration.rb:75:in `method_missing'
Warning: /var/www/mastodon/live/db/migrate/20180514140000_revert_index_change_on_statuses_for_api_v1_accounts_account_id_statuses.rb:8:in `block in change'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/strong_migrations-0.2.2/lib/strong_migrations/migration.rb:6:in `safety_assured'
Warning: /var/www/mastodon/live/db/migrate/20180514140000_revert_index_change_on_statuses_for_api_v1_accounts_account_id_statuses.rb:7:in `change'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:814:in `exec_migration'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:797:in `block in migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:414:in `with_connection'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:796:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/strong_migrations-0.2.2/lib/strong_migrations/migration.rb:13:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/railtie.rb:37:in `block in migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/strategy.rb:70:in `wrap'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy.rb:201:in `strategy'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/railtie.rb:37:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:977:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1345:in `ddl_transaction'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1262:in `each'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1262:in `migrate_without_lock'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1210:in `block in migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1363:in `with_advisory_lock'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1210:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/railtie.rb:37:in `block in migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/strategy.rb:70:in `wrap'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy.rb:201:in `strategy'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/railtie.rb:37:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1036:in `up'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1011:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/strong_migrations-0.2.2/lib/strong_migrations/database_tasks.rb:4:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <top (required)>'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:20:in `perform'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:48:in `invoke'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<top (required)>'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
Warning: bin/rails:4:in `<main>'
Warning:
Warning: Caused by:
Warning: ArgumentError: Index name 'index_statuses_20180106' on table 'statuses' already exists
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:1169:in `add_index_options'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/postgresql/schema_statements.rb:465:in `add_index'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:871:in `block in method_missing'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:840:in `block in say_with_time'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:840:in `say_with_time'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:860:in `method_missing'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/strong_migrations-0.2.2/lib/strong_migrations/migration.rb:75:in `method_missing'
Warning: /var/www/mastodon/live/db/migrate/20180514140000_revert_index_change_on_statuses_for_api_v1_accounts_account_id_statuses.rb:8:in `block in change'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/strong_migrations-0.2.2/lib/strong_migrations/migration.rb:6:in `safety_assured'
Warning: /var/www/mastodon/live/db/migrate/20180514140000_revert_index_change_on_statuses_for_api_v1_accounts_account_id_statuses.rb:7:in `change'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:814:in `exec_migration'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:797:in `block in migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:414:in `with_connection'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:796:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/strong_migrations-0.2.2/lib/strong_migrations/migration.rb:13:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/railtie.rb:37:in `block in migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/strategy.rb:70:in `wrap'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy.rb:201:in `strategy'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/railtie.rb:37:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:977:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1345:in `ddl_transaction'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1262:in `each'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1262:in `migrate_without_lock'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1210:in `block in migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1363:in `with_advisory_lock'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1210:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/railtie.rb:37:in `block in migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/strategy.rb:70:in `wrap'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy.rb:201:in `strategy'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/chewy-5.0.0/lib/chewy/railtie.rb:37:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1036:in `up'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/migration.rb:1011:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/strong_migrations-0.2.2/lib/strong_migrations/database_tasks.rb:4:in `migrate'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <top (required)>'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:20:in `perform'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:48:in `invoke'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<top (required)>'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
Warning: /var/www/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
Warning: bin/rails:4:in `<main>'
Warning: Tasks: TOP => db:migrate
Warning: (See full trace by running task with --trace)
Warning: error An unexpected error occurred: "EACCES: permission denied, unlink '/var/www/mastodon/live/node_modules/.yarn-integrity'".
Warning: I, [2018-07-23T10:51:17.569651 #24450] INFO -- : Writing /var/www/mastodon/live/public/assets/doorkeeper/admin/application-50d68ad91b15067c63771e4811d971d7a56406c472a878021d1fb95d066efd8d.css
Warning: I, [2018-07-23T10:51:17.570237 #24450] INFO -- : Writing /var/www/mastodon/live/public/assets/doorkeeper/admin/application-50d68ad91b15067c63771e4811d971d7a56406c472a878021d1fb95d066efd8d.css.gz
Warning: I, [2018-07-23T10:51:17.593472 #24450] INFO -- : Writing /var/www/mastodon/live/public/assets/doorkeeper/application-29873392fba1f6a4fd5359214f854d900e24920096164f6e5343dbc0de69df0d.css
Warning: I, [2018-07-23T10:51:17.594584 #24450] INFO -- : Writing /var/www/mastodon/live/public/assets/doorkeeper/application-29873392fba1f6a4fd5359214f854d900e24920096164f6e5343dbc0de69df0d.css.gz
Warning: I, [2018-07-23T10:51:17.606278 #24450] INFO -- : Writing /var/www/mastodon/live/public/assets/pghero/favicon-db10337a56c45eb43c22ff5019546b520fa22c7281d4d385f235cbca67ed26bb.png
Warning: I, [2018-07-23T10:51:18.059748 #24450] INFO -- : Writing /var/www/mastodon/live/public/assets/pghero/application-b6568ba483c03c4fdcd8edd641f3b341ac0314ba01ab186645b8fc231cdff02e.js
Warning: I, [2018-07-23T10:51:18.060046 #24450] INFO -- : Writing /var/www/mastodon/live/public/assets/pghero/application-b6568ba483c03c4fdcd8edd641f3b341ac0314ba01ab186645b8fc231cdff02e.js.gz
Warning: I, [2018-07-23T10:51:18.096804 #24450] INFO -- : Writing /var/www/mastodon/live/public/assets/pghero/application-d7ee8e7dc0785de97337625e0f1030e1a892327ef4e72a48043ce09fd964874d.css
Warning: I, [2018-07-23T10:51:18.097132 #24450] INFO -- : Writing /var/www/mastodon/live/public/assets/pghero/application-d7ee8e7dc0785de97337625e0f1030e1a892327ef4e72a48043ce09fd964874d.css.gz
Warning: Created symlink /etc/systemd/system/multi-user.target.wants/mastodon-web.service → /etc/systemd/system/mastodon-web.service.
Warning: Created symlink /etc/systemd/system/multi-user.target.wants/mastodon-sidekiq.service → /etc/systemd/system/mastodon-sidekiq.service.
Warning: Created symlink /etc/systemd/system/multi-user.target.wants/mastodon-streaming.service → /etc/systemd/system/mastodon-streaming.service.
Warning: vincentux@vincentux.fr not found
Warning: !!
Warning: mastodon's script has encountered an error. Its execution was cancelled.
Warning: !!
Warning:
Warning: Removed /etc/systemd/system/multi-user.target.wants/mastodon-web.service.
Warning: Removed /etc/systemd/system/multi-user.target.wants/mastodon-sidekiq.service.
Warning: Removed /etc/systemd/system/multi-user.target.wants/mastodon-streaming.service.
Warning: /etc/cron.d/mastodon wasn't deleted because it doesn't exist.
Success! The SSOwat configuration has been generated
Error: Installation failed
nemsia
July 27, 2018, 12:41pm
11
Salut,
La restauration de tes sauvegardes ne fonctionne pas ?
Sinon, comme @GotExx , peut tu refaire l’installation en 2.4.2 puis la mise à jour.
Merci @nemsia
j’ai bien réussi a installé la version 2.4.2… super !
mais je n’arrive pas a restaurer la sauvegarde
j’ai essayé cette commande :
sudo yunohost backup restore --apps mastodon
usage: yunohost backup restore name
[-h] [--system [SYSTEM [SYSTEM ...]]]
[--apps [APPS [APPS ...]]] [--force]
yunohost backup restore: error: too few arguments
nemsia
July 27, 2018, 12:54pm
13
Tu doit lister les backup avec:
yunohost backup list
puis
yunohost backup restore --apps mastodon --ignore-system <nom_du_backup>
Désolé pour le temps de réponse, c’est les vacances
EDIT: j’avais oublier quelques arguments si la sauvegarde ne contient pas que mastodon.
sudo yunohost backup restore --apps mastodon --ignore-system 20180723-080949 --debug
215 DEBUG loading actions map namespace 'yunohost'
243 DEBUG extra parameter classes loaded: ['ask', 'password', 'required', 'pattern']
243 DEBUG initializing base actions map parser for cli
245 DEBUG registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
usage: yunohost
{user,domain,app,backup,monitor,settings,service,firewall,dyndns,tools,hook}
...
[-h] [--no-cache] [--output-as {json,plain,none}] [--debug]
[--quiet] [--timeout ==SUPPRESS==] [--admin-password PASSWORD]
[-v]
yunohost: error: unrecognized arguments: --ignore-system
mais cette commande :
sudo yunohost backup restore 20180723-080949 --debug
216 DEBUG loading actions map namespace 'yunohost'
244 DEBUG extra parameter classes loaded: ['ask', 'password', 'required', 'pattern']
245 DEBUG initializing base actions map parser for cli
247 DEBUG registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
377 DEBUG initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
384 DEBUG lock has been acquired
485 DEBUG loading python module yunohost.backup took 0.100s
486 INFO processing action [8943.1]: yunohost.backup.restore with args={'force': False, 'name': '20180723-080949', 'apps': None, 'system': None, 'auth': <moulinette.authenticators.ldap.Authenticator object at 0x7f004a34bb10>}
486 WARNING YunoHost is already installed
Do you really want to restore an already installed system? [y/N]: y
10647 DEBUG custom hook folder not found for action 'restore' in /etc/yunohost/hooks.d/
10649 DEBUG temporary restore directory '/home/yunohost.backup/tmp/20180723-080949' already exists
10657 DEBUG Delete dir: /home/yunohost.backup/tmp/20180723-080949
10662 DEBUG Extracting needed files from the archive...
Killed
J’ai supprimé le fichier 20180723-080949 du dossier /home/yunohost.backup/tmp/
et relancé la commande :
sudo yunohost backup restore 20180723-080949 --debug
256 DEBUG loading actions map namespace 'yunohost'
285 DEBUG extra parameter classes loaded: ['ask', 'password', 'required', 'pattern']
286 DEBUG initializing base actions map parser for cli
288 DEBUG registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
440 DEBUG initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
450 DEBUG stale lock file found
451 DEBUG lock has been acquired
593 DEBUG loading python module yunohost.backup took 0.142s
594 INFO processing action [20128.1]: yunohost.backup.restore with args={'force': False, 'name': '20180723-080949', 'apps': None, 'system': None, 'auth': <moulinette.authenticators.ldap.Authenticator object at 0x7fe553778b10>}
594 WARNING YunoHost is already installed
Do you really want to restore an already installed system? [y/N]: y
20062 DEBUG custom hook folder not found for action 'restore' in /etc/yunohost/hooks.d/
20066 DEBUG Extracting needed files from the archive...
Killed
Je me rend compte que je n’ai pas de dossier hooks.d dans /etc/yunohost/
c’est normal ???
ls -la /etc/yunohost/
total 72
drwxr-xr-x 4 root root 4096 Jul 22 11:32 .
drwxr-xr-x 115 root root 12288 Jul 27 12:14 ..
drwxr-xr-x 9 root root 4096 Jul 27 12:13 apps
-rw-r--r-- 1 root root 180 Jul 27 06:36 appslists.json
drwxr-xr-x 10 root root 4096 Jul 25 14:33 certs
-rw-r--r-- 1 root root 12 Apr 3 05:15 current_host
-rw-r--r-- 1 root root 336 Jul 22 11:31 firewall.yml
-rw-r--r-- 1 root root 360 Jul 22 11:31 firewall.yml.old
-rw-r--r-- 1 root root 0 Apr 3 05:06 from_script
-rw-r--r-- 1 root root 0 Apr 3 05:15 installed
-r-------- 1 root root 2484 Apr 3 15:12 letsencrypt_account.pem
-rw-r--r-- 1 root root 67 Jul 22 13:46 migrations_state.json
-r-------- 1 root root 11 Apr 3 05:16 mysql
-rw-r--r-- 1 root root 25 Jun 25 17:05 psql
-rw-r--r-- 1 root root 5777 Jul 27 12:38 services.yml
-rw-r--r-- 1 root root 5784 Jul 22 11:32 services.yml-old