Yesterday I have updated Wazuh all in one installation from 4.3 to 4.5.
My installation is on CentOS7 64bit.
During updating no error message shown.
After finishing those wazuh central components, unable to start web consol.
Then I found, Wazuh Dashboard not started.
After executing systemctl start wazuh-dashboard, it is starting and showing Actibe but within few seconds it fails.
Error details:
[root@wazuh ~]# systemctl status wazuh-dashboard -l
● wazuh-dashboard.service - wazuh-dashboard
Loaded: loaded (/etc/systemd/system/wazuh-dashboard.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2023-10-26 10:51:39 IST; 6min ago
Process: 19483 ExecStart=/usr/share/wazuh-dashboard/bin/opensearch-dashboards -c /etc/wazuh-dashboard/opensearch_dashboards.yml (code=exited, status=1/FAILURE)
Main PID: 19483 (code=exited, status=1/FAILURE)
Oct 26 10:51:39 wazuh opensearch-dashboards[19483]: {"type":"log","@timestamp":"2023-10-26T05:21:39Z","tags":["info","savedobjects-service"],"pid":19483,"message":"Detected mapping change in \"properties.visualization-visbuilder\""}
Oct 26 10:51:39 wazuh opensearch-dashboards[19483]: {"type":"log","@timestamp":"2023-10-26T05:21:39Z","tags":["info","savedobjects-service"],"pid":19483,"message":"Creating index .kibana_2."}
Oct 26 10:51:39 wazuh opensearch-dashboards[19483]: {"type":"log","@timestamp":"2023-10-26T05:21:39Z","tags":["error","opensearch","data"],"pid":19483,"message":"[validation_exception]: Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [1000]/[1000] maximum shards open;"}
Oct 26 10:51:39 wazuh opensearch-dashboards[19483]: {"type":"log","@timestamp":"2023-10-26T05:21:39Z","tags":["warning","savedobjects-service"],"pid":19483,"message":"Unable to connect to OpenSearch. Error: validation_exception: [validation_exception] Reason: Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [1000]/[1000] maximum shards open;"}
Oct 26 10:51:39 wazuh opensearch-dashboards[19483]: {"type":"log","@timestamp":"2023-10-26T05:21:39Z","tags":["fatal","root"],"pid":19483,"message":"ResponseError: validation_exception: [validation_exception] Reason: Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [1000]/[1000] maximum shards open;\n at onBody (/usr/share/wazuh-dashboard/node_modules/@opensearch-project/opensearch/lib/Transport.js:374:23)\n at IncomingMessage.onEnd (/usr/share/wazuh-dashboard/node_modules/@opensearch-project/opensearch/lib/Transport.js:293:11)\n at IncomingMessage.emit (events.js:412:35)\n at IncomingMessage.emit (domain.js:475:12)\n at endReadableNT (internal/streams/readable.js:1333:12)\n at processTicksAndRejections (internal/process/task_queues.js:82:21) {\n meta: {\n body: { error: [Object], status: 400 },\n statusCode: 400,\n headers: {\n 'content-type': 'application/json; charset=UTF-8',\n 'content-length': '379'\n },\n meta: {\n context: null,\n request: [Object],\n name: 'opensearch-js',\n connection: [Object],\n attempts: 0,\n aborted: false\n }\n }\n}"}
Oct 26 10:51:39 wazuh opensearch-dashboards[19483]: {"type":"log","@timestamp":"2023-10-26T05:21:39Z","tags":["info","plugins-system"],"pid":19483,"message":"Stopping all plugins."}
Oct 26 10:51:39 wazuh opensearch-dashboards[19483]: FATAL {"error":{"root_cause":[{"type":"validation_exception","reason":"Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [1000]/[1000] maximum shards open;"}],"type":"validation_exception","reason":"Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [1000]/[1000] maximum shards open;"},"status":400}
Oct 26 10:51:39 wazuh systemd[1]: wazuh-dashboard.service: main process exited, code=exited, status=1/FAILURE
Oct 26 10:51:39 wazuh systemd[1]: Unit wazuh-dashboard.service entered failed state.
Oct 26 10:51:39 wazuh systemd[1]: wazuh-dashboard.service failed.
[root@wazuh ~]#
Please help.