Error 402 when attempting install with SQL Server Express

If you are having a problem using Vault, post a message here.
Post Reply
MBeanland
Posts: 7
Joined: Mon Jul 27, 2015 2:21 pm

Error 402 when attempting install with SQL Server Express

Post by MBeanland » Mon Jul 27, 2015 2:32 pm

I have failed repeatedly with my attempted installations. SQL Express seems to be running fine, but I keep hitting the following error:

Creating a new Vault Professional database on RTR-LEXPARK\SQLEXPRESS...
Creating the SourceGear master database...CREATE DATABASE permission denied in database 'master'.
Vault Professional Setup is exiting due to a failure or cancellation. Error Code = 402

I suspect this is a permission issue, but can't identify what part of the SQL Express configuration needs to be altered to allow the installation to proceed.
Any help would be appreciated.
MLB

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error 402 when attempting install with SQL Server Expres

Post by Beth » Mon Jul 27, 2015 4:00 pm

You are correct that the issue is with permissions.

When you connect to SQL Express, are you using Windows authentication or SQL authentication?

If you're using SQL authentication, which user login are you using? When using SQL authentication, the user you log in with needs SQL sysadmin permissions, such as 'sa'. This is only for the install, and not for the daily running of Vault.
Beth Kieler
SourceGear Technical Support

MBeanland
Posts: 7
Joined: Mon Jul 27, 2015 2:21 pm

Re: Error 402 when attempting install with SQL Server Expres

Post by MBeanland » Tue Jul 28, 2015 7:54 am

I'm using Windows Authentication.

Should I change to SQL Authentication or can this be made to work with my present configuration?

Thanks,
MLB

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error 402 when attempting install with SQL Server Expres

Post by Beth » Wed Jul 29, 2015 8:48 am

Is your Windows login a domain admin or a SQL admin? If you give your own login enough rights, then it will be fine.

Is the SQL Server on a different machine than the Vault server or the same machine? If they're on a different machine, then I'd suggest using SQL authentication instead and logging in with 'sa'.
Beth Kieler
SourceGear Technical Support

MBeanland
Posts: 7
Joined: Mon Jul 27, 2015 2:21 pm

Re: Error 402 when attempting install with SQL Server Expres

Post by MBeanland » Wed Jul 29, 2015 8:49 am

What I have done since my last post is to fire up the SQL Server [2014] Management Studio and, using my Windows Authentication login, I have both connected to the master DB and created a DB for test purposes.

So far as I can tell from the install log, the Vault installation is able to open and connect to SQL server. bit it fails when attempting to create a DB.

I cannot identify anything in SQL Server Express that is not functioning or mal-configured and the Vault installation program offers no parameters that I can set so that things will work properly.

MBeanland
Posts: 7
Joined: Mon Jul 27, 2015 2:21 pm

Re: Error 402 when attempting install with SQL Server Expres

Post by MBeanland » Wed Jul 29, 2015 10:32 am

To answer your question from above...SQL Server is installed and running on the same machine that I'm trying to install Vault on.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error 402 when attempting install with SQL Server Expres

Post by Beth » Wed Jul 29, 2015 4:06 pm

Run a command prompt as administrator and then run the installer from that command prompt. Then let me know your results.
Beth Kieler
SourceGear Technical Support

MBeanland
Posts: 7
Joined: Mon Jul 27, 2015 2:21 pm

Re: Error 402 when attempting install with SQL Server Expres

Post by MBeanland » Thu Jul 30, 2015 9:40 am

Identical outcome; install log is below

Looking for IIS Version
Configuring your new Vault Professional Installation
Requesting the IIS Process User...
Modifying VaultAppPool...
Properties: Id=ApplicationPoolIdentity, .NET=v4.0, Mode=Integrated
Modifying VaultShadowFolderAppPool...
Properties: Id=ApplicationPoolIdentity, .NET=v4.0, Mode=Integrated
Modifying VaultIndexAppPool...
Properties: Id=ApplicationPoolIdentity, .NET=v4.0, Mode=Integrated
Modifying VaultNotifyAppPool...
Properties: Id=ApplicationPoolIdentity, .NET=v4.0, Mode=Integrated
Modifying SgDavAppPool...
Properties: Id=ApplicationPoolIdentity, .NET=v4.0, Mode=Classic
Creating Applications in IIS for web services...
VaultService application created.
Creating Applications in IIS for Vault Professional Work Item web services...
Vault Professional application created.
Creating Applications in IIS for VaultShadowFolder web services...
VaultShadowFolder application created.
Creating Applications in IIS for Find in Files Index web services...
VaultIndexService application created.
Creating Applications in IIS for Notification web services...
VaultNotificationService application created.
Creating Applications in IIS for SdDav web services...
SgDav application created.
Creating Virtual Directories...
VaultService Virtual Directory created.
Vault Professional Virtual Directory created.
VaultShadowFolder Virtual Directory created.
VaultIndexService Virtual Directory created.
VaultNotificationService Virtual Directory created.
SgDav Virtual Directory created.
Requesting Admin user password...OK
Connecting to the SQL Server...OK
Verifying the SQL Server requirements...OK
Checking for existing databases...Not found.
Creating a new Vault Professional database on RTR-LEXPARK\SQLEXPRESS...
Creating the SourceGear master database...CREATE DATABASE permission denied in database 'master'.
Vault Professional Setup is exiting due to a failure or cancellation. Error Code = 402

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error 402 when attempting install with SQL Server Expres

Post by Beth » Thu Jul 30, 2015 2:09 pm

permission denied in database 'master'.
Still not enough rights. You might try using SQL authentication and login with the 'sa' account. Then let me know your results.
Beth Kieler
SourceGear Technical Support

MBeanland
Posts: 7
Joined: Mon Jul 27, 2015 2:21 pm

Re: Error 402 when attempting install with SQL Server Expres

Post by MBeanland » Fri Jul 31, 2015 8:16 am

One problem solved, now on the the next one:
The Install Solution:
1. Read the post from Beth very carefully and follow it exactly--i.e., I ran the install from a command prompt thinking that as I had Admin rights, that would be sufficient...then I remembered that Admin rights have to be specifically invoked in order to apply. So I was able to install both the Vault Server and the Client Application.

New problem;
--The server login page is asking me to logon with the "the "admin" username and the password that you supplied during the install"
I did not provide an specific user name as I set the configuration to use Windows Authentication. I did provide an password, which I have used to no avail.
My Windows user name and password do not work
My email address and Windows password do not work
Neither of the above will work with the Vault Password that I provided

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error 402 when attempting install with SQL Server Expres

Post by Beth » Fri Jul 31, 2015 9:20 am

Login name for the Vault admin web page is always just admin.

The password would have been what you had to type twice into a window during the install. Check that you didn't accidentally have caps lock on or any of the usual password trip-ups.

If it still won't work, you have two options.
1) Have a user with admin level rights login to the Vault admin web page and change the admin password,
or
2) Uninstall Vault, but choose the option to keep the database, then install again. During the install, you will get the chance to set the password again.
Beth Kieler
SourceGear Technical Support

MBeanland
Posts: 7
Joined: Mon Jul 27, 2015 2:21 pm

Re: Error 402 when attempting install with SQL Server Expres

Post by MBeanland » Fri Jul 31, 2015 10:06 am

Fixed.

I've no doubt you're pulling your hair out by now, but thanks for your help.
MLB

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error 402 when attempting install with SQL Server Expres

Post by Beth » Fri Jul 31, 2015 10:18 am

You're welcome. I'm fine. :)
Beth Kieler
SourceGear Technical Support

Post Reply