elastic / kibana

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

Auto-detect flow fails with tar error #193284

Open flash1293 opened 4 days ago

flash1293 commented 4 days ago

Kibana version: main

Describe the bug: Auto-detect flow fails on Ubuntu 22.04

Steps to reproduce:

  1. Go to auto-detect onboarding flow
  2. Try to run on ubuntu machine (accept all recommendations)
  3. Flow fails in the terminal with "Failed to configure Elastic Agent"

Expected behavior: Flow should succeed

Error in the terminal:

tar: unrecognized option '--include'
Try 'tar --help' or 'tar --usage' for more information.
Failed to configure Elastic Agent

It looks like the --include usage here is not always available: https://github.com/elastic/kibana/blob/9c3561d97fcb7f12248bad9b18969dec9dbb819f/x-pack/plugins/observability_solution/observability_onboarding/public/assets/auto_detect.sh#L292

(https://github.com/elastic/kibana/pull/191383)

elasticmachine commented 4 days ago

Pinging @elastic/obs-ux-onboarding-team (Feature: Observability Onboarding)

elasticmachine commented 4 days ago

Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)