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

packages/kbn-ui-shared-deps-npm/webpack.config.js build failed when running yarn kbn bootstrap --force-install #147075

Closed
YangYouYong opened this issue Dec 6, 2022 · 4 comments
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team

Comments

@YangYouYong
Copy link

YangYouYong commented Dec 6, 2022

Kibana version: 8.5

Elasticsearch version: 8.5

Server OS version: MacOS 12.6

Browser version:

Browser OS version:

Original install method (e.g. download page, yum, from source, etc.): source code clone from github

Describe the bug:

Steps to reproduce:

  1. clone source code from github, checkout branch 8.5
    2.switch local node to 16.18.1 and run yarn kbn bootstrap --force-install

Expected behavior:

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

yarn kbn clean && yarn kbn bootstrap --force-install --verbose_failures --sandbox_debug
yarn run v1.22.19
$ node scripts/kbn clean
warn This command is only necessary for the circumstance where you need to recover a consistent
     state when problems arise. If you need to run this command often, please let us know by
     filling out this form: https://ela.st/yarn-kbn-clean.
     
     Please note it might not solve problems with node_modules. To solve problems around node_modules
     you might need to run 'yarn kbn reset'.
     
[bazel] INFO: Invocation ID: d5db3277-41a1-419d-843a-d312e23944e4
[bazel] INFO: Starting clean.
[bazel] 
success soft cleaned bazel
✨  Done in 2.75s.
yarn run v1.22.19
$ node scripts/kbn bootstrap --force-install --verbose_failures --sandbox_debug
[bazel] INFO: Invocation ID: 4273bf38-78ba-456c-af74-61cbe7ae2c87
[bazel] INFO: Starting clean.
[bazel] 
success hard cleaned bazel
[bazel] Starting local Bazel server and connecting to it...
[bazel] INFO: Invocation ID: 3f62c089-8ff3-4640-a7dc-f8d28f2e8cd5
[bazel] INFO: Analyzed target @nodejs//:yarn (2 packages loaded, 3 targets configured).
[bazel] INFO: Found 1 target...
[bazel] INFO: Elapsed time: 9.810s, Critical Path: 0.83s
[bazel] INFO: 1 process: 1 internal.
[bazel] INFO: Running command line: /private/var/tmp/xxxxxx/6d47d9042b3face804094576dec1179a/external/nodejs_darwin_amd64/bin/yarn
[bazel] $ node ./preinstall_check
[bazel] [1/4] Resolving packages...
[bazel] warning Resolution field "[email protected]" is incompatible with requested version "[email protected]"
[bazel] warning Resolution field "[email protected]" is incompatible with requested version "typescript@^3.3.3333"
[bazel] warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/node@^10.1.0"
[bazel] warning Resolution field "[email protected]" is incompatible with requested version "typescript@^4.8.3"
[bazel] warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/node@^14.14.31"
[bazel] warning Resolution field "[email protected]" is incompatible with requested version "typescript@^3.5.3"
[bazel] [2/4] Fetching packages...
[bazel] [3/4] Linking dependencies...
[bazel] warning " > @elastic/[email protected]" has incorrect peer dependency "typescript@~4.5.3".
[bazel] warning " > @mapbox/[email protected]" has unmet peer dependency "mapbox-gl@>=0.32.1 <2.0.0".
[bazel] warning " > [email protected]" has incorrect peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0".
[bazel] warning " > [email protected]" has incorrect peer dependency "react-dom@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0".
[bazel] warning " > [email protected]" has incorrect peer dependency "react@^0.14.9 || ^15.0.0 || ^16.0.0".
[bazel] warning " > [email protected]" has incorrect peer dependency "react@^0.14.8 || ^15 || ^16".
[bazel] warning " > [email protected]" has incorrect peer dependency "react-dom@^0.14.8 || ^15 || ^16".
[bazel] warning " > [email protected]" has incorrect peer dependency "[email protected] || 16.x".
[bazel] warning " > [email protected]" has incorrect peer dependency "react@^15.3.0 || ^16.0.0-alpha".
[bazel] warning " > [email protected]" has incorrect peer dependency "react-dom@^15.3.0 || ^16.0.0-alpha".
[bazel] warning " > [email protected]" has incorrect peer dependency "[email protected] - 16.x".
[bazel] warning " > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
[bazel] warning " > @bazel/[email protected]" has incorrect peer dependency "typescript@>=3.0.0 <4.4.0".
[bazel] warning " > @elastic/[email protected]" has incorrect peer dependency "eslint@>=5, <7".
[bazel] warning "@elastic/github-checks-reporter > @octokit/rest > @octokit/[email protected]" has unmet peer dependency "@octokit/core@>=3".
[bazel] warning "@storybook/addon-storyshots > [email protected]" has unmet peer dependency "preact@>=10".
[bazel] warning " > @storybook/[email protected]" has unmet peer dependency "require-from-string@^2.0.2".
[bazel] warning Workspaces can only be enabled in private projects.
[bazel] [4/4] Building fresh packages...
success yarn deps installed
[bazel] INFO: Invocation ID: a90d34b1-b8ad-4a4c-8203-668b16c9cbb2
[bazel] $ node ./preinstall_check
[bazel] [1/4] Resolving packages...
[bazel] warning Resolution field "[email protected]" is incompatible with requested version "[email protected]"
[bazel] warning Resolution field "[email protected]" is incompatible with requested version "typescript@^3.3.3333"
[bazel] warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/node@^10.1.0"
[bazel] warning Resolution field "[email protected]" is incompatible with requested version "typescript@^4.8.3"
[bazel] warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/node@^14.14.31"
[bazel] warning Resolution field "[email protected]" is incompatible with requested version "typescript@^3.5.3"
[bazel] success Already up-to-date.
[bazel] INFO: Analyzed target //packages:build (2176 packages loaded, 12750 targets configured).
[bazel] INFO: Found 1 target...
[bazel] INFO: From Assembling npm types package packages/core/fatal-errors/core-fatal-errors-browser/npm_module_types:
[bazel] ✅ type summary created for @kbn/core-fatal-errors-browser
[bazel] INFO: From Assembling npm types package packages/core/i18n/core-i18n-server/npm_module_types:
[bazel] ✅ type summary created for @kbn/core-i18n-server
[bazel] INFO: From Assembling npm types package packages/core/mount-utils/core-mount-utils-browser/npm_module_types:
[bazel] ✅ type summary created for @kbn/core-mount-utils-browser
[bazel] INFO: From Assembling npm types package packages/core/node/core-node-server/npm_module_types:
[bazel] ✅ type summary created for @kbn/core-node-server
[bazel] INFO: From Assembling npm types package packages/core/deprecations/core-deprecations-common/npm_module_types:
[bazel] ✅ type summary created for @kbn/core-deprecations-common
[bazel] INFO: From Assembling npm types package packages/kbn-utility-types-jest/npm_module_types:
[bazel] ✅ type summary created for @kbn/utility-types-jest
[bazel] INFO: From Assembling npm types package packages/kbn-securitysolution-t-grid/npm_module_types:
[bazel] ✅ type summary created for @kbn/securitysolution-t-grid
[bazel] INFO: From Assembling npm types package packages/kbn-datemath/npm_module_types:
[bazel] ✅ type summary created for @kbn/datemath
[bazel] INFO: From Assembling npm types package x-pack/packages/ml/string_hash/npm_module_types:
[bazel] ✅ type summary created for @kbn/ml-string-hash
[bazel] INFO: From Assembling npm types package packages/kbn-utility-types/npm_module_types:
[bazel] ✅ type summary created for @kbn/utility-types
[bazel] INFO: From Assembling npm types package packages/kbn-stdio-dev-helpers/npm_module_types:
[bazel] ✅ type summary created for @kbn/stdio-dev-helpers
[bazel] INFO: From Assembling npm types package packages/kbn-kibana-manifest-schema/npm_module_types:
[bazel] ✅ type summary created for @kbn/kibana-manifest-schema
[bazel] INFO: From Assembling npm types package packages/kbn-ui-shared-deps-npm/npm_module_types:
[bazel] ✅ type summary created for @kbn/ui-shared-deps-npm
[bazel] INFO: From Assembling npm types package packages/kbn-i18n/npm_module_types:
[bazel] ✅ type summary created for @kbn/i18n
[bazel] INFO: From Assembling npm types package packages/kbn-bazel-packages/npm_module_types:
[bazel] ✅ type summary created for @kbn/bazel-packages
[bazel] INFO: From Assembling npm types package packages/kbn-hapi-mocks/npm_module_types:
[bazel] ✅ type summary created for @kbn/hapi-mocks
[bazel] INFO: From Assembling npm types package packages/kbn-std/npm_module_types:
[bazel] ✅ type summary created for @kbn/std
[bazel] INFO: From Assembling npm types package packages/kbn-securitysolution-utils/npm_module_types:
[bazel] ✅ type summary created for @kbn/securitysolution-utils
[bazel] INFO: From Assembling npm types package packages/kbn-es-query/npm_module_types:
[bazel] ✅ type summary created for @kbn/es-query
[bazel] INFO: From Assembling npm types package packages/kbn-test-subj-selector/npm_module_types:
[bazel] ✅ type summary created for @kbn/test-subj-selector
[bazel] INFO: From Assembling npm types package packages/kbn-monaco/npm_module_types:
[bazel] ✅ type summary created for @kbn/monaco
[bazel] INFO: From Assembling npm types package packages/kbn-logging/npm_module_types:
[bazel] ✅ type summary created for @kbn/logging
[bazel] INFO: From Assembling npm types package packages/core/capabilities/core-capabilities-common/npm_module_types:
[bazel] ✅ type summary created for @kbn/core-capabilities-common
[bazel] INFO: From Assembling npm types package packages/kbn-ui-theme/npm_module_types:
[bazel] ✅ type summary created for @kbn/ui-theme
[bazel] INFO: From Assembling npm types package packages/kbn-ace/npm_module_types:
[bazel] ✅ type summary created for @kbn/ace
[bazel] INFO: From Assembling npm types package packages/core/base/core-base-common-internal/npm_module_types:
[bazel] ✅ type summary created for @kbn/core-base-common-internal
[bazel] INFO: From Assembling npm types package packages/kbn-es-errors/npm_module_types:
[bazel] ✅ type summary created for @kbn/es-errors
[bazel] INFO: From Assembling npm types package packages/kbn-shared-svg/npm_module_types:
[bazel] ✅ type summary created for @kbn/shared-svg
[bazel] INFO: From Assembling npm types package x-pack/packages/ml/is_populated_object/npm_module_types:
[bazel] ✅ type summary created for @kbn/ml-is-populated-object
[bazel] INFO: From Assembling npm types package packages/home/sample_data_card/npm_module_types:
[bazel] ✅ type summary created for @kbn/home-sample-data-card
[bazel] INFO: From Assembling npm types package packages/kbn-handlebars/npm_module_types:
[bazel] ✅ type summary created for @types/kbn__handlebars
[bazel] ✅ type summary created for @kbn/core-theme-browser
[bazel] INFO: From Assembling npm types package packages/core/theme/core-theme-browser/npm_module_types:
[bazel] INFO: From Assembling npm types package packages/kbn-i18n-react/npm_module_types:
[bazel] ✅ type summary created for @kbn/i18n-react
[bazel] INFO: From Assembling npm types package packages/kbn-optimizer-webpack-helpers/npm_module_types:
[bazel] ✅ type summary created for @kbn/optimizer-webpack-helpers
[bazel] ERROR: /kibana/packages/kbn-ui-shared-deps-npm/BUILD.bazel:138:8: Action packages/kbn-ui-shared-deps-npm/shared_built_assets failed: (Exit 1): webpack-cli.sh failed: error executing command bazel-out/host/bin/external/npm/webpack-cli/bin/webpack-cli.sh --config packages/kbn-ui-shared-deps-npm/webpack.config.js --output-path ... (remaining 3 arguments skipped)
[bazel] 
[bazel] Use --sandbox_debug to see verbose messages from the sandbox
[bazel] Target //packages:build failed to build
[bazel] Use --verbose_failures to see the command lines of failed build steps.
[bazel] INFO: Elapsed time: 101.006s, Critical Path: 42.49s
[bazel] INFO: 1623 processes: 733 disk cache hit, 712 internal, 178 darwin-sandbox.
[bazel] 
 HINT 
 HINT If experiencing problems with node_modules try `yarn kbn bootstrap --force-install` or as last resort `yarn kbn reset && yarn kbn bootstrap`
 HINT 
 ERROR  [bootstrap] failed: [bazel] exited with code [1]
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@YangYouYong YangYouYong added the bug Fixes for quality problems that affect the customer experience label Dec 6, 2022
@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 6, 2022
@YangYouYong
Copy link
Author

