Install 4.12 failed (over 3.53 DB) DB Error -1280

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Tri
Posts: 288
Joined: Wed Dec 22, 2004 11:10 am

Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by Tri » Mon Jul 28, 2008 2:45 pm

Hi,

This is a second attempt to install Vault Server 4.12 before production deployment. On my first try, the installation went Ok but I got HttpException when trying to connect to the Admin Web Client. The error was reported here: http://support.sourcegear.com/viewtopic ... 22&t=10619

Then I uninstall + reinstall Vault Server 4.12 and everything works OK. I could test Vault Client OK from a remote machine. Now I make a second attempt to make sure the HttpException error I got previously was not an error I made somewhere the 1st time. Here is the context of the 2 attemp:

- On the same test machine used for the 1st installation of Vault 4.12
(Win2003 standard 32 bits, SQL Server 2005, both have service packs & updates up to July 2008)

1- Uninstall Vault Server 4.12

2- Drop sgvault DB

3- Restore a new sgvault DB backed up from our production Vault 3.53 DB. This backup is in SQL Server 2000 format and is dated from yesterday. For the 1st attemp described above, I used the backup from 2 weeks earlier.

4- The DB restore went OK, SQL Server 2005 reported "RESTORE DATABASE successfully processed 3248662 pages in 2948.171 seconds (9.026 MB/sec).
"

5- Install Vault Server 4.12, accept all default dialog and use the same Vault Admin pwd than the production environment.

6- After about 1 minute or 2, the installation aborted due to a DB error Vault Setup is exiting due to a failure or cancellation. Error Code = -1280 and the sgvault DB is left in single user mode. Here is the error in displayed in the DB update progression screen:

Code: Select all

Looking for IIS Version 
Configuring your new Vault Installation
Requesting the IIS Process User...Requesting Vault Admin user password...OK
Connecting to the SQL Server...OK
Verifying the SQL Server requirements...OK
Checking for an existing databases...Found.
Asking for database's fate...Keep existing.
Upgrading the existing source control database...
This may take a long time. Do NOT stop this process!
	Checking the installed database version...OK
	Grant database access to NT AUTHORITY\NETWORK SERVICE...OK
	Upgrading SourceGear master database schema...OK
	Upgrading SourceGear source control database schema...Violation of PRIMARY KEY constraint 'pk_serialnumbers'. Cannot insert duplicate key in object 'dbo.serialnumbers'.
