Pre-freeze or Post-thaw script problems

VMware specific discussions

Pre-freeze or Post-thaw script problems

Veeam Logoby rjlewis » Thu Oct 27, 2016 12:30 am

I have a server which uses pre-freeze and post-thaw scripts that only works properly sometimes. I have set the backup to ignore errors in the application processing. In the backup last night, the pre-backup script did not have a problem, but the post-backup script did. It appears that I get the error when a folder id fails to be created on the backup proxy. The exit code line is reported in the backup report.

The following is an extract from the backup log for the machine in question:
Code: Select all
[27.10.2016 01:11:49] <45> Info     [ScriptInvoker] Starting post-thaw script execution
[27.10.2016 01:11:49] <45> Info     [ScriptInvoker] Running Windows script 'C:\Backup\Scripts\post-backup.bat'
[27.10.2016 01:11:49] <45> Info     VSSControl: Exec process in guest. C:\Backup\Scripts\post-backup.bat. Timeout: 900
[27.10.2016 01:11:49] <45> Info     Creating folder '\\<backupproxy_ipaddress>\ADMIN$\23ce6fbf-87d4-4490-ba39-a98c07634054'
[27.10.2016 01:11:49] <45> Error    [ScriptInvoker] Failed to execute script in win guest machine. Script path: C:\Backup\Scripts\post-backup.bat.
[27.10.2016 01:11:49] <45> Error    Failed to create folder '\\backupproxy_ipaddress>\ADMIN$\23ce6fbf-87d4-4490-ba39-a98c07634054'. (Veeam.Backup.Common.CRegeneratedTraceException)
[27.10.2016 01:11:49] <45> Error       at Veeam.Backup.Common.CExceptionUtil.RegenTraceExc(Exception originalExc, String formatString, Object[] args)
[27.10.2016 01:11:49] <45> Error       at Veeam.Backup.Common.FileSystemEx.CreateFolder(String path)
[27.10.2016 01:11:49] <45> Error       at Veeam.Backup.VssProvider.CVssControlRemote.copyFileToProxy(String localPath)
[27.10.2016 01:11:49] <45> Error       at Veeam.Backup.VssProvider.CVssControlRemote.ExecProcessInGuest(String appLocalPath, Int32 timeoutInSec, Boolean& timeoutOccurred, CCredentials creds)
[27.10.2016 01:11:49] <45> Error       at Veeam.Backup.VssProvider.CVssControl.ExecProcessInGuest(String appLocalPath, TimeSpan timeout, CCredentials creds, Boolean& timeoutOccurred)
[27.10.2016 01:11:49] <45> Error       at Veeam.Backup.Core.CWinGuestScriptInvoker.ExecScript(String localPath, TimeSpan timeout, CCredentials creds, Int32& exitCode)
[27.10.2016 01:11:49] <45> Error    Access to the path '\\backupproxy_ipaddress>\ADMIN$\23ce6fbf-87d4-4490-ba39-a98c07634054' is denied. (System.UnauthorizedAccessException)
[27.10.2016 01:11:49] <45> Error       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
[27.10.2016 01:11:49] <45> Error       at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
[27.10.2016 01:11:49] <45> Error       at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
[27.10.2016 01:11:49] <45> Error       at Veeam.Backup.Common.FileSystemEx.CreateFolder(String path)
[27.10.2016 01:11:49] <45> Info     [ScriptInvoker] Script finished with exit code = '-1'
rjlewis
Novice
 
Posts: 4
Liked: never
Joined: Thu Oct 27, 2016 12:07 am
Full Name: Richard Lewis

Re: Pre-freeze or Post-thaw script problems

Veeam Logoby PTide » Thu Oct 27, 2016 9:01 am

Hi,

It's not clear what kind of scripts you actually use: a pre-job script or pre-freeze (two different things), and which one has failed?

Thanks
PTide
Veeam Software
 
Posts: 3134
Liked: 262 times
Joined: Tue May 19, 2015 1:46 pm

Re: Pre-freeze or Post-thaw script problems

Veeam Logoby rjlewis » Thu Oct 27, 2016 9:06 am

The scripts are pre freeze and post freeze as specified in the application aware configuration for one particular host.
rjlewis
Novice
 
Posts: 4
Liked: never
Joined: Thu Oct 27, 2016 12:07 am
Full Name: Richard Lewis

Re: Pre-freeze or Post-thaw script problems

Veeam Logoby PTide » Thu Oct 27, 2016 10:52 am

Such access error might mean that there was a problem with credentails. However the fact that the pre-freeze script worked fine means that the credentials were fine as the same proxy is used for both pre and post scripts thus it could be a proxy disconnection. Please contact support team for a deeper investigation and post your case ID here.

Thank you.
PTide
Veeam Software
 
Posts: 3134
Liked: 262 times
Joined: Tue May 19, 2015 1:46 pm

Re: Pre-freeze or Post-thaw script problems

Veeam Logoby rjlewis » Fri Oct 28, 2016 1:51 am

#01960759 is the case number
rjlewis
Novice
 
Posts: 4
Liked: never
Joined: Thu Oct 27, 2016 12:07 am
Full Name: Richard Lewis


Return to VMware vSphere



Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 35 guests