Index doesn't recalculate after open

Hi ! I’ve got trouble. When open some index in graylog recalculate doesn’t happen automatically. Need to press on “Recalculate index ranges” button two times. What could be the reason for this ?

Graylog version is 3.0.2
Elasticsearch 5.6.13
MongoDB 2.6.10

One vm is graylog and two nodes of elasticsearch, hot and warm.

Your Graylog and Elasticsearch Logfiles should give you some indications what had happened.

graylog log file says when i open index:

2019-06-06T11:03:08.667+06:00 ERROR [graylog-eventbus] Exception thrown by subscriber method handleIndexReopening(org.graylog2.indexer.indices.events.IndicesReopenedEvent) on subscriber org.graylog2.indexer.ranges.MongoIndexRangeService@3915e7c3 when dispatching event: IndicesReopenedEvent{indices=[graylog_687]}
org.graylog2.indexer.ElasticsearchException: Couldn't read health status for index graylog_687

and when i recalculate it manually first time:

2019-06-06T11:07:45.793+06:00 INFO  [CreateNewSingleIndexRangeJob] Calculating ranges for index graylog_687.
2019-06-06T11:08:45.876+06:00 ERROR [CreateNewSingleIndexRangeJob] Exception during index range calculation for index graylog_687
org.graylog2.indexer.ElasticsearchException: Couldn't build index range of index graylog_687

third time its recalculate successfully:

2019-06-06T11:16:00.759+06:00 INFO  [CreateNewSingleIndexRangeJob] Calculating ranges for index graylog_687.
2019-06-06T11:16:29.783+06:00 INFO  [MongoIndexRangeService] Calculated range of [graylog_687] in [29010ms].
2019-06-06T11:16:29.789+06:00 INFO  [CreateNewSingleIndexRangeJob] Created ranges for index graylog_687.

add mongodb version in topic.

What I have noticed to late:

MongoDB 2.6.10

That Version is not compatible with your Graylog Version - you should run MongoDB at least in Version 3.6!

Oooops ! )) But it works well at all. Ok, i need just run apt-get update and apt-get upgrade mongodb ?

not sure what is included in your OS - means what version.

We had covered the versions of software in the documentation: http://docs.graylog.org/en/3.0/pages/installation.html

I do not know the upgrade path.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.