When the DIY Backup script fails to get the drain status, it leaves Bitbucket in an unusable state

XMLWordPrintable

    • 1
    • Severity 3 - Minor
    • 2
    • CtB - Improve Existing

      If the DIY Backup fails to get the drain status, the Bitbucket instance becomes unusable and the status is stuck in MAINTENANCE mode.

      Steps to reproduce:

      1. Set up Bitbucket DIY Backup and execute it
      2. After the POST /mvc/admin/backups?external=true call to drain and latch the database and filesystem, ensure Bitbucket is not able to respond to the GET /mvc/maintenance call to get the drain status

      Current behaviour:

      The script exits with code 99 (via the bail function) and fails to unlock Bitbucket

      Expected behaviour:

      The script exits with code 99 but before it does that, the script should set the backup progress to 100% and unlock Bitbucket afterwards to be released from maintenance mode.

      Workaround

      Restarting Bitbucket will solve the status and page loading.

            Assignee:
            Moga
            Reporter:
            Aedrian Escultura (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: