From couchdb-user-return-1237-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Tue Sep 09 09:28:35 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 91849 invoked from network); 9 Sep 2008 09:28:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2008 09:28:35 -0000 Received: (qmail 83260 invoked by uid 500); 9 Sep 2008 09:28:31 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 83236 invoked by uid 500); 9 Sep 2008 09:28:31 -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 83225 invoked by uid 99); 9 Sep 2008 09:28:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 02:28:31 -0700 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 09:27:32 +0000 Received: from [192.168.178.43] (f053003153.adsl.alicedsl.de [::ffff:78.53.3.153]) (AUTH: LOGIN jan, SSL: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Tue, 09 Sep 2008 09:28:00 +0000 Cc: couchdb-user@incubator.apache.org Message-Id: <53432176-3DC5-441F-AADF-398021AB11D5@apache.org> From: Jan Lehnardt To: jianfei dong In-Reply-To: <53065db10809082104l72075e69rb967531362ef3fe@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Subject: Re: Problem about CouchDb's View Date: Tue, 9 Sep 2008 11:27:29 +0200 References: <53065db10809082104l72075e69rb967531362ef3fe@mail.gmail.com> X-Mailer: Apple Mail (2.928.1) X-Virus-Checked: Checked by ClamAV on apache.org Hi! I CC'd couchdb-user@incubator.apache.org so others can chime in or learn from the results of this discussion. On Sep 9, 2008, at 6:04 , jianfei dong wrote: > I am a newbie to CouchDb. When I do test suit of CouchDb, there is > an error > as following: * > > design_docs: Exception raised:* > {"error":"error","reason":"{{ > nocatch,{map_process_error,{exit_status,127}}},\n > [{couch_query_servers,readline,2},\n {couch_query_servers,read_json, > 1},\n > {couch_query_servers,prompt,2},\n > {couch_query_servers,get_linked_port,1},\n > {couch_query_servers,start_doc_map,2},\n {couch_view,view_compute,2}, > \n > {couch_view,update_group,1},\n {couch_view,update_loop,5}]}"} > > Is it CouchDb View Server's problem? or I forget to install some > components? > I make sure that spidermonkey has been installed successfully. > However, when > I try view feature, like the following: > > curl -H "Content-Type: application/json" -d "{\"map\": > \"function(doc) { > emit(null, doc); }\"}" http://localhost:5984/bar/_temp_view > > Sometimes it works, and sometimes it doesn't work, the error is : What are the circumstances of "sometimes"? > {"error":"error","reason":"{{ > nocatch,{map_process_error,{exit_status,127}}},\n > [{couch_query_servers,readline,2},\n {couch_query_servers,read_json, > 1},\n > {couch_query_servers,prompt,2},\n > {couch_query_servers,get_linked_port,1},\n > {couch_query_servers,start_doc_map,2},\n {couch_view,view_compute, > 2},\n > {couch_view,process_doc,3},\n {couch_btree,stream_kv_node2,7}]}"} > > Could you give a suggestion? What operating system are you on? How did you install CouchDB? What version are you running. What version of Erlang is installed? (If there is anything but "lastet", upgrade and try again). Cheers Jan --