Cbrestore - Couchbase 4.5 dump to Couchbase 6.5 shows error after 17% of restoring

Couchbase 4.5 dump to Couchbase 6.5 shows error after 17% of restoring. Please help.

[root@localhost bkp]# /opt/couchbase/bin/cbrestore -u Administrator -p ******* /root/bkp/ http://127.0.0.1:8091 --bucket-source=person-data --bucket-destination=person-data
Exception in thread s0:] 17.7% (114000/estimated 642907 msgs)
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_mc.py", line 112, in run
    rv, batch, need_backoff = self.scatter_gather(mconns, batch)
  File "/opt/couchbase/lib/python/pump_cb.py", line 88, in scatter_gather
    vbucket_id=vbucket_id)
  File "/opt/couchbase/lib/python/pump_mc.py", line 233, in send_msgs
    conf_res)  # type: ignore
  File "/opt/couchbase/lib/python/pump_mc.py", line 595, in cmd_request
    ext = struct.pack(">IIQQI", flg, exp, int.from_bytes(meta, byteorder='big'), cas, force)
struct.error: int too large to convert

After few research I found that it is the issue in 6.5.1. The fix is in 6.6.
https://issues.couchbase.com/browse/MB-38683

For more details see cbbackup-failing-due-to-large-meta-rev-value post.

1 Like

@pvarley The error I got is a bit different. It is in another file. Is there any workaround for this issue?

File “/opt/couchbase/lib/python/pump_mc.py”, line 595, in cmd_request
ext = struct.pack(“>IIQQI”, flg, exp, int.from_bytes(meta, byteorder=‘big’), cas, force)

@jefinjeeva That seems like a new issue, can you open a new post and provided a full stack traces please.

@pvarley Thank you for your reply.
created new post: Couchbase 6.5 cbrestore - error in pump_mc.py: struct.error: int too large to convert