Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 7599 invoked from network); 12 Jan 2009 17:21:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2009 17:21:42 -0000 Received: (qmail 39143 invoked by uid 500); 12 Jan 2009 17:21:41 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 38585 invoked by uid 500); 12 Jan 2009 17:21:40 -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 38574 invoked by uid 99); 12 Jan 2009 17:21:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 09:21:39 -0800 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS,URIBL_RHS_DOB,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 74.125.92.26 as permitted sender) Received: from [74.125.92.26] (HELO qw-out-2122.google.com) (74.125.92.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 17:21:32 +0000 Received: by qw-out-2122.google.com with SMTP id 5so23480890qwi.29 for ; Mon, 12 Jan 2009 09:21:11 -0800 (PST) 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:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=bj6AGGi1pUvGpDMJBo/fAS4F0nBZLhSQZCyKVMsTlPM=; b=nVQGeQaZpXFeIA9h9r4xYGz1HiWWyllp+FNaXsu68B/C7OAZ6g91tuh7IK8433UZa/ hA7/EJF/p2+ENb6ZDNNlAB4XCbFfmBEMTOenJLu1ltYrLivB+9jqtzaGsU9kBz7bOQj8 rIjPA9GvWeB1QiNgqLS36V4OQFG162e8DuX4I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=RPQjMgQSBW0LOZJVIY1gJqj5lUj5gFT1LOfQ5Kn5bP826karJXcpo025bkITtoc8E4 eFqywEtG00SsyObmJu86GBxqnHX3nGo1Ak47gm9fnbnZ9B+HXJSscZfJSbu+L4Lwj8Kc cUwvKcdXnx08yy5c1+j1+lkivWgwKQ+98OgnU= Received: by 10.214.46.10 with SMTP id t10mr25436307qat.150.1231780871427; Mon, 12 Jan 2009 09:21:11 -0800 (PST) Received: by 10.214.115.20 with HTTP; Mon, 12 Jan 2009 09:21:11 -0800 (PST) Message-ID: Date: Mon, 12 Jan 2009 12:21:11 -0500 From: "Paul Davis" To: user@couchdb.apache.org Subject: Re: external 404 In-Reply-To: <5aaed53f0901120631v112916eewcc50e96c44728a3d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5aaed53f0901120631v112916eewcc50e96c44728a3d@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Jan 12, 2009 at 9:31 AM, Jeff Hinrichs - DM&T wrote: > attempting to replicated http://wiki.apache.org/couchdb/ExternalProcesses > However, I am getting 404's > > Futon on Apache CouchDB 0.9.0a733593-incubating > > --local.ini-- > [external] > test = /home/jlh/Projects/venvs/couch1/test_external.py > Try also adding something like: [httpd_db_handlers] _test = {couch_httpd_external, handle_external_req, <<"test">>} And then hit the url: http://127.0.0.1:5984/delasco-test/_test/ Notice that _test is what the url becomes, and <<"test">> matches the name you specified in the [external] section. At least, I'm pretty sure that's the idea. I haven't had the chance to test this since it got changed. HTH, Paul Davis > tested that test_external.py is runnable by user couchdb, sudo -u > couchdb /home/jlh/Projects/venvs/couch1/test_external.py > > restarted couchdb > > Attempts to access http://localhost:5984/delasco-tests/_external/test > result with {"error":"not_found","reason":"missing"} > > logs say: > [Mon, 12 Jan 2009 14:26:24 GMT] [debug] [<0.63.0>] 'GET' > /delasco-tests/_external/test {1,1} > Headers: [{'Accept',"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, > {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, > {'Accept-Encoding',"gzip,deflate"}, > {'Accept-Language',"en-us,en;q=0.5"}, > {'Connection',"keep-alive"}, > {'Host',"localhost:5984"}, > {'Keep-Alive',"300"}, > {'User-Agent',"Mozilla/5.0 (X11; U; Linux i686; en-US; > rv:1.9.0.5) Gecko/2008121621 Ubuntu/8.04 (hardy) Firefox/3.0.5"}] > > [Mon, 12 Jan 2009 14:26:24 GMT] [debug] [<0.63.0>] HTTPd 404 error response: > {"error":"not_found","reason":"missing"} > > [Mon, 12 Jan 2009 14:26:24 GMT] [info] [<0.63.0>] 127.0.0.1 - - 'GET' > /delasco-tests/_external/test 404 > > > Appears to be a configuration problem, but I can't seem to figure out what. > > > Regards, > > Jeff > -- >