From user-return-13178-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Oct 13 20:56:28 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 51997 invoked from network); 13 Oct 2010 20:56:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Oct 2010 20:56:28 -0000 Received: (qmail 5239 invoked by uid 500); 13 Oct 2010 20:56:26 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 5202 invoked by uid 500); 13 Oct 2010 20:56:26 -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 5194 invoked by uid 99); 13 Oct 2010 20:56:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 20:56:26 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fdmanana@gmail.com designates 209.85.161.180 as permitted sender) Received: from [209.85.161.180] (HELO mail-gx0-f180.google.com) (209.85.161.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Oct 2010 20:56:20 +0000 Received: by gxk9 with SMTP id 9so280846gxk.11 for ; Wed, 13 Oct 2010 13:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=G6vyRVMwYBSMxt4MObyNKQuVNP6hgGV8lM0pNuIfIM0=; b=kYt+iwDpVxVG3AyacXM4Oe3xptYQJXV75nko83XHza/Q/V5VuAwde0OeUZxH8OJCEO 7h24se+2hTwgQm/ma2SReH+NRzRXEC6eYeGbfF+yI6RaUjGDUhHSR/GO5aH8m++ldBBt gdnY1Pai0GFrQd8LSO4rcpyTpmUbhrJZax32k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=MXJRYVg0hoVL3A0r4ALArthE4nIjyOHD+7b4V4tXxGBzHwJmAZ/KgMWnH4o5dc5qDM 8yvkGYOc1xessUbaPdfT8p63n2LdJK2PVeAi+qyJp84opRYfOX3Fe75gsJcAEzZCJtWc /BFzubftMQjzAuBLeovG1OCkCGFHlyeB8cut8= MIME-Version: 1.0 Received: by 10.100.251.18 with SMTP id y18mr5154871anh.80.1287003359389; Wed, 13 Oct 2010 13:55:59 -0700 (PDT) Sender: fdmanana@gmail.com Received: by 10.101.66.19 with HTTP; Wed, 13 Oct 2010 13:55:59 -0700 (PDT) In-Reply-To: References: <40457C9C-75FC-41C2-A09F-BDA59BC23B01@me.com> Date: Wed, 13 Oct 2010 21:55:59 +0100 X-Google-Sender-Auth: QO__PwA55e4f2vHK8OB3VlWqrgQ Message-ID: Subject: Re: HTTP Error 303 causes erlang stack trace From: Filipe David Manana To: user@couchdb.apache.org Cc: johnlogsdon@me.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org John, I created a ticket, https://issues.apache.org/jira/browse/COUCHDB-918 and attached there a patch. Can you test the patch? It was made against trunk, but should apply cleanly against branch 1.0.x as well. I'll commit it afterwards. On Wed, Oct 13, 2010 at 8:57 PM, Filipe David Manana wrote: > Hi John, > > Do you have some proxy in the middle that might be returning the 303 > response? Perhaps in the meanwhile you can reconfigure your proxy. > CouchDB itself doesn't send 303 errors anywhere. The crash is because > it's not dealing with 303 (only 301 and 302). > > In the meanwhile, do you want to open a Jira ticket? > I'll gladly do a patch and commit it. > > On Wed, Oct 13, 2010 at 2:42 PM, John Logsdon wrote: >> Hello again >> >> Can anyone comment on this replication error I posted a few days ago? If= it appears to be a genuine bug then I can raise it through the project but= I just wanted some feedback before I did that. >> >> Regards >> >> John >> >> On 11 Oct 2010, at 17:47, John Logsdon wrote: >> >>> Hi >>> >>> I kicked off a replication to couchone.com from my local couchdb by pus= hing from the local db. >>> >>> It was for a 2M doc database and all was going well up until 678K entri= es but then I had a connection issue and well it's all gone horribly wrong. >>> >>> Anyway basically the replication has gone from "Replicator" and I cant = restart it. The erlang stack trace in couchdb.log looks like this: >>> >>> ** Reason for termination =3D=3D >>> ** {http_request_failed,<<"unhandled response code 303">>} >>> >>> >>> [Sun, 10 Oct 2010 17:29:52 GMT] [error] [<0.17737.2>] {error_report,<0.= 30.0>, >>> =C2=A0 =C2=A0 {<0.17737.2>,crash_report, >>> =C2=A0 =C2=A0 =C2=A0[[{initial_call,{couch_rep_reader,init,['Argument__= 1']}}, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0{pid,<0.17737.2>}, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0{registered_name,[]}, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0{error_info, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{exit, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{http_request_fa= iled,<<"unhandled response code 303">>}, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[{gen_server,ter= minate,6},{proc_lib,init_p_do_apply,3}]}}, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0{ancestors, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[<0.17728.2>,couch_rep_sup,cou= ch_primary_services,couch_server_sup, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <0.31.0>]}, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0{messages, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[{'EXIT',<0.17738.2>, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {{http_request_= failed,<<"unhandled response code 303">>}, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{gen_serv= er,call, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0[<0.17735.2>,next_missing_revs,infinity]}}}]}, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0{links,[]}, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0{dictionary,[]}, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0{trap_exit,true}, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0{status,running}, >>> >>> >>> Have I bumped into a bug here or....???? >>> >>> >>> Regards >>> >>> John >> >> > > > > -- > Filipe David Manana, > fdmanana@gmail.com, fdmanana@apache.org > > "Reasonable men adapt themselves to the world. > =C2=A0Unreasonable men adapt the world to themselves. > =C2=A0That's why all progress depends on unreasonable men." > --=20 Filipe David Manana, fdmanana@gmail.com, fdmanana@apache.org "Reasonable men adapt themselves to the world. =C2=A0Unreasonable men adapt the world to themselves. =C2=A0That's why all progress depends on unreasonable men."