Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 53083 invoked from network); 9 Feb 2011 09:46:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2011 09:46:16 -0000 Received: (qmail 63993 invoked by uid 500); 9 Feb 2011 09:46:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 63646 invoked by uid 500); 9 Feb 2011 09:46:11 -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 63637 invoked by uid 99); 9 Feb 2011 09:46:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 09:46:10 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 09:46:02 +0000 Received: by yxd30 with SMTP id 30so2879837yxd.11 for ; Wed, 09 Feb 2011 01:45:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.103.135 with SMTP id f7mr2241600yhg.91.1297244740411; Wed, 09 Feb 2011 01:45:40 -0800 (PST) Received: by 10.236.111.19 with HTTP; Wed, 9 Feb 2011 01:45:40 -0800 (PST) X-Originating-IP: [125.236.236.206] In-Reply-To: <4D517B48.4060004@gpslsolutions.com> References: <4D517B48.4060004@gpslsolutions.com> Date: Wed, 9 Feb 2011 22:45:40 +1300 Message-ID: Subject: Re: Views crash From: Dave Cottlehuber To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 9 February 2011 06:20, Rob Pettefar wrote: > =A0Hi guys > I have an issue with views crashing. > This has occurred on both Linux and Windows distributions of CouchDB 1.0.= 1 Has this issue occurred on those platforms, on a previous version? > Sometimes the views for a particular database will break. In Futon they > appear unresponsive. > The only way round this that I have seen is to delete and rebuild the vie= w > file for the database in question. > > This seems to happen more often on the Windows version but I don't think = it > is anything to do with the >4Gb file issue. > Any help you could lend would be invaluable. > > Thanks > Rob > > I have included the error that was logged in the couchdb log file: > > [Fri, 21 Jan 2011 12:18:28 GMT] [debug] [<0.738.0>] Exit from linked pid: > {<0.742.0>, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {timeout, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {gen_server,call, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [couch_query_= servers, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{get_proc,= <<"javascript">>}]}}} > > [Fri, 21 Jan 2011 12:18:28 GMT] [error] [<0.738.0>] ** Generic server > <0.738.0> terminating > ** Last message in was {'EXIT',<0.742.0>, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {timeout, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {gen_server,c= all, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [couc= h_query_servers, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{g= et_proc,<<"javascript">>}]}}} > ** When Server state =3D=3D {group_state,undefined,<<"testdb">>, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {"../var/lib/couchdb",<<"= testdb">>, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{group, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [<<"npc">>], Hi Rob by no means am I am expert but it looks like this is a "normal" timeout in couch_query_servers. ProcTimeout =3D list_to_integer(couch_config:get( "couchdb", "os_process_timeout", "5000")), If so you can try upping this from the default 5 seconds in local.ini: [couchdb] os_process_timeout =3D 5000 ; 5 seconds. for view and external servers. & restart. The more important question is - why should these views take so long to pro= cess? A+ Dave