Comprehensive data protection for all workloads
Post Reply
Poweruser
Expert
Posts: 246
Liked: 15 times
Joined: Jul 25, 2018 4:12 pm
Full Name: Poweruser
Contact:

Pre-freeze / Post-thaw Timeout

Post by Poweruser »

The Script timeout is far to short.
it needs to be changed. but how?
if not possible it should be added.

EDIT: Backup & Replication supports scripts in the EXE, BAT and CMD format.
Powershell should be added, too! (maybe its missing on the manual page)
Poweruser
Expert
Posts: 246
Liked: 15 times
Joined: Jul 25, 2018 4:12 pm
Full Name: Poweruser
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by Poweruser »

Timeout is "hackable" by Registry.
Thats a dirty job and i think it wont be backupped to config backup.
anyway who wants to use this as a quick hack:

https://www.veeam.com/kb2182
https://forums.veeam.com/post284663.html#p284663
https://forums.veeam.com/veeam-backup-r ... 24354.html

maybe this will help someone
for me its a solution but not a nice one because i have to track these change on recovery/fresh install.

btw: for freeze jobs https://www.veeam.com/kb1377 will be the right value.
why this is msec instead of seconds.. nobody knows..
Poweruser
Expert
Posts: 246
Liked: 15 times
Joined: Jul 25, 2018 4:12 pm
Full Name: Poweruser
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by Poweruser »

but for me it did not work :-(
after 10 minutes veeam breaks my pre freeze job :-(
https://www.veeam.com/kb1377 tells about 15 minutes but my timeout is 10 minutes..
b&r says:
"Timed out waiting for pre-freeze script to finish execution"

so for me i still need a solution! :-(
foggy
Veeam Software
Posts: 21139
Liked: 2141 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by foggy »

Try this one:

Code: Select all

MaxGuestScriptTimeoutSec
Type: REG_DWORD
Default value: 600
Description: Timeout for pre-freeze and post-thaw scripts, in seconds.
The one mentioned in the KB is for VSS preparation process, not for script execution.
Poweruser
Expert
Posts: 246
Liked: 15 times
Joined: Jul 25, 2018 4:12 pm
Full Name: Poweruser
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by Poweruser »

i will check it out, but it looks like its the correct value as it uses 600 seconds like 10 minutes.
btw if you write 600 value you should say "decimal" as it could be "hex".
just to be sure...
anyway please add all these timeouts into an advanced config dialog. it would be an easy hack for you. also it should be backuped with configuration.
registry hacks are hard to track over years.
foggy
Veeam Software
Posts: 21139
Liked: 2141 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by foggy »

They are, thanks for the suggestion.
Poweruser
Expert
Posts: 246
Liked: 15 times
Joined: Jul 25, 2018 4:12 pm
Full Name: Poweruser
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by Poweruser »

okay so the config backup includes a backup of manually set registry entries?
btw add them to the gui (and at least set the default values into registry, so you wont make typos if you create new ones instead of just changing values.
just in case the entry is not existing, the software should restore the default value into the registry.
so its auto-reheal, too :-)
foggy
Veeam Software
Posts: 21139
Liked: 2141 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by foggy »

Poweruser wrote:okay so the config backup includes a backup of manually set registry entries?
No, I meant they "are hard to track over years". ;)
Poweruser
Expert
Posts: 246
Liked: 15 times
Joined: Jul 25, 2018 4:12 pm
Full Name: Poweruser
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by Poweruser »

Yes in deed! So i hope you will add it to config backup and you add it to gui settings :-)
BriFar
Veeam ProPartner
Posts: 23
Liked: 11 times
Joined: Oct 24, 2011 12:55 pm
Full Name: Brian Farrugia
Location: Malta, Europe
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by BriFar »

Hi,
has this key been changed from PreJobScriptTimeoutSec to MaxGuestScriptTimeoutSec at a certain point?
Been having some issues with already working jobs and started failing after updating Veeam.
+1 to have this in the Job Settings. I have 9.5 U4a and didn't see them there.

Brian
foggy
Veeam Software
Posts: 21139
Liked: 2141 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by foggy »

Hi Brian, these values are for different types of scripts: the former is for pre-job/post-job and the latter is for pre-freeze/post-thaw scripts.
jtremblay
Novice
Posts: 4
Liked: never
Joined: Sep 01, 2020 7:32 pm
Full Name: James Tremblay
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by jtremblay »

Veeam Agent for Linux:
edit /etc/veeam/veeam.ini and find the following lines:
[scripts]
# Timeout for freeze and thaw scripts, sec
# timeoutFreezeThaw = 600

# Timeout for pre- and post-backup scripts, sec
# timeoutPrePost = 600

# Ignore freeze and thaw scripts result
# ignoreFreezeThawFailures = false

Change these lines to:

[scripts]
# Timeout for freeze and thaw scripts, sec
timeoutFreezeThaw = 1800

# Timeout for pre- and post-backup scripts, sec
timeoutPrePost = 1800

# Ignore freeze and thaw scripts result
# ignoreFreezeThawFailures = false

Once this is done, restart the veeam service with 'systemctl restart veeamservice' and attempt another backup.
mario.orefice
Influencer
Posts: 14
Liked: 1 time
Joined: Jun 15, 2022 3:22 pm
Full Name: Mario Orefice
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by mario.orefice »

Hello
I have tried this reg key MaxGuestScriptTimeoutSec in v11 in a job with managed windows agents, restarted services on veeam server but the timeout with pre freeze script is still 10 minutes.
Where am I wrong?
PetrM
Veeam Software
Posts: 3626
Liked: 608 times
Joined: Aug 28, 2013 8:23 am
Full Name: Petr Makarov
Location: Prague, Czech Republic
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by PetrM »

Hi Mario,

Please let me clarify this question with my colleagues from QA department. I'll update the topic as soon as I hear back from them.

Thanks!
PetrM
Veeam Software
Posts: 3626
Liked: 608 times
Joined: Aug 28, 2013 8:23 am
Full Name: Petr Makarov
Location: Prague, Czech Republic
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by PetrM »

@mario.orefice
May I ask you to add the registry key on the guest servers where agents are running?
HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Endpoint Backup\
MaxGuestScriptTimeoutSec

After that, you can restart Veeam Agent for Microsoft Windows Service (VeeamEndpointSvc). Please inform us of the results.

Thanks!
mario.orefice
Influencer
Posts: 14
Liked: 1 time
Joined: Jun 15, 2022 3:22 pm
Full Name: Mario Orefice
Contact:

Re: Pre-freeze / Post-thaw Timeout

Post by mario.orefice » 1 person likes this post

It works!

Thank you
Mario
Post Reply

Who is online

Users browsing this forum: Google [Bot], merrill.davis and 106 guests