Thanks to everyone for your patience during our downtime today. As promised, here are steps to follow to upgrade your own PG instance to v12. (Confused? See the previous blog post on this subject.)
If you’re already running v12, there are still some instructions you must follow!
For MusicBrainz Docker
If you’re running the new MusicBrainz Docker setup, an upgrade script exists for you to use. See the release notes for specific – hopefully brief – instructions.
For a Manual Setup (INSTALL.md Based)
If you aren’t using Docker but rather set up musicbrainz-server by hand following INSTALL.md, see the steps below.
Know that as an alternative, you can always import new data dumps from scratch (again following the steps in INSTALL.md) into a new PG 12 cluster. Just make sure you’re on the
v-2020-05-18-postgres12 tag of musicbrainz-server while doing so.
If on the other hand you don’t mind getting your hands a bit dirty, you can use the quicker method below. Like INSTALL.md, this assumes you’re using Ubuntu/Debian and their postgresql-common cluster management tools.
If you’re already running v12, you should still follow these steps; however, you can skip the ones involving
pg_upgradecluster. The main steps you need to follow in this case are running the 20200518-pg12-before-upgrade.sql and 20200518-pg12-after-upgrade.sql scripts in that order.
On distros other than Debian/Ubuntu where the postgresql-common tools aren’t available, you’ll have to manage with
pg_upgrade on your own.
- First take down the web server running MusicBrainz (stop plackup) to prevent database access.
- Turn off any cron jobs updating or accessing the database (e.g. for the live data feed/replication packets).
- Switch to the latest musicbrainz-server code with:
git fetch origin && \
git checkout v-2020-05-18-postgres12
- With PG 9.5 (or whatever version you’re using) still running, run the following “pre-upgrade” script:
psql -U postgres -d musicbrainz_db \
This assumes that “postgres” is the name of your PG superuser, and “musicbrainz_db” is the name of your database. If you see a few messages about things not existing, that’s normal.
- Install packages for PostgreSQL 12. On Ubuntu/Debian you can obtain them from the PGDG apt repo.
apt-get update && \
apt-get install postgresql-12 postgresql-server-dev-12
If you’re installing postgresql-12 for the first time, this will automatically create a new cluster at /var/lib/postgresql/12/main. Remove that empty cluster. Don’t run this if you already had v12 installed and have data there!
pg_dropcluster --stop 12 main If you did already have v12 installed with
musicbrainz_db running there, leave the cluster alone and skip the next step involving
In the unlikely event that you already have a v12 cluster, but also have
musicbrainz_db running in a separate, older cluster, these instructions won’t work for you. We recommend importing fresh data dumps into the v12 cluster and dropping the old one.
- Upgrade the old cluster. This assumes it’s version 9.5; if you’re using version 10 or 11, make sure to replace
9.5 below with 10 or 11. If you have other databases in your old cluster besides
musicbrainz_db, be aware that this will upgrade all of them to PG 12.
pg_upgradecluster -v 12 9.5 main
- If all goes well, the new cluster should be up and running. (You can drop the old one if you like; the output of the
pg_upgradecluster command will tell you how.) Now run the following “post-upgrade” script on the database:
psql -U postgres -d musicbrainz_db -f \This may take a bit, as it has to recreate some indexes.
- The upgrade is complete. You can turn cron jobs back on, if applicable.
- Restart the MusicBrainz web server / plackup, if applicable. If you’re accessing the server in a web browser, the usual release upgrade steps apply, like running
If you run into any trouble following the above, please let us know and we’ll try to help resolve your issue as soon as possible!
The MusicBrainz virtual machine is dead, long live the MusicBrainz Docker Compose project. In fact, the virtual machine has been running it for years. Mostly because the data loaded with the virtual machine was too soon obsolete, it doesn’t seem worth it anymore. Plus, new search indexes are much larger than before, and using Docker Compose directly is much more versatile.
The MusicBrainz Docker Compose project has been deeply revamped since two years ago and now ships the new search server based on Solr 7. It can be used for mirroring the MusicBrainz website and database, testing your own app with a local MusicBrainz web service, or developing the MusicBrainz Server itself. Check out the release notes!
Thanks to everyone who reported issues and contributed patches for two years!
A new virtual machine for running your own mirror of MusicBrainz is now available. Thanks to InvisibleMan78 for the continuous feedback and to Jeff Sturgis for his work with Docker Compose! This is the last virtual machine to include the soon defunct search server. Links:
- Added helper script
set-web-server-name to allow connecting to the web site from a remote host;
- Added helper script
turn-port to allow turning service ports on/off for db (postgresql), musicbrainz, redis, and search;
- Fixed docker containers startup on VM boot;
- Fixed potential access token loss due to helper scripts
- Fixed and improved documentation (now copied inside the VM);
- Improved error handling in helper scripts;
- Updated MusicBrainz server, search server, base image and dependencies.
This server release converts more search results pages to React and fixes seven bugs. Thanks to @riipah for fixing @TouhouDB handler. Search scores are no longer displayed on search results page for clarity as they misleadingly weighed down the the importance of results appearing on the first page but not in the first place. The git tag is v-2018-08-14.
- [MBS-9760] – Convert the event search results page to React
- [MBS-9761] – Convert the series search results page to React
- [MBS-9687] – Field error messages are not always translated
- [MBS-9694] – TouhouDB URLs are not recognized
- [MBS-9705] – URL overview header link is now appended with /show
- [MBS-9744] – OAuth userinfo endpoint returns latin1 encoded JSON
- [MBS-9755] – Fix unknown search in statistics for scripts
- [MBS-9757] – Search page form is sometimes in the wrong language
- [MBS-9784] – IMDb verification too strict (# of digits)
- [MBS-9780] – Normalize Creative Commons URLs to HTTPS
- [MBS-9767] – Remove search score display from the UI
I have recently released a new MusicBrainz virtual machine. This virtual machine includes all the important bits of MusicBrainz so you can run your own copy! I’d been hoping for feedback if people have encountered any problems with this VM, but I’ve not received any feedback. Here is to hoping that no news is good news!
For information on how to download, install and access this new virtual machine, take a look at our MusicBrainz Server setup page. The new VM can be downloaded from here via direct download or a torrent download.
Most of the outstanding bugs should be fixed in this release — if not, please open a new ticket.
There is a new test VM available for anyone who would like to try the latest, possibly not fully debugged, VM. I’m not sure why the VM is nearly 20GB larger than the previous one, while containing roughly the same stuff, but that is what we’re stuck with for this test. I’ll try harder to minimize the size for the final build.
Grab the VM here.
Read these Usage tips.
IMPORTANT: Please ignore the usage tips published on the wiki — they do not apply to this release. For the next release I’ll try and match more of the characteristics of the last version. Do read the usage tips above!
File a bug here.
We set up a new european FTP mirror: ftp://ftp.eu.metabrainz.org
URLs to MusicBrainz Server Virtual Machines were changed in the process, you may find them at ftp://vm.musicbrainz.org/pub/musicbrainz-vm/, documentation was updated to reflect this change.
Time to check the weather forecast for hell, because it appears to have frozen over! We have finally released a new Virtual Machine that contains all of the MusicBrainz server software and fixed all of the currently outstanding bugs (for the VM).
The new VM now uses a 64-bit architecture and has 80GB of disk-space so it should be much easier to get along with. I tried to ship one VM that has the search indexes build in, but after 3 hours (and increasing time) of trying to export that VM I killed it. If someone has better luck exporting a VM after building search indexes, please let me know. Also, VirtualBox seems to have improved in stability on Mac OS, so we are not going to build a VMWare version of the VM at this time.
All the details for the new VM are on our Server Setup page.
Remember to get your Live Data Feed access token here if you plan to use the replication.