1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Elasticsearch stopped working after website crash

Discussion in 'Enhanced Search Support' started by owls8521, Jan 27, 2015.

  1. owls8521

    owls8521 Active Member

    Elasticsearch was working fine for me for a few months... but then one day my web host had a problem, and the website crashed. I had to repair the Xenforo database, and then I restarted Elasticsearch. Everything seemed to be working fine. However, after maybe 30 minutes or so, Elasticsearch stopped working. Every time I restart it, it works for a while and then stops; and then I get this in Xenforo's server error log:
    I've looked at as many logs as I could find, and I know that the java virtual machine is crashing because of this message:
    I've even tried using different versions of Java and it doesn't make a difference. The other version I tried was 8.0_25.

    Does anyone have any idea why it would stop working after a crash when it was working fine before? I've spent a lot of time trying to fix it and haven't gotten anywhere. Any help is greatly appreciated.
     
  2. RoldanLT

    RoldanLT Well-Known Member

    Completely un install ElasticSearch server? Then install it again?
     
  3. owls8521

    owls8521 Active Member

    I tried reinstalling it and it did not fix the issue. I did find a solution though. The JVM crashes were being caused by the Similar Threads add-0n. When I disabled it, they stopped happening.

    I have a theory of why this started happening after the website crashed. Apparently, the Similar Threads add-on autodetects Enhanced Search, but since I didn't have it installed when I first installed the Similar Threads add-on, Enhanced Search wasn't being used. I am thinking that it still wasn't using it after Enhanced Search was set up. After the website crashed, everything was restarted, so now Similar Threads was using Enhanced Search. There must be a bug with Similar Threads that causes it to crash the JVM on my website when it uses Enhanced Search. It works fine when it uses normal search.

    So at least everything makes sense in my brain now, unless I am wrong... but I learned some stuff, so good times.
     
  4. owls8521

    owls8521 Active Member

    I was wrong. It still crashed even without the Similar Threads add-on. It just took longer. It took about 18 hours to crash instead of about a half hour like it does with the Similar Theads add-on enabled. Does anyone have any advice?
     
  5. duderuud

    duderuud Active Member

    As a workaround you could restart the service with cron every X hours. At least until you find the real solution.
     
    owls8521 likes this.
  6. owls8521

    owls8521 Active Member

    The only solution was for me to switch web hosts and move to a completely different server. I assume something went wrong with the hardware the VPS I was on, but the technical support people all told me there were no problems with it. It was very strange and frustrating. I've never felt so helpless with a problem on my website.

    A lot of good came out of it though because my new setup is better and cheaper than the previous one. :D
     
  7. vinafix

    vinafix Active Member

    I was offered a fix as you have not you.

    Elasticsearch server returned no response. Is it running?4 minutes ago - library/XenES/Search/SourceHandler/ElasticSearch.php:850
    Screen Shot 2015-03-21 at 8.34.49 PM.png

    someone help me with

    Thanks you.
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page