Comprehensive data protection for all workloads
Post Reply
Posts: 1
Liked: never
Joined: Mar 02, 2015 2:26 pm
Full Name: Gijs Lemahieu

pre-job script terminated with exit code 2

Post by gijs » Mar 02, 2015 2:37 pm


Recently we installed Veeam Backup & Replication version

This is working very fine, except one problem with Lotus Notes servers. Because files are locked, we configured a pre-job script to stop the Lotus Notes services and a post-job script to start the Lotus Notes services once the bacup is completed.

The script itself is very simple (net stop "Lotus Domino Server (DNotesdata)"). When I execute this as a batch file, it works fine but in the Veeam console I get this warning:
Pre-job script terminated with exit code 2
Post-job script terminated with exit code 2

I googled this error, but I don't find the explanation of this warning. Some one knows what this means or - even better - how to solve it?


Product Manager
Posts: 17444
Liked: 1553 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: pre-job script terminated with exit code 2

Post by veremin » Mar 02, 2015 4:16 pm

In fact, VB&R just outputs exit code received from an executed command (net stop, in your case). I don't recall the particular meaning of exit code 2 in case of net stop, so it might be

- Access denied, meaning that service account under which scripts get triggered doesn't have sufficient permissions
- Already Stopped, meaning that the code tries to stop already stopped service

Might be worth checking both.


Post Reply

Who is online

Users browsing this forum: Dima P. and 49 guests