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 D4EE5F83F for ; Fri, 22 Mar 2013 08:20:33 +0000 (UTC) Received: (qmail 78197 invoked by uid 500); 22 Mar 2013 08:20:32 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 77941 invoked by uid 500); 22 Mar 2013 08:20:31 -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 77916 invoked by uid 99); 22 Mar 2013 08:20:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 08:20:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dch@jsonified.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-la0-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 08:20:26 +0000 Received: by mail-la0-f48.google.com with SMTP id fq13so6686876lab.21 for ; Fri, 22 Mar 2013 01:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jsonified.com; s=google; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=He/bR1wwdGKGYwvB3fDYAJMFBAFUy7+D6QXVNx5JaT4=; b=ny6a4/Sw4rJQ/kkj7yFHewB0nVxzTFIcKQWtOK/tFgmIQw7oYM0lFFHe/VXIwbDv2T AqMkKDPMHTHRiEQrVfGRN4sApYes4uWsmCiV2OfaamsAhNvQPgp36daGEXszl6KVkqwL /sX1yfj72SvLmO5ae17PT4r8LFsKApdTqPBng= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding:x-gm-message-state; bh=He/bR1wwdGKGYwvB3fDYAJMFBAFUy7+D6QXVNx5JaT4=; b=SOd9j6B4pS34LG1L0GwQJCZ61cGWFXVU8sQnX/DgbxYr8Gp9h5D1sW3M4o+seBDLib H2V/ZpNLZPCsUzz+i+YeoNHrPgYcQNdqNeYWiD3bGzh98pkkR4grwIWSzKMjx/kRFfci a08/YvSK3X2yS0Mi418cHt8LCFWFbtRV08axvIPVaWUVFa+5g6jlDQI470rPjl5RWF6M z3mgku7ekYv0iwLM6ABytanZzQ5LiflVj49nh6EMNWM4O0hWU/ufkAHOOhpFo4Eve6Jy V3Gf3YUK8G2ba5QoBv6kXNY96nvOBxgZhxpqYJoTadaQa62qTzMiV/9u1f7V11n6brSo pdBA== MIME-Version: 1.0 X-Received: by 10.112.148.196 with SMTP id tu4mr673999lbb.35.1363940404808; Fri, 22 Mar 2013 01:20:04 -0700 (PDT) Received: by 10.112.81.169 with HTTP; Fri, 22 Mar 2013 01:20:04 -0700 (PDT) X-Originating-IP: [84.112.19.176] In-Reply-To: References: Date: Fri, 22 Mar 2013 09:20:04 +0100 Message-ID: Subject: Re: view_indexer fails / cryptic error messages From: Dave Cottlehuber To: user@couchdb.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQkyiwB07D+7FWWL+R7KPAKdtuVvDeLXp9DY5u8nuTpWF9aVWloLLEoprRB95aeFHS8bu/zI X-Virus-Checked: Checked by ClamAV on apache.org On 22 March 2013 06:16, Gerald Richter - ECOS wrote: > Hi, > > > I am using couchdb for over two years now and I really love it, but I hat= e it=92s error messages. If there is one thing I would wish that should be = in the next release, than it would be: human readable error messages. I kno= w that writing good error messages is nothing that programmer likes to do. = We like more to implement great new features, but for the daily work having= a good diagnostic message is of so much value and saves so much time=85 Good call, maybe you want to open a JIRA for this and we can discuss what needs to change? > So in addition to the many hour I spend in the past, trying to decrypt an= error message of couchdb, here is one that really gives me no clue what it= is about and I am giving up. Neither starting couchdb with debug output, n= or looking at the output of my viewserver, shows anything irregular. Basica= lly a view index is rebuild and it crashes somewhere in the middle of the p= rocess with the error message below. I hope somebody on the list, could sh= ed some light what=92s going on here. If you can run the view build with log level =3D debug and send a link to the results we might see something more interesting. Don't forget what version of erlang, and couch you are running. I'm pretty sure one of these fields in that log excerpt will tell you the last doc processed but I don't see it right now myself. If your view is small, you might consider sprinkling in some log messages http://wiki.apache.org/couchdb/HTTP_view_API#Debugging_Views bearing in mind there's a *significant* performance impact for doing this. If your view is failing at the same place each time, you'll see this when you delete the view, re-run the build, query _info (see below) and then re-run the build and re-query _info again. http://wiki.apache.org/couchdb/HTTP_view_API?action=3Dshow&redirect=3DHttpV= iewApi#Getting_Information_about_Design_Documents_.28and_their_Views.29 If that *is* the case you can run a few of those docs manually through the view engine, e.g. for JS like this http://wiki.apache.org/couchdb/Troubleshooting#Map.2BAC8-Reduce_debugging A+ Dave