Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Discover page hang forever when no index pattern #7626

Open
Hailong-am opened this issue Aug 6, 2024 · 7 comments
Open

[BUG] Discover page hang forever when no index pattern #7626

Hailong-am opened this issue Aug 6, 2024 · 7 comments
Assignees
Labels
bug Something isn't working discover-next

Comments

@Hailong-am
Copy link
Collaborator

Describe the bug

when there is no index pattern, the discover page hang for long time and can't render.

To Reproduce
Steps to reproduce the behavior:

  1. setup a new OSD instance and don't import any sample data
  2. Click on Discover on left navigation, the page URL will be http://localhost:5601/app/data-explorer/discover#?_a=(discover:(columns:!(_source),isDirty:!f,sort:!()),metadata:(indexPattern:'',view:discover))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
  3. Page start hang and no responding

Expected behavior
A clear and concise description of what you expected to happen.

OpenSearch Version
main

Dashboards Version
main

Plugins

Please list all plugins currently enabled.

Screenshots

discovery.mov

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

@Hailong-am Hailong-am added bug Something isn't working untriaged labels Aug 6, 2024
@ruanyl
Copy link
Member

ruanyl commented Aug 13, 2024

Sharing the screenshot:
image

@samegens
Copy link

I noticed this as well with the recommended docker-compose.yml from https://opensearch.org/docs/latest/install-and-configure/install-opensearch/docker/. When I replaced the latest tag with 2.15.0 the Discover page works as expected. So it seems this is a bug introduced in 2.16.0.

@markgoddard
Copy link

Also seeing this using 2.16.0. Reverted to 2.15.0 and it worked.

@dblock
Copy link
Member

dblock commented Aug 26, 2024

[Catch All Triage - 1, 2, 3, 4, 5]

openstack-mirroring pushed a commit to openstack/kolla that referenced this issue Sep 6, 2024
OpenSearch Dashboards 2.16.0 discover page hangs after initial
deployment due to an upstream bug [1].

This change fixes the issue by pinning OpenSearch Dashboards to 2.15.

Note that it seemed safer not to pin OpenSearch to fix this issue, to
avoid breaking deployments that have already deployed 2.16.

[1] opensearch-project/OpenSearch-Dashboards#7626

Closes-Bug: #2077319
Change-Id: I0de9928b2657ab5f31580325e866bff28f2b5510
openstack-mirroring pushed a commit to openstack/openstack that referenced this issue Sep 6, 2024
* Update kolla from branch 'master'
  to c4b12b1ace851b719d63d696ae6a221d535876fb
  - Merge "Pin OpenSearch Dashboards to 2.15"
  - Pin OpenSearch Dashboards to 2.15
    
    OpenSearch Dashboards 2.16.0 discover page hangs after initial
    deployment due to an upstream bug [1].
    
    This change fixes the issue by pinning OpenSearch Dashboards to 2.15.
    
    Note that it seemed safer not to pin OpenSearch to fix this issue, to
    avoid breaking deployments that have already deployed 2.16.
    
    [1] opensearch-project/OpenSearch-Dashboards#7626
    
    Closes-Bug: #2077319
    Change-Id: I0de9928b2657ab5f31580325e866bff28f2b5510
@JordanBarnartt
Copy link

JordanBarnartt commented Sep 6, 2024

We're running into this on a fresh deploy of 2.16.0 as well. I tried to roll back Dashboards to 2.15.0, but am getting the following error trying to start up Dashboards:

WreckHttpsOptions properties:
 | type=log @timestamp=2024-09-06T19:27:33Z tags=["info","plugins","securityDashboards"] pid=1

Error: Setup lifecycle of "securityDashboards" plugin wasn't completed in 30sec. Consider disabling the plugin and re-start.
    at Timeout._onTimeout (/usr/share/opensearch-dashboards/node_modules/@osd/std/target/node/promise.js:42:90)
    at listOnTimeout (node:internal/timers:569:17)
    at processTimers (node:internal/timers:512:7) | type=log @timestamp=2024-09-06T19:28:03Z tags=["fatal","root"] pid=1

Stopping all plugins. | type=log @timestamp=2024-09-06T19:28:03Z tags=["info","plugins-system"] pid=1

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

If anyone has any suggestions, I'm all ears. Right now, I'm thinking it's some issue with the Security index, and I'll need to do a full redeploy down to 2.15.0 on the Opensearch nodes as well.

Edit: Okay, the issue was Dashboards crashing was actually our OIDC configuration. Proxy support for OIDC was added in 2.16.0, and that's something we use. After disabling OIDC, I was able to back up to 2.15.0, create some Index Patterns, then upgrade back to 2.16.0, and Discover is working!

@10000-ki
Copy link

10000-ki commented Sep 9, 2024

Can it be fixed in the next version?

@Hailong-am
Copy link
Collaborator Author

Can it be fixed in the next version?

I have a PR to fix this #8082, that will need @kavilla to help review

openstack-mirroring pushed a commit to openstack/kolla that referenced this issue Sep 19, 2024
OpenSearch Dashboards 2.16.0 discover page hangs after initial
deployment due to an upstream bug [1].

This change fixes the issue by pinning OpenSearch Dashboards to 2.15.

Note that it seemed safer not to pin OpenSearch to fix this issue, to
avoid breaking deployments that have already deployed 2.16.

[1] opensearch-project/OpenSearch-Dashboards#7626

Closes-Bug: #2077319
Change-Id: I0de9928b2657ab5f31580325e866bff28f2b5510
(cherry picked from commit 3c49991)
openstack-mirroring pushed a commit to openstack/kolla that referenced this issue Sep 19, 2024
OpenSearch Dashboards 2.16.0 discover page hangs after initial
deployment due to an upstream bug [1].

This change fixes the issue by pinning OpenSearch Dashboards to 2.15.

Note that it seemed safer not to pin OpenSearch to fix this issue, to
avoid breaking deployments that have already deployed 2.16.

[1] opensearch-project/OpenSearch-Dashboards#7626

Closes-Bug: #2077319
Change-Id: I0de9928b2657ab5f31580325e866bff28f2b5510
(cherry picked from commit 3c49991)
openstack-mirroring pushed a commit to openstack/kolla that referenced this issue Sep 19, 2024
OpenSearch Dashboards 2.16.0 discover page hangs after initial
deployment due to an upstream bug [1].

This change fixes the issue by pinning OpenSearch Dashboards to 2.15.

Note that it seemed safer not to pin OpenSearch to fix this issue, to
avoid breaking deployments that have already deployed 2.16.

[1] opensearch-project/OpenSearch-Dashboards#7626

Closes-Bug: #2077319
Change-Id: I0de9928b2657ab5f31580325e866bff28f2b5510
(cherry picked from commit 3c49991)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working discover-next
Projects
None yet
Development

No branches or pull requests

9 participants