Elasticsearch Errors

zethon

Member
I have the Elasticsearch plugin on my board and I keep seeing these errors in the AdminCP


Code:
Server error log
[LIST]
[*]XFES\Elasticsearch\RequestException: Elasticsearch indexing error (queued): blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
[*]src/addons/XFES/Elasticsearch/Api.php:409
[*]Generated by: [URL='https://anothermessageboard.com/admin.php?users/lurker_x.2734/edit']lurker_x[/URL]
[*]Jun 2, 2020 at 8:26 AM
[/LIST]
[SIZE=5][B]Stack trace[/B][/SIZE]
#0 src/addons/XFES/Elasticsearch/Api.php(330): XFES\Elasticsearch\Api->request('put', 'ambcluster/xf/p...', '{
"title": ...')
#1 src/addons/XFES/Elasticsearch/Api.php(348): XFES\Elasticsearch\Api->requestFromIndex('put', 'xf/post-693842', Array)
#2 src/addons/XFES/Elasticsearch/Api.php(152): XFES\Elasticsearch\Api->requestById('put', 'post', 693842, Array)
#3 src/addons/XFES/Search/Source/Elasticsearch.php(66): XFES\Elasticsearch\Api->index('post', 693842, Array)
#4 src/XF/Search/Search.php(40): XFES\Search\Source\Elasticsearch->index(Object(XF\Search\IndexRecord))
#5 src/XF/Behavior/Indexable.php(46): XF\Search\Search->index('post', Object(ThemeHouse\ReactPlus\XF\Entity\Post), false)
#6 src/XF.php(291): XF\Behavior\Indexable->XF\Behavior\{closure}()
#7 src/XF/Mvc/Dispatcher.php(156): XF::triggerRunOnce(true)
#8 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#10 src/XF.php(391): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}

I found this this thread which suggested doing:

Code:
curl -XDELETE 'localhost:9200/indexname?pretty'

However when I do that I get the following response:

Code:
root@server [~]# curl -XDELETE 'localhost:9200/indexname?pretty'
{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_not_found_exception",
        "reason" : "no such index",
        "resource.type" : "index_or_alias",
        "resource.id" : "indexname",
        "index_uuid" : "_na_",
        "index" : "indexname"
      }
    ],
    "type" : "index_not_found_exception",
    "reason" : "no such index",
    "resource.type" : "index_or_alias",
    "resource.id" : "indexname",
    "index_uuid" : "_na_",
    "index" : "indexname"
  },
  "status" : 404
}

I don't know much about Elasticsearch or how it's used in XF. This is also affecting the search capability on my board.

Help?
 
Back
Top Bottom