Mon serveur YunoHost
Matériel: VPS acheté en ligne
Version de YunoHost:
yunohost 3.6.5.1 (now)
yunohost-admin 3.6.5 (stable)
moulinette 3.6.4.1 (stable)
ssowat 3.6.4 (stable)
J’ai accès à mon serveur : En SSH et Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Description du problème
Je souhaite mettre à jour Mastodon en version 3.0.1 mais selon le message d’erreur ci-dessous je manque d’espace disque.
sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh
Info: Now upgrading app mastodon…
Info: [....................] > Loading installation settings...
Info: [....................] > Ensuring downward compatibility...
Info: /etc/apt/sources.list.d/mastodon.list wasn't deleted because it doesn't exist.
Info: /etc/apt/preferences.d/mastodon wasn't deleted because it doesn't exist.
Info: /etc/apt/trusted.gpg.d/mastodon.gpg wasn't deleted because it doesn't exist.
Info: /etc/apt/trusted.gpg.d/mastodon.asc wasn't deleted because it doesn't exist.
Info: [++..................] > Backing up the app before upgrading (may take a while)...
Warning: 16947 Please wait, the service mastodon-web is starting.....
Warning: 24078 Please wait, the service mastodon-sidekiq is starting.....
Warning: 28922 Not enough free disk space on '/home/yunohost.backup/archives'
Warning: Backup failed, the upgrade process was aborted.
Error: Unable to upgrade mastodon
Info: The operation 'Upgrade 'mastodon' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191011-190932-app_upgrade-mastodon --share'
Error: The following apps were not upgraded: mastodon
Je souhaite donc supprimer les anciens media mais je n’y arrive pas…
je me place dans : /var/www/mastodon/live/
et je lance RAILS_ENV=production /var/www/mastodon/live/bin/tootctl media remove
et les logs :
Traceback (most recent call last):
32: from /var/www/mastodon/live/bin/tootctl:5:in `<main>'
31: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
30: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
29: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
28: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
27: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:238:in `block in subcommand'
26: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:115:in `invoke'
25: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
24: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
23: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
22: from /var/www/mastodon/live/lib/mastodon/media_cli.rb:51:in `remove'
21: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/batches.rb:135:in `find_in_batches'
20: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/batches.rb:222:in `in_batches'
19: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/batches.rb:222:in `loop'
18: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/batches.rb:238:in `block in in_batches'
17: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/batches.rb:136:in `block in find_in_batches'
16: from /var/www/mastodon/live/lib/mastodon/media_cli.rb:52:in `block in remove'
15: from /var/www/mastodon/live/lib/mastodon/media_cli.rb:52:in `each'
14: from /var/www/mastodon/live/lib/mastodon/media_cli.rb:54:in `block (2 levels) in remove'
13: from /var/www/mastodon/live/app/workers/maintenance/uncache_media_worker.rb:13:in `perform'
12: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/paperclip-6.0.0/lib/paperclip/attachment.rb:270:in `destroy'
11: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/paperclip-6.0.0/lib/paperclip/attachment.rb:242:in `save'
10: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/paperclip-6.0.0/lib/paperclip/storage/filesystem.rb:61:in `flush_deletes'
9: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/paperclip-6.0.0/lib/paperclip/storage/filesystem.rb:61:in `each'
8: from /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/paperclip-6.0.0/lib/paperclip/storage/filesystem.rb:64:in `block in flush_deletes'
7: from /opt/rbenv/versions/2.6.1/lib/ruby/2.6.0/fileutils.rb:561:in `rm'
6: from /opt/rbenv/versions/2.6.1/lib/ruby/2.6.0/fileutils.rb:561:in `each'
5: from /opt/rbenv/versions/2.6.1/lib/ruby/2.6.0/fileutils.rb:562:in `block in rm'
4: from /opt/rbenv/versions/2.6.1/lib/ruby/2.6.0/fileutils.rb:775:in `remove_file'
3: from /opt/rbenv/versions/2.6.1/lib/ruby/2.6.0/fileutils.rb:1436:in `remove_file'
2: from /opt/rbenv/versions/2.6.1/lib/ruby/2.6.0/fileutils.rb:1442:in `platform_support'
1: from /opt/rbenv/versions/2.6.1/lib/ruby/2.6.0/fileutils.rb:1437:in `block in remove_file'
/opt/rbenv/versions/2.6.1/lib/ruby/2.6.0/fileutils.rb:1437:in `unlink': Permission denied @ apply2files - /var/www/mastodon/live/public/system/media_attachments/files/000/000/001/original/da2faed2e81309cd.jpeg (Errno::EACCES)
ou avec sudo :
sudo RAILS_ENV=production /var/www/mastodon/live/bin/tootctl media remove
/usr/bin/env: ‘ruby’: No such file or directory
HELP