github metabrainz/musicbrainz-docker v-2022-08-08

2 years ago

Update instructions

Assuming your checked out version of musicbrainz-docker is v-2022-05-17-mbdb27 or later, then just run:

git fetch --tags origin && \
git checkout v-2022-08-08 && \
sudo docker-compose up --build -d

Fix missing genre and tag data on MusicBrainz mirror server

A bug (MBS-12508) in the upgrade script of MusicBrainz Server’s latest schema-change release caused aggregate genre and tag data (if you had imported any) to be deleted.

You can safely ignore this section if:

  • you’re not running a mirror server;
  • you don’t make use of genre or tag data;
  • you’ve already done a full re-import of your database after the schema change release.

To restore the genre and tag data, follow these steps:

  1. Turn off cron jobs:

    admin/configure rm replication-cron
    sudo docker-compose up -d musicbrainz
  2. Ensure you’ve replicated up to the most recent replication packet available. If you’re not sure, run:

    sudo docker-compose exec musicbrainz replication.sh & \
    sudo docker-compose exec musicbrainz /usr/bin/tail -f mirror.log

    and see what it tells you; if you’re up-to-date, it should say “Replication packet … is not available.”

  3. Run:

    sudo docker-compose exec musicbrainz ./admin/sql/updates/20220720-mbs-12508.sh
  4. Turn cron jobs back on:

    admin/configure add replication-cron
    sudo docker-compose up -d musicbrainz

You can verify that this process worked by checking that the number of tags in the database is over 200,000:

sudo docker-compose exec musicbrainz bash -c "echo 'SELECT count(*) FROM tag' | ./admin/psql READWRITE"

Only change

Don't miss a new musicbrainz-docker release

NewReleases is sending notifications on new releases.