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

kibana-keystore create Cannot find module '@kbn/optimizer' #79470

Closed
LeeDr opened this issue Oct 5, 2020 · 1 comment · Fixed by #79409
Closed

kibana-keystore create Cannot find module '@kbn/optimizer' #79470

LeeDr opened this issue Oct 5, 2020 · 1 comment · Fixed by #79409
Labels
bug Fixes for quality problems that affect the customer experience Feature:Build Packaging regression Team:Operations Team label for Operations Team

Comments

@LeeDr
Copy link

LeeDr commented Oct 5, 2020

Kibana version: master 8.0.0-SNAPSHOT

Elasticsearch version: master 8.0.0-SNAPSHOT

Server OS version: Ubuntu 16.04

Browser version: n/a

Browser OS version: n/a

Original install method (e.g. download page, yum, from source, etc.): tar.gz default dist

Describe the bug: kibana-keystore create fails Error: Cannot find module '@kbn/optimizer'

Steps to reproduce:

  1. download default distribution of master kibana tar.gz
  2. extract the files
  3. run kibana-keystore create

Expected behavior: Should successfully create the keystore file

Screenshots (if relevant):

Errors in browser console (if relevant):

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

00:41:15.708 ++ /home/vagrant/kibana/bin/kibana-keystore create
00:41:15.709 Error: Cannot find module '@kbn/optimizer'
00:41:15.709     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
00:41:15.709     at Module.Hook._require.Module.require (/home/vagrant/kibana/node_modules/require-in-the-middle/index.js:61:29)
00:41:15.709     at require (internal/modules/cjs/helpers.js:25:18)
00:41:15.709     at Object.<anonymous> (/home/vagrant/kibana/src/setup_node_env/index.js:23:1)
00:41:15.710     at Module._compile (internal/modules/cjs/loader.js:778:30)
00:41:15.710     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
00:41:15.710     at Module.load (internal/modules/cjs/loader.js:653:32)
00:41:15.710     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
00:41:15.711     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
00:41:15.711     at Module.require (internal/modules/cjs/loader.js:692:17)

(this is actually from a different install, but shows no @kbn/optimizer folder);

vagrant@packer-virtualbox-iso-1594562612:~$ ls -l /usr/share/kibana/node_modules/@kbn/
total 72
drwxrwxr-x 5 root root 4096 Oct  4 18:48 ace
drwxrwxr-x 4 root root 4096 Oct  4 18:48 analytics
drwxrwxr-x 4 root root 4096 Oct  4 18:48 apm-config-loader
drwxrwxr-x 4 root root 4096 Oct  4 18:48 config
drwxrwxr-x 3 root root 4096 Oct  4 18:48 config-schema
drwxrwxr-x 6 root root 4096 Oct  4 18:48 dev-utils
drwxrwxr-x 7 root root 4096 Oct  4 18:48 i18n
drwxrwxr-x 7 root root 4096 Oct  4 18:48 interpreter
drwxrwxr-x 3 root root 4096 Oct  4 18:48 logging
drwxrwxr-x 5 root root 4096 Oct  4 18:48 monaco
drwxrwxr-x 4 root root 4096 Oct  4 18:48 pm
drwxrwxr-x 3 root root 4096 Oct  4 18:48 std
drwxrwxr-x 4 root root 4096 Oct  4 18:48 telemetry-tools
drwxrwxr-x 2 root root 4096 Oct  4 18:48 test-subj-selector
drwxrwxr-x 5 root root 4096 Oct  4 18:48 ui-framework
drwxrwxr-x 6 root root 4096 Oct  4 18:48 ui-shared-deps
drwxrwxr-x 3 root root 4096 Oct  4 18:48 utility-types
drwxrwxr-x 3 root root 4096 Oct  4 18:48 utils

Any additional context: This worked at least up until the master snapshot on October 1st.

@LeeDr LeeDr added bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team regression Feature:Build Packaging labels Oct 5, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

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 Feature:Build Packaging regression Team:Operations Team label for Operations Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants