[résolut] Mastodon echec restauration

Bonjour suite a un changement de serveur j’ai fait une sauvegarde de mon instance mastodon, mais a la restauration les service mastodon-web et mastodon-sidekiq ne se lance pas

voici le log de la restauration

Summary
Info: Preparing archive for restoration...
Info: Restoring mastodon...
Info: [+...................] > Loading installation settings...
Info: [#+..................] > Validating restoration parameters...
Info: [##+.................] > Recreating the dedicated system user...
Info: [###++...............] > Restoring the app main directory...
Info: [#####+..............] > Reinstalling dependencies...
Info: Installing rbenv with git...
Info: Installing ruby-build with git...
Info: Installing rbenv-aliases with git...
Info: Installing xxenv-latest with git...
Info: Installing Ruby-3.0.3
Info: [######+.............] > Restoring the NGINX web server configuration...
Info: [#######+............] > Restoring the PostgreSQL database...
Info: [########++..........] > Adding swap if needed...
Info: [##########+.........] > Adding 0 Mo to swap...
Info: [###########+........] > Building app...
Info: [############+.......] > Restoring various files...
Info: [#############++.....] > Restoring the systemd configuration...
Info: [###############+....] > Integrating service in YunoHost...
Info: [################+...] > Starting a systemd service...
Warning: (this may take some time)
Warning: The service mastodon-web didn't fully executed the action start before the timeout.
Warning: Please find here an extract of the end of the log of the service mastodon-web:
Warning: Feb 25 12:43:23 bundle[192457]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
Warning: Feb 25 12:43:23 bundle[192457]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
Warning: Feb 25 12:43:23 bundle[192457]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
Warning: Feb 25 12:43:23 bundle[192457]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/cli.rb:34:in `dispatch'
Warning: Feb 25 12:43:23 bundle[192457]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
Warning: Feb 25 12:43:23 bundle[192457]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/cli.rb:28:in `start'
Warning: Feb 25 12:43:23 bundle[192457]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/exe/bundle:45:in `block in <top (required)>'
Warning: Feb 25 12:43:23 bundle[192457]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
Warning: Feb 25 12:43:23 bundle[192457]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/exe/bundle:33:in `<top (required)>'
Warning: Feb 25 12:43:23 bundle[192457]:         from /var/www/mastodon/live/bin/bundle:3:in `load'
Warning: Feb 25 12:43:23 bundle[192457]:         from /var/www/mastodon/live/bin/bundle:3:in `<main>'
Warning: Feb 25 12:43:23 systemd[1]: mastodon-web.service: Main process exited, code=exited, status=1/FAILURE
Warning: Feb 25 12:43:23 systemd[1]: mastodon-web.service: Failed with result 'exit-code'.
Warning: Feb 25 12:43:23 systemd[1]: mastodon-web.service: Consumed 1.265s CPU time.
Warning: Feb 25 12:43:23 systemd[1]: mastodon-web.service: Scheduled restart job, restart counter is at 5.
Warning: Feb 25 12:43:23 systemd[1]: Stopped mastodon-web.
Warning: Feb 25 12:43:23 systemd[1]: mastodon-web.service: Consumed 1.265s CPU time.
Warning: Feb 25 12:43:23 systemd[1]: mastodon-web.service: Start request repeated too quickly.
Warning: Feb 25 12:43:23 systemd[1]: mastodon-web.service: Failed with result 'exit-code'.
Warning: Feb 25 12:43:23 systemd[1]: Failed to start mastodon-web.
Warning: (this may take some time)
Warning: The service mastodon-sidekiq didn't fully executed the action start before the timeout.
Warning: Please find here an extract of the end of the log of the service mastodon-sidekiq:
Warning: Feb 25 12:48:25 bundle[193454]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
Warning: Feb 25 12:48:25 bundle[193454]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
Warning: Feb 25 12:48:25 bundle[193454]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
Warning: Feb 25 12:48:25 bundle[193454]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/cli.rb:34:in `dispatch'
Warning: Feb 25 12:48:25 bundle[193454]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
Warning: Feb 25 12:48:25 bundle[193454]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/cli.rb:28:in `start'
Warning: Feb 25 12:48:25 bundle[193454]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/exe/bundle:45:in `block in <top (required)>'
Warning: Feb 25 12:48:25 bundle[193454]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
Warning: Feb 25 12:48:25 bundle[193454]:         from /opt/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/bundler-2.4.7/exe/bundle:33:in `<top (required)>'
Warning: Feb 25 12:48:25 bundle[193454]:         from /var/www/mastodon/live/bin/bundle:3:in `load'
Warning: Feb 25 12:48:25 bundle[193454]:         from /var/www/mastodon/live/bin/bundle:3:in `<main>'
Warning: Feb 25 12:48:25 systemd[1]: mastodon-sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Warning: Feb 25 12:48:25 systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Warning: Feb 25 12:48:25 systemd[1]: mastodon-sidekiq.service: Consumed 1.423s CPU time.
Warning: Feb 25 12:48:25 systemd[1]: mastodon-sidekiq.service: Scheduled restart job, restart counter is at 5.
Warning: Feb 25 12:48:25 systemd[1]: Stopped mastodon-sidekiq.
Warning: Feb 25 12:48:25 systemd[1]: mastodon-sidekiq.service: Consumed 1.423s CPU time.
Warning: Feb 25 12:48:25 systemd[1]: mastodon-sidekiq.service: Start request repeated too quickly.
Warning: Feb 25 12:48:25 systemd[1]: mastodon-sidekiq.service: Failed with result 'exit-code'.
Warning: Feb 25 12:48:25 systemd[1]: Failed to start mastodon-sidekiq.
Info: The service mastodon-streaming has correctly executed the action start.
Info: [#################+..] > Reloading NGINX web server...
Info: [####################] > Restoration completed for mastodon
Success! Restoration completed
apps: 
  mastodon: Success
system: 

lors d’une installation “neuve” l’application marche correctement don au pire comment
fusionner les 2?

merci pour votre aide

Il nous faudrait le journal complet, l’extrait n’est pas parlant.

le voici

https://paste.yunohost.org/raw/uyiniduhov

Ok, donc le service ne démarre pas, et la cause n’est pas très claire pour moi.

Bon j’ai “résolut” le problème en réinstallant mastodon depuis une install neuve

puis j’ai “détruis” les table de cette install et restaurer l"ancienne base
et ensuite remis le dossier système avec les bon droit

âpres un redémarrage du serveur tout semble fonctionner

ses une méthode un peu barbare mais bon :person_shrugging:

Ce qui n’est pas très différent de bidouiller la sauvegarde de restauration en ajoutant l’export de la base de données de la sauvegarde (un peu plus manuel au final), une méthode qui marche bien pour des applications plus simples.

Bien joué :slight_smile:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.