Downloaded diagnostic bundle is empty

Recover empty diagnostic bundle files by restarting the diagnostics service pod to reclaim storage space on the full log persistent volume claim.

Condition

The downloaded diagnostic bundle contains no data, and log collection processes fail to write files because the /var/log persistent volume claim (PVC) reaches 100% capacity.

Cause

The diagnostics service leaks a file descriptor during each retention-prune cycle. When the prune_old_log_directories process removes old day-stamped log directories, cached FileWriter entries for those paths are not invalidated. The file descriptors remain open against unlinked inodes, causing unreachable bytes to accumulate and saturate the volume storage.

Remedy

You must restart the diagnostics pod to terminate the process holding the leaked file descriptors, which allows the kernel to reclaim space and free the volume.

  1. Restart the diagnostics StatefulSet in your installation namespace.
    kubectl rollout restart statefulset/diagnostics -n awc-diagnostics
  2. Monitor the rollout status and wait for the service pods to return to a running state.
    kubectl rollout status statefulset/diagnostics -n awc-diagnostics
  3. Verify that the file system space is successfully reclaimed on the persistent volume claim.
    kubectl exec -n awc-diagnostics diagnostics-0 -- df -h /var/log
  4. Re-trigger the diagnostic bundle collection to download a fully populated file.