couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey McGee <jeffamc...@gmail.com>
Subject Views in Couchdb 1.0.1 on Ubuntu 9.10
Date Thu, 28 Oct 2010 14:37:22 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message