Closed nizarus closed 3 months ago
While we're waiting for this to get merged, I wanted to see if you all could give me any advice on how to upgrade ruby manually on my setup. Whenever I try to run commands as the Mastodon user it tells me that rbenv is not found. I tried running some commands as root but I'm worried I just made things worse. My server just ballooned out of control without the pruning commands and I had to shut down all of the mastodon services until I can get Ruby working again.
While we're waiting for this to get merged, I wanted to see if you all could give me any advice on how to upgrade ruby manually on my setup. Whenever I try to run commands as the Mastodon user it tells me that rbenv is not found. I tried running some commands as root but I'm worried I just made things worse. My server just ballooned out of control without the pruning commands and I had to shut down all of the mastodon services until I can get Ruby working again.
Hello,
Sorry for the delayed answer, here is how I do it, as root
user:
source /etc/profile.d/rbenv.sh
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.2.3
Then tootctl
should be good.
Thank you so much for posting this. I had to add /opt/rbenv/versions/3.2.3/bin to the PATH to make the commands work again but I'm finally back in business. I really appreciate it.
I'm still having trouble with this even after the latest upgrade. The workaround suggested by @elacheche did not work for me. I'm getting a "/usr/bin/env: ‘ruby’: No such file or directory" when I try to use tootctl.
To use tootctl
, you can use this:
# cd /var/www/mastodon/live
# sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin bin/tootctl --help
@bigjdunham which version you have ? I confirm that with 4.2.12~ynh1 version, tootcl is working from scratch.
Describe the bug
The Yunohost mastodon app is still using Ruby 3.2.2, but tootcl command needs 3.2.3 version. As workaround, we install Ruby 3.2.3 manually but after each upgrade the 3.2.3 version is removed and 3.2.2 version is installed.
Context
Steps to reproduce
Expected behavior
Getting tootcl working.