Fun fun. YMMV but here is what I did. I was sitting at 4.2.8
cd ~/apps/<appname>
source setenv
cd mastodon
git checkout -- .
git fetch && git checkout v4.2.10
bundle config set jobs 4
bundle install
yarn install --frozen-lockfile
npx update-browserslist-db@latest
bundle exec rails assets:precompile
then I do this
pkill -f supervisor
before
../restart