Skip to content

Support Bundle: failed to redact in cluster collector results as the file is being used by another process #2099

Description

@manderson23

Bug Description

Running support-bundle.exe ~/support-bundle.yaml gives the following error

Error: failed to run collect and analyze process: failed to run collectors: failed to redact in cluster collector results: failed to create redacted result: failed to remove existing file: remove C:\Users\xxx~1\AppData\Local\Temp\supportbundle1178602671\support-bundle-2026-08-05T09_55_20\cluster-resources\pods\logs\cluster-zerotrust\seaweedfs1-s3-569d468868-wxdw9\s3-previous.log: The process cannot access the file because it is being used by another process.
Error: failed to run collect and analyze process: failed to run collectors: failed to redact in cluster collector results: failed to create redacted result: failed to remove existing file: remove C:\Users\xxxx~1\AppData\Local\Temp\supportbundle1178602671\support-bundle-2026-08-05T09_55_20\cluster-resources\pods\logs\cluster-zerotrust\seaweedfs1-s3-569d468868-wxdw9\s3-previous.log: The process cannot access the file because it is being used by another process.

Expected Behavior

Support bundle runs with no errors.

Steps To Reproduce

Run support-bundle.exe ~/support-bundle.yaml with

apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
  name: supportbundle-tutorial
spec:
  collectors:
  - clusterInfo: {}
  - clusterResources: {}
  - dns:
      collectorName: "dns-troubleshoot"
  - helm:
      collectorName: "helm-troubleshoot"
  - nodeMetrics: {}
  - logs:
      selector:
        - app.kubernetes.io/instance=simulation-apps
      namespace: env-default
      name: simulation/logs
  - logs:
      selector:
        - app.kubernetes.io/name=seaweedfs
      namespace: cluster-zerotrust
      name: seaweedfs/logs
  analyzers: []

Additional Context

Include the following information.

  • Support Bundle 0.131.1
  • Windows 11 using Git Bash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions