I have currently this error message during my backup:
2014-12-31 02:01:28,478 ERROR [main] c.a.s.i.backup.client.BackupMain A backup could not be created. Reason: Operations from one or more SCMs did not finish within the allotted timeout. To prevent corruption due to inconsistent state, the backup has been aborted. Please try backup up again when the system is under less load.
I have set in stash-config.properties the following value
backup.drain.database.timeout=120
but:
Is this parameter also valid for scm?
What are the risk increasing this wait? Does the client start backing up things even if Database and SCM are not yet both drained?
Thanks for anyone who share any hint about this setting.
Regards,
Pierre
Hi Pierre,
Thanks for your observation. Indeed there was a mistake on the KB and I've corrected it so the right parameters (needs tweaking both on the server and the client):
That said, could you please follow the recommendations above and let us know how you go?
Best regards,
Thiago Bomfim
Atlassian Support
Edit: I also changed the KB title so it's more searchable.
Hi Pierre, Did you get a chance to look at the KB above? All the best, Thiago
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Thiago. As setting something in stash-config.properties require to restart stash to be considered, I will do this operation at our next allowed maintenance frame. I keep you informed of the results after next tuesday.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please do. Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I am still having troubles with the last 1.6 version of the backup tool.
And I am realy confised by this page:
https://confluence.atlassian.com/display/STASHKB/Backup+client+-+Failed+to+drain+SCM
Because in this page it seems that there is a confusion between scm and git drain error, and the setting that is acting only on the database aspect of the things.
So, how can I handle errors like:
2015-01-21 02:02:08,891 ERROR [main] c.a.s.i.backup.client.BackupMain A backup could not be created. Reason: Operations from one or more SCMs did not finish within the allotted timeout. To prevent corruption due to inconsistent state, the backup has been aborted. Please try backup up again when the system is under less load.
Do I have to go in maintenance mode many minutes before starting back up script ?
How can I temporise?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pierre,
The description of this parameter is on the document below:
Stash config properties - Backup
"Defines the number of seconds Stash will wait for connections to the database to drain and latch in preparation for a backup.
Value is in SECONDS."
You might have come across the KB below, which gives you more details on how to troubleshoot it:
Best regards,
Thiago Bomfim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Thiago, I have read this "Stash config properties - Backup" file already. Does it mean that it concern only database drain and we cannot define any timeout for scm drain activities? My error message is about scm: "Operations from one or more SCMs did not finish within the allotted timeout." After increasing the timeout from 60 to 120 seconds, I do not reproduce the error, but I am not sure that there is a direct link as it seems to be a settings only for databases operations. I have missed this KB, I will consider this possibility to go in UPM safe mode. It is very interessting, thank you! Regards, Pierre Zurmely
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pierre, Yes, it is the connections to the database only. I hope this has helped you. Thiago
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The timeout exist to allow the backup to wait until internal buffers are flushed and the system is in a consistent state. They don't wait indefinitely to avoid deadlocks (usually a bug, but already happened).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Mike for those 2 answers. I do understand that it is usefull to have a timeout to handle any unexpected behavior. Do you have more knowledge on the nature of this backup.drain.database.timeout settings? Is it valid for both db and scm or only for DB? As this drain is used to ensure that the system is in a consistent state, does it mean that the backup wait both drain before starting the sync, and so that there is no risk to increase it? Thanks and regards, Pierre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It should give up after the timeout. At least the DIY backup script examples do that, the internal backup should behave the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.