You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Dan Smythe <xk...@gmail.com> on 2010/02/09 17:51:29 UTC

Replication Flag "create_target":true

All --

In my testing, it appears that when "create_target":true is sent, CouchDB
still does not create the target database.

For Example:

Host A: has the test suite databases.
Host B: has no databases

On Host A:
curl -X POST -d "{\"source\":\"http://localhost:5984/test_suite_db
\",\"target\":\"http://1.2.3.4:5984/test_suite_db\","create_target":true,"continuous":true}"
http://localhost:5984/_replicate

This fails with an error similar to:

{"error":"case_clause","reason":"{error,{db_not_found,<<\"
http://1.2.3.4:5984/test_suite_db/\">>}}"}

Per http://wiki.apache.org/couchdb/Replication This should be working.

I'm running CouchDB 0.10 with Lucene on CentOS.

Any Ideas?

--Dan

Re: Replication Flag "create_target":true

Posted by Robert Newson <ro...@gmail.com>.
I think create_target:true was added after 0.10 and is part of the next release.

B.

On Tue, Feb 9, 2010 at 4:51 PM, Dan Smythe <xk...@gmail.com> wrote:
> All --
>
> In my testing, it appears that when "create_target":true is sent, CouchDB
> still does not create the target database.
>
> For Example:
>
> Host A: has the test suite databases.
> Host B: has no databases
>
> On Host A:
> curl -X POST -d "{\"source\":\"http://localhost:5984/test_suite_db
> \",\"target\":\"http://1.2.3.4:5984/test_suite_db\","create_target":true,"continuous":true}"
> http://localhost:5984/_replicate
>
> This fails with an error similar to:
>
> {"error":"case_clause","reason":"{error,{db_not_found,<<\"
> http://1.2.3.4:5984/test_suite_db/\">>}}"}
>
> Per http://wiki.apache.org/couchdb/Replication This should be working.
>
> I'm running CouchDB 0.10 with Lucene on CentOS.
>
> Any Ideas?
>
> --Dan
>