wazuh dashboard does not work

172 views
Skip to first unread message

Jaime

unread,
Jul 9, 2024, 4:57:26 AM7/9/24
to Wazuh | Mailing List
Hi, I decided to make a fresh docker wazuh setip on a oracle 9. I installed it with my own certs and everything, following as it says the docs. But when I go to the dashboard, it appears this message:
"Wazuh dashboard server is not ready yet"

I checked the dashboard logs and it shows these errors:

```
Created OpenSearch Dashboards keystore in /usr/share/wazuh-dashboard/config/opensearch_dashboards.keystore
Wazuh APP already configured
{"type":"log","@timestamp":"2024-07-09T08:45:54Z","tags":["info","plugins-service"],"pid":55,"message":"Plugin \"dataSourceManagement\" has been disabled since the following direct or transitive dependencies are missing or disabled: [dataSource]"}
{"type":"log","@timestamp":"2024-07-09T08:45:54Z","tags":["info","plugins-service"],"pid":55,"message":"Plugin \"dataSource\" is disabled."}
{"type":"log","@timestamp":"2024-07-09T08:45:54Z","tags":["info","plugins-service"],"pid":55,"message":"Plugin \"visTypeXy\" is disabled."}
{"type":"log","@timestamp":"2024-07-09T08:45:54Z","tags":["warning","config","deprecation"],"pid":55,"message":"\"opensearch.requestHeadersWhitelist\" is deprecated and has been replaced by \"opensearch.requestHeadersAllowlist\""}
{"type":"log","@timestamp":"2024-07-09T08:45:54Z","tags":["info","plugins-system"],"pid":55,"message":"Setting up [48] plugins: [usageCollection,opensearchDashboardsUsageCollection,opensearchDashboardsLegacy,mapsLegacy,share,opensearchUiShared,legacyExport,embeddable,expressions,data,home,apmOss,savedObjects,reportsDashboards,dashboard,visualizations,visTypeVega,visTypeTimeline,visTypeTable,visTypeMarkdown,visBuilder,visAugmenter,alertingDashboards,tileMap,regionMap,customImportMapDashboards,inputControlVis,ganttChartDashboards,visualize,indexManagementDashboards,notificationsDashboards,management,indexPatternManagement,advancedSettings,console,dataExplorer,charts,visTypeVislib,visTypeTimeseries,visTypeTagcloud,visTypeMetric,discover,savedObjectsManagement,securityDashboards,wazuhCore,wazuhCheckUpdates,wazuh,bfetch]"}
{"type":"log","@timestamp":"2024-07-09T08:45:54Z","tags":["info","savedobjects-service"],"pid":55,"message":"Waiting until all OpenSearch nodes are compatible with OpenSearch Dashboards before starting saved objects migrations..."}
{"type":"log","@timestamp":"2024-07-09T08:45:54Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: connect ECONNREFUSED 10.10.2.3:9200"}
{"type":"log","@timestamp":"2024-07-09T08:45:54Z","tags":["error","savedobjects-service"],"pid":55,"message":"Unable to retrieve version information from OpenSearch nodes."}
{"type":"log","@timestamp":"2024-07-09T08:45:57Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: connect ECONNREFUSED 10.10.2.3:9200"}
{"type":"log","@timestamp":"2024-07-09T08:45:59Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: connect ECONNREFUSED 10.10.2.3:9200"}
{"type":"log","@timestamp":"2024-07-09T08:46:02Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: connect ECONNREFUSED 10.10.2.3:9200"}
{"type":"log","@timestamp":"2024-07-09T08:46:04Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: connect ECONNREFUSED 10.10.2.3:9200"}
{"type":"log","@timestamp":"2024-07-09T08:46:08Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: connect ECONNREFUSED 10.10.2.3:9200"}
{"type":"log","@timestamp":"2024-07-09T08:46:09Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: connect ECONNREFUSED 10.10.2.3:9200"}
{"type":"log","@timestamp":"2024-07-09T08:46:12Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: connect ECONNREFUSED 10.10.2.3:9200"}
{"type":"log","@timestamp":"2024-07-09T08:46:15Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: connect ECONNREFUSED 10.10.2.3:9200"}
{"type":"log","@timestamp":"2024-07-09T08:46:17Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: connect ECONNREFUSED 10.10.2.3:9200"}
{"type":"log","@timestamp":"2024-07-09T08:46:19Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: connect ECONNREFUSED 10.10.2.3:9200"}
{"type":"log","@timestamp":"2024-07-09T08:46:22Z","tags":["error","opensearch","data"],"pid":55,"message":"[ConnectionError]: getaddrinfo ENOTFOUND wazuh.indexer"}
```

Jaime

unread,
Jul 9, 2024, 4:57:45 AM7/9/24
to Wazuh | Mailing List
Any help would be awesome!

Jaime

unread,
Jul 9, 2024, 5:00:11 AM7/9/24
to Wazuh | Mailing List
Also, when I inspect the indexer container, it seems to not have an IP address assigned:
5171ccb30103   wazuh/wazuh-indexer:4.8.0     "/entrypoint.sh open…"   13 minutes ago   Restarting (1) 4 seconds ago                                                                                                                                                                   single-node-wazuh.indexer-1
[root@wazuh-server ~/docker/wazuh-docker/single-node]# docker inspect 5171ccb30103  | grep IPAddress
            "SecondaryIPAddresses": null,
            "IPAddress": "",
                    "IPAddress": "",

Jaime

unread,
Jul 9, 2024, 5:09:24 AM7/9/24
to Wazuh | Mailing List
Just to be clear, this is how I have the wazuh certs on config/wazuh_indexer_ssl_certs:

|certificate                          | key                                           |
------------------------------------------------------------------------------------------
|admin.pem                        | admin-key.pem                      |
| root-ca-manager.pem    | root-ca.pem                            | 
| wazuh.dashboard.pem | wazuh.dashboard-key.pem  |
| wazuh.indexer.pem        | wazuh.indexer-key.pem       |
| wazuh.mnager.pem       | wazuh.manager-key.pem    |

Jaime

unread,
Jul 9, 2024, 7:58:03 AM7/9/24
to Wazuh | Mailing List
Just to clarify, indexer and manager seems to work, becase I can use the API. The only thing that doesn't work is the dashboard

Jaime

unread,
Jul 10, 2024, 10:32:38 AM7/10/24
to Wazuh | Mailing List
My bad, I didn't put the CA files. It works perfectly fine

Nicolas Alejandro Bertoldo

unread,
Jul 11, 2024, 9:39:44 AM7/11/24
to Wazuh | Mailing List
Hi Jaime,

Great that you were able to fix it! Below is the documentation on how to install Wazuh on Docker, which can be useful for the community:

Deployment on Docker

Please let me know if you have any other questions.
Regards
Reply all
Reply to author
Forward
0 new messages