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

**URL:** https://forum.yunohost.org/t/mastodon-update-fails-4-3-6-4-5-0-ruby-3-4-5-not-installed-provision-fails/40797
**Category:** Support apps
**Tags:** mastodon, upgrade, english
**Created:** [November 11, 2025, 9:38am UTC](https://forum.yunohost.org/t/mastodon-update-fails-4-3-6-4-5-0-ruby-3-4-5-not-installed-provision-fails/40797 "2025-11-11T09:38:41Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kirjis](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kirjis](https://forum.yunohost.org/u/kirjis)
#### Post date: [November 11, 2025, 9:38am UTC](https://forum.yunohost.org/t/mastodon-update-fails-4-3-6-4-5-0-ruby-3-4-5-not-installed-provision-fails/40797/1 "2025-11-11T09:38:41Z")

</div>

**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

---

<div class="post-metadata">

### Author: ![JfmbLinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jfmblinux/32/11238_2.png) [@JfmbLinux](https://forum.yunohost.org/u/JfmbLinux)
#### Post date: [November 11, 2025, 4:16pm UTC](https://forum.yunohost.org/t/mastodon-update-fails-4-3-6-4-5-0-ruby-3-4-5-not-installed-provision-fails/40797/3 "2025-11-11T16:16:43Z")

</div>

Hi,  
Have you checked the installed versions?

---

<div class="post-metadata">

### Author: ![kirjis](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kirjis](https://forum.yunohost.org/u/kirjis)
#### Post date: [November 11, 2025, 5:24pm UTC](https://forum.yunohost.org/t/mastodon-update-fails-4-3-6-4-5-0-ruby-3-4-5-not-installed-provision-fails/40797/4 "2025-11-11T17:24:28Z")

</div>

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”?

---

<div class="post-metadata">

### Author: ![JfmbLinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jfmblinux/32/11238_2.png) [@JfmbLinux](https://forum.yunohost.org/u/JfmbLinux)
#### Post date: [November 11, 2025, 5:38pm UTC](https://forum.yunohost.org/t/mastodon-update-fails-4-3-6-4-5-0-ruby-3-4-5-not-installed-provision-fails/40797/5 "2025-11-11T17:38:14Z")

</div>

> [@kirjis](#):
>
> WARNING - rbenv: version `3.4.5’ not installed

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

```auto
sudo yunohost app shell mastodon

```

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

```auto
rbenv install --list

```

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

```auto
rbenv global 3.4.5

```

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

```auto
rbenv install 3.4.5

```

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

```auto
cd live

```

Afterwards,

```auto
RAILS_ENV=production bundle exec rails assets:precompile

```

It will probably be necessary to restart the Mastodon services:

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

```

---

<div class="post-metadata">

### Author: ![kirjis](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/k/df788c/32.png) [@kirjis](https://forum.yunohost.org/u/kirjis)
#### Post date: [November 11, 2025, 6:06pm UTC](https://forum.yunohost.org/t/mastodon-update-fails-4-3-6-4-5-0-ruby-3-4-5-not-installed-provision-fails/40797/6 "2025-11-11T18:06:26Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [November 26, 2025, 6:06pm UTC](https://forum.yunohost.org/t/mastodon-update-fails-4-3-6-4-5-0-ruby-3-4-5-not-installed-provision-fails/40797/7 "2025-11-26T18:06:57Z")

</div>

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