root@sub:~# yunohost app shell mastodon
mastodon@sub:~$ rbenv install --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
Only latest stable releases for each Ruby implementation are shown.
Use `rbenv install --list-all' to show all local versions.
mastodon@sub:~$ rbenv install 3.4.5
==> Installing ruby-3.4.5...
-> ./configure --prefix=/opt/rbenv/versions/3.4.5 --enable-shared --with-ext=openssl,psych,+
-> make -j 4
-> make install
BUILD FAILED (Debian 12 on x86_64 using ruby-build 20251023-2-gdd6ffec2)
You can inspect the build directory at /tmp/ruby-build.20251115090759.18775.kUiOZi
See the full build log at /tmp/ruby-build.20251115090759.18775.log
mastodon@sub:~$
Hi,
Update from version 4.3.7 to version 4.5.1.
Wouldn’t it be better to go through the stable versions, after version 4.3.7, before going directly to version 4.5.1?
I’ve never done this kind of update, but I think it would be better to make a backup of the Mastodon database and Mastodon too as a precaution :
yunohost backup create --apps mastodon
Then, create a backup folder if it does not exist, then use this command:
pg_dump -U mastodon -W -F t mastodon > /backups/mastodon_backup.dump
You will be asked for the password found in the .env.production file = PostgreSQL = DB_PASS=password
Copy it before running the command and put it aside.
I have restored the last automatic backup of Mastodon, the one done just before the upgrade. That made Mastodon apparently go up but its service mastodon-streaming fails to start.
I tried to restart it manually but it immediately fails.
So I have manually stopped the other two services as I am not sure if I will be able to keep new data of my Mastodon users if they start using it now, I might have to go back again to a previous point, I don’t know. Trying to prevent my Mastodon users do not loose data.
Why do my mastodon-streaming service fails to start?
You would have to install nvm. But node -v shows the active node version in your shell, not for your app. You need to install 20.19.5 in /opt/node_n/n/versions/node/:
Thank you. I don’t seem to get this nvm thing… Please look what I did and what I got:
root@sub:~# cd /opt/node_n/n/versions/node/
root@sub:/opt/node_n/n/versions/node# node -v
v18.20.4
root@sub:/opt/node_n/n/versions/node# N_PREFIX=/opt/node_n/ /usr/share/yunohost/helpers.v2.1.d/vendor/n/n install 20.19.5
copying : node/20.19.5
installed : v20.19.5 to /opt/node_n/bin/node
active : v18.20.4 at /usr/bin/node
root@sub:/opt/node_n/n/versions/node# nvm use 20.19.5
-bash: nvm: command not found