-
Notifications
You must be signed in to change notification settings - Fork 239
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
backup scrip breaks consistently over large jobs folder #415
Comments
Hi @trieszklr, In my opinion, your Jenkins is too big. Why don't split it to there smaller Jenkinses? The backup will be much smaller. If you have that big amount of data you have to increase the resources for the backup container. Cheers |
Hi @tomaszsek , thanks for your reply. We are using github organization which automagically creates folders/jobs for all projects and branches where pipeline file was found... We have already reduced the build retention to fairly minimal, but we would not want to lose this very convenient jenkins feature... So "splitting up to smaller jenkinses" is not really an option for us and we are likely not alone with this requirement... And indeed increasing resource for backup container also helped to reduce the occurrences but that does not fix this bug in itself... |
hi @tomaszsek and @waveywaves , just wanted to mention that I have built a custom backup container with this patch, rolled it out and it did fix the issue: Previously 9 out of 10 times jenkins master pod did come back online after a restart because of this bug. Cheers |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still affecting you, just comment with any updates and we'll keep it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you! |
I don't find this answer acceptable, the backup job should be more resilient. Like trieszklr, I added one organization job and backups started failing constantly. I can't split this up into smaller portion and don't want to manage more Jenkins. |
Expected Behavior
backup.sh runs successfully even when jobs folder is large
Actual Behavior
backup.sh fails practically consistently due to some files are always changing while it runs
this does not change over 24 hours:
Steps to Reproduce the Problem
Additional Info
tar returns 1 if files change while archiving.
https://stackoverflow.com/questions/20318852/tar-file-changed-as-we-read-it
this breaks current backup.sh script due to
The text was updated successfully, but these errors were encountered: