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 CB766F41A for ; Sat, 24 Aug 2013 13:58:21 +0000 (UTC) Received: (qmail 58528 invoked by uid 500); 24 Aug 2013 13:58:20 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 58146 invoked by uid 500); 24 Aug 2013 13:58:17 -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 58136 invoked by uid 99); 24 Aug 2013 13:58:16 -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 13:58:16 +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 thanosv@gmail.com designates 209.85.223.174 as permitted sender) Received: from [209.85.223.174] (HELO mail-ie0-f174.google.com) (209.85.223.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Aug 2013 13:58:12 +0000 Received: by mail-ie0-f174.google.com with SMTP id k14so2521921iea.33 for ; Sat, 24 Aug 2013 06:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:content-type:in-reply-to:message-id:date:to :content-transfer-encoding:mime-version; bh=3Y8bT9Li9M9+LwcsSgCRk0ekvfmvSHM9n2eGMFnZMcA=; b=0p16Lc9gX9vd15Swdm0ox/VAyY2ai6dCWWsEV8sXrdY7n6/LUcUDJx2oGcUSuGsE/b Cnbi159YTr/zyOK1u7B3PQjn5Tfo6XEm3d0uucfabRYTIQsywNYaX3JjVCaMcfSsbjjH eh8ONoNfS9+c1/kgtqP4FJgBU1I8FAAolSw34z5xuIxasB81sw07oZhq40jwd/m8IHc/ JLMAZchXL6VM50CWTqO4izvpohDzv7Js44C7mcyfBfkY3deQ7k82DiOZWUE0fznVZ3IR kRUYnLUwAQ+y1Uzdke5KpSJLcJoyv3+CFgBSJMKsTu/7eRjBaCYFIxTKS/22NpuIrF7P MfxQ== X-Received: by 10.43.168.67 with SMTP id nh3mr2779453icc.33.1377352671855; Sat, 24 Aug 2013 06:57:51 -0700 (PDT) Received: from [10.118.93.198] (mobile-198-228-199-175.mycingular.net. [198.228.199.175]) by mx.google.com with ESMTPSA id b5sm4380883igm.3.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 Aug 2013 06:57:50 -0700 (PDT) Subject: Re: CouchDB crashing at random times References: From: Thanos Vassilakis Content-Type: text/plain; charset=utf-8 X-Mailer: iPhone Mail (9A405) In-Reply-To: Message-Id: Date: Sat, 24 Aug 2013 09:57:42 -0400 To: "user@couchdb.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org What platform ? And how did you build it ? On Aug 24, 2013, at 3:16, Dave Cottlehuber wrote: > On 24 August 2013 01:31, Chung, Yang wrote: >> Hi Dave, >>=20 >> Thank you so much for your reply! >>=20 >> 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). >>=20 >> The following is two new crash logs. >>=20 >> https://gist.github.com/yangtheman/6324929 >>=20 >> Thank you! >>=20 >> -Yang >>=20 >> On 8/23/13 4:10 PM, "Dave Cottlehuber" wrote: >>=20 >>> Hi Yang, >>>=20 >>> "/Users/yangtheman/Library/Application >>> Support/CouchbaseServer/testgears_test.couch", >>>=20 >>> This isn't Apache CouchDB, it's Couchbase Server -- from >>> http://couchbase.com/ which we can't offer support for -- different >>> product/company etc. >>>=20 >>> 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. >>>=20 >>> 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. >>>=20 >>> A+ >>> Dave >>>=20 >>> On 24 August 2013 00:15, Chung, Yang wrote: >>>> Hey guys, >>>>=20 >>>> I am really about to throw my hands up because I can't really figure ou= t >>>> why CouchDB keeps during Rails rspec tests. >>>>=20 >>>> 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. >>>>=20 >>>>=20 >>>> https://gist.github.com/yangtheman/6324540/raw/ccdfe4685d166abe30176e4a= 5f >>>> 10 >>>> 41cc86e32df2/gistfile1.txt# >>>>=20 >>>>=20 >>>> Any help would be much, much appreciated. >>>>=20 >>>> Thank you! >>>>=20 >>>> -Yang >=20 > Hey Yang, >=20 > TL;DR this looks like a bug in recreate!, it looks like a race cond in > recreate, where you see: >=20 > # create a new db but you're told there's already one there: > PUT /av_tests_test 412 > =E2=80=A6. >=20 > 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. >=20 > 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. >=20 > 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. >=20 > A+ > Dave