-
Notifications
You must be signed in to change notification settings - Fork 825
fleetctl preview: Logs in the ouput #32208
Copy link
Copy link
Closed
Labels
#g-orchestrationOrchestration product groupOrchestration product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documentedSomething isn't working as documented~released bugThis bug was found in a stable release.This bug was found in a stable release.
Milestone
Description
Fleet version: fleetctl version: 4.72.0
Web browser and operating system: N/A
💥 Actual behavior
We're throwing a lot of noisy logs in the output when I run fleetctl preview.
Also, the order is a bit confusing. "Waiting for host to enroll..." and other loading messages happen after "Fleet will now log you in".
Downloading dependencies from fleetdm/fleet:main into /Users/noahtalerman/.fleet/preview...
Pulling Docker dependencies...
Starting Docker containers...
Waiting for server to start up...
Initializing server...
Configured fleetctl in the 'preview' context to avoid overwriting existing config.
Loading starter library...
level=debug msg="Applying starter library"
level=debug msg="Created temporary directory for scripts" path=/var/folders/89/_k0w_2rj4v93n2v6lbpl3bnw0000gn/T/fleet-scripts-2523422851
level=debug msg="Found script references in starter library" count=3
level=debug msg="Downloading script" name=it-and-security/lib/macos/scripts/uninstall-fleetd-macos.sh url=https://raw.githubusercontent.com/fleetdm/fleet/main//it-and-security/lib/macos/scripts/uninstall-fleetd-macos.sh local_path=/var/folders/89/_k0w_2rj4v93n2v6lbpl3bnw0000gn/T/fleet-scripts-2523422851/it-and-security/lib/macos/scripts/uninstall-fleetd-macos.sh
level=debug msg="Downloading script" name=it-and-security/lib/windows/scripts/uninstall-fleetd-windows.ps1 url=https://raw.githubusercontent.com/fleetdm/fleet/main//it-and-security/lib/windows/scripts/uninstall-fleetd-windows.ps1 local_path=/var/folders/89/_k0w_2rj4v93n2v6lbpl3bnw0000gn/T/fleet-scripts-2523422851/it-and-security/lib/windows/scripts/uninstall-fleetd-windows.ps1
level=debug msg="Downloading script" name=it-and-security/lib/linux/scripts/uninstall-fleetd-linux.sh url=https://raw.githubusercontent.com/fleetdm/fleet/main//it-and-security/lib/linux/scripts/uninstall-fleetd-linux.sh local_path=/var/folders/89/_k0w_2rj4v93n2v6lbpl3bnw0000gn/T/fleet-scripts-2523422851/it-and-security/lib/linux/scripts/uninstall-fleetd-linux.sh
level=debug msg="Starter library applied successfully"
Fleet will now log you into the UI automatically.
You can also open the UI at this URL: http://localhost:1337/previewlogin.
Email: admin@example.com
Password: preview1337#
Enrolling local host...
Trying to clear orbit and osquery directories...
{"level":"info","time":"2025-08-22T10:25:09-04:00","message":"initialize TUF from embedded root keys"}
{"level":"debug","error":"stat /Users/noahtalerman/.fleet/preview/orbit/bin/osqueryd/macos-app/stable/osqueryd.app.tar.gz: no such file or directory","time":"2025-08-22T10:25:10-04:00","message":"stat file"}
{"level":"debug","error":"stat /Users/noahtalerman/.fleet/preview/orbit/bin/orbit/macos/stable/orbit: no such file or directory","time":"2025-08-22T10:25:12-04:00","message":"stat file"}
Waiting for host to enroll...
Starting simulated Linux hosts...
Preview environment complete. Enjoy using Fleet!
🛠️ To fix
Ideal output and order:
Downloading dependencies from fleetdm/fleet:main into /Users/noahtalerman/.fleet/preview...
Pulling Docker dependencies...
Starting Docker containers...
Waiting for server to start up...
Initializing server...
Configured fleetctl in the 'preview' context to avoid overwriting existing config.
Loading starter library...
Enrolling local host...
Trying to clear orbit and osquery directories...
Waiting for host to enroll...
Starting simulated Linux hosts...
Fleet will now log you into the UI automatically.
You can also open the UI at this URL: http://localhost:1337/previewlogin.
Email: admin@example.com
Password: preview1337#
Preview environment complete. Enjoy using Fleet!
Product designer: @noahtalerman
🧑💻 Steps to reproduce
- Run
fleetctl previewwith and without a license key
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
#g-orchestrationOrchestration product groupOrchestration product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documentedSomething isn't working as documented~released bugThis bug was found in a stable release.This bug was found in a stable release.
Type
Projects
Status
Done