Could not locate that index-pattern (id: [Index_Name]), click here to re-create it

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): v 2.5.0

Describe the issue: We have created a new dashboard using the Index Pattern. When we try to view the Dashboard, it works fine, but sometimes it shows an error saying Could not locate that index-pattern (id: [Index_Name]), [click here to re-create it]. I don’t know what we can do to resolve this error. Please help me to fix the error.

Configuration: OpenSearch Dashboard is working with docker image

Relevant Logs or Screenshots: Sometimes it doesn’t work and gives an error

Below is a web console error

visualizations.plugin.js:6 Error: Could not locate that index-pattern (id: email_analytics_index_pattern), [click here to re-create it](management/opensearch-dashboards/indexPatterns)
    at _callee11$ (data.plugin.js:1:835707)
    at tryCatch (customImportMapDashboards.plugin.js:13:125095)
    at Generator.invoke [as _invoke] (customImportMapDashboards.plugin.js:13:129111)
    at Generator.next (customImportMapDashboards.plugin.js:13:126290)
    at index_patterns_asyncGeneratorStep (data.plugin.js:1:822086)
    at _next (data.plugin.js:1:822411)

discover.plugin.js:6 Error: Could not locate that index-pattern (id: email_analytics_index_pattern), [click here to re-create it](management/opensearch-dashboards/indexPatterns)
    at _callee11$ (data.plugin.js:1:835707)
    at tryCatch (customImportMapDashboards.plugin.js:13:125095)
    at Generator.invoke [as _invoke] (customImportMapDashboards.plugin.js:13:129111)
    at Generator.next (customImportMapDashboards.plugin.js:13:126290)
    at index_patterns_asyncGeneratorStep (data.plugin.js:1:822086)
    at _next (data.plugin.js:1:822411)

@VijayKansagara How did you deploy your cluster?
Do you have more than one instance of OpenSearch Dashboards connecting to the same OpenSearch cluster?

Could you share your opensearch_dashboads.yml file?

Is the OpenSearch Dashboards and OpenSearch located on the same machine?

@pablo We are deploying the OpenSearch dashboard using the docker-compose.yml file. Below is the code to deploy the OpenSearch Dashboard and OpenSearch instance.


 elasticsearch:
    image: opensearchproject/opensearch:2.5.0
    ports:
      - 9200:9200
      - 9300:9300
    environment:
      - bootstrap.memory_lock=true
      - discovery.type=single-node
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
      - plugins.security.ssl.http.enabled=false
    volumes:
      - ./volumes/esdata:/usr/share/elasticsearch/data
  kibana:
    image: opensearchproject/opensearch-dashboards:2.5.0
    ports:
      - 5601:5601
    environment:
      - OPENSEARCH_HOSTS=http://admin:admin@elasticsearch:9200
      - SERVER_XSRF_DISABLEPROTECTION=true

Below are the Docker images generated after running that file.

@pablo We have deploy one instance OpenSearch and one instance OpenSearch Dashboard? Do you have any idea about this error?

@VijayKansagara I’ve checked your docker-compose.yml and used in my local deployment.
I didn’t experience the reported issue at any time. I had this running for a couple of days. I’ve used pfsense as test data.

My cluster was deployed on the Ubuntu 22 VMware VM. I’ve noticed that you’ve used Docker Desktop. Was it on your local machine or Windows Server? Is that your target production environment or you will switch to a Linux server?

Hello @pablo, I’m currently working with Windows Server and have encountered a similar issue through an alternative method. Here is the approach:

