Comprehensive data protection for all workloads
Post Reply
seraphin
Novice
Posts: 5
Liked: never
Joined: Sep 14, 2015 10:00 am
Full Name: F Vaiss
Contact:

Pre-freeze scripts failing after installing Update 2b

Post by seraphin »

Immediately after updating B&R 8 to Update 2b, my scripts are failing with exit code 2.

The pre-freeze script is a .bat file with only one line "net stop MySQL56", and post-thaw is "net start MySQL56"

This was working fine on ver 8 before installing Update 2b.

Code: Select all

[13.09.2015 02:06:36] <24> Info     [ScriptInvoker] Windows script exit code = '2'
[13.09.2015 02:06:36] <24> Info     [ScriptInvoker] Script finished with exit code = '2'
[13.09.2015 02:06:36] <24> Error    Script finished execution with unexpected exit code: 2 (System.Exception)
(Support case ID = 01022565)

I've tried running "sc stop" instead of "net stop", but no luck.

This is happening to other Windows 2012R2 VM's as well. Environment is Hyper-V 2012R2. B&R is installed on the Hyper-V host. Gues OS creds are the domain admin's.
Vitaliy S.
VP, Product Management
Posts: 27120
Liked: 2721 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by Vitaliy S. »

seraphin wrote:This is happening to other Windows 2012R2 VM's as well.
Does it also have a MySQL server or the script does something extra? Have you tried to do a test with any other VM that didn't use script before as a part of the backup job?
seraphin
Novice
Posts: 5
Liked: never
Joined: Sep 14, 2015 10:00 am
Full Name: F Vaiss
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by seraphin »

I have tested stopping/starting services (via pre-freeze scripts) with other VM's, for example using: net stop "print spooler". It fails on all of my VM's with exit code 2. This was working fine before upgrading to Update 2b.

I think this is related to permissions on the VM, because if my .bat script simply contains md c:\testdir, then it works fine. The problem occurs when trying to stop or start a service.
Vitaliy S.
VP, Product Management
Posts: 27120
Liked: 2721 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by Vitaliy S. »

Can you try to specify built-in local admin account to stop these services? If this doesn't help, then I would suggest continue working with our support team for further troubleshooting.
seraphin
Novice
Posts: 5
Liked: never
Joined: Sep 14, 2015 10:00 am
Full Name: F Vaiss
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by seraphin »

It works fine with the built-in local admin account.
Vitaliy S.
VP, Product Management
Posts: 27120
Liked: 2721 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by Vitaliy S. »

Thanks for the update, seems like either UAC/Microsoft update/GPO reconfiguration or some other settings prevented you from using the domain admin account.
seraphin
Novice
Posts: 5
Liked: never
Joined: Sep 14, 2015 10:00 am
Full Name: F Vaiss
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by seraphin »

I'm not so sure about that. My domain config is fairly default. Win updates and UAC switched off. The script was running fine before installing Update 2b. But I'm happy to have a workaround. Thanks.
remko.de.koning
Enthusiast
Posts: 92
Liked: 18 times
Joined: May 21, 2014 12:15 pm
Full Name: Remko de Koning
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by remko.de.koning »

Hi, just wondering if you perhaps have any update on this? I am seeing the same thing.
The pre-script is able to create a folder just fine. Just not able to stop a service.
SQL Scripts that put for example Oracle in Hot-Backup mode work, but stopping the service itself fails. The account configured for this is an administrator on the guest PC. Also domain admin accounts fail.
From what I can remember this used to work just fine.

I had this for a MySQL database and could not figure out why it was not working. In the end I just gave up and did not use any pre or post scripts. Your post kind of reminded me again that I still need to get this to work somehow.
Vitaliy S.
VP, Product Management
Posts: 27120
Liked: 2721 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by Vitaliy S. »

The OP's ticket is in the research/testing phase, so can't say much about that yet. Does the local, built-in admin work with your scripts?
remko.de.koning
Enthusiast
Posts: 92
Liked: 18 times
Joined: May 21, 2014 12:15 pm
Full Name: Remko de Koning
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by remko.de.koning »

Just for my comprehension...

There are two places where pre and post scripts can be defined.
[*]Advanced settings --> Advanced TAB (Used for all VM's?)
[*]Guest Processing --> Button "Applications" --> Choose VM --> Scripts Tab (Used for Individual VM's?)

I am using the last option and running this with domain account.
When I use the local Administrator account it fails as well with error message
Running pre-freeze script in the guest OS
Script Finished with execution exit code:2
Using the local admin account will be a bit difficult in productions as my local admin password changes every month (Good post by the way about LAPS :D )
Vitaliy S.
VP, Product Management
Posts: 27120
Liked: 2721 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by Vitaliy S. »

In this case please contact our support team with a reference to the OP's case ID, should help in finding the solution. Once you open a case, please let us know your case ID as well.
Magz
Service Provider
Posts: 20
Liked: 1 time
Joined: Aug 08, 2012 9:06 am
Full Name: Magne Stenwig
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by Magz »

I am having the exact same problem. Please post the solution if you get one from the support-team.
remko.de.koning
Enthusiast
Posts: 92
Liked: 18 times
Joined: May 21, 2014 12:15 pm
Full Name: Remko de Koning
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by remko.de.koning »

I will try to put in a case tommorow. Will not be able to do this sooner.
Vitaliy S.
VP, Product Management
Posts: 27120
Liked: 2721 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by Vitaliy S. »

Magne, I would recommend to open a case as well, this will give a higher priority to this issue for our Q&A team, and you will be immediately notified about a possible fix (if there is one).
remko.de.koning
Enthusiast
Posts: 92
Liked: 18 times
Joined: May 21, 2014 12:15 pm
Full Name: Remko de Koning
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by remko.de.koning »

Case # 01062080 has been put in.

I believe I have found the reason why the scripts are failing.
Did various test on various type of servers. All failed with exit code 2.
No matter if it was a local administrator account or domain admin account.

As said....Doing tasks without administrative privileges works fine. As soon as admin rights are needed things start failing.

I wondered if UAC might be the culprit so I set UAC to its lowest setting on the VM. This seemed to have solved the issue. I am wondering if someone perhaps can confirm my findings?

Remko
foggy
Veeam Software
Posts: 21071
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by foggy »

Just to double-check, do you use built-in accounts or just accounts with appropriate administrative rights? Build-in accounts are exempt from UAC by default.
remko.de.koning
Enthusiast
Posts: 92
Liked: 18 times
Joined: May 21, 2014 12:15 pm
Full Name: Remko de Koning
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by remko.de.koning »

I used a domain admin account and a local administrator (.\Administrator) . Just curious myself. How would one go about using build-in accounts?
It is not possible to choose any of these in the "Guest OS Credentials" part.
I am a bit puzzled.... :?
foggy
Veeam Software
Posts: 21071
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by foggy »

You can add any account in the Manage Credentials dialog. Or am I misinterpreting your question?
seraphin
Novice
Posts: 5
Liked: never
Joined: Sep 14, 2015 10:00 am
Full Name: F Vaiss
Contact:

Re: Pre-freeze scripts failing after installing Update 2b

Post by seraphin »

In my environment, it fails regardless of UAC config, and only the builtin local admin account works with the scripts to stop/start services.
Post Reply

Who is online

Users browsing this forum: Brad.Barker, mibrown9954 and 133 guests