External hook: JSON library linking #68

Open
sbisbee opened this Issue Aug 3, 2010 · 0 comments

Projects

None yet

1 participant

@sbisbee
sbisbee commented Aug 3, 2010

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment