Hi All,
I was discussing a XDCR problem with +Marty Schoch. Instead of just continuing our email discussion we both think that this might be a good subject to put in this group (to share some problems and solutions).
So to the problem. I am implementing the couchbase-capi-server, and have run into a couple of problems. From an enduser perspective in the couchbase GUI, I got this response back when adding a new replication to another host ("Create Replication" under the XDCR tab): "can't grab remote bucket info from any of known nodes".
So after giving some debug info to Marty, we found that the first problem was to reply with a wrong response to some of the urls that the XDCR protocol needs to implement.
So when trying to request:
/pools/default
the CAPI server was returning:
"buckets":{"uri":"/pools/default/buckets?uuid=c21f969b-5f03-333d-83e0-4f8f136e7682"},"nodes":[{"ports":{"direct":9999},"couchApiBase":"
http://zool.local:9999/default/","hostname":"zool.local"}]}
Here the couchApiBase was wrong. It does not have to take the bucket/pools in the URL. So the correct one was
http://zool.local:9999, that is the hostname and the port.
I found out by looking at the elastic search plugin:
Now after having done the fix, I still have a problem when setting up replication from couchbase to my XDCR CAPI server.
I get these XDCR Errors:
2013-06-20 13:59:52 - Error replicating vbucket 7: badarg
2013-06-20 13:59:52 - Error replicating vbucket 63: badarg
2013-06-20 13:59:52 - Error replicating vbucket 47: badarg
2013-06-20 13:59:52 - Error replicating vbucket 46: badarg
2013-06-20 13:59:52 - Error replicating vbucket 41: badarg
2013-06-20 13:59:52 - Error replicating vbucket 3: badarg
2013-06-20 13:59:52 - Error replicating vbucket 33: badarg
2013-06-20 13:59:52 - Error replicating vbucket 32: badarg
2013-06-20 13:59:52 - Error replicating vbucket 31: badarg
2013-06-20 13:59:52 - Error replicating vbucket 26: badarg
So I can register my CAPI server correctly, but when I setup replication of a bucket I get these errors (see also attachments).
Marty or any others, can you guys help here?
I still don't get to the point where I receive anything from my code that implements CAPIBehaviour.
-Cheers!
/Steffen