Post Script Warning Exit Code 1

VMware specific discussions

Post Script Warning Exit Code 1

Veeam Logoby tdbd » Thu Oct 29, 2015 7:51 am

Hi,

since update Veeam B&R from 7 to 8 I got the Warning
"Post-job script terminated with exit code 1".

It is not totaly wrong, because after the Job run a script which eject the target RDX.
Is there any Option to get a successs message and ignore the warning ?

thanks
tdbd
Lurker
 
Posts: 2
Liked: never
Joined: Thu Oct 29, 2015 7:44 am

Re: Post Script Warning Exit Code 1

Veeam Logoby PTide » Thu Oct 29, 2015 11:37 am

Hi,

The only way to get success message and ignore the warning would be to either disable script execution or check you post-job script first and see which line generates taht error code. You can never know for sure if that error wlll eventually result in some sort of a disaster or not, so i'd stick with the latter. Feel free to post the problematic piece of code here if you need help with troubleshooting - people here will be glad to be of help.

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

Re: Post Script Warning Exit Code 1

Veeam Logoby tdbd » Wed Nov 04, 2015 8:05 am

Hi,

Message from Veeam : Post-job script terminated with exit code 1
Script : @echo off
timeout /T 60
c:\VeeamScripte\FreeEject\freeeject.exe h
exit
tdbd
Lurker
 
Posts: 2
Liked: never
Joined: Thu Oct 29, 2015 7:44 am

Re: Post Script Warning Exit Code 1

Veeam Logoby PTide » Wed Nov 04, 2015 11:44 am

I belive that there should be no problems with "echo", "timeout", and "exit" strings and something must be wrong with the
Code: Select all
"c:\VeeamScripte\FreeEject\freeeject.exe h
part. Another option is to append /b 0 to your "exit" statement so it will set error level to 0 thus making VBR think that the script finished without errors, however that's a dangerous approach.

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


Return to VMware vSphere



Who is online

Users browsing this forum: No registered users and 8 guests