From user-return-13393-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Oct 28 14:37:53 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 16442 invoked from network); 28 Oct 2010 14:37:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Oct 2010 14:37:53 -0000 Received: (qmail 5870 invoked by uid 500); 28 Oct 2010 14:37:51 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 5725 invoked by uid 500); 28 Oct 2010 14:37:51 -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 5706 invoked by uid 99); 28 Oct 2010 14:37:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 14:37:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jeffamcgee@gmail.com designates 209.85.160.52 as permitted sender) Received: from [209.85.160.52] (HELO mail-pw0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 14:37:44 +0000 Received: by mail-pw0-f52.google.com with SMTP id 2so167263pwj.11 for ; Thu, 28 Oct 2010 07:37:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=fYkejBRmyvRNYyT79fB7/SwBODBwiOgEuTpce0JRRwk=; b=Y3pChqqOR93SbWkAAcpBhDXTtHVW3A2XnhHLmcsHDzJOlEEAxfUpz7Ee25oMgX5cC4 iA31ird6W+O/sc7YiYHwF7GzhuKh8vgfeI9QdDp/pa1Nfof+lOZRjULo+/RKFuTstSJK jnI2R6uQ7RjFz1TWG8ocI7ai8BXLAGKfpqC8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=V0CeFzZUZq7G2q6XA/EP/O4WEUzhrkaDI5d1qBo61v9qkUAtDXvnLfAe7pOpkSSEZl G97HaYX3agqe5DGC1SiOcSMsZS8gWHFXb+vor2AGgxXSUw49nzCXL4FvI7I+1U2CzL5S lS6XGpHX2FhNbWRHktTsho2bTAs0MAdzKXXGY= MIME-Version: 1.0 Received: by 10.142.131.16 with SMTP id e16mr216113wfd.338.1288276642578; Thu, 28 Oct 2010 07:37:22 -0700 (PDT) Received: by 10.220.187.198 with HTTP; Thu, 28 Oct 2010 07:37:22 -0700 (PDT) Date: Thu, 28 Oct 2010 09:37:22 -0500 Message-ID: Subject: Views in Couchdb 1.0.1 on Ubuntu 9.10 From: Jeffrey McGee To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000e0cd29cf2a7409d0493ae4715 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd29cf2a7409d0493ae4715 Content-Type: text/plain; charset=ISO-8859-1 Howdy, I'm trying to install couchdb 1.0.1 on an ubuntu 9.10, and I'm running into a lot of troubles with creating views for a large dataset. (250,000 documents). It works fine for small datasets. I copied all of the documents to my mac laptop and the view works there. Here is the view function: function(doc) { if(doc.doc_type=="User" && doc.sn) emit(doc.sn,null); } Couchjs seems to be working fine on its own: > bin/couchjs share/couchdb/server/main.js ["reset"] true I run into the same problem in both couchdb built from source and the binaries from couch.io. The "make check" tests pass, and the tests in the test suite pass iff I run them in Firefox. (etags_views fails with the message "Assertion failed: xhr.status == 304", but passes if I click run with debugger.) Here is a bit of the server log: [Thu, 28 Oct 2010 05:12:44 GMT] [info] [<0.31784.7>] checkpointing view update at seq 1878 for bcstx _design/user [Thu, 28 Oct 2010 05:12:46 GMT] [error] [<0.31792.7>] OS Process Error <0.31794.7> :: {os_process_error,{exit_status,0}} [Thu, 28 Oct 2010 05:12:46 GMT] [error] [emulator] Error in process <0.31792.7> with exit value: {{nocatch,{os_process_error,{exit_status,0}}},[{couch_os_process,prompt,2},{couch_query_servers,'-map_docs/2-fun-1-',2},{lists,map,2},{lists,map,2},{couch_query_servers,map_docs,2},{couch_view_updater,view_compute,2},{... [Thu, 28 Oct 2010 05:12:46 GMT] [error] [<0.31784.7>] ** Generic server <0.31784.7> terminating ** Last message in was {'EXIT',<0.31788.7>, {{nocatch,{os_process_error,{exit_status,0}}}, [{couch_os_process,prompt,2}, {couch_query_servers,'-map_docs/2-fun-1-',2}, {lists,map,2}, {lists,map,2}, {couch_query_servers,map_docs,2}, {couch_view_updater,view_compute,2}, {couch_view_updater,do_maps,4}]}} ** When Server state == {group_state,undefined,<<"bcstx">>, {"/home/jeff/couchdb-1.0.1/var/lib/couchdb", <<"bcstx">>, {group, <<194,92,123,124,43,216,34,69,64,236,11,105,124,250, 61,159>>, nil,nil,<<"_design/user">>,<<"javascript">>,[], [{view,0, [<<"screen_name">>], <<"function(doc) {\n if(doc.doc_type==\"User\" && doc.sn)\n emit(doc.sn,null);\n}\n">>, nil,[],[]}], nil,0,0,nil,nil}}, ... There is more at http://pastebin.com/Arc4SY5Y . I eventually installed the python-couchdb view server, and rewrote my views in python. That works just fine. Jeff -- Dost thou love life? Then do not squander time, for that's the stuff life is made of. --Benjamin Franklin --000e0cd29cf2a7409d0493ae4715--