Cbbackup hanging up in version 4.5.1


#1

Hi:

We are getting errors with cbbackup tool in the last version 4.5.1:

$ /opt/couchbase/bin/cbbackup http://localhost:8091 BACKUP_DIR -u USER -p PASSWORD

Exception in thread s2:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/couchbase/lib/python/pump_bfd.py", line 616, in run
    return self.future_done(future, rv)
UnboundLocalError: local variable 'future' referenced before assignment

Exception in thread s1:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/couchbase/lib/python/pump_bfd.py", line 616, in run
    return self.future_done(future, rv)
UnboundLocalError: local variable 'future' referenced before assignment

Exception in thread s0:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/couchbase/lib/python/pump_bfd.py", line 616, in run
    return self.future_done(future, rv)
UnboundLocalError: local variable 'future' referenced before assignment

Exception in thread s3:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/couchbase/lib/python/pump_bfd.py", line 616, in run
    return self.future_done(future, rv)
UnboundLocalError: local variable 'future' referenced before assignment

#2

Hi @ jfrodriguez
I am getting the same error. In case you got through it, could you please share the fix here.