build logs:

packages/kbn-ui-shared-deps-npm/BUILD.bazel:138:8: Action packages/kbn-ui-shared-deps-npm/shared_built_assets failed: (Exit 1): webpack-cli.sh failed: error executing command bazel-out/host/bin/external/npm/webpack-cli/bin/webpack-cli.sh --config packages/kbn-ui-shared-deps-npm/webpack.config.js --output-path ... (remaining 3 arguments skipped)
[bazel] 
[bazel] Use --sandbox_debug to see verbose messages from the sandbox
[bazel] Target //packages:build failed to build
[bazel] Use --verbose_failures to see the command lines of failed build steps.
[bazel] INFO: Elapsed time: 101.006s, Critical Path: 42.49s
[bazel] INFO: 1623 processes: 733 disk cache hit, 712 internal, 178 darwin-sandbox.
[bazel] 

@YangYouYong YangYouYong changed the title packages/kbn-ui-shared-deps-npm/webpack.config.js build failed when running yarn kbn bootstrap --force-install packages/kbn-ui-shared-deps-npm/webpack.config.js build failed when running yarn kbn bootstrap --force-install #8.5.0 Dec 6, 2022
@YangYouYong YangYouYong changed the title packages/kbn-ui-shared-deps-npm/webpack.config.js build failed when running yarn kbn bootstrap --force-install #8.5.0 packages/kbn-ui-shared-deps-npm/webpack.config.js build failed when running yarn kbn bootstrap --force-install Dec 6, 2022
@jughosta jughosta added the Team:Operations Team label for Operations Team label Dec 6, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 6, 2022
@spalger
Copy link
Contributor

spalger commented Dec 22, 2022

Unfortunately the webpack builds done during bootstrap were setup to hide their error output. If you replace this cli argument with --errors-only you will see the actual error occurring. Thankfully this will be fixed in main by #146212, which we will be merging today.

@jbudz
Copy link
Member

jbudz commented Jul 13, 2023

I'm going to close this out for now - without detailed logs it's tough to know what went wrong. If you're still running into this issue and able to pull in the fix mentioned above for more verbose logs lets reopen.

@jbudz jbudz closed this as completed Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team
Projects
None yet
Development

No branches or pull requests

5 participants