incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahendra Kariya <mahendrakar...@gmail.com>
Subject Re: Error calling external process
Date Mon, 31 May 2010 09:31:22 GMT
I am running couchdb from root user. The command that I specified in
my_process is working in root.

CouchDB log says
[info] [<0.95.0>] 127.0.0.1 - - 'GET' /microatm/my_process 404



Regards,
Mahendra Kariya



On Mon, May 31, 2010 at 2:54 PM, Dave Cottlehuber <dave@muse.net.nz> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message