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][RUNTIME][2.0.0] NotificationsDashboards case dashboards not able to start with MODULE_NOT_FOUND #410

Closed
peterzhuamazon opened this issue Apr 15, 2022 · 0 comments · Fixed by #411
Assignees

Comments

@peterzhuamazon
Copy link
Member

How to reproduce:

OpenSearch:
wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.0.0-rc1/2500/linux/x64/tar/dist/opensearch/opensearch-2.0.0-rc1-linux-x64.tar.gz

Dashboards:
wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/2.0.0-rc1/2939/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-2.0.0-rc1-linux-x64.tar.gz

Start both opensearch and dashboards and the latter cannot start.

  log   [21:47:48.873] [fatal][root] Error: Cannot find module '../../common'
Require stack:
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/routes/configRoutes.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/routes/index.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/plugin.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/index.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/plugin.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/discovery/plugins_discovery.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/discovery/index.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/plugins_service.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/index.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/index.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/cli/serve/serve.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/cli/cli.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/cli/dist.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Module.Hook._require.Module.require (<>/2.0.0/opensearch-dashboards-2.0.0-rc1/node_modules/require-in-the-middle/index.js:61:29)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.<anonymous> (<>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/routes/configRoutes.ts:11:1)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at Module.Hook._require.Module.require (<>/2.0.0/opensearch-dashboards-2.0.0-rc1/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (<>/2.0.0/opensearch-dashboards-2.0.0-rc1/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (<>/2.0.0/opensearch-dashboards-2.0.0-rc1/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (<>/2.0.0/opensearch-dashboards-2.0.0-rc1/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (<>/2.0.0/opensearch-dashboards-2.0.0-rc1/node_modules/require-in-the-middle/index.js:80:39)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.<anonymous> (<>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/routes/index.ts:7:1) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/routes/configRoutes.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/routes/index.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/plugin.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/index.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/plugin.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/discovery/plugins_discovery.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/discovery/index.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/plugins_service.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/index.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/index.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/cli/serve/serve.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/cli/cli.js',
    '<>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/cli/dist.js'
  ]
}

 FATAL  Error: Cannot find module '../../common'
Require stack:
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/routes/configRoutes.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/routes/index.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/plugin.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/plugins/notificationsDashboards/server/index.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/plugin.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/discovery/plugins_discovery.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/discovery/index.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/plugins_service.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/plugins/index.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/core/server/index.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/cli/serve/serve.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/cli/cli.js
- <>/2.0.0/opensearch-dashboards-2.0.0-rc1/src/cli/dist.js
@peterzhuamazon peterzhuamazon changed the title [BUG][RUNTIME][2.0.0] [BUG][RUNTIME][2.0.0] NotificationsDashboards case dashboards not able to start with MODULE_NOT_FOUND Apr 15, 2022
kavilla added a commit to kavilla/notifications that referenced this issue Apr 15, 2022
Need to include common to be compiled down with the release
artifact.

Issue resolved:
opensearch-project#410

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
@kavilla kavilla linked a pull request Apr 15, 2022 that will close this issue
6 tasks
ansjcy pushed a commit to opensearch-project/dashboards-notifications that referenced this issue Jan 9, 2023
Need to include common to be compiled down with the release
artifact.

Issue resolved:
opensearch-project/notifications#410

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
ansjcy pushed a commit to opensearch-project/dashboards-notifications that referenced this issue Jan 9, 2023
Need to include common to be compiled down with the release
artifact.

Issue resolved:
opensearch-project/notifications#410

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
AMoo-Miki pushed a commit to AMoo-Miki/dashboards-notifications that referenced this issue Feb 22, 2023
Need to include common to be compiled down with the release
artifact.

Issue resolved:
opensearch-project/notifications#410

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants