troubleshoot
troubleshoot copied to clipboard
Changing file from pod is not included successfully in the support bundle
Bug Description
When trying to get a file from a pod that is constantly changing, it fails randomly
Expected Behavior
The file should be in the support bundle with it contents at the moment it was retrieved.
Steps To Reproduce
Generate a support bundle that should copy a file from the pod that is constantly changing.
Additional Context
We can’t get that file and instead we get this one file called “laravel.log-errors.json” with the following contents:
{ “/var/www/html/storage/logs/laravel.log/error”: “failed to stream command output: command terminated with exit code 1”, “/var/www/html/storage/logs/laravel.log/stderr”: “tar: laravel.log: file changed as we read it\n” }
Spec:
apiVersion: troubleshoot.replicated.com/v1beta1 kind: Collector metadata: name: collector-sample spec: collectors:
- clusterInfo: {}
- clusterResources: {}
- logs: collectorName: app-logs name: app/logs selector:
- component=comp
- copy: name: pod-logs selector:
- app=workers containerPath: /var/www/html/storage/logs/laravel.log
Troubleshoot version: 0.83.0 OS: Ubuntu 20 (I think it happens on various other OS as well like RHEL 9.3)