Main menu

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

This is cataloging how I build my own MusicBrainz Server. Dated: March 2013. This makes the assumption you know how to manage virtual machines, and use linux.

  1. Download the .ova virtual appliance import file from http://musicbrainz.org/doc/MusicBrainz_Server/Setup
  2. Prior to booting, Change the VM Name and add an extra temp drive (You'll need it for downloading the latest DB)
  3. Once booted, partition, format and mount the temp drive somewhere (I suggest /tmp/dumps to work with future commands)
  4. Log into the appliance and download the latest databases from http://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/ onto the temp drive
    • Note: You will need over 20G of temp space to decompress all the DBs, I suggest you only start with mbdump.tar.bz2, mbdump-editor.tar.bz2 and mbdump-derived.tar.bz2
  5. Following the "Import Database" from https://github.com/metabrainz/musicbrainz-server/blob/master/INSTALL.md
    1. Create a working temp directory under your dumps directory: mkdir /tmp/dumps/tmp
    2. cd ~/musicbrainz-server
    3. You will need to drop the existing Database: dropdb -U postgres musicbrainz_db
    4. Finally import the new DB: carton exec ./admin/InitDb.pl -- --createdb --import /tmp/dumps/mbdump*.tar.bz2 --echo --tmp-dir=/tmp/dumps/tmp
  6. Run the replication script to bring you up to "now" ~/run_replication.sh
  7. Test the server by connecting to the DB - Possible test using Picard
  8. Enable full repllication following these steps: http://musicbrainz.org/doc/MusicBrainz_Server/Setup#Running_Replication

 

Add comment


Security code
Refresh