I have successfully downloaded the OpenSearch and OpenSearch Dashboard zip files, followed by their extraction. After modifying the configurations in the ‘opensearch.yml’ and ‘opensearch_dashboards.yml’ files accordingly, I proceeded to launch both instances. Subsequently, I navigated to an OpenSearch Dashboard (accessible via http://localhost:5601), from which I generated a shareable URL with the intent of accessing that specific Dashboard in a web browser. However, upon attempting to open this shared URL, I occasionally encounter an error stating Could not locate that dashboard (id: e7cfabd0-228e-11ec-8113-a935c9c5bf51).

OpensearchDashboardSharedURL

Below are the opensearch.yml and opensearch_dashboards.yml files

opensearch.yml

plugins.security.disabled: false
discovery.type: single-node
plugins.security.ssl.transport.pemcert_filepath: esnode.pem
plugins.security.ssl.transport.pemkey_filepath: esnode-key.pem
plugins.security.ssl.transport.pemtrustedcas_filepath: root-ca.pem
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.http.enabled: false
plugins.security.ssl.http.pemcert_filepath: esnode.pem
plugins.security.ssl.http.pemkey_filepath: esnode-key.pem
plugins.security.ssl.http.pemtrustedcas_filepath: root-ca.pem
plugins.security.allow_unsafe_democertificates: true
plugins.security.allow_default_init_securityindex: true
plugins.security.authcz.admin_dn: CN=kirk,OU=client,O=client,L=test, C=de
plugins.security.audit.type: internal_opensearch
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.restapi.roles_enabled: ["all_access", "security_rest_api_access"]
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [".plugins-ml-model", ".plugins-ml-task",
“.opendistro-alerting-config", ".opendistro-alerting-alert*",
".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints",
“.opendistro-anomaly-detection-state", ".opendistro-reports-",
".opensearch-notifications-", ".opensearch-notebooks", ".opensearch-observability", ".opendistro-asynchronous-search-response*", ".replication-metadata-store"]
node.max_local_storage_nodes: 3
bootstrap.memory_lock: true
plugins.security.cache.ttl_minutes: 0

opensearch_dashboards.yml

opensearch.hosts: [http://localhost:9200]
opensearch.ssl.verificationMode: none
opensearch.username: [username]
opensearch.password: [password]
opensearch.requestHeadersWhitelist: [authorization, securitytenant]

opensearch_security.multitenancy.enabled: true
opensearch_security.multitenancy.tenants.preferred: [Private, Global]
opensearch_security.readonly_mode.roles: [kibana_read_only]
# Use this setting if you are running opensearch-dashboards without https
opensearch_security.cookie.secure: false
server.xsrf.disableProtection: true
server.host: "0.0.0.0"

Could you kindly take a moment to see if you’re familiar with this issue or have any insights that might help resolve it?

@VijayKansagara Is that still 2.5.0? Have you tried latest versions?
Is there any reason why you’ve tested against 2.5.0 initially?

No, I’ve also run tests on version 2.10.0 and encountered the same result. I will verify it using the latest version and provide you with an update accordingly.

@pablo Even with the most recent update, version 2.16.0, I’m still encountering the same error.

Good afternoon! Did you manage to overcome the problem? I have the same situation on version 2.19.2.

@Aleksey.Korneev Is it exactly the same scenario?
Could you share your steps to reproduce your issue?

My scenario is much simpler:

I didn’t do anything special.

1. I created an index template (I tried to create a pattern in advanced mode by setting an ID, but looking ahead, it didn’t help.)

2. I created a dashboard and about 10 different types were created on it (including quite a few TSVB)

3. I save the dashboard and exited it

4. after I wanted to look at the dashboard again, some of the panels did not open and show


Could not locate that index-pattern (id: 82e47db0-5645-11f0-95a5-a1c0ac222b0e), click here to re-create it


in the conslole it says:


visualizations.plugin.js:6 SavedObjectNotFound: Could not locate that index-pattern (id: 82e47db0-5645-11f0-95a5-a1c0ac222b0e), click here to re-create it
at index_patterns_IndexPatternsService.get (data.plugin.js:1:1002768)
at async data.plugin.js:1:1005455
at async Promise.all (/app/index 0)
at async index_patterns_IndexPatternsService.find (data.plugin.js:1:1005495)
at async react_vis_type_ReactVisType.getUsedIndexPattern (visTypeTimeseries.plugin.js:1:148390)
at async visualizations.plugin.js:6:162219
at async dashboard_container_DashboardContainer.onPanelAdded (embeddable.plugin.js:6:61275)


that’s all
PS. After pressing F5, these panels may start working and others may stop showing.

PPS: i upgraded to 2.19.3 - everything is the same without any differences

@Aleksey.Korneev What is your cluster design? How is deployed?
Is there any reverse proxy between OpenSearch and OpenSearch Dashboards?

Did you test it with admin user? If not, could you share the role configuration?

Is the OpenSearch cluster and OpenSearch Dashboards located on the same virtual machine/server/cluster/data centre?

1 Like

I deployed a linux cluster directly on the hardware.

Installation from rpm downloaded from the website. I have 3 mgmt servers and more than 20 data servers. I have 3 dashboard servers installed on the mgmt server. I go to them directly on https://mgmt01:5601 and through the load balancer 443→5601(the error is the same in both cases). The load balancer is made of iron, all sessions from the same IP are linked to the same server. Users: I tried admin with the admin backend role, I tried a user with AD authentication with full rights (same error). I have 32 panel on my dashboard, a lot of tsvb.

@Aleksey.Korneev Just to clarify, you have 3 OpenSearch Dashboards instances conecting to the same OpenSearch cluster, is that correct?

Could you share your _cat/indices=expand_wildcards=all&s=index ?

I’d like to see only kibana indices.

Hello!

That’s right, I have 3 dashboards instances.

That is my

GET _cat/indices/.ki*?v&h=health,status,index,pri,rep,docs.count,docs.deleted,store.size,pri.store.size&expand_wildcards=all&s=index

I shadowed confidential name to some symbols…..

health status index                                                                   pri rep docs.count docs.deleted store.size pri.store.size
green  open   .kibana\_-108180244_xxxxxx_1                                             1   1          3            0     39.1kb         19.5kb
green  open   .kibana\_-1155588582_xxxxxxx_1                                             1   1          3            0     36.1kb           18kb
green  open   .kibana\_-1375854867_xxxxxxx_1                                              1   1          4            0     50.4kb         25.2kb
green  open   .kibana\_-1409707069_xxxxxxxxx_1                                    1   1          2            0     26.6kb         13.3kb
green  open   .kibana\_-1463137838_xxxxxxxxxx_1                                            1   1          2            0     26.1kb           13kb
green  open   .kibana\_-152937574_xxxxxxxx_1                                          1   1          6            1     47.9kb         21.2kb
green  open   .kibana\_-1540577593_cnouusersourootdcofficedcdomaindccom_1                 1   1          1            0     10.6kb          5.3kb
green  open   .kibana\_-1711235253_zzzztenant_1                                          1   1         25            0     81.2kb         40.6kb
green  open   .kibana\_-1807859330_zzzzzzzzzz_1                                      1   1          3            0     19.8kb          9.9kb
green  open   .kibana\_-1834017091_zzzzzzzzz_1                                              1   1          7            1     60.8kb         30.4kb
green  open   .kibana\_-1983291040_zzzzzzz_1                                         1   1          4            0       51kb         25.5kb
green  open   .kibana\_-1984045456_zzzzzz_1                                               1   1          6            0     99.1kb         49.5kb
green  open   .kibana\_-392843520_zzzzzz_1                                           1   1          6            1     51.9kb         25.9kb
green  open   .kibana\_-405143124_zzzzzz_1                                            1   1         27            2     91.6kb         45.8kb
green  open   .kibana\_-433651558_zzzzz_1                                            1   1          2            0     25.4kb         12.7kb
green  open   .kibana\_-539289301_zzzzzzzz_1                                              1   1         37            2    181.1kb         90.5kb
green  open   .kibana\_-572005275_yyyyyyyyyyyy_1                                           1   1          1            0     10.6kb          5.3kb
green  open   .kibana\_-772757623_yyyyyyyyyy_1                                           1   1          6            0     80.1kb           40kb
green  open   .kibana\_-803323445_uuuuuuuuuuuuuuuuuuu_1                                            1   1          1            0     10.6kb          5.3kb
green  open   .kibana\_-894868550_yyyyyyyyyyyyyyyyy_1                                            1   1          1            0     10.6kb          5.3kb
green  open   .kibana_1                                                                 1   1         75            9    324.4kb        162.2kb
green  open   .kibana_110251487_yyyyyyyyyyyyyyyy_1                                                 1   1          1            0     10.6kb          5.3kb
green  open   .kibana_1106230437_yyyyyyyyyyyyy_1                                             1   1          3            0     37.2kb         18.6kb
green  open   .kibana_1187752208_yyyyyyyyyyyyyyyy_1                                        1   1          6            0     50.9kb         25.4kb
green  open   .kibana_1333287206_yyyyyyyyyyyyyyy_1                                              1   1          2            0     22.4kb         13.3kb
green  open   .kibana_1437903801_cnouusersourootdcofficedcdomaindccom_1                  1   1          1            0     10.6kb          5.3kb
green  open   .kibana_1544956012_uuuuuuuuuuuuuuuuuuuuuuuu_1                                         1   1          7            0     72.2kb         36.1kb
green  open   .kibana_1722922822_iiiiiiiiiiiiii_1                                           1   1          3            0     37.1kb         18.5kb
green  open   .kibana_1823813568_iiiiiiiiiiiiiiiii_1                                       1   1          2            0     21.2kb         10.6kb
green  open   .kibana_1902385995_iiiiiiiiiiiiiiii_1                                               1   1          2            0     26.2kb         13.1kb
green  open   .kibana_1942667894_eeeeeeeeeeeeeeeeeee_1                                               1   1          6            1     48.8kb         24.4kb
green  open   .kibana_2                                                                 1   1        155            2    306.7kb        153.5kb
green  open   .kibana_2013145725_eeeeeeeeeeeeeeeeeee_1                                               1   1          3            0     35.8kb         17.9kb
green  open   .kibana_2081967814_eeeeeeeeeeeeeeeeeeee_1                                             1   1          2            0     25.6kb         12.8kb
green  open   .kibana_217571515_eeeeeeeeeeeeeeeeeee_1                                       1   1         27            5    179.7kb         89.8kb
green  open   .kibana_2226404_eeeeeeeeeeeeeeeee_1                                                    1   1          5            0     66.5kb         33.2kb
green  open   .kibana_2430142_eeeeeeeeeeeeeeeeeeeeee_1                                                    1   1         26            0     91.7kb         45.8kb
green  open   .kibana_2467_eep_1                                                         1   1        111            7    340.5kb        170.2kb
green  open   .kibana_259702516_eeeeeeeeeeeeeeeee_1                                                1   1          3            0     36.4kb         18.2kb
green  open   .kibana_2614685_eeeeeeeeeeeeeeeeeeee_1                                                    1   1          3            0     35.5kb         17.7kb
green  open   .kibana_2621_eeeeeeeeeeeeeeeee_1                                                         1   1        316           25    466.3kb        233.1kb
green  open   .kibana_451314919_eeeeeeeeeeeeeeeeeeee_1                                               1   1          4            0     53.2kb         26.6kb
green  open   .kibana_582924923_cntelktsouserviceaccountsourootdcofficedcdomaindccom_1   1   1          1            0     10.6kb          5.3kb
green  open   .kibana_65103_asdasdasd_1                                                       1   1          3            0     35.7kb         17.8kb
green  open   .kibana_68642_asdasdasd_1                                                       1   1         22            0     44.6kb         22.3kb
green  open   .kibana_68926_asdasdasd_1                                                       1   1          4            0     51.4kb         25.7kb
green  open   .kibana_69117_asdasdasd_1                                                       1   1          1            0     10.8kb          5.4kb
green  open   .kibana_72314_asdasdasd_1                                                       1   1          3            0     74.8kb         37.4kb
green  open   .kibana_76397151_asdasdasd_1                                                  1   1          2            0     22.4kb         13.3kb
green  open   .kibana_77181_asdasdasd_1                                                       1   1         62            7    307.6kb        153.8kb
green  open   .kibana_77568_asdasdasd_1                                                       1   1          9            2    146.8kb         73.4kb
green  open   .kibana_78557_asdsasdasds_1                                                       1   1         79           15      215kb        107.5kb
green  open   .kibana_81886_aaaaaaaaaaa_1                                                       1   1          2            0    103.9kb         51.9kb
green  open   .kibana_82494_aaaaaaaaaaaaaaaaaa_1                                                       1   1          4            0     49.6kb         24.8kb
green  open   .kibana_92668751_admin_1                                                  1   1          8            0     52.8kb         26.4kb

@Aleksey.Korneev Do you see this issue in a specific tenant, or are all of the tenants affected?

Hello!

I see exactly this problem in different tenant. The first thing I did was check it out.