'yarn kbn bootstrap' failing with Kibana 7.16.3

Hi I am running 'yarn kbn bootstrap --no-cache --skip-kibana-plugins --oss --debug --verbose' and I am getting this error.

 info [bazel] INFO: 765 processes: 222 internal, 543 processwrapper-sandbox.
 info [bazel]
 succ yarn.lock analysis completed without any issues
 debg Linking package executables
[vscode]  succ updated /kibana/.vscode/settings.json
[ts refs]  info ensuring we have the latest changelog from upstream 7.16
[ts refs]  info determining merge base with upstream
[ts refs] ERROR UNHANDLED ERROR
[ts refs] ERROR Error: Command failed with exit code 1: git merge-base HEAD FETCH_HEAD
[ts refs]           at makeError (/kibana/node_modules/execa/lib/error.js:59:11)
[ts refs]           at handlePromise (/kibana/node_modules/execa/index.js:114:26)
[ts refs]           at processTicksAndRejections (node:internal/process/task_queues:96:5)
[ts refs]           at RepoInfo.git (/kibana/src/dev/typescript/ref_output_cache/repo_info.ts:49:18)
[ts refs]           at RepoInfo.getMergeBase (/kibana/src/dev/typescript/ref_output_cache/repo_info.ts:34:23)
[ts refs]           at Function.create (/kibana/src/dev/typescript/ref_output_cache/ref_output_cache.ts:61:23)
[ts refs]           at description (/kibana/src/dev/typescript/build_ts_refs_cli.ts:86:23)
[ts refs]           at /kibana/node_modules/@kbn/dev-utils/target_node/run/run.js:62:7
[ts refs]           at withProcRunner (/kibana/node_modules/@kbn/dev-utils/target_node/proc_runner/with_proc_runner.js:31:5)
[ts refs]           at run (/kibana/node_modules/@kbn/dev-utils/target_node/run/run.js:61:5)
 debg KIBANA_CI_STATS_CONFIG environment variable not found, disabling CiStatsReporter
 debg CIStatsReporter committerHash: ee1de24dab4612b0eecf
ERROR [bootstrap] failed:
ERROR Error: Command failed with exit code 1: /usr/local/bin/node scripts/build_ts_refs --ignore-type-failures
       info ensuring we have the latest changelog from upstream 7.16
       info determining merge base with upstream
      ERROR UNHANDLED ERROR
      ERROR Error: Command failed with exit code 1: git merge-base HEAD FETCH_HEAD
                at makeError (/kibana/node_modules/execa/lib/error.js:59:11)
                at handlePromise (/kibana/node_modules/execa/index.js:114:26)
                at processTicksAndRejections (node:internal/process/task_queues:96:5)
                at RepoInfo.git (/kibana/src/dev/typescript/ref_output_cache/repo_info.ts:49:18)
                at RepoInfo.getMergeBase (/kibana/src/dev/typescript/ref_output_cache/repo_info.ts:34:23)
                at Function.create (/kibana/src/dev/typescript/ref_output_cache/ref_output_cache.ts:61:23)
                at description (/kibana/src/dev/typescript/build_ts_refs_cli.ts:86:23)
                at /kibana/node_modules/@kbn/dev-utils/target_node/run/run.js:62:7
                at withProcRunner (/kibana/node_modules/@kbn/dev-utils/target_node/proc_runner/with_proc_runner.js:31:5)
                at run (/kibana/node_modules/@kbn/dev-utils/target_node/run/run.js:61:5)
          at makeError (/kibana/packages/kbn-pm/dist/index.js:10515:11)
          at handlePromise (/kibana/packages/kbn-pm/dist/index.js:9426:26)
          at processTicksAndRejections (node:internal/process/task_queues:96:5)
          at async Object.run (/kibana/packages/kbn-pm/dist/index.js:8986:5)
          at async runCommand (/kibana/packages/kbn-pm/dist/index.js:61521:5)
          at async Module.run (/kibana/packages/kbn-pm/dist/index.js:242:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The command '/bin/sh -c yarn kbn bootstrap --no-cache --skip-kibana-plugins --oss --debug --verbose' returned a non-zero code: 1```

have you tried running yarn kbn clean? Also, try removing the oss flag. With the license change there is no longer an oss build so I am not sure what this flag does anymore.

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