Thanks, I appreciate you keeping this up-to-date!
A few problems I had/things I noticed:
After upgrading, there were some strange dotfiles in the app dir that appear to be cruft from a macOS install. Particularly, ._restart
, ._start
etc. I'm guessing they are in the mastodon_scripts.tar.gz
.
I wasn't upgrading from < 4.2.0 so this didn't matter for me, but I think there are two different steps where the db:migrate command could potentially be run -- it seems a bit confusing. Is that correct?
I saw the following errors when I ran the script:
tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.com.apple.metadata:kMDItemWhereFroms'
tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.com.apple.provenance'
tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.com.apple.metadata:kMDItemWhereFroms'
tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.com.apple.metadata:kMDItemWhereFroms'
tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.com.apple.metadata:kMDItemWhereFroms'
tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.com.apple.provenance'
tar: Ignoring unknown extended header keyword `LIBARCHIVE.xattr.com.apple.metadata:kMDItemWhereFroms'
and
Fetching https://github.com/jhawthorn/nsa.git
Git error: command `git reset --hard e020fcc3a54d993ab45b7194d89ab720296c111b` in directory
/home/[username]/apps/[appname]/mastodon/vendor/bundle/ruby/bundler/gems/nsa-e020fcc3a54d has failed.
fatal: Could not parse object 'e020fcc3a54d993ab45b7194d89ab720296c111b'.
and towards the end:
https://github.com/mastodon/rails-settings-cached.git (at v0.6.6-aliases-true@86328ef) is not yet checked out. Run `bundle install` first.
In the end, my instance did not come back up so I reverted to the backup. Some errors in the supervisord.log:
2024-02-05 15:41:00,896 INFO spawned: 'puma' with pid 5619
2024-02-05 15:41:00,897 INFO spawned: 'sidekiq' with pid 5620
2024-02-05 15:41:01,033 WARN exited: puma (exit status 127; not expected)
2024-02-05 15:41:01,107 INFO gave up: puma entered FATAL state, too many start retries too quickly
2024-02-05 15:41:01,112 WARN exited: sidekiq (exit status 127; not expected)
2024-02-05 15:41:02,113 INFO gave up: sidekiq entered FATAL state, too many start retries too quickly
and sidekiq.log:
bundler: command not found: sidekiq
Install missing gem executables with `bundle install`
Rerunning the script led to slightly different errors, but similar issues with the nsa package.