Skip to content

Hometown v1.1.2 (Mastodon 4.2.17)

Latest
Compare
Choose a tag to compare
@dariusk dariusk released this 06 Mar 08:17

This is a security release and a patch release that keeps us up to date with Mastodon v4.2.17. There are also a few minor fixes to Hometown features that come along with this.

Changelog

Hometown changes include:

There are also numerous small Mastodon bugfixes reflected in the upgrade from v4.2.10 to v4.2.17. You can read changelogs for individual versions, but some important changes to note include:

Dependencies

The minimum supported Ruby version has been bumped from 3.0 to 3.1. Otherwise, external dependencies have not changed since v4.2.4, the compatible PostgreSQL, Node, Elasticsearch and Redis versions are the same, that is:

  • Ruby: 3.1 to 3.2
  • PostgreSQL: 10 or newer
  • Elasticsearch (for full-text search): 7.x (OpenSearch should also work)
  • Redis: 4 or newer
  • Node: 16 or newer
  • ImageMagick: 6.9.7-7 or newer

Update steps

These are instructions for upgrading from Hometown v4.2.10+hometown-1.1.1.

As always, make sure you have backups of the database before performing any upgrades. A postgres backup command would look something like this:

pg_dump -Fc -U postgres mastodon_production > name_of_the_backup.dump

Tip

The charlock_holmes gem may fail to build on some systems with recent versions of gcc.
If you run into such an issue, try BUNDLE_BUILD__CHARLOCK_HOLMES="--with-cxxflags=-std=c++17" bundle install.

Important

If you are running Ubuntu 18, you will probably run into issues with glibc. I strongly recommend updating to at least Ubuntu 20 before updating Hometown. Or if you really want to stick with Ubuntu 18, you can try these suggestions but I was not able to get it to work.

  1. git remote update && git checkout v4.2.17+hometown-1.1.2
  2. Install dependencies: bundle install and yarn install --frozen-lockfile
  3. Precompile the assets: RAILS_ENV=production bundle exec rails assets:precompile
  4. Restart all Mastodon processes