Your self-hosted, globally interconnected microblogging community
:warning: The 4.0.x branch will not receive any update—including security fixes—after this one.
:warning: This release is an important security release fixing a critical security issue (CVE-2024-23832).
Corresponding security releases are available for the 4.2.x branch, the 4.1.x branch and the 3.5.x branch.
If you are using nightly builds, do not use this release but update to
nightly.2024-02-02-security
or newer instead. If you are on themain
branch, update to the latest commit.
The 4.0.x branch will not receive any further update after.
This means that no further security fix will be made available for this branch, and you will need to update to a more recent version (such as the 4.2.x branch) to receive security fixes.
To get the code for v4.0.13, use git fetch && git checkout v4.0.13
.
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
External dependencies have not changed compared to v4.0.9, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it on this page.
The following instructions are for updating from 4.0.12.
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.
Non-Docker only:
bundle install
and yarn install --frozen-lockfile
Both Docker and non-Docker:
:warning: The 3.5.x branch will not receive any update—including security fixes—after this one.
:warning: This release is an important security release fixing a critical security issue (CVE-2024-23832).
Corresponding security releases are available for the 4.2.x branch, the 4.1.x branch and the 4.0.x branch.
If you are using nightly builds, do not use this release but update to
nightly.2024-02-02-security
or newer instead. If you are on themain
branch, update to the latest commit.
The 3.5.x branch will not receive any further update after.
This means that no further security fix will be made available for this branch, and you will need to update to a more recent version (such as the 4.2.x branch) to receive security fixes.
To get the code for v3.5.17, use git fetch && git checkout v3.5.17
.
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
External dependencies have not changed compared to v3.5.16, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it on this page.
The following instructions are for updating from 3.5.16.
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.
Non-Docker only:
bundle install
and yarn install --frozen-lockfile
Both Docker and non-Docker:
:warning: This release is an important security release fixing a critical security issue (CVE-2024-23832).
Corresponding security releases are available for the 4.2.x branch, the 4.0.x branch and the 3.5.x branch.
If you are using nightly builds, do not use this release but update to
nightly.2024-02-02-security
or newer instead. If you are on themain
branch, update to the latest commit.
To get the code for v4.1.13, use git fetch && git checkout v4.1.13
.
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
External dependencies have not changed compared to v4.1.7, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it on this page.
The following instructions are for updating from 4.1.12.
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.
Non-Docker only:
bundle install
and yarn install --frozen-lockfile
Both Docker and non-Docker:
:warning: This release is an important security release fixing a critical security issue (CVE-2024-23832).
Corresponding security releases are available for the 4.1.x branch, the 4.0.x branch and the 3.5.x branch.
If you are using nightly builds, do not use this release but update to
nightly.2024-02-02-security
or newer instead. If you are on themain
branch, update to the latest commit.
To get the code for v4.2.5, use git fetch && git checkout v4.2.5
.
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
With the exception of Ruby's recommended version, external dependencies have not changed since v4.2.0, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it on this page.
The following instructions are for updating from 4.2.4.
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.
Non-Docker only:
bundle install
and yarn install --frozen-lockfile
Using Docker:
This is a bugfix release for the 4.2.0 version, if you're installing from an earlier version, please check the 4.2.0 release notes as they contain important information on how to update.
This release contains upgrade notes that deviate from the norm:
ℹ️ The recommended Ruby version has changed from 3.2.2 to 3.2.3
For more information, scroll down to the upgrade instructions section.
RecordNotUnique
errors in LinkCrawlWorker (tribela)streaming_api_base_url
(ClearlyClaire)inLanguage
(ClearlyClaire)Undo Announce
activity not being sent to non-follower authors (MitarashiDango)LinkCrawlWorker
error when encountering empty OEmbed response (ClearlyClaire)delete_matched
cache method in domain blocks (ClearlyClaire)To get the code for v4.2.4, use git fetch && git checkout v4.2.4
.
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
With the exception of Ruby's recommended version, external dependencies have not changed since v4.2.0, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it on this page.
The following instructions are for updating from 4.2.3.
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.
Non-Docker only:
rbenv
, update the list of available versions and install Ruby 3.2.3 by doing RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install
in the Mastodon install directory (e.g. /home/mastodon/live
)bundle install
and yarn install --frozen-lockfile
RAILS_ENV=production bundle exec rails assets:precompile
Using Docker:
This is a bugfix release for the 4.1.x branch. Please consider updating to the 4.2.x branch if you haven't done so yet.
RecordNotUnique
errors in LinkCrawlWorker (tribela)streaming_api_base_url
(ClearlyClaire)Undo Announce
activity not being sent to non-follower authors (MitarashiDango)LinkCrawlWorker
error when encountering empty OEmbed response (ClearlyClaire)To get the code for v4.1.12, use git fetch && git checkout v4.1.12
.
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
External dependencies have not changed compared to v4.1.7, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it on this page.
The following instructions are for updating from 4.1.11.
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.
Non-Docker only:
bundle install
and yarn install --frozen-lockfile
Both Docker and non-Docker:
This is a rerelease of the 4.2.2 bugfix release, as a dependency used by Mastodon 4.2.0 through 4.2.2 has been removed. If you are installing from a version earlier than 4.2.0, please check the 4.2.0 release notes as they contain important information on how to update.
json-canonicalization
version that has been made unavailable since last releaseFollow
activities delivery to bypass availability check (ShadowJonathan)/api/v1/accounts/:id/featured_tags
for remote accounts (ClearlyClaire)inLanguage
attribute in preview card processing (ClearlyClaire)To get the code for v4.2.3, use git fetch && git checkout v4.2.3
.
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
External dependencies have not changed since v4.2.0, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it on this page.
The following instructions are for updating from 4.2.1.
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.
Non-Docker only:
bundle install
and yarn install --frozen-lockfile
RAILS_ENV=production bundle exec rails assets:precompile
Using Docker:
This is a bugfix release for the 4.2.0 version, if you're installing from an earlier version, please check the 4.2.0 release notes as they contain important information on how to update.
Follow
activities delivery to bypass availability check (ShadowJonathan)/api/v1/accounts/:id/featured_tags
for remote accounts (ClearlyClaire)inLanguage
attribute in preview card processing (ClearlyClaire)To get the code for v4.2.2, use git fetch && git checkout v4.2.2
.
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
External dependencies have not changed since v4.2.0, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it on this page.
The following instructions are for updating from 4.2.1.
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.
Non-Docker only:
bundle install
and yarn install --frozen-lockfile
RAILS_ENV=production bundle exec rails assets:precompile
Using Docker:
This is a bugfix release for the 4.1.x branch. Please consider updating to the 4.2.x branch if you haven't done so yet.
Follow
activities delivery to bypass availability check (ShadowJonathan)/api/v1/accounts/:id/featured_tags
for remote accounts (ClearlyClaire)To get the code for v4.1.11, use git fetch && git checkout v4.1.11
.
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
External dependencies have not changed compared to v4.1.7, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it on this page.
The following instructions are for updating from 4.1.10.
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.
Non-Docker only:
bundle install
and yarn install --frozen-lockfile
Both Docker and non-Docker:
:warning: The 3.5.x branch will not receive any update—including security fixes—after 2023-12-31.
This is a bugfix release for the 3.5.x branch. Please consider updating to the 4.2.x branch if you haven't done so yet.
The 3.5.x branch will not receive any update after 2023-12-31. This means that no security fix will be made available for this branch after this date, and you will need to update to a more recent version (such as the 4.2.x branch) to receive security fixes.
Follow
activities delivery to bypass availability check (ShadowJonathan)To get the code for v3.5.16, use git fetch && git checkout v3.5.16
.
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
External dependencies have not changed compared to v3.5.13, the compatible Ruby, PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:
If your uploaded images are broken after the upgrade, it means your installed ImageMagick version is older than the new minimum version (6.9.7-7), for example if you are running Ubuntu 18.04. If this happens, you can find more information and ways to fix it on this page.
The following instructions are for updating from 3.5.15.
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.
Non-Docker only:
bundle install
and yarn install --frozen-lockfile
Both Docker and non-Docker: