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

Packaging kibana 8.14.3 for Archlinux and trying to start it throws Error: Cannot find module 'require-in-the-middle' instead of starting. #188498

Closed
ipaqmaster opened this issue Jul 17, 2024 · 4 comments
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team

Comments

@ipaqmaster
Copy link

ipaqmaster commented Jul 17, 2024

Kibana version: 8.14.3

Elasticsearch version: NA

Server OS version: Archlinux, Linux kernel 6.8.9-arch1-2

Browser version: NA

Browser OS version: NA

Original install method (e.g. download page, yum, from source, etc.): tar.gz archive from this repository

Describe the bug: Package build completes successfully but Kibana cannot find the require-in-the-middle module it needs to start.

Steps to reproduce:

  1. Build kibana from this AUR package
  2. Install the resulting package
  3. Start the service (Fails)

Expected behavior: Kibana starts up and becomes accessible

Screenshots (if relevant):

Errors in browser console (if relevant):

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

node:internal/modules/cjs/loader:1215
  throw err;
  ^

Error: Cannot find module 'require-in-the-middle'
Require stack:
- /usr/share/kibana/src/setup_node_env/harden/index.js
- /usr/share/kibana/src/setup_node_env/setup_env.js
- /usr/share/kibana/src/setup_node_env/dist.js
- /usr/share/kibana/src/cli/dist.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
    at Module._load (node:internal/modules/cjs/loader:1038:27)
    at wrapModuleLoad (node:internal/modules/cjs/loader:212:19)
    at Module.require (node:internal/modules/cjs/loader:1297:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/usr/share/kibana/src/setup_node_env/harden/index.js:9:12)
    at Module._compile (node:internal/modules/cjs/loader:1460:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1544:10)
    at Module.load (node:internal/modules/cjs/loader:1275:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/share/kibana/src/setup_node_env/harden/index.js',
    '/usr/share/kibana/src/setup_node_env/setup_env.js',
    '/usr/share/kibana/src/setup_node_env/dist.js',
    '/usr/share/kibana/src/cli/dist.js'
  ]
}

Any additional context:

Any hints?

@ipaqmaster ipaqmaster added the bug Fixes for quality problems that affect the customer experience label Jul 17, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Jul 17, 2024
@ipaqmaster ipaqmaster changed the title Packaging kibana for Archlinux and trying to start it throws Error: Cannot find module 'require-in-the-middle' Packaging kibana 8.14.3 for Archlinux and trying to start it throws Error: Cannot find module 'require-in-the-middle' instead of starting. Jul 17, 2024
@jsanz jsanz added the Team:Operations Team label for Operations Team label Jul 22, 2024
@elasticmachine
Copy link
Contributor

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

@botelastic botelastic bot removed the needs-team Issues missing a team label label Jul 22, 2024
@jsanz
Copy link
Member

jsanz commented Jul 22, 2024

@ipaqmaster thanks for reporting, tagging my colleagues from the Operations team in case they now what may have change recently regarding that Node package. I'm assuming previous version 8.14.2 worked on your end, isn't it?

@jbudz
Copy link
Member

jbudz commented Jul 22, 2024

Hi, we aren't affiliated with this package and won't be able to provide support for it. It sounds like there's missing files. If there's specific questions we can help, but in the interim we recommend using official downloads - https://www.elastic.co/downloads/kibana.

@jbudz jbudz closed this as completed Jul 22, 2024
@ipaqmaster
Copy link
Author

ipaqmaster commented Sep 20, 2024

Still dealing with this issue. The release on the side of this project doesn't have these dependencies included.

The README.md points me to elastic.co which doesn't contain documentation for this project anywhere.

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

No branches or pull requests

4 participants