elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.64k stars 8.23k forks source link

[v8.14.3] Build distributable issue Error: Premature close #191326

Open ankita-mehta-bsn opened 2 months ago

ankita-mehta-bsn commented 2 months ago

Kibana version: 8.14.3

Elasticsearch version:

Server OS version: ubuntu

Browser version:

Browser OS version:

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

yarn kbn reset & yarn kbn bootstrap
yarn build

Describe the bug:

   │ info $ fpm --force -t deb --package /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/target/NAME-8.14.3-SNAPSHOT-ARCH.TYPE -s dir --name kibana --description Explore and visualize your Elasticsearch data --version 8.14.3-SNAPSHOT --url https://www.elastic.co --vendor Elasticsearch, Inc. --maintainer Kibana Team <info@elastic.co> --license Elastic-License --after-install /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/src/dev/build/tasks/os_packages/package_scripts/post_install.sh --before-install /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/src/dev/build/tasks/os_packages/package_scripts/pre_install.sh --before-remove /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/src/dev/build/tasks/os_packages/package_scripts/pre_remove.sh --after-remove /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/src/dev/build/tasks/os_packages/package_scripts/post_remove.sh --rpm-posttrans /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/src/dev/build/tasks/os_packages/package_scripts/post_trans.sh --rpm-digest sha256 --config-files /etc/kibana --template-value user=kibana --template-value group=kibana --template-value configDir=/etc/kibana --template-value pluginsDir=/usr/share/kibana/plugins --template-value dataDir=/var/lib/kibana --template-value logDir=/var/log/kibana --template-value pidDir=/run/kibana --template-value envFile=/etc/default/kibana --exclude usr/share/kibana/config --exclude usr/share/kibana/data --exclude usr/share/kibana/logs --exclude run/kibana/.gitempty --architecture amd64 --deb-priority optional /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/build/default/kibana-8.14.3-SNAPSHOT-linux-x86_64/=/usr/share/kibana/ /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/build/os_packages/config/kibana.yml=/etc/kibana/kibana.yml /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/build/default/kibana-8.14.3-SNAPSHOT-linux-x86_64/config/=/etc/kibana/ /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/build/default/kibana-8.14.3-SNAPSHOT-linux-x86_64/data/=/var/lib/kibana/ /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/build/default/kibana-8.14.3-SNAPSHOT-linux-x86_64/logs/=/var/log/kibana/ /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/src/dev/build/tasks/os_packages/service_templates/systemd/=/ /Users/ankita.mehta/Desktop/Code/github/arista_ank/kibana_ank/kibana/src/dev/build/tasks/os_packages/service_templates/env/kibana/=/etc/default/kibana
   │ERROR failure 0 sec
   │ERROR Error: Premature close
   │          at Socket.onclose (node:internal/streams/end-of-stream:154:30)
   │          at Socket.emit (node:events:531:35)
   │          at Pipe.<anonymous> (node:net:338:12)

Steps to reproduce:

  1. Load vanilla 8.14.3
  2. nvm use 20.13.1
    yarn kbn reset & yarn kbn bootstrap
    yarn build
  3. you will see the error.

Expected behavior: Successful build with target/kiaban-*-docker-image.tar,gz getting built.

Screenshots (if relevant):

Errors in browser console (if relevant):

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

Any additional context:

elasticmachine commented 2 months ago

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

jbudz commented 2 months ago

gem install fpm will resolve this. We'll improve the error message as a follow up for this issue.