Kibana7.13 development problems

Hello all,

I hope you are doing well! I have been trying to develop Kibana 7.13 and using yarn 1.22.5 and node v14.16.1. It's been a week since I am trying and nothing's happening.
I am using windows 10.

somebody asked me to compile bazel from source but that is giving me errors as well. I opened an issue on github but haven't got any help yet.

for Kibana, when I run yarn kbn bootstrap, I get following errors.

akhil patel@DESKTOP-RP62F3S MINGW64 /f/kibana-Development/kibana (7.13)
$ yarn kbn bootstrap
yarn run v1.22.5
$ node scripts/kbn bootstrap
 info [bazel_tools] installing Bazel tools
 succ [bazel_tools] all bazel tools are correctly installed
 info [bazel] WARNING: Output user root "C:/Users/akhil patel.DESKTOP-RP62F3S/_bazel_akhil patel" contains a space. This will probably break the build. You should set a different --output_user
_root.
 info [bazel] Starting local Bazel server and connecting to it...
 info [bazel] ... still trying to connect to local Bazel server after 10 seconds ...
 info [bazel] INFO: Invocation ID: 17a4071e-1bb4-4e8a-b684-c4c75733a8bb
 info [bazel] INFO: Analyzed target @nodejs//:yarn (2 packages loaded, 3 targets configured).
 info [bazel] INFO: Found 1 target...
 info [bazel] INFO: Elapsed time: 70.195s, Critical Path: 8.48s
 info [bazel] INFO: 1 process: 1 internal.
 info [bazel] INFO: Running command line: 'C:/users/akhil patel.desktop-rp62f3s/_bazel_akhil patel/scnitfto/external/nodejs_windows_amd64/bin/yarn.cmd'
 info [bazel] $ node ./preinstall_check
 info [bazel] [1/5] Validating package.json...
 info [bazel] [2/5] Resolving packages...
 info [bazel] warning Resolution field "prismjs@1.23.0" is incompatible with requested version "prismjs@~1.22.0"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning Resolution field "crypto-js@4.0.0" is incompatible with requested version "crypto-js@^3.1.9-1"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning Resolution field "typescript@4.1.3" is incompatible with requested version "typescript@^3.3.3333"
 info [bazel] warning Resolution field "@types/node@14.14.14" is incompatible with requested version "@types/node@^10.1.0"
 info [bazel] warning Resolution field "@types/node@14.14.14" is incompatible with requested version "@types/node@8.10.54"
 info [bazel] warning Resolution field "typescript@4.1.3" is incompatible with requested version "typescript@~3.7.2"
 info [bazel] warning Resolution field "@types/node@14.14.14" is incompatible with requested version "@types/node@12.12.50"
 info [bazel] warning Resolution field "typescript@4.1.3" is incompatible with requested version "typescript@^3.5.3"
 info [bazel] warning Resolution field "schema-utils@1.0.0" is incompatible with requested version "schema-utils@^0.3.0"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] [3/5] Fetching packages...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] error An unexpected error occurred: "https://registry.yarnpkg.com/@elastic/eui/-/eui-32.1.1.tgz: ESOCKETTIMEDOUT".
 info [bazel] info If you think this is a bug, please open a bug report with the information provided in "F:\\kibana-Development\\kibana\\yarn-error.log".
 info [bazel] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] warning sha.js@2.4.10: Invalid bin entry for "sha.js" (in "sha.js").
 info [bazel] warning sha.js@2.4.11: Invalid bin entry for "sha.js" (in "sha.js").
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
ERROR [bootstrap] failed:
ERROR The bazel command that was running failed to complete.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I tired yarn kbn clean, yarn cache clean but nothing seems to be working.

Thanks in advance!

Hello,

now it is going up to 4th step ([4/5] Linking dependencies).

akhil patel@DESKTOP-RP62F3S MINGW64 /f/kibana-Development/kibana (7.13)
$ yarn kbn bootstrap
yarn run v1.22.5
$ node scripts/kbn bootstrap
 info [bazel_tools] installing Bazel tools
 succ [bazel_tools] all bazel tools are correctly installed
 info [bazel] WARNING: Output user root "C:/Users/akhil patel.DESKTOP-RP62F3S/_bazel_akhil patel" contains a space. This will probably break the build. You should set a different --output_user
_root.
 info [bazel] INFO: Invocation ID: 809bddae-f19f-44a5-a63e-5b5f78638c01
 info [bazel] $ node ./preinstall_check
 info [bazel] [1/5] Validating package.json...
 info [bazel] [2/5] Resolving packages...
 info [bazel] warning Resolution field "prismjs@1.23.0" is incompatible with requested version "prismjs@~1.22.0"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning Resolution field "crypto-js@4.0.0" is incompatible with requested version "crypto-js@^3.1.9-1"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning Resolution field "typescript@4.1.3" is incompatible with requested version "typescript@^3.3.3333"
 info [bazel] warning Resolution field "@types/node@14.14.14" is incompatible with requested version "@types/node@^10.1.0"
 info [bazel] warning Resolution field "@types/node@14.14.14" is incompatible with requested version "@types/node@8.10.54"
 info [bazel] warning Resolution field "typescript@4.1.3" is incompatible with requested version "typescript@~3.7.2"
