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

Properly abort the database setup if tar can't extract the database dumps.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2014-02-17
    • Component/s: Database setup, Scripts
    • Labels:
      None

      Description

      An easy way to make it fail:

      sudo mount -o remount,size=X -t tmpfs tmpfs /tmp (where X is like 5MB or so over the current usage of /tmp to not make other applications fail immediately).

      Now use ./admin/InitDb.pl --createdb --import to import data into a new database. Tar will complain about not being able to extract all the data, but initdb will still continue to run SQL scripts on the database.

        Attachments

          Activity

            People

            • Assignee:
              mineo Wieland Hoffmann
              Reporter:
              mineo Wieland Hoffmann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                2014-02-17