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

Log file for failed backups does not exist #7386

Closed
neginhsobhani opened this issue Feb 5, 2024 · 5 comments
Closed

Log file for failed backups does not exist #7386

neginhsobhani opened this issue Feb 5, 2024 · 5 comments

Comments

@neginhsobhani
Copy link

I wanted to debug and find the cause of a backup failure in my kubernetes cluster. I used velero describe backup <backup_name> and came across this:
image
So as said in the above image I ran velero backup logs <backup_name> to check the logs file for debugging purpose. But I got this as the result:
image
No log file exists!! I also tested this for other failed backups and got the same result. It seems that velero doesn't save the logs file in case of backup failure. Can anyone tell me why this happens? Is this behavior normal?

I did understand the result of backup failure by using the following command:

kubectl --context prod -n velero get backup/<backup_name> -o yaml 

But the problem with velero not saving logs file still exists.

Environment:

  • Velero version: v1.12.2
  • Kubernetes version: v1.28.4
  • OS: ubuntu 22.04
@Lyndon-Li
Copy link
Contributor

Can you share the cause of backup failure?

@neginhsobhani
Copy link
Author

@Lyndon-Li The cause of backup is that the object storage which I use for storing backups was not available at that moment as you can see in the below image:
image

@neginhsobhani
Copy link
Author

@codecov @konstantin @dzaninovic
hello, can you please help with this issue?

@Lyndon-Li
Copy link
Contributor

Velero saves the logs into the backup storage, if the backup storage is not available, the backup will fail and the logs for the backup will not be saved either.

@neginhsobhani
Copy link
Author

Velero saves the logs into the backup storage, if the backup storage is not available, the backup will fail and the logs for the backup will not be saved either.

Yes, that makes sense. Thanks for answering 🙏

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

2 participants