couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Harm <cont...@aharm.de>
Subject Re: Question on continuous replication between two local databases
Date Fri, 13 Nov 2015 09:04:50 GMT
Dooh! And it even says it in the documentation. Probably was working too much with _session.

Thanks a lot for the speedy reply.

> On 13. Nov. 2015, at 09:54, Alexander Shorin <kxepal@gmail.com> wrote:
> 
> user_ctx, not userCtx.
> --
> ,,,^..^,,,
> 
> 
> On Fri, Nov 13, 2015 at 11:51 AM, Alexander Harm <contact@aharm.de> wrote:
>> Hi all,
>> 
>> I seem to be unable to figure out how to replicate between two local databases. I
create the _replicator document as database admin and believe to have specified the roles
correctly in the userCtx. However, I continue to receive error messages:
>> "unauthorized to access or create database mylocaltarget”
>> 
>> My initial _replicator doc looks like this:
>> {
>>    "_id": "myid",
>>    "continuous": true,
>>    "create_target": true,
>>    "source": "mylocalsource",
>>    "target": "mylocaltarget",
>>    "userCtx": {
>>        "roles": [
>>            "_admin"
>>        ]
>>    }
>> }
>> 
>> Where do I go wrong?
>> 
>> Greetings,
>> 
>> Alexander


Mime
View raw message