Seems like I am finally close but stuck on streaming when starting
Here is what I ended-up doing. I was on ruby 3.0.2 and mastodon 4.1.4 btw
fixing ~/USER/.rbenv
cd ~
mv .rbenv .rbenv-DATE
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bash_profile
mkdir -p ~/tmp && export TMPDIR=~/tmp
scl enable devtoolset-10 -- rbenv install 3.2.2
echo "3.2.2" > /home/USER/apps/APP/mastodon/.ruby-version
fixing setenv
cd ~/apps/APP
cp setenv setenv-DATE
vi setenv
(replace "/opt/rh/rh-ruby30/root/usr/local/bin:/opt/rh/rh-ruby30/root/usr/bin" with "/home/USER/.rbenv/shims:/home/USER/.rbenv/bin"
checking bundle and yarn
which bundle
(should return "~/.rbenv/shims/bundle")
which yarn
(should return "~/apps/APP/mastodon/bin/yarn")
Prep for mastodon upgrade
cd ~/apps/APP
source setenv
which bundle
(should return "~/.rbenv/shims/bundle")
which yarn
(should return "~/apps/APP/mastodon/bin/yarn")
source scl_source enable devtoolset-11
Upgrade
cd ~/apps/app_name/
./stop
source setenv
cd mastodon
git checkout -- .
git fetch && git checkout v4.2.1
bundle config set jobs 4
bundle install
yarn install --frozen-lockfile
RAILS_ENV=production bundle exec rails assets:precompile
../restart
But - still getting "Yarn executable was not detected in the system" errors on any yarn commands and streaming error on start or restart
./restart
streaming: ERROR (spawn error)
nginx: started
puma: started
redis: started
sidekiq: started
Logging a support ticket. I'm stuck.