You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2017/12/30 13:54:21 UTC

[GitHub] endyjasmi commented on issue #8: [Feature Request] Provide Image with Clouseau / Fulltext Search

endyjasmi commented on issue #8: [Feature Request] Provide Image with Clouseau / Fulltext Search
URL: https://github.com/apache/couchdb-docker/issues/8#issuecomment-354547395
 
 
   Hello, I tried to make a variant of the latest CouchDB image (2.1.1) with search feature but encountered some problem. Hoping that somebody can give some pointer as to how to solve the problem.
   
   Following is what I did:
   1. Build a version of CouchDB (2.1.x) which integrate with [Cloudant Dreyfus](https://github.com/cloudant-labs/dreyfus) (master) using [this page](https://github.com/cloudant-labs/dreyfus/wiki/Introduce-dreyfus-into-couchdb) as guide. The result is in the branch [2.1.x-dreyfus](https://github.com/endyjasmi/couchdb/tree/2.1.x-dreyfus).
   2. Build a version of CouchDB Docker (master) which build the CouchDB (2.1.x-dreyfus) from step 1. The result of the build can be found at [dreyfus](https://github.com/endyjasmi/couchdb-docker/tree/dreyfus) branch.  Feel free to check the changes with;
       ```
       git diff --no-index ./2.1.1/Dockerfile ./2.1.1-dreyfus/Dockerfile
       ```
   3. Build a [Cloudant Clouseau](https://github.com/cloudant-labs/clouseau) (master) docker image. The result is at [Clouseau Docker](https://github.com/endyjasmi/clouseau-docker) repository.
   4. After that, I try to run the system with the following [docker compose configuration](https://gist.github.com/endyjasmi/f0c52c6c2f041ce17bf650cdfd627a3e).
   
   All the service is running. As I have `disable-fauxton`, I configure my couchdb using external fauxton.
   ```
   npm install -g fauxton
   fauxton
   ```
   
   The problem occur when I try to test analyzer tokenization with;
   ```
   POST /_search_analyze HTTP/1.1
   Content-Type: application/json
   {"analyzer":"standard", "text":"hello world"}
   ```
   CouchDB return 500 Internal Server Error with response
   ```json
   {
       "error": "{badarg,[{erlang,monitor,[process,{analyzer,clouseau@clouseau}],[]},\n         {ioq,submit_request,2,[{file,\"src/ioq.erl\"},{line,156}]},\n         {ioq,maybe_submit_request,1,[{file,\"src/ioq.erl\"},{line,119}]},\n         {ioq,handle_info,2,[{file,\"src/ioq.erl\"},{line,92}]},\n         {gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,599}]},\n         {proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,237}]}]}",
       "reason": "{gen_server,call,\n            [ioq,\n             {request,{analyzer,clouseau@clouseau},\n                      {analyze,<<\"standard\">>,<<\"hello world\">>},\n                      undefined,<0.8648.0>,undefined},\n             infinity]}",
       "ref": 1634367512
   }
   ```
   
   Following is the output for `docker-compose logs couchdb` and `docker-compose logs clouseau`:
   [docker-compose logs](https://gist.github.com/endyjasmi/13e2be027f8646b52b56348314907cac).
   
   Based on the logs and the research I conducted/understand, I assume that it is an error related to erlang rpc? Maybe the problem is caused by incompatible erlang version between CouchDB and Clouseau?
   
   I have been working on this for the past week to bring it up to this point. Any helps is greatly appreciated. Do know that I have no erlang knowledge so all the curly bracket is alien to me.
   
   Last but not least, thanks in advance and Happy New Year!
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services