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 43E6DDD5E for ; Tue, 4 Sep 2012 06:11:13 +0000 (UTC) Received: (qmail 26900 invoked by uid 500); 4 Sep 2012 06:11:11 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 26305 invoked by uid 500); 4 Sep 2012 06:11:06 -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 26249 invoked by uid 99); 4 Sep 2012 06:11:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2012 06:11:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FSL_RCVD_USER,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.52] (HELO mail-pb0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2012 06:10:58 +0000 Received: by pbcxa7 with SMTP id xa7so8375494pbc.11 for ; Mon, 03 Sep 2012 23:10:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=Zrer/DMQtNuwtUAivYgsHfnraR84ApnY6bleKPxHgC8=; b=pUVi/qTruflFpGLfnD/vczz82YZXGjHt0aIDB7D0IhppzVpnMEid9T8zjZMgQeidSa JQUOgFiBeF00bHsg6CiB/1evl50s91KRrkPDaAFEz4z7dkhZp+e1Mpc+6npsSZBNXOpB zkXehmREbJqNZeD+GVNd9e/sQziwWNCAiLmnw4+/T2d+ENhJlnRAOE3OSib9TK6ajc70 xbA/muVcNSiFFf8xTWW8AXbH/qLuOK5I8g/VaHhpYBdmgU05t/5isAT7/EIBf5KH6pXV hMnx4Ipv5h0rJ6/GRoRFJReea9w6PSlLzZTFjmhDcjNRvtdjMQWfHbmjNO2dJQ5mdM8i Dt/Q== Received: by 10.68.200.162 with SMTP id jt2mr43066547pbc.54.1346739036415; Mon, 03 Sep 2012 23:10:36 -0700 (PDT) Received: from postel.lan (71-80-152-172.dhcp.mdfd.or.charter.com. [71.80.152.172]) by mx.google.com with ESMTPS id qw6sm11498655pbc.26.2012.09.03.23.10.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Sep 2012 23:10:35 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Complex view generation stuck, never gets past silent crash (Raspberry Pi) From: Nathan Vander Wilt In-Reply-To: Date: Mon, 3 Sep 2012 23:10:45 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <027AB658-1F02-4996-8EF2-34058E1F4ECC@calftrail.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1278) X-Gm-Message-State: ALoCoQmmtRyy0qMqkqn1mJ1Eas2qPlzkdxHaAtQKmWOZCWy9Usuvp0ujL8+NKp85uq281tda2F8R Looks like it was an OOM issue. After not finding anything in the system = logs, I did the (obvious in retrospect) thing where CouchDB is run = directly in a shell window. Got: Crash dump was written to: erl_crash.dump eheap_alloc: Cannot allocate 62690240 bytes of memory (of type = "heap"). Pasted the dump to https://gist.github.com/3617465 if anyone's = interested. Will try to finish the view gen again overnight with some = more swap and see how it goes. regards, -natevw On Sep 1, 2012, at 10:27 AM, Dave Cottlehuber wrote: > On 1 September 2012 07:55, Nathan Vander Wilt = wrote: >> I've got CouchDB mostly working on my Raspberry Pi, simply via = `apt-get couchdb` plus the permissions fix Jens posted about recently. >>=20 >> However, I can't get a particularly complex design document to finish = its initial view generation. (See = https://github.com/natevw/LocLog/tree/master/views especially = https://github.com/natevw/LocLog/blob/master/views/by_utc/reduce.js for = source code.) Originally I was getting explicit timeout errors, so after = unsuccessfully trying more conservative values I cranked = os_process_timeout to 9000000. This got it a lot farther, but now it = seems stuck with no indication of what's going wrong except the server = suddenly drops out before getting respawned: >>=20 >> [Sat, 01 Sep 2012 04:55:55 GMT] [info] [<0.15090.1>] checkpointing = view update at seq 2272 for loctest _design/loclog >> [Sat, 01 Sep 2012 05:00:01 GMT] [info] [<0.15090.1>] checkpointing = view update at seq 2409 for loctest _design/loclog >> [Sat, 01 Sep 2012 05:09:49 GMT] [info] [<0.15090.1>] checkpointing = view update at seq 2517 for loctest _design/loclog >> [Sat, 01 Sep 2012 05:14:46 GMT] [info] [<0.32.0>] Apache CouchDB has = started on http://0.0.0.0:5984/ >>=20 >> [Sat, 01 Sep 2012 05:19:50 GMT] [info] [<0.121.0>] 192.168.1.6 - - = GET /_active_tasks 200 >> [Sat, 01 Sep 2012 05:19:55 GMT] [info] [<0.121.0>] 192.168.1.6 - - = GET /_active_tasks 200 >> [Sat, 01 Sep 2012 05:20:00 GMT] [info] [<0.121.0>] 192.168.1.6 - - = GET /_active_tasks 200 >> [Sat, 01 Sep 2012 05:20:05 GMT] [info] [<0.121.0>] 192.168.1.6 - - = GET /_active_tasks 200 >> [Sat, 01 Sep 2012 05:20:10 GMT] [info] [<0.121.0>] 192.168.1.6 - - = GET /_active_tasks 200 >> [Sat, 01 Sep 2012 05:20:15 GMT] [info] [<0.121.0>] 192.168.1.6 - - = GET /_active_tasks 200 >> [Sat, 01 Sep 2012 05:20:55 GMT] [info] [<0.32.0>] Apache CouchDB has = started on http://0.0.0.0:5984/ >>=20 >>=20 >> Any idea how to determine what could cause this, and/or if there's a = remedy? My reduce function is rather float-heavy and I suspect perhaps = the package build is using soft floats instead of hardware (not sure how = to verify), but regardless the view made it this far and to see it = simply fail without so much as a trace is a new one to me. I don't = particularly suspect an out-of-memory condition =97 the whole database = is <100MB (albeit snappy compressed) and this is spread across well over = 5000 separate documents. >>=20 >> thanks, >> -natevw >=20 > Does it pass the test suite? > If not, what errors are coming up? > If it does, you might try running couchjs directly like this: >=20 > /usr/local/bin/couchjs /usr/local/share/couchdb/server/main.js >=20 > & read = http://wiki.apache.org/couchdb/View_server?action=3Dshow&redirect=3DViewSe= rver#Basic_API > for driving this. >=20 > with a few of your docs & see what happens. >=20 > A+ > Dave