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

How to: Fix "No response returned from Elasticsearch. Is it running?".

Brogan

XenForo moderator
Staff member
#21
I want to delete this thing and never renew it.
Feel free to contact us and request it to be removed from your license.

However, you have way more than 1 million posts so I wouldn't recommend it.

As an aside, I haven't had to touch ES or do anything with it since it was installed several years ago.
If you are having constant issues with yours then I would have to suggest that it is due to your host/server.
 

51463

Well-known member
#22
It's been disabled for the past month.

I haven't noticed any difference in speed and the search function works fine without it.

I can't find anywhere that says it is better to use than the normal search on forums with a lot of posts.

https://xenforo.com/help/enhanced-search/

As long as i don't get errors or shuts down my server. I think using the normal search should be ok?
 

Brogan

XenForo moderator
Staff member
#23
Standard MySQL search tends to be limited to around 1 millions posts.
More than that and it starts to struggle.
 

51463

Well-known member
#24
Ok, I'll take your word on that. I'll keep this add-on.

I wanted to fix do it myself but it seems i am not skilled enough to do it.

I give up with trying to fix this.

:mad:


thank you andy for helping me. i will call a friends whos done work on my server before to see what's going on.

(y)


I'll stick to html for now
 
Last edited:
#32
Just want to put my vote in here for having a miserable time with this addon. Right out of the gate we are getting the following errors, and hours on the phone with a Linux Admin revealed no solutions. Also if you google this phrase you will see tons of people struggling:
https://www.google.com/search?q=elasticsearch+no+response+returned+is+it+running&ie=utf-8&oe=utf-8

-------------
Anyways here are the errors we're getting. I guess I need to disable and uninstall it. I really think when there are a lot of people over a period of 4 years reporting the same problem and no solution, that maybe the elasticsearch guys should consider modifying the tool to work better.

Maybe our situation is easily fixed? My linux guy says he sees no such service running.

The following error occurred:

An exception occurred: No response returned from Elasticsearch. Is it running? in /var/www/vhosts/hairlosstalk.com/httpdocs/interact/library/XenES/Search/SourceHandler/ElasticSearch.php on line 1021

XenES_Search_SourceHandler_ElasticSearch->_triggerFailedIndexError() in XenES/Search/SourceHandler/ElasticSearch.php at line 76
XenES_Search_SourceHandler_ElasticSearch->finalizeRebuildSet() in XenForo/Search/Indexer.php at line 125
XenForo_Search_Indexer->finalizeRebuildSet() in XenForo/Deferred/SearchIndex.php at line 76
XenForo_Deferred_SearchIndex->execute() in XenForo/Model/Deferred.php at line 295
XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
XenForo_Model_Deferred->run() in XenForo/ViewRenderer/Abstract.php at line 352
XenForo_ViewRenderer_Abstract::hasManualDeferredToRun() in XenForo/ViewRenderer/Json.php at line 147
XenForo_ViewRenderer_Json::_addDefaultParams() in XenForo/ViewRenderer/Json.php at line 185
XenForo_ViewRenderer_Json::jsonEncodeForOutput() in XenForo/ViewRenderer/Json.php at line 61
XenForo_ViewRenderer_Json->renderError() in XenForo/FrontController.php at line 595
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
XenForo_FrontController->run() in /var/www/vhosts/hairlosstalk.com/httpdocs/interact/admin.php at line 13
 
#33
Update: According to my Linux admin at Rackspace, the tool is looking for a service to be running, the elasticsearch service, at "localhost" (127.0.0.1).

But the question came up: "Did you install this service? Because its looking for it on your box, and a plugin like this wouldn't be capable of installing that service automatically in the first place"

So he suggested manually installing the service himself onto the box, but I wanted to come here and ask what is going on first.

Why's it looking for a service on my box that it wouldn't have been able to install, and why don't we see instructions anywhere stating that the service must be installed locally for the tool to work?

Thanks!
 
#35
Are you referring to this?

"XenForo Enhanced Search requires XenForo 1.1.1 or newer and elasticsearch 0.16.0 or newer. The Enhanced Search add-on requires a separate purchase to become available to a XenForo license."

Three different people saw this and did not digest that in order for ElasticSearch to work in XenForo you have to not only buy XenForo Elastic Search 1.1.4 but .... I guess you also have to buy software directly from ElasticSearch?

Such fine print.

And nothing in the purchase, installation, or setup says "This will not work unless you also buy the server software from ElasticSearch directly"

Is that basically what we are missing?
 

Brogan

XenForo moderator
Staff member
#36
The elasticsearch software is free - it just needs to be installed on the server and set up.

I'm surprised no-one recognised that it's a separate package - the word is linked to the site which distributes the software.
 
#37
It was because of the phrasing I think. Here is how our strange brains interpreted what was written:

