chaoss / grimoirelab-kibiter

Soft fork of Kibana, for the benefit of GrimoireLab
https://chaoss.github.io/grimoirelab
Other
24 stars 17 forks source link

Kibiter starts a migration everytime the docker container restarts and then fails #150

Closed marcofranssen closed 3 years ago

marcofranssen commented 4 years ago

When the kibiter container restarts following error occurs. The only solution to resolve it for now is to throw away the kibana_1 and kibana_2 indexes and restart it again.

Then to populate the dashboards I'm also restarting the grimoirelab:installed container so it recreates the dashboards.

Versions

See below what happens on a container restart, Just before it fails.

kibiter_1      | {"type":"log","@timestamp":"2020-06-24T06:36:58Z","tags":["status","plugin:kibana@6.8.6","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
kibiter_1      | {"type":"log","@timestamp":"2020-06-24T06:36:58Z","tags":["status","plugin:elasticsearch@6.8.6","info"],"pid":1,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
kibiter_1      | {"type":"log","@timestamp":"2020-06-24T06:36:58Z","tags":["status","plugin:console@6.8.6","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
kibiter_1      | {"type":"log","@timestamp":"2020-06-24T06:36:58Z","tags":["status","plugin:interpreter@6.8.6","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
kibiter_1      | {"type":"log","@timestamp":"2020-06-24T06:36:58Z","tags":["status","plugin:metrics@6.8.6","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
kibiter_1      | {"type":"log","@timestamp":"2020-06-24T06:36:58Z","tags":["status","plugin:tile_map@6.8.6","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
kibiter_1      | {"type":"log","@timestamp":"2020-06-24T06:36:58Z","tags":["status","plugin:timelion@6.8.6","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
kibiter_1      | {"type":"log","@timestamp":"2020-06-24T06:36:58Z","tags":["status","plugin:elasticsearch@6.8.6","info"],"pid":1,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
kibiter_1      | {"type":"log","@timestamp":"2020-06-24T06:36:58Z","tags":["info","migrations"],"pid":1,"message":"Creating index .kibana_2."}
kibiter_1      | {"type":"log","@timestamp":"2020-06-24T06:36:59Z","tags":["info","migrations"],"pid":1,"message":"Migrating .kibana_1 saved objects to .kibana_2"}
kibiter_1      | {"type":"log","@timestamp":"2020-06-24T06:37:00Z","tags":["fatal","root"],"pid":1,"message":"{ Error: mapping set to strict, dynamic introduction of [release_date] within [dashboard] is not allowed\n    at Object.write (/opt/kibana/src/server/saved_objects/migrations/core/elastic_index.js:110:23)\n  detail:\n   { index:\n      { _index: '.kibana_2',\n        _type: 'doc',\n        _id: 'dashboard:Overview',\n        status: 400,\n        error: [Object] } } }"}
kibiter_1      |
kibiter_1      |  FATAL  Error: mapping set to strict, dynamic introduction of [release_date] within [dashboard] is not allowed
kibiter_1      |
code-chars_kibiter_1 exited with code 1
valeriocos commented 4 years ago

Please @marcofranssen have a look at https://github.com/chaoss/grimoirelab/issues/331.

marcofranssen commented 3 years ago

After switching to the container bitergia/mordred:grimoirelab-0.2.49 this problem is resolved. Also works with the latest release bitergia/mordred:grimoirelab-0.2.50.