elastic / elastic/elastic-agent

[Windows Server 2022]: Lot of blank lines on running install command with `--unprivileged`.

Open
#11,228 3 comments 0 reactions 0 assignees View on GitHub
bug good first issue impact:medium Team:Elastic-Agent-Control-Plane
Dominant language
Go
Stars
275
Forks
264
Avg merge
1d 23h
Merged PRs (30d)
312

Description

**Kibana version:**
```
VERSION: 9.3.0-SNAPSHOT
BUILD: 93303
COMMIT: 07655a0a20808401ae4531541ed85885b2f61fea
Artifact: https://snapshots.elastic.co/9.3.0-aa28bea9/downloads/beats/elastic-agent/elastic-agent-9.3.0-SNAPSHOT-windows-x86_64.zip
```

**Preconditions:**
1. 9.3.0-SNAPSHOT Kibana cloud environment should be available.
2. Windows Server 2022 should be available.

**Steps to reproduce:**
1. Install & extract the artifact.
2. Run install command in Powershell with `--unprivileged`.
3. Observe lot of blank lines are displayed in CLI.
- Issue is consistently reproducible at our end.

**Expected behavior:**
Blank lines should not be displayed on running install command with `--unprivileged` on Windows Server 2022.

**What's working fine:**
- The same issue is not observed on Windows Server 2025

**Screen Capture:**

https://github.com/user-attachments/assets/4c874621-4852-4109-8a84-efec4680f7f8

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Elastic Agent install command with --unprivileged in PowerShell on Windows Server 2022 using the linked 9.3.0-SNAPSHOT artifact, then compare the CLI output with Windows Server 2025. Trace the install command's output path and identify where the extra blank lines are emitted; done means the command produces no unintended blank lines on Windows Server 2022.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.