couchdbubuntu-10.10

my `couchdb External Processes` return error


i'm using couchdb 1.0.2 and i'v following this tutorial to make an External Process...
nothing different with the tutorial... (even for the code and folder structure)...

the error message is

{"error":"{bad_return_value,{os_process_error,{exit_status,2}}}","reason":"{gen_server,call,\n            [<0.1116.0>,\n             {execute,{[{<<\"info\">>,\n              

while googling, i got this, but the error is different, and the answer not fix my problem...
i'm using ubuntu 10.10, and couchdb 1.0.2.. is this that caused the error??


Solution

  • I know the problem..... in the tutorial, it says to run an external process I must configure my local.ini like this:

    [external]
    

    There are two ways you can fix it:

    1) add python at the config local.ini

    [external]  
    test = python /usr/local/src/couchdb/test.py
    

    2) add #!/usr/bin/python2.6 (I use Python 2.6) at the top of test.py