couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <d...@muse.net.nz>
Subject Re: Error calling external process
Date Mon, 31 May 2010 09:24:29 GMT
On 31 May 2010 20:20, Mahendra Kariya <mahendrakariya@gmail.com> wrote:
> Hi,
>
> I created an external process as described on the page
> http://wiki.apache.org/couchdb/ExternalProcesses
> The path to python file is
> /home/mahendra/Documents/external_process_couchdb.py
>
> The contents in my /opt/apache-couchdb-0.11.0/etc/couchdb/local.ini are
>
> [log]
> ;level = debug
> level = info
>
> [external]
> my_process = python /home/mahendra/Documents/external_process_couchdb.py
>
> [httpd_db_handlers]
> _my__process = {couch_httpd_external, handle_external_req,<<"my_process">>}
>
> When I open the URL http://127.0.0.1:5984/microatm/my_process (microatm is
> my DB name), I get this error
>
> {"error":"not_found","reason":"missing"}
>
> How to solve this error?
>
>
>
>
> Regards,
> Mahendra Kariya
>
Hi Mahendra

Gut feel suggest this is permission related, or possibly path related.
What are you seeing in your couchdb log?

I'd specify an absolute path to python, and check via su that your
script is executable and accessible by whatever user you are running
couchdb under.

cheers
Dave

Mime
View raw message