Hello need help..
wazuh-dashboard failure after upgrade to v4.9
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: {"type":"log","@timestamp":"2024-09-24T08:43:45Z","tags":["error","opensearch","data"],"pid":56585,"message":"[validation_exception]: Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [1000]/[1000] maximum shards open;"}
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: {"type":"log","@timestamp":"2024-09-24T08:43:45Z","tags":["warning","savedobjects-service"],"pid":56585,"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;"}
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: {"type":"log","@timestamp":"2024-09-24T08:43:45Z","tags":["fatal","root"],"pid":56585,"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 (node:events:529:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1400:12)\n at processTicksAndRejections (node:internal/process/task_queues: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}"}
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: {"type":"log","@timestamp":"2024-09-24T08:43:45Z","tags":["info","plugins-system"],"pid":56585,"message":"Stopping all plugins."}
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: 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}
Sep 24 16:43:45 wazuh-server systemd[1]: wazuh-dashboard.service: Main process exited, code=exited, status=1/FAILURE
Sep 24 16:43:45 wazuh-server systemd[1]: wazuh-dashboard.service: Failed with result 'exit-code'.
Sep 24 16:43:45 wazuh-server systemd[1]: wazuh-dashboard.service: Consumed 11.767s CPU time.
# systemctl status wazuh-dashboard
× wazuh-dashboard.service - wazuh-dashboard
Loaded: loaded (/etc/systemd/system/wazuh-dashboard.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-09-24 16:43:45 +08; 12min ago
Process: 56585 ExecStart=/usr/share/wazuh-dashboard/bin/opensearch-dashboards (code=exited, status=1/FAILURE)
Main PID: 56585 (code=exited, status=1/FAILURE)
CPU: 11.767s
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: {"type":"log","@timestamp":"2024-09-24T08:43:45Z","tags":["info","savedobjects-service"],"pid":565>
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: {"type":"log","@timestamp":"2024-09-24T08:43:45Z","tags":["info","savedobjects-service"],"pid":565>
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: {"type":"log","@timestamp":"2024-09-24T08:43:45Z","tags":["error","opensearch","data"],"pid":56585>
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: {"type":"log","@timestamp":"2024-09-24T08:43:45Z","tags":["warning","savedobjects-service"],"pid":>
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: {"type":"log","@timestamp":"2024-09-24T08:43:45Z","tags":["fatal","root"],"pid":56585,"message":"R>
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: {"type":"log","@timestamp":"2024-09-24T08:43:45Z","tags":["info","plugins-system"],"pid":56585,"me>
Sep 24 16:43:45 wazuh-server opensearch-dashboards[56585]: FATAL {"error":{"root_cause":[{"type":"validation_exception","reason":"Validation Failed: 1: thi>
Sep 24 16:43:45 wazuh-server systemd[1]: wazuh-dashboard.service: Main process exited, code=exited, status=1/FAILURE
Sep 24 16:43:45 wazuh-server systemd[1]: wazuh-dashboard.service: Failed with result 'exit-code'.
Sep 24 16:43:45 wazuh-server systemd[1]: wazuh-dashboard.service: Consumed 11.767s CPU time.
# cat /etc/wazuh-dashboard/opensearch_dashboards.yml
server.host: 0.0.0.0
server.port: 443
opensearch.ssl.verificationMode: certificate
#opensearch.username:
#opensearch.password:
opensearch.requestHeadersAllowlist: ["securitytenant","Authorization"]
opensearch_security.multitenancy.enabled: false
opensearch_security.readonly_mode.roles: ["kibana_read_only"]
server.ssl.enabled: true
server.ssl.key: "/etc/wazuh-dashboard/certs/dashboard-key.pem"
server.ssl.certificate: "/etc/wazuh-dashboard/certs/dashboard.pem"
opensearch.ssl.certificateAuthorities: ["/etc/wazuh-dashboard/certs/root-ca.pem"]
uiSettings.overrides.defaultRoute: /app/wz-home
All status indexer, manager, and filebeat are OK
# systemctl status wazuh-indexer
● wazuh-indexer.service - wazuh-indexer
Loaded: loaded (/lib/systemd/system/wazuh-indexer.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2024-09-24 16:33:02 +08; 25min ago
Main PID: 47287 (java)
Tasks: 138 (limit: 14191)
Memory: 5.1G
CPU: 5min 16.820s
CGroup: /system.slice/wazuh-indexer.service
└─47287 /usr/share/wazuh-indexer/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cache.ttl=60 -Dopensearch.networkaddress.cache.negative.t>
# systemctl status wazuh-manager
● wazuh-manager.service - Wazuh manager
Loaded: loaded (/lib/systemd/system/wazuh-manager.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2024-09-24 16:40:29 +08; 17min ago
Tasks: 252 (limit: 14191)
Memory: 283.9M
CPU: 56.731s
CGroup: /system.slice/wazuh-manager.service
├─53580 /var/ossec/framework/python/bin/python3 /var/ossec/api/scripts/wazuh_apid.py
├─53581 /var/ossec/framework/python/bin/python3 /var/ossec/api/scripts/wazuh_apid.py
├─53584 /var/ossec/framework/python/bin/python3 /var/ossec/api/scripts/wazuh_apid.py
├─53587 /var/ossec/framework/python/bin/python3 /var/ossec/api/scripts/wazuh_apid.py
├─53628 /var/ossec/bin/wazuh-authd
├─53650 /var/ossec/bin/wazuh-db
├─53669 /var/ossec/bin/wazuh-execd
├─53694 /var/ossec/bin/wazuh-analysisd
├─53725 /var/ossec/bin/wazuh-syscheckd
├─53739 /var/ossec/bin/wazuh-remoted
├─53900 /var/ossec/bin/wazuh-logcollector
├─53925 /var/ossec/bin/wazuh-monitord
└─53956 /var/ossec/bin/wazuh-modulesd
# filebeat test output
elasticsearch: https://127.0.0.1:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 127.0.0.1
dial up... OK
TLS...
security: server's certificate chain verification is enabled
handshake... OK
TLS version: TLSv1.2
dial up... OK
talk to server... OK
version: 7.10.2