Cbbackup fails after upgrading to 6.5

I did some more testing:

  • fresh install 0f Ubuntu 16.04
  • install CB Server CE 6.5 like so
# curl -O https://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-6-amd64.deb
# sudo dpkg -i ./couchbase-release-1.0-6-amd64.deb
# sudo apt-get update
# sudo apt-get install couchbase-server-community
  • create bucket, add one document via Couchbase dashboard, run backup command
/opt/couchbase/bin/cbbackup http://localhost:8091 ~/backups -u Administrator -p mypass

That worked.

What didn’t work on the same fresh install:

  • successfully import backup of production bucket which was created with Couchbase Server 6.0 CE
  • run backup command
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 254, in provide_batch
    rv, batch = self.provide_dcp_batch_actual()
  File "/opt/couchbase/lib/python/pump_dcp.py", line 413, in provide_dcp_batch_actual
    msg = (cmd, vbucket_id, key, flg, exp, cas, rev_seqno.to_bytes(4, 'big'), val, seqno, dtype, metalen,
OverflowError: int too big to convert

^Cinterrupted.