Live indexing-breaking change
The following doesn’t affect servers that don’t have search live indexing enabled.
RabbitMQ service is now configured to store its data in a directory rabbit@mq
that won’t change over containers. To prevent losing any search index message, assuming your checked out version of musicbrainz-docker
is v-2020-08-24
or later, then run:
git fetch --tags origin && \
git checkout v-2021-05-03 && \
sudo docker-compose stop musicbrainz && \
until sudo docker-compose exec mq rabbitmqadmin --format=tsv -u sir -p sir -V /search-index-rebuilder list queues | strings | grep -q '^search\.index\s*0\s*$'
do echo "Waiting for message queue to be empty... ($(sudo docker-compose exec mq rabbitmqadmin --format=tsv -u sir -p sir -V /search-index-rebuilder list queues | strings | grep '^search\.index\>'))"; sleep 1m
done && \
sudo docker-compose up --build -d mq && \
sudo docker-compose exec indexer python -m sir amqp_setup && \
until sudo docker-compose exec mq rabbitmqadmin --format=tsv -u sir -p sir -V /search-index-rebuilder list queues | strings | grep -q '^search\.index\s*0\s*$'
do echo "Waiting for message queue to be available..."; sleep 1m
done && \
sudo docker-compose restart indexer && \
sudo docker-compose start musicbrainz && \
sudo docker-compose up --build -d
Update instructions
Assuming you didn’t enable live indexing (see above otherwise) and your checked out version of musicbrainz-docker
is v-2020-08-24
or later, then just run:
git fetch --tags origin && \
git checkout v-2021-05-03 && \
sudo docker-compose up --build -d
Solved issue
- MBVM-69: Recreating
mq
container breaks live indexing
Other changes
- Upgrade MusicBrainz Server to
v-2021-05-03
- Add troubleshooting page for frequent setup issues