Hi @Carlos_Gonzalez Thanks for your response. following is debug info.
So here are my observations. I have two servers in two different regions in AWS and if I take backup within the same server it is working fine. but if I try to take a backup from one server to another with two different regions we are getting the following error.
So how can we perform cbbackup or cbtransfer in this scenario?
[ec2-user@ip ~]$ sudo /opt/couchbase/bin/cbbackup http://ipaddress:8091 ~/backup -u username -p password -vvv
2021-02-23 15:04:24,171: mt cbbackup...
2021-02-23 15:04:24,172: mt source : http://ipaddress:8091
2021-02-23 15:04:24,172: mt sink : /home/ec2-user/backup
2021-02-23 15:04:24,172: mt opts : {'bucket_source': None, 'single_node': False, 'mode': 'full', 'id': None, 'key': None, 'vbucket_list': None, 'dry_run': False, 'usernam
e': '<xxx>', 'password': '<xxx>', 'username_dest': None, 'password_dest': None, 'ssl': False, 'no_ssl_verify': True, 'cacert': None, 'threads': 4, 'verbose': 3, 'silent': Fa
lse, 'extra': {'batch_max_size': 1000.0, 'batch_max_bytes': 400000.0, 'cbb_max_mb': 100000.0, 'max_retry': 10.0, 'report': 5.0, 'report_full': 2000.0, 'recv_min_bytes': 4096
.0, 'try_xwm': 1.0, 'nmv_retry': 1.0, 'rehash': 0.0, 'data_only': 0.0, 'design_doc_only': 0.0, 'conflict_resolve': 1.0, 'seqno': 0.0, 'mcd_compatible': 1.0, 'uncompress': 0.
0, 'backoff_cap': 10.0, 'flow_control': 1.0, 'dcp_consumer_queue_length': 1000.0, 'allow_recovery_vb_remap': 0.0}, 'collection': None, 'force_txn': False}
2021-02-23 15:04:24,172: mt source_class: <class 'pump_dcp.DCPStreamSource'>
2021-02-23 15:04:24,178: mt Starting new HTTP connection (1): ipaddress
2021-02-23 15:04:24,329: mt "GET /pools/default/buckets HTTP/1.1" 200 20745
2021-02-23 15:04:24,401: mt sink_class: <class 'pump_bfd.BFDSink'>
2021-02-23 15:04:24,401: mt source_buckets: bucket1,bucket2
2021-02-23 15:04:24,401: mt bucket: bucket1
2021-02-23 15:04:24,401: mt source_nodes: ipaddress:8091
2021-02-23 15:04:24,402: mt enqueueing node: ipaddress:8091
2021-02-23 15:04:24,402: mt rest_request: <ud>username</ud>@ipaddress:8091/pools/default/buckets/bucket1/stats/curr_items; reason: total_msgs
2021-02-23 15:04:24,402: w0 node: ipaddress:8091
2021-02-23 15:04:24,403: w0 Use alternate addresses: {'source': False, 'sink': False}
2021-02-23 15:04:24,403: w0 sink_bucket: bucket1
2021-02-23 15:04:24,404: w0 DCPStreamSource connecting mc: ipaddress:11210
Exception in thread w0:
Traceback (most recent call last):
File "/opt/couchbase/lib/python/runtime/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/opt/couchbase/lib/python/runtime/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/opt/couchbase/lib/python/pump.py", line 446, in run_worker
curx).run()
File "/opt/couchbase/lib/python/pump.py", line 504, in run
rv_batch, batch = self.source.provide_batch()
File "/opt/couchbase/lib/python/pump_dcp.py", line 249, in provide_batch
rv = self.get_dcp_conn()
File "/opt/couchbase/lib/python/pump_dcp.py", line 533, in get_dcp_conn
self.opts.no_ssl_verify, self.opts.cacert)
File "/opt/couchbase/lib/python/pump.py", line 1199, in get_mcd_conn
conn = cb_bin_client.MemcachedClient(host, port, use_ssl=use_ssl, verify=verify, cacert=ca_cert)
File "/opt/couchbase/lib/python/cb_bin_client.py", line 91, in __init__
socket.SOCK_STREAM):
File "/opt/couchbase/lib/python/runtime/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
Exception ignored in: <function MemcachedClient.__del__ at 0x7fe003d65598>
Traceback (most recent call last):
File "/opt/couchbase/lib/python/cb_bin_client.py", line 120, in __del__
self.close()
File "/opt/couchbase/lib/python/cb_bin_client.py", line 117, in close
self.s.close()
AttributeError: 'MemcachedClient' object has no attribute 's'
2021-02-23 15:04:24,534: mt rest_request: <ud>usrename</ud>@ipaddress:8091/pools/default/buckets/bucket1/stats/vb_active_resident_items_ratio; reason: total_msgs