# 'yarn kbn bootstrap' failing with Kibana 7.16.3

**URL:** <https://discuss.elastic.co/t/yarn-kbn-bootstrap-failing-with-kibana-7-16-3/295497>\
**Category:** Kibana\
**Created:** [January 26, 2022, 5:38pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-failing-with-kibana-7-16-3/295497 "2022-01-26T17:38:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbujold\_wr](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbujold\_wr](https://discuss.elastic.co/u/kbujold_wr)\
**Post date:** [January 26, 2022, 5:38pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-failing-with-kibana-7-16-3/295497/1 "2022-01-26T17:38:51Z")

</div>

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

````auto
 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```
````

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [January 27, 2022, 1:48pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-failing-with-kibana-7-16-3/295497/2 "2022-01-27T13:48:33Z")

</div>

have you tried running `yarn kbn clean`? Also, try removing the `oss` flag. With the [license change](https://www.elastic.co/pricing/faq/licensing) there is no longer an `oss` build so I am not sure what this flag does anymore.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 24, 2022, 1:49pm UTC](https://discuss.elastic.co/t/yarn-kbn-bootstrap-failing-with-kibana-7-16-3/295497/3 "2022-02-24T13:49:10Z")

</div>

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