Description
MB-12569 correctly fixes this error for 3.x clusters, but the issue has been re-introduced since 4.x with the addition of provide_index() to pump_dcp.py.
To recreate, take a single node of 4.x, with the index service enabled, an empty default bucket, and the travel-sample bucket.
From the shell, create an empty backups directory, then run cbbackup:
$ mkdir backups
|
|
$ /opt/couchbase/bin/cbbackup http://127.0.0.1:8091 backups/ -u Administrator -p Passw0rd
|
.
|
bucket: default, msgs transferred...
|
: total | last | per sec
|
byte : 0 | 0 | 0.0
|
[#####################] 102.5% (29734/estimated 29000 msgs)
|
bucket: travel-sample, msgs transferred...
|
: total | last | per sec
|
byte : 34052289 | 34052289 | 964577.0
|
done
|
Observe that the directory structure is incorrect - backups/bucket-default/ should be backups/2016-06-24T122929Z/:
$ ls -lR
|
.:
|
total 4
|
drwxrwxr-x 3 vagrant vagrant 4096 Jun 24 12:29 backups
|
|
./backups:
|
total 4
|
drwxrwxr-x 3 vagrant vagrant 4096 Jun 24 12:29 bucket-default
|
|
./backups/bucket-default:
|
total 8
|
drwxrwxr-x 3 vagrant vagrant 4096 Jun 24 12:29 2016-06-24T122929Z-full
|
-rw-rw-r-- 1 vagrant vagrant 56 Jun 24 12:29 index.json
|
|
./backups/bucket-default/2016-06-24T122929Z-full:
|
total 4
|
drwxrwxr-x 3 vagrant vagrant 4096 Jun 24 12:30 bucket-travel-sample
|
|
./backups/bucket-default/2016-06-24T122929Z-full/bucket-travel-sample:
|
total 12
|
-rw-rw-r-- 1 vagrant vagrant 1937 Jun 24 12:30 design.json
|
-rw-rw-r-- 1 vagrant vagrant 2316 Jun 24 12:30 index.json
|
drwxrwxr-x 2 vagrant vagrant 4096 Jun 24 12:30 node-10.111.150.101%3A8091
|
|
./backups/bucket-default/2016-06-24T122929Z-full/bucket-travel-sample/node-10.111.150.101%3A8091:
|
total 39028
|
-rw-r--r-- 1 vagrant vagrant 39894016 Jun 24 12:30 data-0000.cbb
|
-rw-rw-r-- 1 vagrant vagrant 31251 Jun 24 12:30 failover.json
|
-rw-rw-r-- 1 vagrant vagrant 12 Jun 24 12:29 meta.json
|
-rw-rw-r-- 1 vagrant vagrant 11178 Jun 24 12:30 seqno.json
|
-rw-rw-r-- 1 vagrant vagrant 16298 Jun 24 12:30 snapshot_markers.json
|
Attachments
Issue Links
For Gerrit Dashboard: MB-20021 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
66434,3 | MB-20021: Create a backup database even on an empty bucket | watson | couchbase-cli | Status: MERGED | +2 | +1 |
66770,1 | MB-20021: Create a backup database even on an empty bucket | master | couchbase-cli | Status: ABANDONED | 0 | 0 |
67172,3 | CBQE-3584 test backup directory structure as in MB-20021 | master | testrunner | Status: MERGED | +2 | +1 |
67665,1 | MB-20021: Move the entire if statement from the previous commit | master | couchbase-cli | Status: ABANDONED | 0 | 0 |
67666,2 | MB-20021: Move the entire if statement from the previous commit | watson | couchbase-cli | Status: MERGED | +2 | +1 |
69492,1 | CBQE-3584 test backup directory structure as in MB-20021 | testrunner-ng | testrunner | Status: ABANDONED | 0 | 0 |
73464,2 | MB-22716: Check that cbb_max_mb is chaeck at the top of the write loop | master | couchbase-cli | Status: ABANDONED | 0 | 0 |
73766,3 | MB-22716: Check that cbb_max_mb is check at the top of the write loop | watson | couchbase-cli | Status: MERGED | +2 | +1 |