if you're upgrading a fairly standard native install of #mastodon from 3.5.3 to 4, you will more than likely run into the same issues as i did. this is on a vanilla #debian machine. my upgrade steps that will hopefully save you a headache #mastodonupgrade #mastodon3.5.3 #mastodon4 (1 of 3):
as mastodon user:
"cd /home/mastodon/live"
"git checkout -- yarn.lock"
"git fetch && git checkout v4.0.0" #pull code
"git -C /home/mastodon/.rbenv/plugins/ruby-build pull"
"rbenv install 3.0.4" #upgrade ruby
"bundle install" #install deps
"yarn install" #install deps
"SKIP_POST_DEPLOYMENT_MIGRATIONS=true RAILS_ENV=production bundle exec rails db:migrate"
(2 of 3)
"RAILS_ENV=production bundle exec rails assets:precompile" #precompile
"sudo systemctl reload mastodon-web" #restart mastodon procs
"sudo systemctl restart mastodon-sidekiq" #restart mastodon procs
"RAILS_ENV=production bundle exec rails db:migrate" #migrate db
"sudo systemctl reload mastodon-web" #restart mastodon procs
"sudo systemctl restart mastodon-sidekiq" #restart mastodon procs
(3 of 3)