FATAL Error: Start lifecycle of "wazuhCore" plugin wasn't completed in 30sec

My current setup has opensearch and dashboard running in docker with wazuh dashboard plugins installed,it’s current version is 2.13.I am planning to upgrade the opensearch version to 2.16.0,for that I have custom built wazuh dashboard plugins for the same.But after upgrading the opensearch dashboard version and installing the wazuh plugins, upon restarting the opensearch dashboard container it exits with the following error:

{"type":"log","@timestamp":"2024-12-14T08:11:54Z","tags":["fatal","root"],"pid":1,"message":"Error: Start lifecycle of \"wazuhCore\" plugin wasn't completed in 30sec. Consider disabling the plugin and re-start.\n    at Timeout._onTimeout (/usr/share/opensearch-dashboards/node_modules/@osd/std/target/node/promise.js:42:90)\n    at listOnTimeout (node:internal/timers:569:17)\n    at processTimers (node:internal/timers:512:7)"}
{"type":"log","@timestamp":"2024-12-14T08:11:54Z","tags":["info","plugins-system"],"pid":1,"message":"Stopping all plugins."}   

 FATAL  Error: Start lifecycle of "wazuhCore" plugin wasn't completed in 30sec. Consider disabling the plugin and re-start.

I increased the plugin initialization timeout and all, but nothing seems to be working.

But installing the same wazuh plugins in a fresh opensearch installation seems to be working fine without any issues.

How do i get this to work with my existing opensearch setup.

OpenSearch Version
2.16.0

Dashboards Version
2.16.0

**Host/Environment **

  • Docker