cbbackup gives "error: no design source node"
Hello
Running /opt/couchbase/bin/cbbackup http://host:8091 backups/ --username Administrator --password pass
appears to work but gives an error message at the end;
[####################] 100.8% (130/129 msgs)
bucket: mybucket, msgs transferred...
: total | last | per sec
batch : 131 | 131 | 410.7
byte : 23971 | 23971 | 75154.6
msg : 130 | 130 | 407.6
error: no design source node; spec_parts: ('host', '8091', 'Administrator', 'pass', '')Is this cause for concern?
Thank you
Darren
I do have design docs - 11 of them in production, and I tested with a design doc in development and without, and the error remains.
Do your design documents get backed up and restored when you run cbrestore?
It's true; they don't.
I can send logs or give you access to my instance if it would help.
Yes please send us the logs and we will take a look at it.
Thanks
I've done this:
/opt/couchbase/bin/cbcollect_info localhost.zip curl --upload-file localhost.zip http://s3.amazonaws.com/customers.couchbase.com/gratwi/
This is what you need?
It is highly possible that you put the wrong parameter for cbbackup. You can try this:
/opt/couchbase/bin/cbbackup http://localhost:8091 backs/ --username Adminsitrator --password pass
or you put the actual ip address such as 10.1.2.3. Here you cannot specify hostname other than localhost.
It's the host reference - only 'localhost' works, not the FQDN or IP address.
Presumably this is a bug, and means remote backups are not currently possible?
Thank you
neither host reference nor fqdn will work. But ip address will. So remote backup is certainly possible as long as the ip address is the valid one that represents a node in couchbase cluster.
I still get the error when using the external IP, locally
i.e. using the command 'cbbackup http://54.235.120.186:8091 ...', from the machine 54.235.120.186 itself, still gives the error.
Perhaps remote IP addresses only work from remote machines?
Couchbase Server won't support external ip address. You have to use the internal ip address, i.e. server node name which you can find from Couchbase Admin console.
ok! So you can backup a node on your LAN, but not on a different network.
If I may suggest, might be a good idea to put a check for this into the cbbackup tool - this is really non-obvious from the tool/documentation (especially as it mostly works but not quite!)
Thank you for the clarification.
Do you have any design documents (views) defined in the system?
cbbackup backups an entire cluster, which includes all of the data buckets and data on all nodes. This will also include all design documents; do note however that you will rebuild any indexes after you restore the data. If you don't have design docs, I think you may see this error. If you do have design docs, it may be a bug.
- Dipti