couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randall Leeds <randall.le...@gmail.com>
Subject Re: Problems with puull replication
Date Mon, 12 Apr 2010 22:53:51 GMT
To be sure we understand each other...

>From your gist:
RestClient.post "http://user:pass@localhost:5984/_replicate",
{"source" => "https://user:pass@server/mydb", "target" =>
"http://user:pass@localhost:5984/mydb"}.to_json

try instead:
RestClient.post "http://user:pass@localhost:5984/_replicate",
{"source" => "https://user:pass@server/mydb", "target" =>
"mydb"}.to_json

On Mon, Apr 12, 2010 at 15:44, Jochen Kempf <jochenkempf@gmail.com> wrote:
> Hi  Randall,
>
> Sorry - that was a typo. Obviously I just use "mydb" as the target with the
> Futon Replicator.
>
> 2010/4/12 Randall Leeds <randall.leeds@gmail.com>
>
>> For pull replication, what happens if you specify only 'mydb' as the
>> target instead of a full URI?
>>
>> On Mon, Apr 12, 2010 at 15:35, Jochen Kempf <jochenkempf@gmail.com> wrote:
>> > Still struggling with the pull replication!
>> >
>> > The only setup that worked for me is leaving CouchDB without an admin
>> user
>> > and deactivate basic authentication in nginx.
>> > But - this is not suitable for security reasons!
>> >
>> > Is there anyone successfully doing pull replication with basic
>> > authentication enabled?
>> >
>> > I simply cannot get it work:
>> > - via Futon I get a "401 Authorization required" error
>> > - via RestClient I get a "RestClient::InternalServer" error
>> >
>> > However, when I do a poosh replication it works fine both in Futon as
>> with
>> > RestClient - and I just swap the "target" and "source" member!
>> >
>> > I have no clue what else to look for trying to get pull replication work
>> > with basic authentication.
>> >
>> > Please also see my gist with the code I used:
>> http://gist.github.com/364072
>> >
>> >
>> >
>> > Really would be happy with some help!
>> >
>>
>

Mime
View raw message