This is a backport for the 3.5.x branch.
Upgrade overview
This release contains upgrade notes that deviate from the norm:
ℹ️ The recommended Ruby version has been updated
For more information, scroll down to the upgrade instructions section.
Changelog
Fixed
- Fix crash in
tootctl
commands making use of parallelization when Elasticsearch is enabled (ClearlyClaire, ClearlyClaire) - Fix crash in
db:setup
when Elasticsearch is enabled (rrgeorge) - Fix user archive takeout when using OpenStack Swift or S3 providers with no ACL support (ClearlyClaire)
- Fix invalid/expired invites being processed on sign-up (ClearlyClaire)
Security
- Update Ruby to 3.0.6 due to ReDoS vulnerabilities (saizai)
- Fix unescaped user input in LDAP query (ClearlyClaire)
Upgrade notes
Because this is a backport, it is not available with git pull
. Use git fetch && git checkout v3.5.8
As always, make sure you have backups of the database before performing any upgrades. If you are using docker-compose, this is how a backup command might look: docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump
Dependencies
External dependencies have not changed compared to v3.5.7, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
- Ruby: 2.7 to 3.0
- PostgreSQL: 9.5 or newer
- Elasticsearch (optional, for full-text search): 7.x
- Redis: 4 or newer
- Node: 12.22 or newer
However, the recommended Ruby version has changed from 3.0.3 to 3.0.6.
Update steps
The following instructions are for updating from 3.5.7.
If you are upgrading directly from an earlier release, please carefully read the upgrade notes for the skipped releases as well, as they often require extra steps such as database migrations or dependency updates.
Non-Docker
- Pull the code:
git fetch && git checkout v3.5.8
- If you are using
rbenv
, you will be require to install it withRUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.0.6
. You may need to updaterbenv
itself withgit -C /home/mastodon/.rbenv/plugins/ruby-build pull
. - Install dependencies:
bundle install
andyarn install
- Restart
mastodon-web
andmastodon-sidekiq
:
systemctl reload mastodon-web
systemctl restart mastodon-sidekiq
Docker
The exact steps depend on your setup, but they are likely to match the following:
- Pull the code:
git fetch && git checkout v3.5.8
- Pull the prebuilt images:
docker-compose pull
, or, alternatively, build them yourself:docker-compose build --pull
- Restart all Mastodon processes:
docker-compose up -d