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 D176CE9AC for ; Mon, 21 Jan 2013 16:40:01 +0000 (UTC) Received: (qmail 75087 invoked by uid 500); 21 Jan 2013 16:40:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 75040 invoked by uid 500); 21 Jan 2013 16:40:00 -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 75026 invoked by uid 99); 21 Jan 2013 16:40:00 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jan 2013 16:40:00 +0000 Received: from localhost (HELO mail-vc0-f171.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jan 2013 16:40:00 +0000 Received: by mail-vc0-f171.google.com with SMTP id p1so52489vcq.30 for ; Mon, 21 Jan 2013 08:39:59 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.221.10.72 with SMTP id oz8mr20152865vcb.36.1358786398983; Mon, 21 Jan 2013 08:39:58 -0800 (PST) Received: by 10.52.68.209 with HTTP; Mon, 21 Jan 2013 08:39:58 -0800 (PST) In-Reply-To: References: Date: Mon, 21 Jan 2013 11:39:58 -0500 Message-ID: Subject: Re: View creation error on specific DB From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 My guess is a very large document, too large to fit in the stack of the couchjs process. On 21 January 2013 11:27, Donal Simmie wrote: > As an update I have tried numerous approaches to attempt to fix/workaround > this problem: > > 1. Compacting the database. > 2. Replicating to a local copy of the DB and retrying view creation. > 3. Dumping DB contents to JSON with dump.py and loading into another DB > with load.py > > None of these worked. > > After downloading the couchdb-python library I added the python view server > to Futon and ran view code in python and this does fix the problem. > > So if the problem is with the javascript view server, does this help in > identifying what the issue might be and how I could fix it? > > E.g. > > Bad entry in config file, > Corrupt document(s), > Something else?? > > Thanks > > > > > > On Thu, Jan 17, 2013 at 2:59 PM, Donal Simmie wrote: > >> I am getting an os error on view creation for a certain database. All my >> views for other databases are working but I cannot create any on this one >> without it failing. >> >> The error message is: os_process_error,{exit_status,0}} >> >> I was trying a proper view but even this basic one is broken: >> >> function(doc) { >> emit(1, doc); >> } >> >> Note: >> I have been using Futon for view creation. >> The all documents view is fine and documents themselves can be viewed. >> I altered the default configuration file by adding a compactions section >> with the following key/value pair: -default: [{db_fragmentation, "70%"}, >> {view_fragmentation, "60%"}, {from, "23:00"}, {to, "04:00"}]. >> The DB in question contains 3.6 GB of data. >> >> Version: 1.2 >> Os: Mac OS X 10.8.2 >> >> The trace in the log file is available here: http://pastebin.com/AdrJ6jeB >> >> Any suggestions please? >>