Kibana Development 7.15 Yarn Bootstrap Fails no native build was found for platform=linux

Hi, i am trying to get kibana development environment for kibana 7.15 running but i keep getting the error below when running "yarn kbn boostrap".

I am running the dev environment on CentOS Linux release 7.8.2003

[vscode] Error: No native build was found for platform=linux arch=x64 runtime=node abi=83 uv=1 libc=glibc node=14.18.1\n    loaded from: /home/yarn/kibana2/node_modules/lmdb-store\n    at Function.load.path (/home/yarn/kibana2/node_modules/node-gyp-build/index.js:59:9)\n    at load (/home/yarn/kibana2/node_modules/node-gyp-build/index.js:21:30)\n    at Object.<anonymous> (/home/yarn/kibana2/node_modules/lmdb-store/index.js:7:49)\n    at Module._compile (internal/modules/cjs/loader.js:1085:14)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)\n    at Module.load (internal/modules/cjs/loader.js:950:32)\n    at Function.Module._load (internal/modules/cjs/loader.js:790:12)\n    at Module.require (internal/modules/cjs/loader.js:974:19)\n    at Module.Hook._require.Module.require (/home/yarn/kibana2/node_modules/require-in-the-middle/index.js:80:39)\n    at Module.Hook._require.Module.require (/home/yarn/kibana2/node_modules/require-in-the-middle/index.js:80:39)
ERROR [bootstrap] failed:
ERROR Error: Command failed with exit code 1: /root/.nvm/versions/node/v14.18.1/bin/node scripts/update_vscode_config

      /home/yarn/kibana2/node_modules/node-gyp-build/index.js:59
        throw new Error('No native build was found for ' + target + '\n    loaded from: ' + dir + '\n')
              ^
      Error: No native build was found for platform=linux arch=x64 runtime=node abi=83 uv=1 libc=glibc node=14.18.1
          loaded from: /home/yarn/kibana2/node_modules/lmdb-store

          at Function.load.path (/home/yarn/kibana2/node_modules/node-gyp-build/index.js:59:9)
          at load (/home/yarn/kibana2/node_modules/node-gyp-build/index.js:21:30)
          at Object.<anonymous> (/home/yarn/kibana2/node_modules/lmdb-store/index.js:7:49)
          at Module._compile (internal/modules/cjs/loader.js:1085:14)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
          at Module.load (internal/modules/cjs/loader.js:950:32)
          at Function.Module._load (internal/modules/cjs/loader.js:790:12)
          at Module.require (internal/modules/cjs/loader.js:974:19)
          at Module.Hook._require.Module.require (/home/yarn/kibana2/node_modules/require-in-the-middle/index.js:80:39)
          at Module.Hook._require.Module.require (/home/yarn/kibana2/node_modules/require-in-the-middle/index.js:80:39)
          at makeError (/home/yarn/kibana2/packages/kbn-pm/dist/index.js:10193:11)
          at handlePromise (/home/yarn/kibana2/packages/kbn-pm/dist/index.js:9098:26)
          at processTicksAndRejections (internal/process/task_queues.js:95:5)
          at async Object.run (/home/yarn/kibana2/packages/kbn-pm/dist/index.js:8865:5)
          at async runCommand (/home/yarn/kibana2/packages/kbn-pm/dist/index.js:59258:5)
          at async Module.run (/home/yarn/kibana2/packages/kbn-pm/dist/index.js:242:3)
error Command failed with exit code 1.

Thank you

Hey, @Jsof, as stated here, make sure you are in sync with the latest master. Then run yarn kbn reset && yarn kbn bootstrap

PS: I would recommend using 7.x for your development, master is usually less stable.

Hi Praveenkukreja,

Thank you for the reply, i made sure my repo is up to date, and ran 'yarn kbn reset && yarn kbn bootstrap'.

There is no error but yarn is now stuck at 5/5 Building fresh packages for at least 2-3 hours without any progress.

Hey, I tried it myself, bootstrap was successful. Maybe there is an issue in yarn, install latest version of yarn using npm install -g yarn and try bootstrap again.

Hi praveenkukreja,

I tried updating yarn and downloading the repo from git again but no luck so far.

I suspect the cause might be from my ISP blocking or interfering with the download when building the package itself but i have no way to confirm.

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