couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Kempf <jochenke...@gmail.com>
Subject Re: Problems with puull replication
Date Mon, 12 Apr 2010 23:02:54 GMT
Ok - I tried it using just "mydb" as the target but still get the same error
for pull replication (push replication works here fine as well).

2010/4/12 Randall Leeds <randall.leeds@gmail.com>

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message