Cbbackup: OverflowError: int too big to convert

Hello @Nikhil_Singh,

Here is the original post on this issue incase folks want the background.

With regards to a work around if you are using Couchbase Server Enterprise Edition then it’s recommended that cbbackupmgr is used to backup and restore the data, which is not affected by this bug.

If Community Edition is being used then the patch linked of MB-38683 can be applied.

Basically change the following two lines 413 and 427 in /opt/couchbase/lib/python/pump_dcp.py

Line 413 from:

msg = (cmd, vbucket_id, key, flg, exp, cas, rev_seqno.to_bytes(4, 'big'), val, seqno, dtype, metalen,

to

msg = (cmd, vbucket_id, key, flg, exp, cas, rev_seqno.to_bytes(8, 'big'), val, seqno, dtype, metalen,

Line 427 from:

msg = (cmd, vbucket_id, key, flg, exp, cas, rev_seqno.to_bytes(4, 'big'), val, seqno, dtype, metalen, 0)

to

msg = (cmd, vbucket_id, key, flg, exp, cas, rev_seqno.to_bytes(8, 'big'), val, seqno, dtype, metalen, 0)

Basically changing the 4 to the 8.

1 Like