Recently got a warning that Health Advisor cannot upload a support bundle. Having a look at the log, the bundle generation did not seem to fail but the advisor cannot find the bundle generated:
We noticed that the generation was hanging for a long time. At the time, there was a background generation as well. When we fixed the hung process. They both completed at around the same time so it looks like those events are related. We suspect that the Support Core bundle cleanup process removed the advisor bundle before it started to be uploaded.
Jenkins Health Advisor generates bundle directly under $JENKINS_HOME/support/. Bundles under that directory however are candidate for deletion based on exponential decay every time a background generated bundle is completed.
With the wrong timing, a bundle generated by advisor may be deleted by support core which may cause upload failure.
Note: Support Core does not log anything about which bundles are being removed. Which could be improved as well.