rnewson / couchdb-lucene

Enables full-text searching of CouchDB documents using Lucene
Apache License 2.0
769 stars 147 forks source link

Query Server Get Down After 1Hr or less #242

Closed naeempasha82 closed 7 years ago

naeempasha82 commented 7 years ago

i use the command to run/up the query server like as root@DB1:~/couchdb-lucene-1.1.0/target/couchdb-lucene-1.1.0# ./bin/run and get response after that as INFO [Config] Index output goes to: /root/couchdb-lucene-1.1.0/target/couchdb-lucene-1.1.0/indexes INFO [Main] Accepting connections with SelectChannelConnector@localhost:5985 INFO [insightout] Indexing from update_seq start INFO [insightout] View[name=_design/lucene/device_reading, digest=689to58gzlmehprwq283ogo8e] now at update_seq 39988

and i checked on other terminal window to using the command as: curl 127.0.0.1:5985 and get response {"couchdb-lucene":"Welcome","version":"1.1.0"} the things are good and going fine till here but when i close the terminal or remain open then query server get shutdown or stopped after 1hr or less and then i check curl 127.0.0.1:5985 get response curl: (7) couldn't connect to host

Kindly help me out on this issue Thanks in advance

rnewson commented 7 years ago

bin/run runs in the foreground, so closing the terminal will end that process.

I suggest you use runit or systemd or supervisord to ensure couchdb-lucene is always running and automatically restarted should it crash.

If you have some logs or console output related to a crash or unexpected process end, that would help me to help you further.

naeempasha82 commented 7 years ago

[Tue, 07 Feb 2017 21:27:40 GMT] [error] [<0.271.0>] httpd 500 error response: {"error":"error","reason":"{conn_failed,{error,econnrefused}}"}

can you explain me how can i use these commands "runit or systemd or supervisord" to run the couchdb-lucene. i did try a lot but not success thnx

rnewson commented 7 years ago

There are many tutorials on using the process supervising tools I've mentioned, and there are others. I suggest you use whichever tools you are most familiar with for daemonizing important services. I recommend runit (http://smarden.org/runit/) for its simplicity.

The error you show is from couchdb and just tells us that it can't contact couchdb-lucene, it unfortunately doesn't provide any more information than that. Look in the couchdb-lucene.log for more details. However, if this is all solely because you closed the terminal you were running couchdb-lucene in then there's no mystery. Closing the terminal will kill the process running inside it. If couchdb-lucene is terminating in any other circumstance then please send the output of any error from the terminal in which it was running.

naeempasha82 commented 7 years ago

i have installed the runit successfully but what to do next to run the couchdb-lucene. can you give me any idea?? thnx

rnewson commented 7 years ago

Their site has lots of examples at http://smarden.org/runit/runscripts.html

Sorry I cannot help further.

naeempasha82 commented 7 years ago

i did many tries but i am unable to start couchdb-lucene plz help me out on this......

thanks

naeempasha82 commented 7 years ago

opppps, you just let me know the specific script. now i am trying "sudo couchdb-lucene start" or "./bin/run" so what should i do new after installing the runit to start the lucene server ??? when i do use runit command that is showing the error is mention below

rnewson commented 7 years ago

Sorry, I am travelling. Your problem is not with couchdb-lucene.

On 8 Feb 2017, at 10:43, naeempasha82 notifications@github.com wrote:

opppps, you just let me know the specific script. now i am trying "sudo couchdb-lucene start" or "./bin/run" so what should i do new after installing the runit to start the lucene server ???

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

naeempasha82 commented 7 years ago

issue has been resolved. now the lucene-server is running into background successfully thanks for your help and your time.

Thank You!

rnewson commented 7 years ago

Great!

On 8 Feb 2017, at 14:15, naeempasha82 notifications@github.com wrote:

issue has been resolved. now the lucene-server is running into background successfully thanks for your help and your time.

Thank You!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.