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

Code:
-bash-4.2# sudo service elasticsearch restart
Restarting elasticsearch (via systemctl):                  [  OK  ]
-bash-4.2# curl -X GET 'http://localhost:9200'
{
  "name" : "Madame MacEvil",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "kgiLXtMZQy6FhqfNP4Wn7g",
  "version" : {
    "number" : "2.4.1",
    "build_hash" : "c67dc32e24162035d18d6fe1e952c4cbcbe79d16",
    "build_timestamp" : "2016-09-27T18:57:55Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.2"
  },
  "tagline" : "You Know, for Search"
 

Robru

Well-known member
First delete index, than Optimize Mappings and then rebuild search.
Be sure you use the latest ES XenForo Addon.
 
First delete index, than Optimize Mappings and then rebuild search.
Be sure you use the latest ES XenForo Addon.
An exception occurred: Elasticsearch indexing failed. See the server error log for more details. in /home/admin/web/codeby.net/public_html/forum/library/XenES/Search/SourceHandler/ElasticSearch.php on line 1098

  1. XenES_Search_SourceHandler_ElasticSearch->_triggerFailedIndexError() in XenES/Search/SourceHandler/ElasticSearch.php at line 76
  2. XenES_Search_SourceHandler_ElasticSearch->finalizeRebuildSet() in XenForo/Search/Indexer.php at line 125
  3. XenForo_Search_Indexer->finalizeRebuildSet() in XenForo/Deferred/SearchIndex.php at line 76
  4. XenForo_Deferred_SearchIndex->execute() in XenForo/Model/Deferred.php at line 295
  5. XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 429
  6. XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 374
  7. XenForo_Model_Deferred->run() in XenForo/ViewRenderer/Abstract.php at line 352
  8. XenForo_ViewRenderer_Abstract::hasManualDeferredToRun() in XenForo/ViewRenderer/HtmlAdmin.php at line 131
  9. XenForo_ViewRenderer_HtmlAdmin->renderContainer() in XenForo/FrontController.php at line 639
  10. XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
  11. XenForo_FrontController->run() in /home/admin/web/codeby.net/public_html/forum/admin.php at line 13
 

rebelde

Member
For me, the hint was in the elastic search log entries. I needed to remove and then install some plugins.

Such as:
bin/plugin remove license
bin/plugin install license
 

Codeless

Active member
Code:
[root@server1 ~]# rcelasticsearch restart
-bash: rcelasticsearch: command not found
[root@server1 ~]# /etc/init.d/elasticsearch restart
Restarting elasticsearch (via systemctl):                  [  OK  ]
[root@server1 ~]# service elasticsearch start
Starting elasticsearch (via systemctl):                    [  OK  ]
[root@server1 ~]# curl http://127.0.0.1:9200
curl: (7) Failed connect to 127.0.0.1:9200; Connection refused
[root@server1 ~]#
i got this issue
 

Codeless

Active member
Code:
[root@server1 ~]# ps aux | grep ElasticSearch
root      415282  0.0  0.0 112648   976 pts/0    S+   17:29   0:00 grep --color=auto ElasticSearch
 

Sunka

Well-known member
What do you see in /var/log/elasticsearch/elasticsearch.log?
Also what does ps -edf | grep java return?
Output of systemctl status elasticsearch.service
 

Codeless

Active member
Code:
[root@server1 ~]# ps -edf | grep java
root      536353  414795  0 06:13 pts/0    00:00:00 grep --color=auto java
and i see there is no log file i checked both folders
 

Codeless

Active member
list of open ports in system :
PHP:
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      1353/mysqld        
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      247906/exim        
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      2003/dovecot      
tcp        0      0 127.0.0.1:783           0.0.0.0:*               LISTEN      479402/spamd-dorman
tcp        0      0 0.0.0.0:2095            0.0.0.0:*               LISTEN      38912/cpsrvd (SSL)
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      2003/dovecot      
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      242432/httpd      
tcp        0      0 0.0.0.0:2096            0.0.0.0:*               LISTEN      38912/cpsrvd (SSL)
tcp        0      0 0.0.0.0:465             0.0.0.0:*               LISTEN      247906/exim        
tcp        0      0 x.xx.216.157:53         0.0.0.0:*               LISTEN      2608/named        
tcp        0      0 x.xx.216.156:53         0.0.0.0:*               LISTEN      2608/named        
tcp        0      0 x.xx.216.155:53         0.0.0.0:*               LISTEN      2608/named        
tcp        0      0 x.xx.216.154:53         0.0.0.0:*               LISTEN      2608/named        
tcp        0      0 x.xx.216.153:53         0.0.0.0:*               LISTEN      2608/named        
tcp        0      0 x.xx.216.152:53         0.0.0.0:*               LISTEN      2608/named        
tcp        0      0 x.xx.216.151:53         0.0.0.0:*               LISTEN      2608/named        
tcp        0      0 x.xx.216.150:53         0.0.0.0:*               LISTEN      2608/named        
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      2608/named        
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      2355/pure-ftpd (SER
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      247906/exim        
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      2608/named        
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      242432/httpd      
tcp        0      0 0.0.0.0:2077            0.0.0.0:*               LISTEN      38966/cpdavd - acce
tcp        0      0 0.0.0.0:2078            0.0.0.0:*               LISTEN      38966/cpdavd - acce
tcp        0      0 0.0.0.0:2079            0.0.0.0:*               LISTEN      38966/cpdavd - acce
tcp        0      0 0.0.0.0:2080            0.0.0.0:*               LISTEN      38966/cpdavd - acce
tcp        0      0 0.0.0.0:49152           0.0.0.0:*               LISTEN      2009/sshd          
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      2003/dovecot      
tcp        0      0 0.0.0.0:2082            0.0.0.0:*               LISTEN      38912/cpsrvd (SSL)
tcp        0      0 0.0.0.0:2083            0.0.0.0:*               LISTEN      38912/cpsrvd (SSL)
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      2003/dovecot      
tcp        0      0 0.0.0.0:2086            0.0.0.0:*               LISTEN      38912/cpsrvd (SSL)
tcp        0      0 0.0.0.0:2087            0.0.0.0:*               LISTEN      38912/cpsrvd (SSL)
tcp6       0      0 :::587                  :::*                    LISTEN      247906/exim        
tcp6       0      0 :::110                  :::*                    LISTEN      2003/dovecot      
tcp6       0      0 ::1:783                 :::*                    LISTEN      479402/spamd-dorman
tcp6       0      0 :::143                  :::*                    LISTEN      2003/dovecot      
tcp6       0      0 :::80                   :::*                    LISTEN      242432/httpd      
tcp6       0      0 :::465                  :::*                    LISTEN      247906/exim        
tcp6       0      0 :::21                   :::*                    LISTEN      2355/pure-ftpd (SER
tcp6       0      0 :::4949                 :::*                    LISTEN      1347/perl          
tcp6       0      0 :::25                   :::*                    LISTEN      247906/exim        
tcp6       0      0 :::443                  :::*                    LISTEN      242432/httpd      
tcp6       0      0 :::49152                :::*                    LISTEN      2009/sshd          
tcp6       0      0 :::993                  :::*                    LISTEN      2003/dovecot      
tcp6       0      0 :::995                  :::*                    LISTEN      2003/dovecot
 
Top