yarn run v1.22.5
$ node scripts/kbn bootstrap
 info [bazel_tools] installing Bazel tools
 succ [bazel_tools] all bazel tools are correctly installed
 info [bazel] WARNING: Output user root "C:/Users/akhil patel.DESKTOP-RP62F3S/_b
azel_akhil patel" contains a space. This will probably break the build. You shou
ld set a different --output_user_root.
 info [bazel] INFO: Invocation ID: 809bddae-f19f-44a5-a63e-5b5f78638c01
 info [bazel] $ node ./preinstall_check
 info [bazel] [1/5] Validating package.json...
 info [bazel] [2/5] Resolving packages...
 info [bazel] warning Resolution field "prismjs@1.23.0" is incompatible with req
uested version "prismjs@~1.22.0"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with request
ed version "trim@0.0.1"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with request
ed version "trim@0.0.1"
 info [bazel] warning Resolution field "crypto-js@4.0.0" is incompatible with re
quested version "crypto-js@^3.1.9-1"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with request
ed version "trim@0.0.1"
 info [bazel] warning Resolution field "typescript@4.1.3" is incompatible with r
equested version "typescript@^3.3.3333"
 info [bazel] warning Resolution field "@types/node@14.14.14" is incompatible wi
th requested version "@types/node@^10.1.0"
 info [bazel] warning Resolution field "@types/node@14.14.14" is incompatible wi
th requested version "@types/node@8.10.54"
 info [bazel] warning Resolution field "typescript@4.1.3" is incompatible with r
equested version "typescript@~3.7.2"
 info [bazel] warning Resolution field "@types/node@14.14.14" is incompatible wi
th requested version "@types/node@12.12.50"
 info [bazel] warning Resolution field "typescript@4.1.3" is incompatible with r
equested version "typescript@^3.5.3"
 info [bazel] warning Resolution field "schema-utils@1.0.0" is incompatible with
 requested version "schema-utils@^0.3.0"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with request
ed version "trim@0.0.1"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with request
ed version "trim@0.0.1"
 info [bazel] [3/5] Fetching packages...
 info [bazel] info There appears to be trouble with your network connection. Ret
rying...
 info [bazel] info There appears to be trouble with your network connection. Ret
rying...
 info [bazel] info There appears to be trouble with your network connection. Ret
rying...
 info [bazel] info fsevents@2.1.2: The platform "win32" is incompatible with thi
s module.
 info [bazel] info "fsevents@2.1.2" is an optional dependency and failed compati
bility check. Excluding it from installation.
 info [bazel] [4/5] Linking dependencies...
 info [bazel] warning " > @elastic/apm-rum-react@1.2.5" has incorrect peer dependency "react-router-dom@^4.0.0".
 info [bazel] warning " > @elastic/charts@28.2.0" has incorrect peer dependency "moment@^2.29.1".
 info [bazel] warning " > @elastic/charts@28.2.0" has incorrect peer dependency "moment-timezone@^0.5.32".
 info [bazel] warning " > @elastic/eui@32.1.1" has incorrect peer dependency "@elastic/datemath@^5.0.2".
 info [bazel] warning " > react-monaco-editor@0.41.2" has incorrect peer dependency "@types/react@^17.x".
 info [bazel] warning " > react-monaco-editor@0.41.2" has incorrect peer dependency "react@^17.x".
 info [bazel] warning " > react-shortcuts@2.0.1" has incorrect peer dependency "react@^0.14.8 || ^15".
 info [bazel] warning " > react-shortcuts@2.0.1" has incorrect peer dependency "react-dom@^0.14.8 || ^15".
 info [bazel] warning "@octokit/rest > @octokit/plugin-request-log@1.0.2" has unmet peer dependency "@octokit/core@>=3".
 info [bazel] warning "@storybook/addon-docs > @mdx-js/react@1.6.22" has incorrect peer dependency "react@^16.13.1 || ^17.0.0".
 info [bazel] warning "@testing-library/react-hooks > react-error-boundary@3.1.1" has incorrect peer dependency "react@>=16.13.1".
 info [bazel] error An unexpected error occurred: "EPERM: operation not permitted, open 'F:\\kibana-Development\\kibana\\node_modules\\@bazel\\typescript\\node_modules\\.bin\\tsserver.cmd'".
 info [bazel] info If you think this is a bug, please open a bug report with the information provided in "F:\\kibana-Development\\kibana\\yarn-error.log".
 info [bazel] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 info [bazel] INFO: Repository npm instantiated at:
 info [bazel]   F:/kibana-development/kibana/WORKSPACE.bazel:53:13: in <toplevel>
 info [bazel]   C:/users/akhil patel.desktop-rp62f3s/_bazel_akhil patel/scnitfto/external/build_bazel_rules_nodejs/index.bzl:78:18: in yarn_install
 info [bazel] Repository rule yarn_install defined at:
 info [bazel]   C:/users/akhil patel.desktop-rp62f3s/_bazel_akhil patel/scnitfto/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:509:31: in <toplevel>
 info [bazel] ERROR: F:/kibana-development/kibana/packages/BUILD.bazel:3:10: //packages:build depends on //packages/kbn-tinymath:build in repository @ which failed to fetch. no such package '@
