Exception on restoring bucket

Hi,
After upgrading couchbase 3.0.x to 4.0 and backing up my bucket, I tried to restore it into a fresh installed couchbase server 4.0. Here is the error:

Exception in thread s0:] 61.2% (10872100/estimated 17772199 msgs)(5072196/estimated 17772199 msgs)
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 552, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 505, in run
self.__target(*self.__args, **self.__kwargs)
File “/opt/couchbase/lib/python/pump_mc.py”, line 90, in run
rv, batch, need_backoff = self.scatter_gather(mconns, batch)
File “/opt/couchbase/lib/python/pump_cb.py”, line 75, in scatter_gather
vbucket_id=vbucket_id)
File “/opt/couchbase/lib/python/pump_mc.py”, line 173, in send_msgs
conf_res)
File “/opt/couchbase/lib/python/pump_mc.py”, line 380, in cmd_request
con_res_len,
NameError: global name ‘con_res_len’ is not defined

BEST,
Afshin

We’re having the same issue trying to use the cbtransfer tool. We’re using a very vanilla set of options, and are seeing the EXACT same error as listed above on Couchbase 4.1. Here’s our command line:

cbtransfer.exe -b [sourcebucket] -B [destbucket] http://[cbnode]:8091 http://[cbnode]:8091 -u [admin] -p [password]