Solved

Alerts and Elasticsearch 6.6.2

Are Skedler Alerts (3.11.1) really compatible with ES 6.6.2? Because for a few days we are having problems in the communication between Alerts and ES. One of the changes we have made was updating ES from 6.4.x to 6.6.2.

Symptoms:

  • red "Please check if elasticsearch is running....!" banner visible
  • settings lost
  • can't set the timezone. If I choose Europe/Berlin and click save, the green 'OK' banner is shown. But if I leave and open the settings page again, it is empty again.

This is logged by Alerts:

 

[2019-04-10T11:34:21.300] [INFO] [alertLogInfo_3.11.1] - User click - Get email and time zone settings

[2019-04-10T11:34:21.306] [INFO] [alertLogInfo_3.11.1] - AlertDAO - Obtained timezone settings successfully

[2019-04-10T11:34:21.310] [INFO] [alertLogInfo_3.11.1] - AlertDAO - Obtained email settings successfully

[2019-04-10T11:34:21.313] [INFO] [alertLogInfo_3.11.1] - AlertDAO - retrieved webhook count successfully

[2019-04-10T11:34:21.316] [INFO] [alertLogInfo_3.11.1] - AlertDAO - No webhook found

[2019-04-10T11:34:21.319] [INFO] [alertLogInfo_3.11.1] - ESDAO - retrieved alert count successfully

[2019-04-10T11:34:21.322] [INFO] [alertLogInfo_3.11.1] - AlertDAO - No index-pattern found

[2019-04-10T11:34:21.327] [INFO] [alertLogInfo_3.11.1] - AlertDAO - Obtained proxy details successfully

[2019-04-10T11:34:21.330] [ERROR] [alertLogInfo_3.11.1] - AlertDAO - Error in getting folderPath { Error: Not Found
    at respond (/opt/alert/node_modules/elasticsearch/src/lib/transport.js:307:15)
    at checkRespForFailure (/opt/alert/node_modules/elasticsearch/src/lib/transport.js:266:7)
    at HttpConnector.<anonymous> (/opt/alert/node_modules/elasticsearch/src/lib/connectors/http.js:159:7)
    at IncomingMessage.bound (/opt/alert/node_modules/elasticsearch/node_modules/lodash/dist/lodash.js:729:21)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  status: 404,
  displayName: 'NotFound',
  message: 'Not Found',
  path: '/.skedler-alerts/alertdocs/otherSettings',
  query: {},
  body: undefined,
  statusCode: 404,
  response: '{"_index":".skedler-alerts","_type":"alertdocs","_id":"otherSettings","found":false}',
  toString: [Function],
  toJSON: [Function] }

 

 

 

[2019-04-10T11:34:21.300] [INFO] [alertLogInfo_3.11.1] - User click - Get email and time zone settings

[2019-04-10T11:34:21.306] [INFO] [alertLogInfo_3.11.1] - AlertDAO - Obtained timezone settings successfully

[2019-04-10T11:34:21.310] [INFO] [alertLogInfo_3.11.1] - AlertDAO - Obtained email settings successfully

[2019-04-10T11:34:21.313] [INFO] [alertLogInfo_3.11.1] - AlertDAO - retrieved webhook count successfully

[2019-04-10T11:34:21.316] [INFO] [alertLogInfo_3.11.1] - AlertDAO - No webhook found

[2019-04-10T11:34:21.319] [INFO] [alertLogInfo_3.11.1] - ESDAO - retrieved alert count successfully

[2019-04-10T11:34:21.322] [INFO] [alertLogInfo_3.11.1] - AlertDAO - No index-pattern found

[2019-04-10T11:34:21.327] [INFO] [alertLogInfo_3.11.1] - AlertDAO - Obtained proxy details successfully

[2019-04-10T11:34:21.330] [ERROR] [alertLogInfo_3.11.1] - AlertDAO - Error in getting folderPath { Error: Not Found
    at respond (/opt/alert/node_modules/elasticsearch/src/lib/transport.js:307:15)
    at checkRespForFailure (/opt/alert/node_modules/elasticsearch/src/lib/transport.js:266:7)
    at HttpConnector.<anonymous> (/opt/alert/node_modules/elasticsearch/src/lib/connectors/http.js:159:7)
    at IncomingMessage.bound (/opt/alert/node_modules/elasticsearch/node_modules/lodash/dist/lodash.js:729:21)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  status: 404,
  displayName: 'NotFound',
  message: 'Not Found',
  path: '/.skedler-alerts/alertdocs/otherSettings',
  query: {},
  body: undefined,
  statusCode: 404,
  response: '{"_index":".skedler-alerts","_type":"alertdocs","_id":"otherSettings","found":false}',
  toString: [Function],
  toJSON: [Function] }

 

This is logged by ES:


 

[2019-04-10T11:34:18,378][WARN ][o.e.d.s.f.s.FetchSourceContext] [EWHq__F] Deprecated parameter [_source_exclude] used, expected [_source_excludes] instead
[2019-04-10T11:34:18,654][WARN ][o.e.d.s.f.s.FetchSourceContext] [EWHq__F] Deprecated parameter [_source_exclude] used, expected [_source_excludes] instead
[2019-04-10T11:34:18,830][WARN ][o.e.d.s.a.I.Parser       ] [EWHq__F] Deprecated aggregation order key [_term] used, replaced by [_key]
[2019-04-10T11:34:19,563][WARN ][o.e.d.s.f.s.FetchSourceContext] [EWHq__F] Deprecated parameter [_source_exclude] used, expected [_source_excludes] instead

 Similar problems also with Reports.


1 Comment

Fixed by deleting the skedler-alerts index.

Login or Signup to post a comment