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 491718B49 for ; Sun, 18 Sep 2011 01:08:29 +0000 (UTC) Received: (qmail 53880 invoked by uid 500); 18 Sep 2011 01:08:27 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 53837 invoked by uid 500); 18 Sep 2011 01:08:27 -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 53829 invoked by uid 99); 18 Sep 2011 01:08:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Sep 2011 01:08:27 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adam.kocoloski@gmail.com designates 209.85.213.52 as permitted sender) Received: from [209.85.213.52] (HELO mail-yw0-f52.google.com) (209.85.213.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Sep 2011 01:08:21 +0000 Received: by ywp31 with SMTP id 31so5354288ywp.11 for ; Sat, 17 Sep 2011 18:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition; bh=Braifujhl+5Z1I7X8vy+aTQGfz5MrBKd8dl5D8A7zdk=; b=kHMNEhx6qoMoO7oLmC6LgBRzKAPm0hy5vqKQ+cKrSEXSAWfW4TgWU7KxdQPyWcEdR9 bbxL2a2tGYS3ujUD6V52kUet+pwMkGsfGOgvr1ZuestR58/dqtpJnTRE/KoqeFNJxQ1s nlgQGHta6KfTGQvTYElxM/UbQftaeRXP9cvLk= Received: by 10.151.27.3 with SMTP id e3mr937773ybj.61.1316308080591; Sat, 17 Sep 2011 18:08:00 -0700 (PDT) Received: from macbook.local (c-76-119-89-178.hsd1.ma.comcast.net [76.119.89.178]) by mx.google.com with ESMTPS id 13sm24317305ans.9.2011.09.17.18.07.58 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 17 Sep 2011 18:07:59 -0700 (PDT) Date: Sat, 17 Sep 2011 21:07:57 -0400 From: Adam Kocoloski To: user@couchdb.apache.org Message-ID: In-Reply-To: References: <4E73C24C.2080005@gmail.com> Subject: Re: "%2F" problems X-Mailer: sparrow 1.3.2 (build 814.60) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Kevin, there are a few possibilities, one of which is that the replica= tor gets confused about the expected length of the response body. My reco= llection is that the replicator in 1.0.x and 1.1.x ignores the actual val= ue of the content-length header when pulling an attachment and instead ex= pects to read the number of bytes specified in the =5Fattachments metadat= a in the document (I'm not sure about the behavior of the new replicator = in 1.2 in this respect). Throw attachment compression into the mix and th= ings can get tricky. =46or example, it might be the case that the =5Fatta= chments metadata contains the identity length of the attachment but that = the attachment is ultimately served in compressed form during the replica= tion. As far as workarounds go, can you initiate the replication from the sourc= e server and specify the local database name as the source=3F You'll use = a rather different code path. Adam On Saturday, September 17, 2011 at 6:30 PM, Dave Cottlehuber wrote: =20 > Sorry Kevin, my apologies, only read =C2=BD of that email - clearly quo= ting > alone isn't enough to explain this. > =20 > What version(s) or buidls of CouchDB are involved=3F > Also, are you able to post some of the logs online in debug mode=3F > =20 > Thanks > Dave > =20 > On 18 September 2011 10:17, Dave Cottlehuber wrote: > > On 17 September 2011 09:40, Kevin R. Coombes wrote: > > > I am trying to replicate a couch database from one Windows machine = to > > > another. Replication halts with an error when it gets to an attachm= ent of > > > the design document. The error message in the (local) log file just= before > > > the stack dump says > > > =20 > > > =5B=46ri, 16 Sep 2011 21:22:57 GMT=5D =5Berror=5D =5B<0.813.0>=5D s= treaming att. ended but > > > more data requested =7B1316,208177,498001=7D > > > =5B=46ri, 16 Sep 2011 21:22:57 GMT=5D =5Binfo=5D =5B<0.813.0>=5D re= quest for > > > =22=5Fdesign%2=46basic/docs.html=22 timed out, retrying in 0.5 seco= nds > > > =20 > > > The replication was started by sending a POST to the local machine;= I am > > > using pull replication from a remote source to the local target. Ad= mins are > > > set up on the local machine, and I provided the admin credentials b= oth as > > > part of the URL starting the replication and as part of the target = URL. > > > =20 > > > When I use =22curl=22 from the command line on the local machine to= request a > > > file from the remote machine, the command > > > curl =5BREMOTEDB=5D/=5Fdesign%2=46basic/docs.html > > > returns nothing, while the command > > > curl =5BREMOTEDB=5D/=5Fdesign/basic/docs.html > > > returns the correct file. > > > =20 > > > Clearly, there is something about the encoding of a forward slash a= s a =22%2=46=22 > > > that is confusing both me and at least one of the couch instances i= nvolved > > > in this attempt at replication. > > > =20 > > > Can someone tell me =5B1=5D what is the underlying source of the pr= oblem=3F and > > > =5B2=5D how do I persuade couch to just replicate the design docume= nts properly=3F > > > =20 > > > Thanks, > > > Kevin > > =20 > > Hi Kevin, > > =20 > > I assume you're driving replication via curl, in a cmd.exe shell, and= > > that things work via futon. > > =20 > > =5B1=5D is likely quoting which is not obvious on windows > > http://wiki.apache.org/couchdb/Quirks=5Fon=5FWindows has some example= s on > > fixing this. Using curl -v should show you what the actual text sent > > through to CouchDB is. > > =20 > > =5B2=5D depending on whether you're running in admin party or not, yo= u may > > need to include username:password=40couch for ddocs to replicate. > > =20 > > A+ > > Dave