# After Mastodon upgrade to 4.0.2, tootctl isn't working anymore

**URL:** https://forum.yunohost.org/t/after-mastodon-upgrade-to-4-0-2-tootctl-isnt-working-anymore/24276
**Category:** Support apps
**Tags:** mastodon, english
**Created:** [March 31, 2023, 9:26pm UTC](https://forum.yunohost.org/t/after-mastodon-upgrade-to-4-0-2-tootctl-isnt-working-anymore/24276 "2023-03-31T21:26:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mjay42](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/a88e57/32.png) [@mjay42](https://forum.yunohost.org/u/mjay42)
#### Post date: [March 31, 2023, 9:26pm UTC](https://forum.yunohost.org/t/after-mastodon-upgrade-to-4-0-2-tootctl-isnt-working-anymore/24276/1 "2023-03-31T21:26:40Z")

</div>

## 🇬🇧/🇺🇸 Message template (english)

### My YunoHost server

**Hardware:** VPS bought online  
**YunoHost version:** 11.1.15 (stable).  
**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 ?** : no  
**If your request is related to an app, specify its name and version:**  **Mastodon 4.0.2~ynh2**

### Description of my issue

Hi guys,  
So I upgraded Mastodon to 4.0.2 a while ago and everything works finde except for tootctl.

How to reproduce the error:  
Login via SSH

```auto
sudo -i
cd /var/www/mastodon/live/
RAILS_ENV=production bundle exec bin/tootctl media usage

```

Now this has always worked but now I get the following error message:

```auto
rbenv: version `3.0.4' is not installed (set by /var/www/mastodon/live/.ruby-version)

```

So I tried:

```auto
rbenv install 3.0.4

```

But then trying to start tootctl I get another error:

```auto
https://github.com/Gargron/blurhash.git (at 870a34e@870a34e) is not yet checked out. Run `bundle install` first.

```

Any idea how to get tootctl working again?

Kind regards

---

<div class="post-metadata">

### Author: ![mjay42](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/m/a88e57/32.png) [@mjay42](https://forum.yunohost.org/u/mjay42)
#### Post date: [March 31, 2023, 11:15pm UTC](https://forum.yunohost.org/t/after-mastodon-upgrade-to-4-0-2-tootctl-isnt-working-anymore/24276/2 "2023-03-31T23:15:43Z")

</div>

I figured out this does the job:

```auto
sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin bin/tootctl

```

But I would still try to understand the difference, maybe someone can answer this as I’n not familiar with ruby/rbenv.

---

<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: [April 15, 2023, 11:16pm UTC](https://forum.yunohost.org/t/after-mastodon-upgrade-to-4-0-2-tootctl-isnt-working-anymore/24276/3 "2023-04-15T23:16:39Z")

</div>

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