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 DB23E10FDD for ; Sat, 24 Aug 2013 07:17:08 +0000 (UTC) Received: (qmail 97065 invoked by uid 500); 24 Aug 2013 07:17:05 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 96985 invoked by uid 500); 24 Aug 2013 07:16:55 -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 96977 invoked by uid 99); 24 Aug 2013 07:16:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Aug 2013 07:16:52 +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.50 as permitted sender) Received: from [209.85.215.50] (HELO mail-la0-f50.google.com) (209.85.215.50) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Aug 2013 07:16:48 +0000 Received: by mail-la0-f50.google.com with SMTP id es20so1021556lab.9 for ; Sat, 24 Aug 2013 00:16:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jsonified.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=5qKeOexjq03S0cSQgvbilyEwgbWwmauW+qyzFovr3e0=; b=H5ytqjoVE+rFvBB7He5NXHhCGoNxZ+c8MEF3WdleZ7E0uLDhHg66Ya0UAfoTF3NIF7 fDVBd01ezuN2sutdllpjuPETfZ4a32OpR1YvMm0biSlAGogTsEor3i9nzzT8D5wPRV0D RPB24fx83XRWBiaA5YPwOyCqwcuhm4XRRXRzU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=5qKeOexjq03S0cSQgvbilyEwgbWwmauW+qyzFovr3e0=; b=Rlbf1Mu/xQjk3qrs/wsOempDkktcJ1OCLZPURWO1s8MsWBRdcmeveptiE13pPcZhsO p552KkjJ6ZRfY+umsFT8UsXwsFgO91fcIX1PXBsmlEWONHQ2yRNVoWapOwvzLuX5jefD cZ3RVMVYVZ4ppUTblPy5Z/eCjzdb1OJXzslksQzZaP4UhpjDTvB3phac2SVzpAev2I41 0IKc7iqJKJzruWP1JVu6lF0WxvpBsreFHQW0Il6sANqD2L9JPfvBHYMB4s/pQ6mZolO3 fgIFVdE3wPKhPU5SQUnSZ+kJFLBUpPQIHUkBgMyycrOy0IwI/Xbd3Bgkr0/bwShsSaDq qBRw== X-Gm-Message-State: ALoCoQkLlHgzFU52nqmIzn7dNFu9fRkDIhfdbrXEkDQbzMJn+MJ66q2ANqLhtyDg5q50orbZUADe MIME-Version: 1.0 X-Received: by 10.112.35.52 with SMTP id e20mr325510lbj.11.1377328586457; Sat, 24 Aug 2013 00:16:26 -0700 (PDT) Received: by 10.112.45.40 with HTTP; Sat, 24 Aug 2013 00:16:26 -0700 (PDT) X-Originating-IP: [84.112.19.176] In-Reply-To: References: Date: Sat, 24 Aug 2013 09:16:26 +0200 Message-ID: Subject: Re: CouchDB crashing at random times From: Dave Cottlehuber To: user@couchdb.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 24 August 2013 01:31, Chung, Yang wrote: > Hi Dave, > > Thank you so much for your reply! > > I have downloaded and installed CouchDB 1.3.1 and tried again. The same > errors occurred. I don't know if you can tell, but we start each test wit= h > empty database by issuing CouchDB_handle.recreate! (CouchRest method) on > three databases > (http://rdoc.info/github/couchrest/couchrest/CouchRest/Database#recreate%= 21 > -instance_method). > > The following is two new crash logs. > > https://gist.github.com/yangtheman/6324929 > > Thank you! > > -Yang > > On 8/23/13 4:10 PM, "Dave Cottlehuber" wrote: > >>Hi Yang, >> >> "/Users/yangtheman/Library/Application >>Support/CouchbaseServer/testgears_test.couch", >> >>This isn't Apache CouchDB, it's Couchbase Server -- from >>http://couchbase.com/ which we can't offer support for -- different >>product/company etc. >> >>Having said that, at this point in time, I think there was not much >>difference between versions, but the version numbers also don't line >>up and we don't have the equivalent source either so it's hard to tell >>for sure. >> >>Could you re-test this with a "pure" Apache CouchDB release from >>https://couchdb.apache.org/#download and see if this issue is still >>present? I think 1.3.1 should not be too different for you, and >>includes fixes for some possible causes. >> >>A+ >>Dave >> >>On 24 August 2013 00:15, Chung, Yang wrote: >>> Hey guys, >>> >>> I am really about to throw my hands up because I can't really figure ou= t >>> why CouchDB keeps during Rails rspec tests. >>> >>> I set the log level to "debug" to get more error messages, but I don't >>> think there is any clue (at least not to me) why server is crashing. Th= e >>> following is the link to the error output message. >>> >>> >>>https://gist.github.com/yangtheman/6324540/raw/ccdfe4685d166abe30176e4a5= f >>>10 >>> 41cc86e32df2/gistfile1.txt# >>> >>> >>> Any help would be much, much appreciated. >>> >>> Thank you! >>> >>> -Yang Hey Yang, TL;DR this looks like a bug in recreate!, it looks like a race cond in recreate, where you see: # create a new db but you're told there's already one there: PUT /av_tests_test 412 =85. Perhaps couchrest's recreate! should handle this with a check for the completed deletion, maybe HEAD /db (or a simple GET would do too). Or maybe couch's DELETE /db should return a 202 http://httpstatus.es/202 by default. Anyway, I suggest you re-try this with delayed commits off, `curl -XPUT http://admin:passwd@localhost:5984/_config/couchdb/delayed_commits --data-binary '"false"'` and if this persists, report on the couchrest group. BTW contrary to popular belief, in Erlang, the stack trace itself is not necessarily a reason for panic, it can occur normally e.g. when certain config parameters are changed, or as various processes start up or terminate & clean up. So, the stuff happening before the erlang stack trace is also useful - we can see what was going on prior to the stacktrace such as the HTTP calls & the associated pids. A+ Dave