npm//pegjs': yarn_install failed: $ node ./preinstall_check
 info [bazel] [1/5] Validating package.json...
 info [bazel] [2/5] Resolving packages...
 info [bazel] [3/5] Fetching packages...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info There appears to be trouble with your network connection. Retrying...
 info [bazel] info fsevents@2.1.2: The platform "win32" is incompatible with this module.
 info [bazel] info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
 info [bazel] [4/5] Linking dependencies...
 info [bazel] info If you think this is a bug, please open a bug report with the information provided in "F:\\kibana-Development\\kibana\\yarn-error.log".
 info [bazel] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 info [bazel]  (warning Resolution field "prismjs@1.23.0" is incompatible with requested version "prismjs@~1.22.0"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning Resolution field "crypto-js@4.0.0" is incompatible with requested version "crypto-js@^3.1.9-1"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning Resolution field "typescript@4.1.3" is incompatible with requested version "typescript@^3.3.3333"
 info [bazel] warning Resolution field "@types/node@14.14.14" is incompatible with requested version "@types/node@^10.1.0"
 info [bazel] warning Resolution field "@types/node@14.14.14" is incompatible with requested version "@types/node@8.10.54"
 info [bazel] warning Resolution field "typescript@4.1.3" is incompatible with requested version "typescript@~3.7.2"
 info [bazel] warning Resolution field "@types/node@14.14.14" is incompatible with requested version "@types/node@12.12.50"
 info [bazel] warning Resolution field "typescript@4.1.3" is incompatible with requested version "typescript@^3.5.3"
 info [bazel] warning Resolution field "schema-utils@1.0.0" is incompatible with requested version "schema-utils@^0.3.0"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning Resolution field "trim@0.0.3" is incompatible with requested version "trim@0.0.1"
 info [bazel] warning " > @elastic/apm-rum-react@1.2.5" has incorrect peer dependency "react-router-dom@^4.0.0".
 info [bazel] warning " > @elastic/charts@28.2.0" has incorrect peer dependency "moment@^2.29.1".
 info [bazel] warning " > @elastic/charts@28.2.0" has incorrect peer dependency "moment-timezone@^0.5.32".
 info [bazel] warning " > @elastic/eui@32.1.1" has incorrect peer dependency "@elastic/datemath@^5.0.2".
 info [bazel] warning " > react-monaco-editor@0.41.2" has incorrect peer dependency "@types/react@^17.x".
 info [bazel] warning " > react-monaco-editor@0.41.2" has incorrect peer dependency "react@^17.x".
 info [bazel] warning " > react-shortcuts@2.0.1" has incorrect peer dependency "react@^0.14.8 || ^15".
 info [bazel] warning " > react-shortcuts@2.0.1" has incorrect peer dependency "react-dom@^0.14.8 || ^15".
 info [bazel] warning "@octokit/rest > @octokit/plugin-request-log@1.0.2" has unmet peer dependency "@octokit/core@>=3".
 info [bazel] warning "@storybook/addon-docs > @mdx-js/react@1.6.22" has incorrect peer dependency "react@^16.13.1 || ^17.0.0".
 info [bazel] warning "@testing-library/react-hooks > react-error-boundary@3.1.1" has incorrect peer dependency "react@>=16.13.1".
 info [bazel] error An unexpected error occurred: "EPERM: operation not permitted, open 'F:\\kibana-Development\\kibana\\node_modules\\@bazel\\typescript\\node_modules\\.bin\\tsserver.cmd'".
 info [bazel] )
 info [bazel] ERROR: Analysis of target '//packages:build' failed; build aborted: Analysis failed
 info [bazel] INFO: Elapsed time: 687.303s
 info [bazel] INFO: 0 processes.
 info [bazel]
ERROR [bootstrap] failed:
ERROR The bazel command that was running failed to complete.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Thanks.

@Akhil2 you probably have node installed in one partition and the checkout of the repo in another. We have some problems on Windows related with that. Could you move the node installation, yarn tools and the checkout into the same partition? Also, what is the Windows architecture you are developing on?

Cheers

1 Like

Thanks @tiagocosta.

sure, let me try to keep everything on the same drive and see what happens. I am using Windows 10, 64-bit operating system.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.