couchdb-lucene icon indicating copy to clipboard operation
couchdb-lucene copied to clipboard

External hook: JSON library linking

Open sbisbee opened this issue 14 years ago • 0 comments

I found on Debian that when you have both the python-json and python-simplejson packages installed that the external hook script will fail to send proper JSON to CouchDB. Uninstalling python-json fixed this problem. I assume that python was getting confused as to which library to use, or some such behavior, but I don't have enough python knowledge to say.

This is a snippet of the error I saw in the CouchDB logs:

** When Server state == {"fti", "/usr/bin/python /usr/local/bin/couchdb-lucene-0.5.0/tools/couchdb external-hook.py",
} ** Reason for termination == ** {bad_return_value,{os_process_error,{exit_status,1}}}

I have no idea whether this applies to other distros, but assume it would happen in Ubuntu and other Debian spawns. Additional/optional reading on my blog: http://www.sbisbee.com/blog.php?id=880475422

Cheers.

sbisbee avatar Aug 03 '10 15:08 sbisbee