The first paragraph:

"XenForo Enhanced Search is an add-on that ... is built on top of elasticsearch"
We took this as just an FYI. You're buying an Add-On from us that is built on ElasticSearch. And here's a link to their home page if you're curious about it.
So we assumed whatever was needed was included with the Add-On.

The highlighted text below that says:
"The Enhanced Search add-on requires a separate purchase to become available to a XenForo license."
We assumed the separate purchase was the Add-On itself, which it is.
However there is this sentence: "requires XenForo 1.1.1 or newer and elasticsearch 0.16.0 or newer."
We assumed you were just letting us know that v16 of elasticsearch was part of the AddOn.

Why did we make that ridiculous assumption?

Because in context - there is no mention anywhere on this page, or the install text file that you must actually *go* to the ElasticSearch website, find their software, download it, set up repositories, and get their service running on your box before the AddOn will work. That entire process is not even mentioned, and is completely left out.

It does mention that the AddOn requires elasticsearch 0.16.0 to work, but it doesnt say its a separate "service" - just implies its their software, which could've easily been bundled with the AddOn. Ultimately we realized the AddOn was looking for a service on our box, so we realized a service was needed, but we sat there on the phone saying (out loud) "Why don't they actually say that anywhere in either of the installation instructions?"

Brain farts on our part. Maybe adding a couple sentences to the installation instructions will make it more clear for dummies like us. :)
Linking to the actual download page on ElasticSearch would've made it clearer too.
Thanks for the help!
 
#38
Help me please

Xenforo 1.5.10 set:
CentOS 7
nginx
php-fpm
mariadb

ElasticSearch installed and running. When you try to re-index errors occur

Code:
Elasticsearch Server: http://127.0.0.1:9200/codebynet
Elasticsearch does not appear to be running but is enabled as the search system.
Code:
An exception occurred: No response returned from Elasticsearch. Is it running? in /home/admin/web/codeby.net/public_html/forum/library/XenES/Search/SourceHandler/ElasticSearch.php on line 1094

XenES_Search_SourceHandler_ElasticSearch->_triggerFailedIndexError() in XenES/Search/SourceHandler/ElasticSearch.php at line 76
XenES_Search_SourceHandler_ElasticSearch->finalizeRebuildSet() in XenForo/Search/Indexer.php at line 125
XenForo_Search_Indexer->finalizeRebuildSet() in XenForo/Deferred/SearchIndex.php at line 76
XenForo_Deferred_SearchIndex->execute() in XenForo/Model/Deferred.php at line 295
XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
XenForo_Model_Deferred->run() in XenForo/ViewRenderer/Abstract.php at line 352
XenForo_ViewRenderer_Abstract::hasManualDeferredToRun() in XenForo/ViewRenderer/Json.php at line 147
XenForo_ViewRenderer_Json::_addDefaultParams() in XenForo/ViewRenderer/Json.php at line 185
XenForo_ViewRenderer_Json::jsonEncodeForOutput() in XenForo/ViewRenderer/Json.php at line 61
XenForo_ViewRenderer_Json->renderError() in XenForo/FrontController.php at line 595
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
XenForo_FrontController->run() in /home/admin/web/codeby.net/public_html/forum/admin.php at line 13
 
Last edited:
#40
ElasticSearch running on your server?
Yes

Is okay All my ElasticSearch ?
Code:
-bash-4.2# /etc/init.d/elasticsearch status
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2016-10-17 01:04:57 MSK; 5min ago
     Docs: http://www.elastic.co
  Process: 849 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
 Main PID: 852 (java)
   CGroup: /system.slice/elasticsearch.service
           └─852 /bin/java -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseP...

Oct 17 01:09:55 host1489626 elasticsearch[852]: at org.elasticsearch.cluster...)
Oct 17 01:09:55 host1489626 elasticsearch[852]: at org.elasticsearch.cluster...)
Oct 17 01:09:55 host1489626 elasticsearch[852]: at org.elasticsearch.cluster...)
Oct 17 01:09:55 host1489626 elasticsearch[852]: at org.elasticsearch.cluster...)
Oct 17 01:09:55 host1489626 elasticsearch[852]: at org.elasticsearch.cluster...)
Oct 17 01:09:55 host1489626 elasticsearch[852]: at org.elasticsearch.common....)
Oct 17 01:09:55 host1489626 elasticsearch[852]: at org.elasticsearch.common....)
Oct 17 01:09:55 host1489626 elasticsearch[852]: at java.util.concurrent.Thre...)
Oct 17 01:09:55 host1489626 elasticsearch[852]: at java.util.concurrent.Thre...)
Oct 17 01:09:55 host1489626 elasticsearch[852]: at java.lang.Thread.run(Thre...)
Hint: Some lines were ellipsized, use -l to show in full.