Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ECFE510999 for ; Sat, 7 Sep 2013 20:53:14 +0000 (UTC) Received: (qmail 89261 invoked by uid 500); 7 Sep 2013 20:53:13 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 89226 invoked by uid 500); 7 Sep 2013 20:53:13 -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 89218 invoked by uid 99); 7 Sep 2013 20:53:13 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Sep 2013 20:53:13 +0000 Received: from localhost (HELO mail-lb0-f170.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Sep 2013 20:53:13 +0000 Received: by mail-lb0-f170.google.com with SMTP id w7so3950983lbi.29 for ; Sat, 07 Sep 2013 13:53:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=pakrQMjDvgcNT5Y1L4eU5TbDAjRg5Szgz53VVMuMz3E=; b=f4lRWXw3EMMkjma8toahN2+ZwipueqM73GrVfBBONfVWejhAViUl8eVG8o5+jSrIn1 wv3vWVXqNbB7fJrIiU3kdSZ0D0BOSQSa3SVvQXrsAVtkMeU5t9BkJ4WpOmdvUDQivHD/ 0L7aqS02CBCSY5k5srCO1INW7sWzGmgrgJ7dHGSs27LayXhbVKaCX+fF0DwdBhOjcuOU qEMV98cMPNf76Ac5tffkmn2TtGo/PBgOlFd01wVBn6lpSSXClYlKk4sAfPYiNPCh89yt a1bpNthvcK/yOVkL1U5TBPBsCB6/unauDx4FjFH+k3wnAIKAsRujO3qwCf66ZsdCpPWc UFpA== MIME-Version: 1.0 X-Received: by 10.112.146.33 with SMTP id sz1mr8751187lbb.14.1378587191297; Sat, 07 Sep 2013 13:53:11 -0700 (PDT) Received: by 10.112.211.228 with HTTP; Sat, 7 Sep 2013 13:53:11 -0700 (PDT) In-Reply-To: References: Date: Sat, 7 Sep 2013 21:53:11 +0100 Message-ID: Subject: Re: Replication through proxy does not work? From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi, I just set up squid and replicated through it successfully; curl localhost:5984/_replicate -Hcontent-type:application/json -d '{"source":"http://127.0.0.1:5984/db1","target":"http://127.0.0.1:5984/db2"= ,"proxy":"http://127.0.0.1:3128","create_target":true}' So, perhaps you just have a typo in one of the three urls in there? B. On 7 September 2013 20:44, Chung, Yang wrote: > I am using 'squid' on Ubuntu=85 So, I suppose it's mis-configured access= list. > > I am new to the proxy world. Does CouchDB replication through proxy requi= re certain configuration on squid or any proxy server? > > Thanks, > > -Yang > > From: Robert Newson > > Reply-To: "user@couchdb.apache.org" > > Date: Saturday, September 7, 2013 9:25 AM > To: "user@couchdb.apache.org" > > Subject: Re: Replication through proxy does not work? > > Hi, > > Replicating through a proxy should be working just fine, more likely > it's a problem with the proxy itself. What are you using? > > B. > > > On 7 September 2013 02:18, Chung, Yang > wrote: > Hey guys, > > I've been trying to replicate certain database from external source to lo= cal destination using proxy, and it keeps failing with the following error = message. > > {"error":"db_not_found","reason":"could not open [EXTERNAL SOURCE COUCHDB= ]"} > > It works fine, though, if I remove "proxy" key. > > {"ok":true,"no_chagne":=85..} > > I am making a POST request to 'http://localhost:5984/_replicate' with the= following JSON data. > > { > "source":[EXTERNAL SOURCE], > "target":"http://admin_user:admin_password@127.0.0.1:5984/my_test", > "create_target":false, > "continuous":false, > "doc_ids":["id1", "id2"], > "proxy":[PROXY ADDRESS:PORT] > } > > Is there known bug for replicating via proxy? Or can it be a configuratio= n issue on my proxy server? > > Any help would be much appreciated. > > Thank you! > E-mail confidentiality. > -------------------------------- > This e-mail contains confidential and / or privileged information belongi= ng to Spirent Communications plc, its affiliates and / or subsidiaries. If = you are not the intended recipient, you are hereby notified that any disclo= sure, copying, distribution and / or the taking of any action based upon re= liance on the contents of this transmission is strictly forbidden. If you h= ave received this message in error please notify the sender by return e-mai= l and delete it from your system. > > Spirent Communications plc > Northwood Park, Gatwick Road, Crawley, West Sussex, RH10 9XN, United King= dom. > Tel No. +44 (0) 1293 767676 > Fax No. +44 (0) 1293 767677 > > Registered in England Number 470893 > Registered at Northwood Park, Gatwick Road, Crawley, West Sussex, RH10 9X= N, United Kingdom. > > Or if within the US, > > Spirent Communications, > 26750 Agoura Road, Calabasas, CA, 91302, USA. > Tel No. 1-818-676- 2300 >