Hello,
I recently upgraded from 7.17 to 8.14 with both Elasticsearch and Kibana. One problem I'm experiencing is I am no longer able to access any of my rules and connectors which were previously notifying me of changes based on Elasticsearch queries.
Below is my Kibana.yml file:
elasticsearch.username: "kibana_system"
elasticsearch.password: "password"
xpack.reporting.encryptionKey: myReportingKey
xpack.security.encryptionKey: myKey
xpack.encryptedSavedObjects.encryptionKey: myKey
These are the log messages I am getting in my logfile:
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2024-06-08T16:44:10.149-04:00","message":"Failed to poll for work: ResponseError: {\"took\":3,\"timed_out\":false,\"total\":10,\"updated\":0
,\"deleted\":0,\"batches\":1,\"version_conflicts\":0,\"noops\":1,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[{\"index\":\".kibana_task_manager_7.17.13
_001\",\"id\":\"task:b2b27ca0-c081-11ee-822f-55282727ff2c\",\"cause\":{\"type\":\"cluster_block_exception\",\"reason\":\"index [.kibana_task_manager_7.17.13_001] blocked by: [FORBIDDEN/8/index write (api)];\"},\"status\":403},{\"index\":
\".kibana_task_manager_7.17.13_001\",\"id\":\"task:1123d330-240d-11ef-8308-f5dcbf4257f2\",\"cause\":{\"type\":\"cluster_block_exception\",\"reason\":\"index [.kibana_task_manager_7.17.13_001] blocked by: [FORBIDDEN/8/index write (api)];\
"},\"status\":403},{\"index\":\".kibana_task_manager_7.17.13_001\",\"id\":\"task:endpoint:user-artifact-packager:1.0.0\",\"cause\":{\"type\":\"cluster_block_exception\",\"reason\":\"index [.kibana_task_manager_7.17.13_001] blocked by: [F
ORBIDDEN/8/index write (api)];\"},\"status\":403},{\"index\":\".kibana_task_manager_7.17.13_001\",\"id\":\"task:endpoint:complete-external-response-actions-1.0.0\",\"cause\":{\"type\":\"cluster_block_exception\",\"reason\":\"index [.kiba
na_task_manager_7.17.13_001] blocked by: [FORBIDDEN/8/index write (api)];\"},\"status\":403},{\"index\":\".kibana_task_manager_7.17.13_001\",\"id\":\"task:c6930c30-0c99-11ef-8708-916653fddd74\",\"cause\":{\"type\":\"cluster_block_excepti
on\",\"reason\":\"index [.kibana_task_manager_7.17.13_001] blocked by: [FORBIDDEN/8/index write (api)];\"},\"status\":403},{\"index\":\".kibana_task_manager_7.17.13_001\",\"id\":\"task:e76a2200-0c89-11ef-8708-916653fddd74\",\"cause\":{\"
type\":\"cluster_block_exception\",\"reason\":\"index [.kibana_task_manager_7.17.13_001] blocked by: [FORBIDDEN/8/index write (api)];\"},\"status\":403},{\"index\":\".kibana_task_manager_7.17.13_001\",\"id\":\"task:75cb4af0-0c7c-11ef-870
8-916653fddd74\",\"cause\":{\"type\":\"cluster_block_exception\",\"reason\":\"index [.kibana_task_manager_7.17.13_001] blocked by: [FORBIDDEN/8/index write (api)];\"},\"status\":403},{\"index\":\".kibana_task_manager_7.17.13_001\",\"id\"
:\"task:8f9d2450-1f80-11ef-aaaa-3b4e665a98c8\",\"cause\":{\"type\":\"cluster_block_exception\",\"reason\":\"index [.kibana_task_manager_7.17.13_001] blocked by: [FORBIDDEN/8/index write (api)];\"},\"status\":403},{\"index\":\".kibana_tas
k_manager_7.17.13_001\",\"id\":\"task:Fleet-Metrics-Task:1.1.1\",\"cause\":{\"type\":\"cluster_block_exception\",\"reason\":\"index [.kibana_task_manager_7.17.13_001] blocked by: [FORBIDDEN/8/index write (api)];\"},\"status\":403}]}","lo
g":{"level":"ERROR","logger":"plugins.taskManager"},"process":{"pid":54745,"uptime":801.450059669},"trace":{"id":"5cae71152747638e17e9f88d39bf18b5"},"transaction":{"id":"462ec399e47479c0"}}
{"tags":[".es-query","e71b17a0-0c89-11ef-8708-916653fddd74","rule-run-failed"],"error":{"stack_trace":"Error: Unable to create alerts client because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.\n at Object.getRulesClientWithRequest (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/plugin.js:355:15)\n at validateRuleAndCreateFakeRequest (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/rule_loader.js:51:31)\n at /usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/task_runner.js:351:79\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at TaskRunnerTimer.runWithTimer (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/task_runner_timer.js:49:20)\n at TaskRunner.prepareToRun (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/task_runner.js:301:12)\n at TaskRunner.run (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/task_runner.js:524:33)\n at TaskManagerRunner.run (/usr/share/kibana/node_modules/@kbn/task-manager-plugin/server/task_running/task_runner.js:308:22)"},"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2024-06-08T13:39:03.920-04:00","message":"Executing Rule default:.es-query:e71b17a0-0c89-11ef-8708-916653fddd74 has resulted in Error: Unable to create alerts client because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command. - Error: Unable to create alerts client because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.\n at Object.getRulesClientWithRequest (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/plugin.js:355:15)\n at validateRuleAndCreateFakeRequest (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/rule_loader.js:51:31)\n at /usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/task_runner.js:351:79\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at TaskRunnerTimer.runWithTimer (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/task_runner_timer.js:49:20)\n at TaskRunner.prepareToRun (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/task_runner.js:301:12)\n at TaskRunner.run (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/task_runner/task_runner.js:524:33)\n at TaskManagerRunner.run (/usr/share/kibana/node_modules/@kbn/task-manager-plugin/server/task_running/task_runner.js:308:22)","log":{"level":"ERROR","logger":"plugins.alerting.es-query"},"process":{"pid":52247,"uptime":1910.468272187},"span":{"id":"970a6447c2b4c9ef"},"trace":{"id":"45564587558c3cdba7f36a81f7240cbf"}}
These logs don't make any sense since I'm explicitly specifying my encryption key in my kibana.yml file. Please let me know what other information is needed to assist me with my case.