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] Dashboards fails to come up on main #5952

Closed
derek-ho opened this issue Feb 26, 2024 · 7 comments
Closed

[BUG] Dashboards fails to come up on main #5952

derek-ho opened this issue Feb 26, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@derek-ho
Copy link
Contributor

derek-ho commented Feb 26, 2024

Describe the bug
OSD doesn't come up healthy when running the built artifact:

{"type":"log","@timestamp":"2024-02-26T15:44:26Z","tags":["fatal","root"],"pid":4346,"message":"Error: Cannot find module './authentication_methods_registry.mock'\nRequire stack:\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/plugins/data_source/server/auth_registry/index.js\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/plugins/data_source/server/plugin.js\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/plugins/data_source/server/index.js\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/plugins/plugin.js\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/plugins/discovery/plugins_discovery.js\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/plugins/discovery/index.js\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/plugins/plugins_service.js\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/plugins/index.js\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/index.js\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/cli/serve/serve.js\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/cli/cli.js\n- /home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/cli/dist.js\n at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)\n at Module.Hook._require.Module.require (/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/node_modules/require-in-the-middle/index.js:61:29)\n at require (node:internal/modules/helpers:177:18)\n at Object.<anonymous> (/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/plugins/data_source/server/auth_registry/index.js:25:41)\n at Module._compile (node:internal/modules/cjs/loader:1356:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1414:10)\n at Module.load (node:internal/modules/cjs/loader:1197:32)\n at Function.Module._load (node:internal/modules/cjs/loader:1013:12)\n at Module.require (node:internal/modules/cjs/loader:1225:19)\n at Module.Hook._require.Module.require (/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/node_modules/require-in-the-middle/index.js:80:39) {\n code: 'MODULE_NOT_FOUND',\n requireStack: [\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/plugins/data_source/server/auth_registry/index.js',\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/plugins/data_source/server/plugin.js',\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/plugins/data_source/server/index.js',\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/plugins/plugin.js',\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/plugins/discovery/plugins_discovery.js',\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/plugins/discovery/index.js',\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/plugins/plugins_service.js',\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/plugins/index.js',\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/core/server/index.js',\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/cli/serve/serve.js',\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/cli/cli.js',\n '/home/runner/work/index-management-dashboards-plugin/index-management-dashboards-plugin/opensearch-dashboards-3.0.0-linux-x64/src/cli/dist.js'\n ]\n}"}

opensearch-project/index-management-dashboards-plugin#999 (comment)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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

OpenSearch Version
Please list the version of OpenSearch being used.

Dashboards Version
Please list the version of OpenSearch Dashboards being used.

Plugins

Please list all plugins currently enabled.

Screenshots

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.

@derek-ho derek-ho added bug Something isn't working untriaged labels Feb 26, 2024
@derek-ho
Copy link
Contributor Author

@bandinib-amzn can you take a look? This issue seems to have something to do with authentication_methods_registry.mock, which I see you added to core recently.

@bandinib-amzn
Copy link
Member

Taking a look.

@bandinib-amzn bandinib-amzn self-assigned this Feb 27, 2024
@bandinib-amzn
Copy link
Member

@derek-ho Which command gives this error? I'm unable to reproduce the issue. Also while merging PR all checks were successful. But checking about log I think https://github.com/bandinib-amzn/OpenSearch-Dashboards/blob/main/src/plugins/data_source/server/auth_registry/index.ts#L11 this line could be causing issue.

@derek-ho
Copy link
Contributor Author

derek-ho commented Feb 27, 2024

@bandinib-amzn the error is coming when you run ./bin/opensearch-dashboards from the built artifact. Reproduction steps should be run yarn build then in the build folder run ./bin/opensearch-dashboards

@bandinib-amzn
Copy link
Member

Thanks @derek-ho. Raising PR for fix shortly.

@bandinib-amzn
Copy link
Member

PR #5970 for fix has been merged to main branch.

@bandinib-amzn
Copy link
Member

Fixed issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants