CLI Client has error when running debug
Describe the bug When running bao debug with default setting the client immediately errors and stops.
To Reproduce Steps to reproduce the behavior:
- Run
bao debug - See error
Expected behavior Debug session should run for the defined default period.
Environment:
- OpenBao Server Version (retrieve with
bao status): 2.3.1 - OpenBao CLI Version (retrieve with
bao version): 2.3.1 - Server Operating System/Architecture: Linux Ubuntu x86_64bit
- Client Operating System: Windows 11
Additional context Here is the output of the command
bao debug ==> Starting debug capture... OpenBao Address: https://internalserver.com:8200 Client Version: 2.3.1 Server Version: 2.3.1 Duration: 2m0s Interval: 30s Metrics Interval: 10s Targets: config, host, requests, metrics, pprof, replication-status, server-status, log Output: bao-debug-2025-07-28T10-05-47Z.tar.gz
==> Capturing static information... 2025-07-28T11:05:47.167+0100 [INFO] capturing configuration state
==> Capturing dynamic information... 2025-07-28T11:05:47.189+0100 [INFO] capturing server status: count=0 2025-07-28T11:05:47.189+0100 [INFO] capturing pprof data: count=0 2025-07-28T11:05:47.189+0100 [INFO] capturing host information: count=0 2025-07-28T11:05:47.189+0100 [INFO] capturing metrics: count=0 2025-07-28T11:05:47.189+0100 [INFO] capturing replication status: count=0 2025-07-28T11:05:47.189+0100 [INFO] capturing in-flight request status: count=0 Finished capturing information, bundling files... Error encountered during bundle compression: failed to remove data directory: remove bao-debug-2025-07-28T10-05-47Z\2025-07-28T10-05-47Z\block.prof: The process cannot access the file because it is being used by another process. Data written to: bao-debug-2025-07-28T10-05-47Z
Source: openbao/openbao