Description
Install Couchbase Server 5.0.0-3040 CE on a centos 7.2 server.
Go through initial setup to set all servers.
Create test bucket.
Load 10K items to test bucket using cbworkloadgen
Create backup directory /tmp/backup
Run cbbackup to backup data => failed
Errors
[root@s44018 couchbase]# ./bin/cbbackup couchbase://172.23.121.227:8091 -u Administrator -p password /tmp/backup/ |
[####################] 100.0% (10000/estimated 10000 msgs) |
bucket: test, msgs transferred...
|
: total | last | per sec
|
byte : 100000 | 100000 | 28970.3 |
Traceback (most recent call last):
|
File "/opt/couchbase/lib/python/cbbackup", line 12, in <module> |
pump_transfer.exit_handler(pump_transfer.Backup().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 144, in run |
rv = self.transfer_bucket_index(source_bucket, source_map, sink_map)
|
File "/opt/couchbase/lib/python/pump.py", line 277, in transfer_bucket_index |
source_bucket, source_map)
|
File "/opt/couchbase/lib/python/pump_dcp.py", line 130, in provide_index |
result, errors = rest.get_index_metadata(source_bucket['name']) |
File "/opt/couchbase/lib/python/cluster_manager.py", line 98, in get_index_metadata |
hosts, errors = self.get_hostnames_for_service(INDEX_SERVICE)
|
File "/opt/couchbase/lib/python/cluster_manager.py", line 196, in get_hostnames_for_service |
data, 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 1256, in _get |
cert=self.cert, timeout=self.timeout)
|
File "/opt/couchbase/lib/python/requests/api.py", line 67, in get |
return request('get', url, params=params, **kwargs) |
File "/opt/couchbase/lib/python/requests/api.py", line 53, in request |
return session.request(method=method, url=url, **kwargs) |
File "/opt/couchbase/lib/python/requests/sessions.py", line 468, in request |
resp = self.send(prep, **send_kwargs)
|
File "/opt/couchbase/lib/python/requests/sessions.py", line 570, in send |
adapter = self.get_adapter(url=request.url)
|
File "/opt/couchbase/lib/python/requests/sessions.py", line 644, in get_adapter |
raise InvalidSchema("No connection adapters were found for '%s'" % url) |
requests.exceptions.InvalidSchema: No connection adapters were found for 'couchbase://172.23.121.227:8091/pools/default/nodeServices' |
[root@s4401 |
Get dump from database, got error
/opt/couchbase/bin/couch_dbdump /tmp/backup/2017-06-06T163719Z/2017-06-06T163719Z-full/bucket-test/node-172.23.121.227%3A8091/data-0000.cbb |
Failed to open "/tmp/backup/2017-06-06T163719Z/2017-06-06T163719Z-full/bucket-test/node-172.23.121.227%3A8091/data-0000.cbb": malformed data in file |
|
Total docs: 0 |