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 DB7879156 for ; Fri, 23 Sep 2011 02:43:48 +0000 (UTC) Received: (qmail 81247 invoked by uid 500); 23 Sep 2011 02:43:47 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 81214 invoked by uid 500); 23 Sep 2011 02:43:47 -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 81184 invoked by uid 99); 23 Sep 2011 02:43:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2011 02:43:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of d.szwed@hotmail.com designates 65.54.51.81 as permitted sender) Received: from [65.54.51.81] (HELO snt0-omc3-s44.snt0.hotmail.com) (65.54.51.81) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2011 02:43:36 +0000 Received: from SNT136-W33 ([65.55.90.136]) by snt0-omc3-s44.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 22 Sep 2011 19:43:15 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_d4847dbd-d940-4e6a-87ee-fe020630f6e8_" X-Originating-IP: [203.194.19.74] From: Daniel Szwed To: Subject: Can not get CouchDB external processes working Date: Fri, 23 Sep 2011 13:13:15 +1030 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 23 Sep 2011 02:43:15.0909 (UTC) FILETIME=[8B7D9750:01CC799A] X-Virus-Checked: Checked by ClamAV on apache.org --_d4847dbd-d940-4e6a-87ee-fe020630f6e8_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I have been trying to get couchdb-lucene working with bigcouch for days now= and cannot work out what i am doing wrong=2C i have even tried the example= on the couchdb wiki and cannot get it to work either. Bigcouch is running as a single node on the cluster: curl -X GET http://localhost:5984/ {"couchdb":"Welcome"=2C"version":"1.0.2"=2C"bigcouch":"0.3.1"} Created a database called 'database': curl -X GET http://localhost:5984/database {"db_name":"database"=2C"update_seq":"1-g1AAAAIReJzLYWBg4MhgTmFQT8pMT84vTc5= wKErNzS9J1U3JLdbLS60oSU_NQ6JLcoAamBIZ8lgY_v__L5-VyECyZqBWIFCAmGBPvgkOEBPiyT= chAWJCPfkmNEBMmE--CQsgJuzPSmQk04QDEBPuk--GBxAT_gNNyAIAL-WzZw"=2C"purge_seq"= :0=2C"doc_del_count":0=2C"doc_count":1=2C"disk_size":4732=2C"disk_format_ve= rsion":5=2C"compact_running":false=2C"instance_start_time":"0"} I have modified the /opt/bigcouch/etc/local.ini with: [external] test =3D python /usr/local/src/couchdb/test.py [httpd_db_handlers] _test =3D {couch_httpd_external=2C handle_external_req=2C <<"test">>} [log] level =3D debug And created the /usr/local/src/couchdb/test.py containing: import sys try: # Python 2.6 import json except: # Prior to 2.6 requires simplejson import simplejson as json def requests(): # 'for line in sys.stdin' won't work here line =3D sys.stdin.readline() while line: yield json.loads(line) line =3D sys.stdin.readline() def respond(code=3D200=2C data=3D{}=2C headers=3D{}): sys.stdout.write("%s\n" % json.dumps({"code": code=2C "json": data=2C "= headers": headers})) sys.stdout.flush() def main(): for req in requests(): respond(data=3D{"qs": req["query"]}) if __name__ =3D=3D "__main__": main() Trying: curl -X GET http://localhost:5984/database/_test just gives an error {"error":"not_found"=2C"reason":"missing"}. Which is the same response when trying to get lucene working=2C looks like = the external handlers are not being found at all. Any help would be appreciated. Cheers=2C Daniel. = --_d4847dbd-d940-4e6a-87ee-fe020630f6e8_--