Description
Cbbackup does not handle full disk gracefully
vagrant@node1-cb400-ubuntu12:/tmp$ /opt/couchbase/bin/cbbackup -u Administrator -p password -b travel-sample http://127.0.0.1:8091 /tmp/backup-`date +%Y%m%d-%H%M%S`
|
Exception in thread s1:
|
Traceback (most recent call last):
|
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
|
self.run()
|
File "/usr/lib/python2.7/threading.py", line 504, in run
|
self.__target(*self.__args, **self.__kwargs)
|
File "/opt/couchbase/lib/python/pump_bfd.py", line 627, in run
|
rv, db, db_dir = self.create_db(cbb)
|
File "/opt/couchbase/lib/python/pump_bfd.py", line 753, in create_db
|
rv, dir = self.mkdirs()
|
File "/opt/couchbase/lib/python/pump_bfd.py", line 813, in mkdirs
|
if error.errno != errno.EEXIST:
|
NameError: global name 'errno' is not defined
|
|
## command does not exit after this
|
The exception here is generated because pump_bfd.py does not import errno and fails at line 813, if it was imported I believe it would have exited correctly with a clear error message
808
|
spec = os.path.normpath(self.spec) |
809
|
if not os.path.isdir(spec): |
810
|
try: |
811
|
os.mkdir(spec)
|
812
|
except OSError as error: |
813
|
if error.errno != errno.EEXIST: |
814
|
return "error: could not mkdir: %s; exception: %s" % (spec, error.strerror) |