Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-987

Database import doesn't work without editor data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • Bug fixes, 2011-09-12
    • NGS - Beta 3
    • None
    • None

      I'm trying to import the NGS database using the dump from ftp://ftp.musicbrainz.org/pub/musicbrainz/data/ngs/20100616/
      The INSTALL document says that I only need mbdump and mbdump-derived. After trying to import them with ./admin/InitDb.pl --createdb --import ~/Downloads/mbdump* --echo
      I get an error:

      Wed Oct 6 11:59:47 2010 : Adding foreign key constraints ... (CreateFKConstraints.sql)
      psql -e -f /home/alastair/musicbrainz-server/admin/sql/CreateFKConstraints.sql -U alastair musicbrainz_db 2>&1 |
      Wed Oct 6 11:59:47 2010 : ALTER TABLE annotation
      Wed Oct 6 11:59:47 2010 : ADD CONSTRAINT annotation_fk_editor
      Wed Oct 6 11:59:47 2010 : FOREIGN KEY (editor)
      Wed Oct 6 11:59:47 2010 : REFERENCES editor(id);
      Wed Oct 6 11:59:48 2010 : psql:/home/alastair/musicbrainz-server/admin/sql/CreateFKConstraints.sql:7: ERROR: insert or update on table "annotation" violates foreign key constraint "annotation_fk_editor"
      Wed Oct 6 11:59:48 2010 : DETAIL: Key (editor)=(38240) is not present in table "editor".
      Error during sql/CreateFKConstraints.sql at ./admin/InitDb.pl line 92.

      which indicates maybe that I need the editor data too?

            acid2 Oliver Charles
            alastairp Alastair Porter
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                Bug fixes, 2011-09-12