Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 62295 invoked from network); 16 Jul 2008 05:05:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2008 05:05:34 -0000 Received: (qmail 38970 invoked by uid 500); 16 Jul 2008 05:05:33 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 38934 invoked by uid 500); 16 Jul 2008 05:05:33 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 38923 invoked by uid 99); 16 Jul 2008 05:05:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 22:05:33 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chapman.alex@gmail.com designates 64.233.184.225 as permitted sender) Received: from [64.233.184.225] (HELO wr-out-0506.google.com) (64.233.184.225) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2008 05:04:41 +0000 Received: by wr-out-0506.google.com with SMTP id c53so3859732wra.20 for ; Tue, 15 Jul 2008 22:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=nM4LvYtrAVPoIhyzBgCd5Aq52VE5LgVazMJKeW7nXOo=; b=crbzd/neCk2dVbyjkW3mVGcLu9wBnZLp3znphj5QXwowx0/CCtO/zCVVXfcFWpnqRe WX5Xe4ovR1Dtr6n1A1IDG0eIYOxXi4JCnt4r7NyYBNHN+UrTZtU4MsqZa4ABpEZHbwDQ pPh2SrctfQJm4jQAmDcK0G1eP3h+elx5YLyaY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=JklDitMhMCP3UCUq6hUaDAWOG4CshI065vK+oTVmzj0MjqQX+VthQst753InZdpgB+ 7NqjAZSmwmGRU0EiAu5PiyeJrbwoR1F7acma1Vs9aF0dCtCmIVoTp7ll+KUSSttU1azY JTO8233M48tCh96ABUXkPysNR87MU+h/PYYh8= Received: by 10.100.94.14 with SMTP id r14mr1052191anb.158.1216184704962; Tue, 15 Jul 2008 22:05:04 -0700 (PDT) Received: by 10.100.173.11 with HTTP; Tue, 15 Jul 2008 22:05:04 -0700 (PDT) Message-ID: Date: Wed, 16 Jul 2008 15:05:04 +1000 From: "Alex Chapman" To: couchdb-user@incubator.apache.org Subject: test suite failing on views MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm using couchdb-0.8.0-incubating, and I'm getting errors every time I try to run a view. For example, the first test in the test suite fails with this message in the browser: Exception raised: {"error":"epipe","reason":"[{erlang,port_command,\n [#Port<0.177>,\n [91,\n \"\\\"add_fun\\\"\",\n 44,\n \"\\\"(function (doc) {if (doc.a == 4) {emit(null, doc.b);}})\\\"\",\n 93,\n 10]]},\n {couch_query_servers,writeline,2},\n {couch_query_servers,prompt,2},\n {couch_query_servers,'-start_doc_map/2-fun-0-',2},\n {lists,foreach,2},\n {couch_query_servers,start_doc_map,2},\n {couch_view,view_compute,2},\n {couch_view,update_group,1}]"} At the same time, couchdb logs the following: [info] [<0.66.0>] 127.0.0.1 - - "GET /_utils/image/test_failure.gif" 200 [info] [<0.67.0>] 127.0.0.1 - - "DELETE /test_suite_db/" 200 [info] [<0.67.0>] 127.0.0.1 - - "PUT /test_suite_db/" 201 [info] [<0.67.0>] 127.0.0.1 - - "GET /test_suite_db/" 200 [info] [<0.67.0>] 127.0.0.1 - - "PUT /test_suite_db/0" 201 [info] [<0.67.0>] 127.0.0.1 - - "PUT /test_suite_db/1" 201 [info] [<0.67.0>] 127.0.0.1 - - "PUT /test_suite_db/2" 201 [info] [<0.67.0>] 127.0.0.1 - - "PUT /test_suite_db/3" 201 [info] [<0.67.0>] 127.0.0.1 - - "GET /test_suite_db/" 200 [info] [<0.67.0>] 127.0.0.1 - - "GET /test_suite_db/_all_docs" 200 [info] [<0.92.0>] Spawning new javascript instance. [error] [emulator] Error in process <0.92.0> with exit value: {epipe,[{erlang,port_command,[#Port<0.177>,[91,"\"add_fun\"",44,"\"(function (doc) {if (doc.a == 4) {emit(null, doc.b);}})\"",93,10]]},{couch_query_servers,writeline,2},{couch_query_servers,prompt,2},{couch_query_servers,'-start_doc_map/2-fun-0-'... =ERROR REPORT==== 16-Jul-2008::00:37:21 === Error in process <0.92.0> with exit value: {epipe,[{erlang,port_command,[#Port<0.177>,[91,"\"add_fun\"",44,"\"(function (doc) {if (doc.a == 4) {emit(null, doc.b);}})\"",93,10]]},{couch_query_servers,writeline,2},{couch_query_servers,prompt,2},{couch_query_servers,'-start_doc_map/2-fun-0-'... [info] [<0.67.0>] HTTP Error (code 500): {epipe, [{erlang, port_command, [#Port<0.177>, [91, "\"add_fun\"", 44, "\"(function (doc) {if (doc.a == 4) {emit(null, doc.b);}})\"", 93, 10]]}, {couch_query_servers,writeline,2}, {couch_query_servers,prompt,2}, {couch_query_servers,'-start_doc_map/2-fun-0-',2}, {lists,foreach,2}, {couch_query_servers,start_doc_map,2}, {couch_view,view_compute,2}, {couch_view,update_group,1}]} [info] [<0.67.0>] 127.0.0.1 - - "POST /test_suite_db/_temp_view" 500 I'm not sure whether this helps, but I tried to see whether the problem was in the javascript interpreter: /usr/local/share/couchdb/server$ couchjs main.js ["add_fun","function(doc){emit(null,doc);}"] true ["add_fun",44,"(function (doc) {if (doc.a == 4) {emit(null, doc.b);}})",93,10] {"error": "compilation_error","reason": "expression does not eval to a function. (44)"} I'm just about out of ideas. My next step is to learn erlang and start debugging, but I'd prefer not to do that right now. Can anyone help? Thanks, Alex