Host-based backup of VMware vSphere VMs.
Post Reply
rjlewis
Influencer
Posts: 10
Liked: never
Joined: Oct 27, 2016 12:07 am
Full Name: Richard Lewis
Contact:

Pre-freeze or Post-thaw script problems

Post by rjlewis »

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'
PTide
Product Manager
Posts: 6428
Liked: 729 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Pre-freeze or Post-thaw script problems

Post by PTide »

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
rjlewis
Influencer
Posts: 10
Liked: never
Joined: Oct 27, 2016 12:07 am
Full Name: Richard Lewis
Contact:

Re: Pre-freeze or Post-thaw script problems

Post by rjlewis »

The scripts are pre freeze and post freeze as specified in the application aware configuration for one particular host.
PTide
Product Manager
Posts: 6428
Liked: 729 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Pre-freeze or Post-thaw script problems

Post by PTide »

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.
rjlewis
Influencer
Posts: 10
Liked: never
Joined: Oct 27, 2016 12:07 am
Full Name: Richard Lewis
Contact:

Re: Pre-freeze or Post-thaw script problems

Post by rjlewis »

#01960759 is the case number
Post Reply

Who is online

Users browsing this forum: trackstar and 50 guests