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

InitDb should check if --tmpdir exists before running

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Database setup
    • None

      See the following:

      ➜  musicbrainz-server git:(mbs-5767) ✗ ./admin/InitDb.pl --import ~/Downloads/mbdump* -- --tmp-dir=/home/ollie/tmp
      Use of uninitialized value $databaseName in string eq at ./admin/InitDb.pl line 469.
      Tue Jan 22 11:17:44 2013 : InitDb.pl starting
      CREATE SCHEMA
      CREATE SCHEMA
      CREATE SCHEMA
      CREATE SCHEMA
      Tue Jan 22 11:17:45 2013 : Installing extensions for PostgreSQL 9.1 or newer (Extensions.sql)
      Tue Jan 22 11:17:45 2013 : Installing musicbrainz_collate.sql extension ... (/usr/share/pgsql/contrib/musicbrainz_collate.sql)
      Tue Jan 22 11:17:45 2013 : Creating tables ... (CreateTables.sql)
      Tue Jan 22 11:17:45 2013 : Creating tables ... (caa/CreateTables.sql)
      Tue Jan 22 11:17:45 2013 : Creating tables ... (report/CreateTables.sql)
      Tue Jan 22 11:17:45 2013 : Creating statistics tables ... (statistics/CreateTables.sql)
      Error in tempdir() using /home/ollie/tmp/MBImport-XXXXXXXX: Parent directory (/home/ollie/tmp) does not exist at /home/ollie/work/musicbrainz/musicbrainz-server/admin/MBImport.pl line 124.
      
      Failed to import dataset.
      Tue Jan 22 11:17:45 2013 : InitDb.pl failed
      

      I'm now left with a database with a schema, so I can't rerun InitDb.pl.

            Unassigned Unassigned
            acid2 Oliver Charles
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

                Version Package