Mastodon update fails (4.3.6->4.5.0), ruby 3.4.5 not installed, provision fails

What app is this about, and its version: Mastodon 4.3.6~ynh1
What YunoHost version are you running: 12.1.35
What type of hardware are you using: Old laptop or computer

Describe your issue

Mastodon update (yunohost app upgrade mastodon) fails.
I get these errors (end of the log):
2025-11-11 09:01:35,098: WARNING - rbenv: version `3.4.5’ not installed
2025-11-11 09:01:35,601: ERROR - provision_or_update failed for ruby : An error occured inside the script snippet

I’m pasting the end of the log, because I’m a new forum user and can’t paste anything with a link and the earlier error log has links.

Share relevant logs or error messages

2025-11-11 09:01:34,981: INFO - Building Ruby 3.4.5, this may take some time…
2025-11-11 09:01:34,989: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./provision_or_update_ruby” 7>&1’]’
2025-11-11 09:01:34,992: DEBUG - + source /usr/share/yunohost/helpers
2025-11-11 09:01:34,992: DEBUG - ++++ dirname – /usr/share/yunohost/helpers
2025-11-11 09:01:34,993: DEBUG - +++ cd – /usr/share/yunohost
2025-11-11 09:01:34,993: DEBUG - +++ pwd
2025-11-11 09:01:34,993: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-11-11 09:01:34,993: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-11-11 09:01:34,995: DEBUG - ++ readonly ‘XTRACE_ENABLE=set -o xtrace’
2025-11-11 09:01:34,995: DEBUG - ++ XTRACE_ENABLE=‘set -o xtrace’
2025-11-11 09:01:35,083: DEBUG - /var/www/mastodon /var/cache/yunohost/app_tmp_work_dirs/app_b2790wv4
2025-11-11 09:01:35,098: WARNING - rbenv: version `3.4.5’ not installed
2025-11-11 09:01:35,601: ERROR - provision_or_update failed for ruby : An error occured inside the script snippet

Hi,
Have you checked the installed versions?

What versions do you mean? Yunohost is up to date and I’m using the Mastodon ynh app. Could you point me to some extra instructions I’m should follow, in addition to just “yunohost app upgrade mastodon”?

I was talking about rbenv version `3.4.5’
To do this, use this command:

sudo yunohost app shell mastodon

Then, use the command which will allow you to view the installed versions.

rbenv install --list

If it is present, you can activate it with this command:

rbenv global 3.4.5

Otherwise, install the Ruby build for the specified version using:

rbenv install 3.4.5

Once installation or activation is complete (if present), you can rebuild the resources.
Use the following commands:

cd live

Afterwards,

RAILS_ENV=production bundle exec rails assets:precompile

It will probably be necessary to restart the Mastodon services:

systemctl restart mastodon-web.service mastodon-sidekiq.service

Thanks! rbenv is not in path apparently:

sudo yunohost app shell mastodon
rbenv install --list
bash: rbenv: command not found

However I found out from the restore log that /opt/rbenv/bin/rbenv exists, and from that I get a list:
3.2.9
3.3.10
3.4.7
jruby-10.0.2.0
mruby-3.4.0
picoruby-3.0.0
truffleruby-25.0.0
truffleruby+graalvm-25.0.0

However - thanks again for your interest in helping me, but I gave up on Mastodon and moved my one man instance over to gotosocial. This thread can be closed for my part.

1 Like