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 964F378BA for ; Fri, 30 Sep 2011 07:33:03 +0000 (UTC) Received: (qmail 72500 invoked by uid 500); 30 Sep 2011 07:33:02 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 71912 invoked by uid 500); 30 Sep 2011 07:33:01 -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 71803 invoked by uid 99); 30 Sep 2011 07:32:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 07:32:58 +0000 X-ASF-Spam-Status: No, hits=4.0 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.215.180 as permitted sender) Received: from [209.85.215.180] (HELO mail-ey0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 07:32:53 +0000 Received: by eyb6 with SMTP id 6so1287244eyb.11 for ; Fri, 30 Sep 2011 00:32:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=dt0VjJMNbZlmLJoeRriRzSzh5M5AiWx/Um7/lxyNPg8=; b=A5JIFuf+zbBvk2vq6k7PKMkclJMAB+lIMpip1wryb9yBFVeDMQQ+es/l8wUwBexETw IYuLWEAVXN3y6E3LO1ZMyNMzL9aCkWs3LKO49aiaYv3nCCeyGD3wB5GaSzQLvTljTY/n eGddKXD1mExKn+R4wfwOgvxcGHgiNw/6y7lvY= MIME-Version: 1.0 Received: by 10.213.17.17 with SMTP id q17mr608957eba.115.1317367951269; Fri, 30 Sep 2011 00:32:31 -0700 (PDT) Received: by 10.213.19.129 with HTTP; Fri, 30 Sep 2011 00:32:31 -0700 (PDT) In-Reply-To: References: <050C91F2664C44CFA66A262EE4124ADC@gmail.com> Date: Fri, 30 Sep 2011 09:32:31 +0200 Message-ID: Subject: Re: CouchDB Crash report db_not_found when attempting to replicate databases From: Benoit Chesneau To: "user@couchdb.apache.org" Content-Type: multipart/alternative; boundary=0015174c347ec6259b04ae23a0da X-Virus-Checked: Checked by ClamAV on apache.org --0015174c347ec6259b04ae23a0da Content-Type: text/plain; charset=ISO-8859-1 On Friday, September 30, 2011, Filipe David Manana wrote: > Max, Jason, thanks for the reply. > I tried replicating it, and indeed it doesn't work - the replicator > crashes. The reason for this is that there's a document with an empty > ID. > > From the _changes stream: > > (.....) > {"seq":3518,"id":"","changes":[{"rev":"1-2f11e026763c10730d8b19ba5dce7565"}]}, > (.....) > > > The possibility of adding a document with an empty ID was bug in > previous Couch releases that was fixed some time ago. Basically the > replicator, or any other client, can't access a document with the > empty ID. > > Looking at Mikeal's node.js replicator, it's skipping the document if > its ID is empty: > > https://github.com/mikeal/replicate/blob/master/main.js#L122 > > This seems like a sane solution and something I'm considering adding > to the replicators, skipping the document and logging an error message > to inform users. what would be the cons? We should do it imo. benoit > > On Thu, Sep 29, 2011 at 4:39 AM, Jason Smith wrote: >> Do you mean the NPM registry? The raw couch is any of: >> >> * http://isaacs.iriscouch.com >> * http://isaacs.iriscouch.com:5984 >> * https://isaacs.iriscouch.com >> * https://isaacs.iriscouch.com:6984 >> >> Note, the official host is isaacs.iriscouch.net but over HTTPS it will >> only serve the SSL certificate for registry.npmjs.org. So you can use >> those above or disable cert verification. (Accessing >> registry.npmjs.org will vhost you to the couch app.) >> >> P.S. All Iris Couch accounts also have short domains, to help with >> testing and development. >> >> * http://isaacs.ic.ht >> * http://isaacs.ic.tl >> >> .ic.ht and .ic.tl are QWERTY-friendly (alternating right-hand, >> left-hand, like Unix commands). They were the shortest available >> domains with a "c" in them, to stand for "Couch". That is why I chose >> the name "Iris Couch" in the first place. >> >> On Thu, Sep 29, 2011 at 11:44 AM, Max Ogden wrote: >>> http://twitter.com/#!/maxogden/status/113702093512122368 >>> >>> On Wed, Sep 28, 2011 at 9:37 PM, Filipe David Manana < fdmanana@apache.org>wrote: >>> >>>> Mikeal, or someone else, can you provide the url of that npm database? >>>> I would like to do some replication tests with it and report back here. >>>> >>>> thanks >>>> >>>> On Sat, Sep 17, 2011 at 8:01 AM, Adam Kocoloski >>>> wrote: >>>> > On Wednesday, September 14, 2011 at 3:51 PM, Randall Leeds wrote: >>>> >> On Wed, Sep 14, 2011 at 12:19, Adam Kocoloski < adam.kocoloski@gmail.com(mailto: >>>> adam.kocoloski@gmail.com)>wrote: >>>> >> >>>> >> > There's a multipart API which allows for a single PUT request >>>> containing >>>> >> > the document body as JSON and all its attachments in their raw form. >>>> >> > Documentation is pretty thin at the moment, and unfortunately I think >>>> it >>>> >> > doesn't quite allow for a pipe(). Would be really nice if it did, >>>> though. >>>> >> >>>> >> It does. We figured it out together a couple weeks ago and that's when >>>> this >>>> >> code came into being. >>>> >> Requesting a _specific_ revision with ?revs=true will give you a >>>> >> multipart/related response suitable for passing straight into a >>>> >> ?new_edits=false&rev= PUT. >>>> >> See https://github.com/mikeal/replicate/blob/master/main.js#L49 >>>> >> >>>> > Hah! That's what I get for spending too much time in the world of 1.0.x. >>>> Thanks for the correction Randall. Best, >>>> > >>>> > Adam >>>> > >>>> >>>> >>>> >>>> -- >>>> Filipe David Manana, >>>> >>>> "Reasonable men adapt themselves to the world. >>>> Unreasonable men adapt the world to themselves. >>>> That's why all progress depends on unreasonable men." >>>> >>> >> >>< --0015174c347ec6259b04ae23a0da--