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 6EF959C68 for ; Tue, 20 Mar 2012 16:33:41 +0000 (UTC) Received: (qmail 47116 invoked by uid 500); 20 Mar 2012 16:33:39 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 47081 invoked by uid 500); 20 Mar 2012 16:33:39 -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 47073 invoked by uid 99); 20 Mar 2012 16:33:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 16:33:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [87.117.198.154] (HELO zoe.mltserver-three.co.uk) (87.117.198.154) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 16:33:32 +0000 Received: from host109-158-48-246.range109-158.btcentralplus.com ([109.158.48.246] helo=[10.0.0.6]) by zoe.mltserver-three.co.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1SA1zk-0001bK-17 for user@couchdb.apache.org; Tue, 20 Mar 2012 16:33:12 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: CouchDB, linux & clean shutdowns From: Martin Hewitt In-Reply-To: Date: Tue, 20 Mar 2012 16:33:09 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <6A997CC7-B3D6-4FEF-9482-957F69AE7F12@thenoi.se> References: <0D590A87-0540-4143-9F60-F95D18D458F3@thenoi.se> <4F6880F5.70309@gmail.com> <1BC133D6-7324-4A5A-B281-0F9C089B8E6D@thenoi.se> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1084) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - zoe.mltserver-three.co.uk X-AntiAbuse: Original Domain - couchdb.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thenoi.se X-Virus-Checked: Checked by ClamAV on apache.org Hi Robert, For one view, whenever we loaded it, but every time we loaded it, would = produce a stack trace and not the view. Restarting the CouchDB instance = restored the view to working order. I'll try and dig out the stack trace, but it was the perpetual, = continual problem with this view that led us to take the "nuclear = option" and restart. Martin On 20 Mar 2012, at 14:24, Robert Newson wrote: > Can you describe "it was repeatedly crashing with gen_server timeouts" > in more detail? This sounds non-fatal to me but can look alarming if > you're not used to the erlang approach to error handling. It might be > that you're restarting for no good reason. >=20 > B. >=20 > On 20 March 2012 14:20, Robert Newson wrote: >> Also we don't fsync views at all, so if you built the view and then >> killed couchdb very quickly, the data didn't reach the platters. >>=20 >> I'll note that you really, *really*, want to set delayed_commits to >> false if using couchdb in production. This strongly guarantees that >> your database updates are preserved in the event of a crash. >>=20 >> B. >>=20 >> On 20 March 2012 13:51, Jason Smith wrote: >>> On Tue, Mar 20, 2012 at 1:38 PM, Martin Hewitt = wrote: >>>> Hi Alexander, >>>>=20 >>>> On 20 Mar 2012, at 13:23, Alexander Shorin wrote: >>>>=20 >>>>> On Tue, Mar 20, 2012 at 5:07 PM, Jo-Erlend Schinstad >>>>> wrote: >>>>>> As far as I'm aware, there's no clean way to shutdown CouchDB. = It's designed >>>>>> that way. You just kill it. >>>>>=20 >>>>> With _admin permissions: >>>>> curl -X POST http://localhost:5984/_restart -H "Content-Type: = application/json" >>>>=20 >>>> Excellent, thanks, I'll give this a try. >>>>=20 >>>>>=20 >>>>> On Tue, Mar 20, 2012 at 5:12 PM, Martin Hewitt = wrote: >>>>>>> What version are you running? >>>>>>=20 >>>>>> Running 1.2.0a-1160734, compiled from source some time back. >>>>>=20 >>>>> Looks like subversion revision number and a little out of dated. = By >>>>> the way, CouchDB repository had been moved to git not so far a = long >>>>> ago. Have you tried to update to latest head of 1.2.x branch? >>>>=20 >>>> Yeah, i know it's an old version, I was just curious as to whether = there was something I could try before rebuilding the server. >>>=20 >>> Hi, Martin. I wonder if it is related to this issue? >>>=20 >>> CouchDB was deleting .view files if some kinds of errors happened. >>> This will be fixed in the upcoming version 1.2.0. (But I'm not 100% >>> sure that that is your issue.) >>>=20 >>>=20 >>> -- >>> Iris Couch