Skip to content

[BUG] Opensearch 2.9.0 - Failed to initialize LogType config index and builtin log types #9061

Open
@crazymind1337

Description

Describe the bug
I am trying to install the new version of opensearch on Ubuntu 20.04. But the cluster state stays at yellow.

To Reproduce
Steps to reproduce the behavior:

  1. Install opensearch 2.9.0 on Ubuntu 20.04
  2. configure a basic setting:
cluster.name: cluster
http.port: 9200
network.host: <local-ip>
node.name: test-node-1
path.data: "/var/lib/opensearch"
path.logs: "/var/log/opensearch"
plugins.security.disabled: true
transport.host: <local-ip>
transport.tcp.port: 9300
cluster.initial_cluster_manager_nodes: test-node-1
discovery.seed_hosts: test-node-1
  1. start opensearch service
  2. check logs

Expected behavior
Cluster state becomes green.

 ~# curl --silent --connect-timeout 3 --header 'Host: stats' --write-out '%{http_code}' "http://<local-ip>:9200/_cluster/health?pretty=true"
{
  "cluster_name" : "cluster",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "discovered_master" : true,
  "discovered_cluster_manager" : true,
  "active_primary_shards" : 4,
  "active_shards" : 4,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 3,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 57.14285714285714
}

Plugins
Basic installation.

Screenshots
%

Host/Environment (please complete the following information):

  • OS: Ubuntu 20.04 (updates installed)
  • Version 2.9.0

Additional context
In the logs of opensearch I am able to discover the following informations:

[2023-08-02T11:07:51,126][ERROR][o.o.s.u.SecurityAnalyticsException] [test-node-1] Security Analytics error:
org.opensearch.ResourceAlreadyExistsException: index [.opensearch-sap-pre-packaged-rules-config/CWaJHMTdTlmZSg9zl5rPaA] already exists
[2023-08-02T11:07:51,149][WARN ][o.o.s.SecurityAnalyticsPlugin] [test-node-1] Failed initializing prepackaged rules
org.opensearch.securityanalytics.util.SecurityAnalyticsException: index [.opensearch-sap-pre-packaged-rules-config/CWaJHMTdTlmZSg9zl5rPaA] already exists
[2023-08-02T11:07:51,196][WARN ][o.o.s.SecurityAnalyticsPlugin] [test-node-1] Failed to initialize LogType config index and builtin log types
[2023-08-02T11:07:52,152][INFO ][o.o.c.r.a.AllocationService] [test-node-1] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.opensearch-sap-log-types-config][0]]]).

Complete log can be found at: https://justpaste.it/c9c32

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions