Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mastodon is not starting after migration to Yunohost 12 #474

Open
bigjdunham opened this issue Nov 3, 2024 · 3 comments
Open

Mastodon is not starting after migration to Yunohost 12 #474

bigjdunham opened this issue Nov 3, 2024 · 3 comments

Comments

@bigjdunham
Copy link

Describe the bug

Mastodon is not launching after upgrading to Yunohost 12. mastodon-web and mastodon-sidekiq cannot load. Mastodon-streaming is running fine, at least if the Yunohost Web Portal Administration page can be trusted. I have attempted to "restart" the services via the the Web Portland, Yunohost command, and Debian command line. Mastodon was working just fine before the upgrade. I really don't want to have to uninstall and reinstall Mastodon, as I'm worried about losing all the data that is already stored on this server.

Context

  • Hardware: VPS
  • YunoHost version: 12.0.6
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes
    • If yes, please explain: Mastodon is setup to use object storage on MinIO server separate from Yunohost for Mastodon media
  • Using, or trying to install package version/branch: 4.2.12~ynh1

Steps to reproduce

Upgrade Yunohost from Version 11 to Version 12, Mastodon will stop working.

Expected behavior

After upgrade Mastodon will continue to work or at least spit out usable logs that could be helpful.

Logs

See this issue for more information: The logs listed here are exactly the same as my own. And the tootctl error log mentioned is also the same as mine.

@bigjdunham bigjdunham changed the title Mastodon is not starting after upgrade to Yunohost 12 Mastodon is not starting after migration to Yunohost 12 Nov 3, 2024
@Tagadda
Copy link
Member

Tagadda commented Nov 5, 2024

Thank you for the report! Can you share Service Logs with YunoPaste or something?

@nizarus
Copy link

nizarus commented Nov 24, 2024

Got the same problem described with log here
To get my instance working again I followed these steps:
1- Backup mastodon as described here
2- remove mastodon app via yunohost
3- install mastodon via yunohost
4- restore mastodon by following these documentation

@killthealias
Copy link

I also am having this issue, trying to force a reinstall/update led to this result. Would prefer to find a solution to this that doesn't involve backup/restore work.

Error: Could not upgrade mastodon: An error occurred inside the app upgrade script
Info: The operation 'Upgrade the 'mastodon' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20241216-113032-app_upgrade-mastodon' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - /var/www/mastodon/live/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.13/lib/bundler/runtime.rb:55:in `each'
Info: DEBUG - /var/www/mastodon/live/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.13/lib/bundler/runtime.rb:55:in `block in require'
Info: DEBUG - /var/www/mastodon/live/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.13/lib/bundler/runtime.rb:44:in `each'
Info: DEBUG - /var/www/mastodon/live/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.13/lib/bundler/runtime.rb:44:in `require'
Info: DEBUG - /var/www/mastodon/live/vendor/bundle/ruby/3.2.0/gems/bundler-2.4.13/lib/bundler.rb:187:in `require'
Info: DEBUG - /var/www/mastodon/live/config/application.rb:24:in `<main>'
Info: DEBUG - <internal:/opt/rbenv/versions/3.2.3/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
Info: DEBUG - <internal:/opt/rbenv/versions/3.2.3/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
Info: DEBUG - /var/www/mastodon/live/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
Info: DEBUG - /var/www/mastodon/live/Rakefile:6:in `<main>'
Info: DEBUG - /var/www/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/commands/rake/rake_command.rb:20:in `block in perform'
Info: DEBUG - /var/www/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
Info: DEBUG - /var/www/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/command.rb:51:in `invoke'
Info: DEBUG - /var/www/mastodon/live/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/commands.rb:18:in `<main>'
Info: DEBUG - <internal:/opt/rbenv/versions/3.2.3/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
Info: DEBUG - <internal:/opt/rbenv/versions/3.2.3/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
Info: DEBUG - /var/www/mastodon/live/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
Info: DEBUG - bin/rails:4:in `<main>'
Info: DEBUG - (See full trace by running task with --trace)
Info: DEBUG - + ynh_exit_properly
Warning: Upgrade failed ... attempting to restore the safety backup (Yunohost first need to remove the app for this) ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants