Mastodon installation fails

What app is this about, and its version: 4.5.2~ynh1
What YunoHost version are you running: 12.1.36 (stable)
What type of hardware are you using: Virtual machine

Describe your issue

I have installed Mastodon on Yunohost dozens of times without any issues. Except lately with the 4.5.x releases every installation fails at the same point. The problem seems to be related to a Ruby Bundler version mismatch, but my Linux skills aren’t good enough to try to troubleshoot the issue–hence why I use Yunohost! :slight_smile:

EDIT: link updated as I now am apparently trusworthy. :slight_smile:

Share relevant logs or error messages

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

2 Likes

For additional context:

  • Mastodon installation is broken
  • Glitchsoc (Mastodon) install is broken
  • Restoring Mastodon backups is broken
  • Restoring Glitchsoc backups is broken

This is 100% reproducible. I’ve tried this on virtual AND physical hardware:

  • do a fresh install of Debian 12
  • install Curl
  • install Yunohost
  • install Mastodon/Glitchsoc app
  • watch it fail

The install script seems to be calling Bundler 2.7, which isn’t installled:

Info: DEBUG - Activating bundler (\~> 2.7) failed:
Info: DEBUG - Could not find ‘bundler’ (\~> 2.7) - did find: \[bundler-4.0.2,bundler-4.0.2\]
Info: DEBUG - Checked in ‘GEM_PATH=/var/www/mastodon/.local/share/gem/ruby/3.4.0:/opt/rbenv/versions/3.4.5/lib/ruby/gems/3.4.0’ , execute `gem env` for more information
Info: DEBUG -
Info: DEBUG - To install the version of bundler this project requires, run `gem install bundler -v '~> 2.7'`

Any help is appreciated.

1 Like

I got exactly the same problem, so following

1 Like

It seems like this issue was fixed in the most recent commit a couple of hours ago. Please try again.

Thanks, I’ll give it a try!

Clean install worked!

1 Like

Restoring from backup worked also!

I have the same issue. Mastodon 4.5.2 uninstalled when i tryed to update to 4.5.3.

I can’t restore an old backup but i can install a fresh new install without all users and setting. I lost everything …

Oof. Yeah, I didn’t try restoring a backup of an earlier version.

maybe post your log?

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

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