To be sure we understand each other... >From your gist: RestClient.post "http://user:p...@localhost:5984/_replicate", {"source" => "https://user:p...@server/mydb", "target" => "http://user:p...@localhost:5984/mydb"}.to_json
try instead: RestClient.post "http://user:p...@localhost:5984/_replicate", {"source" => "https://user:p...@server/mydb", "target" => "mydb"}.to_json On Mon, Apr 12, 2010 at 15:44, Jochen Kempf <[email protected]> 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 <[email protected]> > >> 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 <[email protected]> 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! >> > >> >
