I was trying the backup/restore capabilities of couchbase and ran into a restore issue:
I run the couchbase docker image and set up my bucket. Then I attach with ‘docker exec -it couch /bin/bash
’ to get a console inside the container (since cbbackup does not work from “outside”, like described in the docs).
First, I create a backup with:
cbbackup couchbase://localhost:8091 /backup -u admin -p xyz
But when I try to restore the backup with:
cbrestore /backup -u admin -p xyz couchbase://localhost:8091 -vvvv
…it fails with the following message:
2018-05-21 18:52:18,972: mt cbrestore...
2018-05-21 18:52:18,973: mt source : /backup
2018-05-21 18:52:18,974: mt sink : couchbase://localhost:8091
2018-05-21 18:52:18,974: mt opts : {'username': '<xxx>', 'verbose': 4, 'extra': {'max_retry': 10.0, 'rehash': 0.0, 'dcp_consumer_queue_length': 1000.0, 'data_only': 0.0, 'uncompress': 0.0, 'nmv_retry': 1.0, 'conflict_resolve': 1.0, 'cbb_max_mb': 100000.0, 'report': 5.0, 'mcd_compatible': 1.0, 'try_xwm': 1.0, 'backoff_cap': 10.0, 'batch_max_bytes': 400000.0, 'report_full': 2000.0, 'flow_control': 1.0, 'batch_max_size': 1000.0, 'seqno': 0.0, 'design_doc_only': 0.0, 'allow_recovery_vb_remap': 0.0, 'recv_min_bytes': 4096.0}, 'collection': None, 'ssl': False, 'threads': 4, 'to_date': None, 'key': None, 'password': '<xxx>', 'id': None, 'bucket_source': None, 'silent': False, 'dry_run': False, 'from_date': None, 'bucket_destination': None, 'add': False, 'vbucket_list': None, 'separator': '::'}
2018-05-21 18:52:18,975: mt source_class: <class 'pump_bfd.BFDSource'>
2018-05-21 18:52:18,981: mt sink_class: <class 'pump_cb.CBSink'>
2018-05-21 18:52:18,991: mt Starting new HTTP connection (1): localhost
2018-05-21 18:52:19,003: mt "GET /pools/default/buckets HTTP/1.1" 200 9959
2018-05-21 18:52:19,011: mt source_bucket: geldapp
2018-05-21 18:52:19,012: mt sink_bucket: geldapp
2018-05-21 18:52:19,012: mt source_buckets: geldapp
2018-05-21 18:52:19,012: mt bucket: geldapp
2018-05-21 18:52:19,013: mt source_nodes: 127.0.0.1:8091
2018-05-21 18:52:19,015: mt enqueueing node: 127.0.0.1:8091
2018-05-21 18:52:19,020: w0 node: 127.0.0.1:8091
2018-05-21 18:52:19,021: w0 sink_bucket: geldapp
2018-05-21 18:52:19,023: w0 connect_db: /backup/2018-05-21T184918Z/2018-05-21T184918Z-full/bucket-geldapp/node-127.0.0.1%3A8091/data-0000.cbb
2018-05-21 18:52:19,031: mt connect_db: /backup/2018-05-21T184918Z/2018-05-21T184918Z-full/bucket-geldapp/node-127.0.0.1%3A8091/data-0000.cbb
2018-05-21 18:52:19,142: s0 error: recv exception: [Errno 104] Connection reset by peer
2018-05-21 18:52:19,144: s0 MCSink exception:
2018-05-21 18:52:19,148: s0 error: async operation: error: MCSink exception: on sink: couchbase://localhost:8091(geldapp@127.0.0.1:8091)
2018-05-21 18:52:19,148: w0 pump (/backup(geldapp@127.0.0.1:8091)->couchbase://localhost:8091(geldapp@127.0.0.1:8091)) done.
2018-05-21 18:52:19,149: w0 source : /backup(geldapp@127.0.0.1:8091)
2018-05-21 18:52:19,149: w0 sink : couchbase://localhost:8091(geldapp@127.0.0.1:8091)
2018-05-21 18:52:19,149: w0 : total | last | per sec
2018-05-21 18:52:19,149: w0 node: 127.0.0.1:8091, done; rv: error: MCSink exception:
error: MCSink exception:
I’m using couchbase:latest (ac51235d7b842c5ca1dc3a102838063b0d51830de7f6f8438bd8a02dfb665bb0).
Am I doing something wrong?