Violation of PRIMARY KEY constraint 'pk_groups'. Cannot insert duplicate key in object 'dbo.groups'.
Violation of PRIMARY KEY constraint 'pk_users'. Cannot insert duplicate key in object 'dbo.users'.
Violation of PRIMARY KEY constraint 'pk_groupmembers'. Cannot insert duplicate key in object 'dbo.groupmembers'.
Dropping extended properties
Dropping foreign keys from [dbo].[tblgroupmembers]
Dropping foreign keys from [dbo].[tblcheckoutlistitems]
Dropping foreign keys from [dbo].[tblfsobjectlabelchanges]
Dropping foreign keys from [dbo].[tbldelayusersecuritychanges]
Dropping foreign keys from [dbo].[tblusersecuritychanges]
Dropping foreign keys from [dbo].[tblsessions]
Dropping foreign keys from [dbo].[tblsessionlabelqueries]
Dropping foreign keys from [dbo].[tblsessionbranchsandbox]
Dropping foreign keys from [dbo].[tblclientoptions]
Dropping foreign keys from [dbo].[tbluserrepositories]
Dropping foreign keys from [dbo].[tblloginattempts]
Dropping foreign keys from [dbo].[tblfsobjectlabels]
Dropping foreign keys from [dbo].[tbltransactions]
Dropping foreign keys from [dbo].[tblhistoryfavorites]
Dropping foreign keys from [dbo].[tblsessionrecursivelabelqueries]
Dropping foreign keys from [dbo].[tblsessionfolderexports]
Dropping foreign keys from [dbo].[tblcloaks]
Dropping foreign keys from [dbo].[tblwatchers]
Dropping constraints from [dbo].[tblusers]
Dropping constraints from [dbo].[tblusers]
Dropping constraints from [dbo].[tblusers]
Dropping constraints from [dbo].[tblusers]
Dropping constraints from [dbo].[tblusers]
Dropping constraints from [dbo].[tblusers]
Dropping constraints from [dbo].[tblgroupmembers]
Dropping constraints from [dbo].[tblgroups]
Dropping constraints from [dbo].[tblgroups]
Dropping constraints from [dbo].[tblloginattempts]
Dropping constraints from [dbo].[tblsessions]
Dropping index [idxuserlogins] from [dbo].[tblusers]
Dropping index [idxsessionsuserid] from [dbo].[tblsessions]
Dropping [dbo].[spcleansessions]
Dropping [dbo].[spdeletesession]
Dropping [dbo].[spaddsession]
Dropping [dbo].[splogin]
Dropping [dbo].[spgetlogininfo]
Dropping [dbo].[spdeletelicensekey]
Dropping [dbo].[spdeleteserialnum]
Dropping [dbo].[spaddserialnum]
Dropping [dbo].[spgetserialnums]
Dropping [dbo].[spcleanloginattempts]
Dropping [dbo].[spchangepassword]
Dropping [dbo].[spgetgroupmembers]
Dropping [dbo].[spgetgroups]
Dropping [dbo].[spdeletegroupmembers]
Dropping [dbo].[spaddgroupmember]
Dropping [dbo].[speditgroup]
Dropping [dbo].[spaddgroup]
Dropping [dbo].[tbllicensekeys]
The statement has been terminated.
Dropping [dbo].[tblloginattempts]
Dropping [dbo].[tblsessions]
Dropping [dbo].[tblgroups]
The statement has been terminated.
Dropping [dbo].[tblgroupmembers]
The statement has been terminated.
The statement has been terminated.
Rebuilding [dbo].[tblusers]
Caution: Changing any part of an object name could break scripts and stored procedures.
Creating primary key [pk_tblusers] on [dbo].[tblusers]
Adding constraints to [dbo].[tblusers]
Adding foreign keys to [dbo].[tbluserrepositories]
Adding foreign keys to [dbo].[tblusersecuritychanges]
Adding foreign keys to [dbo].[tblfsobjectlabels]
Adding foreign keys to [dbo].[tblclientoptions]
Adding foreign keys to [dbo].[tblhistoryfavorites]
Adding foreign keys to [dbo].[tblwatchers]
Adding foreign keys to [dbo].[tblcloaks]
Adding foreign keys to [dbo].[tbldelayusersecuritychanges]
Adding foreign keys to [dbo].[tblfsobjectlabelchanges]
Adding foreign keys to [dbo].[tbltransactions]
Adding foreign keys to [dbo].[tblcheckoutlistitems]
The database update failed
Error during Vault upgrade script.
Vault Setup is exiting due to a failure or cancellation. Error Code = -1280
The most notable difference is that the sgvault DB (from SQL Server 2000) is from yesterday, 2 weeks later than the 1st attempt.
I will send to linda the vault_install.log by email. In the meantime, I'll try to rerun from Step 1 to see if the error is reproducible.

Thanks in advance for any help.

Tri
Posts: 288
Joined: Wed Dec 22, 2004 11:10 am

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by Tri » Mon Jul 28, 2008 2:55 pm

Oh, I didn't notice Vault 4x now adds a new DB named sgmaster. I didn't drop it. I only restored the sgvault DB. May be this is the reason of the DB failure?

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

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by Beth » Mon Jul 28, 2008 3:36 pm

You may very well be correct there. When attempting a second install, I would suggest performing an uninstall and just allowing the uninstaller to drop all the databases. Then restore again from a fresh back up and try the install again.
Beth Kieler
SourceGear Technical Support

Tri
Posts: 288
Joined: Wed Dec 22, 2004 11:10 am

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by Tri » Mon Jul 28, 2008 3:44 pm

I think when I uninstalled Vault Server 4.12, I answered keep DB. Now I have dropped BOTH sgvault and sgmaster. These two DBs are now guaranteed to disappear from the server. I am currently restoring the sgvault DB from v3.53 and will reinstall Vault Server 4.12 and will tell it to re-use existing DB. Hope it will recognize the 3.53 DB and convert it.

