unable to run cbbackup/cbrestore, need to bulkload json docs into couchbase
Thu, 01/31/2013 - 09:28
I am trying to run the backup restore of couchbase and I am getting "SASL auth failed" error, however I am able to run the other commands using couchbase-cli with same username and password. I also tried using the actual hostname/ip instead of localhost, but got the same error.
error I am getting:
./cbbackup http://localhost:8091 /tmp/backup-20120131 -u Administrator -p password
error: SASL auth failed: , user: production
however, if I run following command it runs fine and lists the servers.
./couchbase-cli server-list -c localhost:8091 -u Administrator -p password
1. Do I need to setup something before I can run cbbackup restore utility?
2. can I bulk load json docs directly to couchbase db?
Hello,
If you are trying to backup ‘SASL Buckets’ then you can use ‘-b option’ with cbbackup command.
To bulk load json documents to Couchbase you can use the ‘CBDocLoader’ tool and here is the blog post on that (http://blog.couchbase.com/loading-json-data-couchbase) some examples here (https://github.com/couchbase/couchbase-examples).
Hope that helps…
Anil