Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing file from pod is not included successfully in the support bundle #1514

Open
mihai-waydev opened this issue Mar 27, 2024 · 0 comments

Comments

@mihai-waydev
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant