Error Running dbtransfer Tool


#1

I’m running cb server version 5.0 on ubuntu servers. When I’m trying to run this cbtransfer command to export some data to a csv file:

./cbtransfer \
-b metrics-metadata \
--key=metrics\.content_partner:.* \
-u Administrator \
-p password \
http://server_host:8091 \
/mnt/storage/content_partner.csv

I got error message about “AttributeError: ‘module’ object has no attribute ‘loads’” (complete error message shown below). I checked the python versions on the server and we do have python 2.7 and 3.4 installed. Can anyone help with this?

  Traceback (most recent call last):
  File "/opt/couchbase/lib/python/cbtransfer", line 33, in <module>
    pump_transfer.exit_handler(pump_transfer.Transfer().main(sys.argv))
  File "/opt/couchbase/lib/python/pump_transfer.py", line 80, in main
    rv = pumpStation.run()
  File "/opt/couchbase/lib/python/pump.py", line 112, in run
    rv, source_map, sink_map = self.check_endpoints()
  File "/opt/couchbase/lib/python/pump.py", line 167, in check_endpoints
    rv, source_map = self.source_class.check(self.opts, self.source_spec)
  File "/opt/couchbase/lib/python/pump_dcp.py", line 73, in check
    err, map = pump.rest_couchbase(opts, spec)
  File "/opt/couchbase/lib/python/pump.py", line 1025, in rest_couchbase
    result, errors = rest.list_buckets(True)
  File "/opt/couchbase/lib/python/cluster_manager.py", line 671, in list_buckets
    result, errors = self._get(url)
  File "/opt/couchbase/lib/python/cluster_manager.py", line 32, in g
    return f(*args, **kwargs)
  File "/opt/couchbase/lib/python/cluster_manager.py", line 1260, in _get
    return _handle_response(response, self.debug)
  File "/opt/couchbase/lib/python/cluster_manager.py", line 1320, in _handle_response
    return response.json(), None
  File "/opt/couchbase/lib/python/requests/models.py", line 799, in json
    return complexjson.loads(
AttributeError: 'module' object has no attribute 'loads'

#2

Hi @hclc,

Would you mind sharing a sample document or two? I’d like to try and reproduce.