Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 95635 invoked from network); 12 Apr 2010 23:03:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Apr 2010 23:03:41 -0000 Received: (qmail 76912 invoked by uid 500); 12 Apr 2010 23:03:40 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 76851 invoked by uid 500); 12 Apr 2010 23:03:40 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 76843 invoked by uid 99); 12 Apr 2010 23:03:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 23:03:39 +0000 X-ASF-Spam-Status: No, hits=4.5 required=10.0 tests=AWL,FREEMAIL_FROM,FS_REPLICA,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jochenkempf@gmail.com designates 209.85.160.52 as permitted sender) Received: from [209.85.160.52] (HELO mail-pw0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 23:03:34 +0000 Received: by pwi1 with SMTP id 1so5003326pwi.11 for ; Mon, 12 Apr 2010 16:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:received:message-id:subject:to:content-type; bh=TFG55Ip2slsKNygwrChOakmGuVD6M7elPB+nrFIAPDI=; b=VHB4k4OANWXE0jqjNpiaax2Mysfrn+M9PrjEvez6TEfKsWMmCzIms6QMSblvn7K0yq k9hpaSn12mG5oBpIQ//vj+V3f4hbRdX0Qyr8VhX300A90aJWzL/xAoGYQbOMfP10FYyv rGxE8Y+7Urz0uzspCOzYXgDZF45tvKu19z5Xs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=F5lZFLBZFCQlQg2NbhXNSHeLKLeRlXkFSCgNaQ0787e9nqamZwKm7pcMxQ3hg0XN/s DDBMXi2cLEEDXLWmGhT7ME1k+QjOQGgoAgIHY0+waDiaV3ptbgjawiiAbc2TcchKvrZn P+ksSBsP0m3rSgmsTqvmGmfcNvPWgiqqTjCCo= MIME-Version: 1.0 Received: by 10.114.24.13 with HTTP; Mon, 12 Apr 2010 16:02:54 -0700 (PDT) In-Reply-To: References: From: Jochen Kempf Date: Mon, 12 Apr 2010 19:02:54 -0400 Received: by 10.114.21.9 with SMTP id 9mr3061913wau.98.1271113394475; Mon, 12 Apr 2010 16:03:14 -0700 (PDT) Message-ID: Subject: Re: Problems with puull replication To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=00504502ead758d4220484122687 --00504502ead758d4220484122687 Content-Type: text/plain; charset=ISO-8859-1 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 > 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 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 > > > >> 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 > 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! > >> > > >> > > > --00504502ead758d4220484122687--