Since Vault Server 4.12 was installed on this server and uninstalled, I don't know if it could re-read a previous settings somewhere it kept from the very 1st install. I hope there will be no interference, because it would take me a lot of time to rebuild a fresh test server.

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

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by Beth » Mon Jul 28, 2008 3:58 pm

Hope it will recognize the 3.53 DB and convert it.
It will.
I don't know if it could re-read a previous settings somewhere it kept from the very 1st install.
No, it shouldn't.
Beth Kieler
SourceGear Technical Support

Tri
Posts: 288
Joined: Wed Dec 22, 2004 11:10 am

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by Tri » Mon Jul 28, 2008 4:28 pm

Installation SUCCESSFUL.

It was the sgmaster database that I forgot to drop before simulating a a fresh Vault Server installation. This time, no more DB Error, no more HttpException. I suppose that the HttpException I encountered at the very 1st installation was an error due to the prepration of Windows 2003 where the IIS component was not properly installed.

This time, right after the Vault Server 4.12 installation, The Admin Web client opened successfully and I could add the new Vault 4x licenses. The previous 3.5x serial number is listed as Obsolete. I assume I can delete it. Please confirm.

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

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by Beth » Tue Jul 29, 2008 9:35 am

Yes, you can delete the old license.

Thanks for the update on your success.
Beth Kieler
SourceGear Technical Support

kha
Posts: 221
Joined: Fri Sep 12, 2008 8:25 am

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by kha » Mon Sep 29, 2008 8:29 am

I have Beth's help with my fresh 4.1.2 installation. :D I got the same error code, but if you look into the vault_install.log file, there will be more details about this error. Mine is like:
Vault Setup is exiting due to a failure or cancellation. Error Code = -1280
This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
Vault Setup is exiting due to a failure or cancellation. Error Code = -1280ExitCode on exit: -1280
:idea: My problem turned out to be that my System cryptography: Sue FIPS compliant algorithms for encryption, hasing, and signing is ENABLED. So, I turned it to DISABLED, that solved the problem.

:arrow: FYI in case: To disable it, go to START – Administrator Tools – Local Security Settings – Security Options

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

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by Beth » Mon Sep 29, 2008 3:53 pm

Thanks for including the additional information.
Beth Kieler
SourceGear Technical Support

cyates
Posts: 2
Joined: Wed Dec 03, 2008 2:19 pm

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by cyates » Thu Dec 04, 2008 9:28 am

Hello, I am getting this same error upgrading from 3.5.2 to 4.1.4. I searched the entire hard drive for a vault_install.log and there is none.

I'm not sure what to do, can anybody shed some light on this? Thanks.

cyates
Posts: 2
Joined: Wed Dec 03, 2008 2:19 pm

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by cyates » Thu Dec 04, 2008 11:33 am

cyates wrote:Hello, I am getting this same error upgrading from 3.5.2 to 4.1.4. I searched the entire hard drive for a vault_install.log and there is none.

I'm not sure what to do, can anybody shed some light on this? Thanks.
Please disregard this message. I upgraded to 3.5.3 then 4.0 then 4.1.4 and I didn't get any errors.

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

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by Beth » Thu Dec 04, 2008 1:27 pm

Thanks for the update. I wouldn't have expected the extra steps to be needed, but they won't hurt anything. Happy to hear you are working again.
Beth Kieler
SourceGear Technical Support

geosteering
Posts: 1
Joined: Wed Dec 31, 2008 12:59 am

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by geosteering » Wed Dec 31, 2008 1:03 am

I found the same symptom and the same solution.
We are using Windows Server 2003 as a platform.
Perhaps this is relevant to why this was required.

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

Re: Install 4.12 failed (over 3.53 DB) DB Error -1280

Post by Beth » Wed Dec 31, 2008 1:04 pm

I'm assuming you are replying to the last user post where upgrading to 4.0.x was needed in the middle? Or are you referring to some other part of this thread?

I will make a mental note to see if it's consistently with Windows 2003 server that is involved. I suspect though it involves a particular setting being different. I think I can count on one hand the number of people that went through this issue, and we have many users with their Vault servers on Windows 2003
Beth Kieler
SourceGear Technical Support

Post Reply