Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-35106

cbbackupmgr: More informative disk full errors

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.5.0
    • 6.5.0
    • tools

    Description

      In writing a revised test for full disk errors, I've made the following observation. If the disk fills as we're running backup, we get:

      # /opt/couchbase/bin//cbbackupmgr backup --archive /cbqe3043/entbackup --repo backup --cluster http://10.112.191.101:8091 --username Administrator  --password password  --no-progress-bar
       
      Error backing up cluster: EOF

      If the disk is completely full, we get:

      # /opt/couchbase/bin//cbbackupmgr backup --archive /cbqe3043/entbackup --repo backup --cluster http://10.112.191.101:8091 --username Administrator  --password password  --no-progress-bar
       
      Error backing up cluster: write /cbqe3043/entbackup/200724775: no space left on device
      

      And a similar error for the config command:

      # /opt/couchbase/bin//cbbackupmgr config --archive /cbqe3043/entbackup --repo backup
       
      Backup repository creation failed: mkdir /cbqe3043/entbackup: no space left on device
      

      These seem to be generic OS level errors being propagated to the user, but it would be ideal, if possible, to create a consistent error message when disk is full. Particularly in the case of the EOF error, it isn't clear why the backup failed.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          Build couchbase-server-6.5.0-4281 contains backup commit 7b1874d with commit message:
          MB-35106 More informative disk full errors

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-4281 contains backup commit 7b1874d with commit message: MB-35106 More informative disk full errors
          thuan Thuan Nguyen added a comment -

          Verified on build 6.5.0-4757

          2019-11-05 15:36:29,976 - root - INFO - running command.raw on 172.23.121.227:   /opt/couchbase/bin//cbbackupmgr backup --archive /cbqe3043/entbackup --repo backup --cluster http://172.23.121.224:8091 --username Administrator  --password password  --no-progress-bar
          2019-11-05 15:36:30,129 - root - INFO - command executed successfully
          2019-11-05 15:36:30,130 - root - ERROR - Failed to backup bucket default
           
           
           
           
          output:  ['Error backing up cluster: mkdir /cbqe3043/entbackup/backup/2019-11-05T15_36_30.120536649-08_00: no space left on device'] 

          thuan Thuan Nguyen added a comment - Verified on build 6.5.0-4757 2019-11-05 15:36:29,976 - root - INFO - running command.raw on 172.23.121.227:   /opt/couchbase/bin//cbbackupmgr backup --archive /cbqe3043/entbackup --repo backup --cluster http://172.23.121.224:8091 --username Administrator  --password password  --no-progress-bar 2019-11-05 15:36:30,129 - root - INFO - command executed successfully 2019-11-05 15:36:30,130 - root - ERROR - Failed to backup bucket default         output:  ['Error backing up cluster: mkdir /cbqe3043/entbackup/backup/2019-11-05T15_36_30.120536649-08_00: no space left on device']

          People

            thuan Thuan Nguyen
            toby.wilds Toby Wilds
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty