CBRESTORE - Connection reset by peer

Hello,
is there a solution in the meantime??? We backed up from 5.1.1 CE and tried to restore the data in Couchbase Server 6.0.1 Enterprise (Windows 10 and Redhat 7), same error as above.

thanks

Hello @weis

“Connection reset by peer” is a symptoms that can have many causes. I would recommend opening a new request and provided as much details as possible like:

  • Where is cbrestore being executed?
  • How many nodes in the cluster being restored to?
  • What versions of cbrestore is being used, the one provided by 5.1.1 CE or 6.0.1 EE?
  • What version of cbbackup was used to create the backup, 5.1.1 CE or 6.0.1 EE?
  • Provide the full stack trace if there is one?

Hi,

where is cbrestore being executed:

cbrestore:
Enterprise Edition 6.0.1 build 2037 running on CentOS Linux 7

How many nodes in the cluster being restored to:

Currenty 5.1.1 CE and 6.0.1 EE Couchbase Server runs in a standalone configuration (one node, one cluster) for test purposes on different machines (see above)

What versions of cbrestore is being used, the one provided by 5.1.1 CE or 6.0.1 EE:

cbrestore provided by 6.0.1 EE

What version of cbbackup was used to create the backup, 5.1.1 CE or 6.0.1 EE:

cbbackup provided by 5.1.1 CE build 5723, running on Red Hat Enterprise Linux Server 7.6 (Maipo)

Provide the full stack trace if there is one:
This is the complete console outpt-log:

/opt/couchbase/bin/cbrestore ~/backups/backup-bucket_test http://127.0.0.1:8091 -b bucket_test -u admin -p pass -vvv
2019-06-07 11:42:32,264: mt cbrestore…
2019-06-07 11:42:32,264: mt source : /opt/couchbase/backups/backup-bucket_test
2019-06-07 11:42:32,264: mt sink : http://127.0.0.1:8091
2019-06-07 11:42:32,264: mt opts : {‘username’: ‘’, ‘verbose’: 3, ‘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’: ‘’, ‘id’: None, ‘bucket_source’: ‘bucket_test’, ‘silent’: False, ‘dry_run’: False, ‘from_date’: None, ‘bucket_destination’: None, ‘add’: False, ‘vbucket_list’: None, ‘separator’: ‘::’}
2019-06-07 11:42:32,264: mt source_class: <class ‘pump_bfd.BFDSource’>
2019-06-07 11:42:32,264: mt sink_class: <class ‘pump_cb.CBSink’>
2019-06-07 11:42:32,269: mt Starting new HTTP connection (1): 127.0.0.1
2019-06-07 11:42:32,284: mt “GET /pools/default/buckets HTTP/1.1” 200 50312
2019-06-07 11:42:32,289: mt source_bucket: bucket_test
2019-06-07 11:42:32,289: mt sink_bucket: bucket_test
2019-06-07 11:42:32,289: mt source_buckets: bucket_test
2019-06-07 11:42:32,289: mt bucket_source: bucket_test
2019-06-07 11:42:32,289: mt source_buckets filtered: bucket_test
2019-06-07 11:42:32,289: mt bucket: bucket_test
2019-06-07 11:42:32,290: mt source_nodes: 127.0.0.1:8091
2019-06-07 11:42:32,290: mt enqueueing node: 127.0.0.1:8091
2019-06-07 11:42:32,290: w0 node: 127.0.0.1:8091
2019-06-07 11:42:32,290: w0 sink_bucket: bucket_test
2019-06-07 11:42:32,291: mt connect_db: /opt/couchbase/backups/backup-bucket_test/2019-06-05T090831Z/2019-06-05T090831Z-full/bucket-bucket_test/node-127.0.0.1%3A8091/data-0000.cbb
2019-06-07 11:42:32,291: w0 connect_db: /opt/couchbase/backups/backup-bucket_test/2019-06-05T090831Z/2019-06-05T090831Z-full/bucket-bucket_test/node-127.0.0.1%3A8091/data-0000.cbb
[ ] 1.5% (706/estimated 45683 msgs)
[# ] 5.1% (2347/estimated 45683 msgs)
[## ] 7.5% (3432/estimated 45683 msgs)
[## ] 10.7% (4887/estimated 45683 msgs)
[### ] 13.8% (6305/estimated 45683 msgs)
[### ] 17.3% (7882/estimated 45683 msgs)
[#### ] 21.6% (9852/estimated 45683 msgs)
2019-06-07 11:42:33,010: s0 error: async operation: error: conn.sendall() exception: [Errno 104] Connection reset by peer on sink: http://127.0.0.1:8091(bucket_test@127.0.0.1:8091)
2019-06-07 11:42:33,011: w0 pump (/opt/couchbase/backups/backup-bucket_test(bucket_test@127.0.0.1:8091)->http://127.0.0.1:8091(bucket_test@127.0.0.1:8091)) done.
2019-06-07 11:42:33,011: w0 source : /opt/couchbase/backups/backup-bucket_test(bucket_test@127.0.0.1:8091)
2019-06-07 11:42:33,011: w0 sink : http://127.0.0.1:8091(bucket_test@127.0.0.1:8091)
2019-06-07 11:42:33,011: w0 : total | last | per sec
2019-06-07 11:42:33,011: w0 batch : 38 | 38 | 52.7
2019-06-07 11:42:33,011: w0 byte : 38355207 | 38355207 | 53228235.1
2019-06-07 11:42:33,011: w0 msg : 10866 | 10866 | 15079.5
2019-06-07 11:42:33,011: w0 node: 127.0.0.1:8091, done; rv: error: conn.sendall() exception: [Errno 104] Connection reset by peer
error: conn.sendall() exception: [Errno 104] Connection reset by peer

I used the cbrestore tool from CB 5.0.1. Just had to download CB Server 5.0.1 and run the command as you showed.
Thank you @giles

1 Like