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

Reach nofile hard limit 1048576 while building Kibana #206288

Closed
mikucat0309 opened this issue Jan 10, 2025 · 0 comments
Closed

Reach nofile hard limit 1048576 while building Kibana #206288

mikucat0309 opened this issue Jan 10, 2025 · 0 comments
Labels
bug Fixes for quality problems that affect the customer experience needs-team Issues missing a team label

Comments

@mikucat0309
Copy link

Kibana version:

8.17.0

Build host:

OS: Ubuntu 22.04 in lima on macOS
Arch: arm64

Describe the bug:

Reach maximum number of open files limit while bootstraping.

Steps to reproduce:

docker buildx build . -f .devcontainer/Dockerfile -t kibana-builder
docker run -it -v ".:/home/vscode/kibana" --user 1000 --ulimit nofile=1048576 kibana-builder:latest
cd kibana
yarn kbn bootstrap

Expected behavior:

Bootstrap finish without error

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

yarn run v1.22.22
$ node scripts/kbn bootstrap
info installing Bazel tools
success bazel tools installed
warn updated package map
warn updated tsconfig.json paths
[bazel] 2025/01/10 13:46:17 Downloading https://releases.bazel.build/5.1.1/release/bazel-5.1.1-linux-arm64...
info Bazel is installed (2025/01/10 13:46:17 Downloading https://releases.bazel.build/5.1.1/release/bazel-5.1.1-linux-arm64...
     bazel 5.1.1), but was expecting 5.1.1
[bazel] Extracting Bazel installation...
[bazel] Starting local Bazel server and connecting to it...
[bazel] INFO: Invocation ID: 249e4122-9424-4fb0-a528-1015889612fb
[bazel] $ node ./preinstall_check
[bazel] [1/5] Validating package.json...
[bazel] [2/5] Resolving packages...
(skip lots of warnings)
[bazel] [5/5] Building fresh packages...
[bazel] INFO: Analyzed 3 targets (827 packages loaded, 3522 targets configured).
[bazel] INFO: Found 3 targets...
[bazel] ERROR: /home/vscode/kibana/packages/kbn-ui-shared-deps-npm/BUILD.bazel:73:12: Action packages/kbn-ui-shared-deps-npm/shared_built_assets failed: Exec failed due to IOException: /home/vscode/.cache/bazel/_bazel_vscode/4a2777fa302eb940ddaae8ab348c7215/execroot/kibana/external/npm/node_modules/@webassemblyjs/helper-wasm-section/node_modules/@webassemblyjs/ast/scripts/util.js (Too many open files)
[bazel] ERROR: /home/vscode/kibana/packages/kbn-monaco/BUILD.bazel:36:12: Action packages/kbn-monaco/target_workers failed: Exec failed due to IOException: /home/vscode/.cache/bazel/_bazel_vscode/4a2777fa302eb940ddaae8ab348c7215/execroot/kibana/external/npm/node_modules/@webassemblyjs/helper-wasm-section/node_modules/@webassemblyjs/ast/scripts/util.js (Too many open files)
[bazel] INFO: Elapsed time: 253.478s, Critical Path: 3.17s
[bazel] INFO: 508 processes: 12 internal, 496 processwrapper-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 [36]
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Any additional context:

@mikucat0309 mikucat0309 added the bug Fixes for quality problems that affect the customer experience label Jan 10, 2025
@botelastic botelastic bot added the needs-team Issues missing a team label label Jan 10, 2025
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 needs-team Issues missing a team label
Projects
None yet
Development

No branches or pull requests

1 participant