When I create two databases 'foo' and 'bar' and then create a document
{
"_id": "whatever",
"source": "foo",
"target": "bar"
}
in the _replicator
database this should initiate the syncing from 'foo' to 'bar'. However, I am getting this error in the logs:
Could not open file ./data/foo.couch: no such file or directory
open_result error {not_found,no_db_file} for foo
Replication <hash> failed to start "foo" -> "bar"
The same works if I use the full url of the source/target databases (e.g. http://localhost:5984/foo
), but coupling my replication documents to the (current) url of the CouchDB instance seems very wrong and unnecessary, I would have to update them all if I would change the port etc.. The docs also state that for source/target the database name OR url can be used.
Is it not possible to use the (relative) database names and why do I get the above error if I just use the name ?
I am using CouchDB 2.1.1 under Ubuntu 16.04.