2.0.6 to 3.1.8 Upgrade Failure: Can't run CHECKPOINT
Moderator: SourceGear
2.0.6 to 3.1.8 Upgrade Failure: Can't run CHECKPOINT
We got this message when upgrading the database "Only the owner of database 'master' can run the CHECKPOINT statement." What did we do and what do we do? We are using a SQL Server managed userid.
Within the installation, when you connected to the database, you used an account to access SQL Server. The Vault Server installation requires you use an SQL administrative account. From the looks of your error message, the managed account did not have rights to the master database.
To fix, uninstall the Vault Server (keeping the database if you are prompted). Then re-install. When you connect to the SQL Server database, use an account with administrative priviledges to SQL Server. Make sure you choose to use the existing database when prompted during re-installation.
To fix, uninstall the Vault Server (keeping the database if you are prompted). Then re-install. When you connect to the SQL Server database, use an account with administrative priviledges to SQL Server. Make sure you choose to use the existing database when prompted during re-installation.
Jeff Clausius
SourceGear
SourceGear
We increased the authority of the SQL userid to server admin and ran the install again without uninstalling. This time it ran through the database upgrade quickly as if it did the upgrade the first time but failed on the checkpoint. The failure appears to not have rolled back the changes. Does that make sense?
Using the client from several workstations appears to be fine except for one that is having the ticks error.
Using the client from several workstations appears to be fine except for one that is having the ticks error.
If you made a backup of the sgvault database before running the Server installation, keep that backup handy for the next couple of days.
If things seem to be working correctly, then you can discard the backup. If things seem to be acting incorrectly, I would recommend a two step approach:
A) Uninstall (Keep the database). Re-install (Use existing database). See if that fixes the problem. It could be something was missed during the database schema upgrade.
If that doesn't work,
B) Restore the sgvault database from before the installation, and re-try the installation again.
As for the ticks problem, the client side storage was changed from Vault 2.x to Vault 3.x (to deal with a change in .Net's serialization routines). If you can have that user close all Vault clients and then search / delete the files CacheMember_Repository / CacheMember_LastStructureGetTime files from their local disk, the tick problems should disappear.
If things seem to be working correctly, then you can discard the backup. If things seem to be acting incorrectly, I would recommend a two step approach:
A) Uninstall (Keep the database). Re-install (Use existing database). See if that fixes the problem. It could be something was missed during the database schema upgrade.
If that doesn't work,
B) Restore the sgvault database from before the installation, and re-try the installation again.
As for the ticks problem, the client side storage was changed from Vault 2.x to Vault 3.x (to deal with a change in .Net's serialization routines). If you can have that user close all Vault clients and then search / delete the files CacheMember_Repository / CacheMember_LastStructureGetTime files from their local disk, the tick problems should disappear.
Jeff Clausius
SourceGear
SourceGear
The CHECKPOINT is done in the stored procedure upgrade routine - as the 2nd to last command.
If the "Ugrading database" section of the install went normally, and you had an error during the stored procedure update, then there is nothing to fear. The uninstall/reinstall method I mentioned above is one way to "refresh" your stored procedures.
If you are a bit uncertain about the database procs, just take the 5 minuntes to do the uninstall / reinstall (keeping the database) routine. That way you will know your stored procedures are correct.
If the "Ugrading database" section of the install went normally, and you had an error during the stored procedure update, then there is nothing to fear. The uninstall/reinstall method I mentioned above is one way to "refresh" your stored procedures.
If you are a bit uncertain about the database procs, just take the 5 minuntes to do the uninstall / reinstall (keeping the database) routine. That way you will know your stored procedures are correct.
Jeff Clausius
SourceGear
SourceGear
We are getting this error from one of our developers.
Upload for item $/Project Scheduling 41110 (PSS)/Source Code/Project Scheduling System.vbw failed too many times, aborting transaction.
Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client.
The specific error was "The server returned an unknown error header: VaultFileUpload.aspx encountered: FailDeltaApply"
An exception was encountered during the transaction. Exception: The server returned an unknown error header: VaultFileUpload.aspx encountered: FailDeltaApply at VaultClientOperationsLib.ClientInstance.UploadItem(ChangeSetItem item, String txID, Byte[]& streamBuffer, Int32& bytesWrittenThisFile, Boolean bIsImport) at VaultClientOperationsLib.UploadThread.ProcessCommand(UploadThreadCommand command, UploadThreadCommandResult& outputResult)
His network options are the same as mine which works fine.
Upload for item $/Project Scheduling 41110 (PSS)/Source Code/Project Scheduling System.vbw failed too many times, aborting transaction.
Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client.
The specific error was "The server returned an unknown error header: VaultFileUpload.aspx encountered: FailDeltaApply"
An exception was encountered during the transaction. Exception: The server returned an unknown error header: VaultFileUpload.aspx encountered: FailDeltaApply at VaultClientOperationsLib.ClientInstance.UploadItem(ChangeSetItem item, String txID, Byte[]& streamBuffer, Int32& bytesWrittenThisFile, Boolean bIsImport) at VaultClientOperationsLib.UploadThread.ProcessCommand(UploadThreadCommand command, UploadThreadCommandResult& outputResult)
His network options are the same as mine which works fine.
Can you check the Vault Server Log for any errors? I don't suspect there will be any, but I want to double check.
The FailDeltaApply generally has errors in two places:
1) The download stream was corrupted, and it could not create the file from the get.
OR
2) The baseline file (stored in the _sgvault folder) was corrupted, and the file cannot be recreated.
In the meantime, I'm going to ask someone else more familiar with this problem to step in.
The FailDeltaApply generally has errors in two places:
1) The download stream was corrupted, and it could not create the file from the get.
OR
2) The baseline file (stored in the _sgvault folder) was corrupted, and the file cannot be recreated.
In the meantime, I'm going to ask someone else more familiar with this problem to step in.
Jeff Clausius
SourceGear
SourceGear
Here's the log. I trimmed it down to just today's entries since the upgrade.
- Attachments
-
- sgvault.txt
- (10.68 KiB) Downloaded 613 times
You could try backing up the modified files, then try a "Get latest" to fetch another baseline.
Another thing to try is deleting the state folder (_sgvault). This usually is in the client-side cache files or in the working folder, depending on the settings in the Vault Client Tools->Options->Local Files Cache/Backup location.
You should backup any modified files in the working directories, before you do this, as file status will be Unknown and you'll do a "get latest" to retrieve new baselines.
Similar user experience here:
http://support.sourcegear.com/viewtopic.php?t=4694
Another thing to try is deleting the state folder (_sgvault). This usually is in the client-side cache files or in the working folder, depending on the settings in the Vault Client Tools->Options->Local Files Cache/Backup location.
You should backup any modified files in the working directories, before you do this, as file status will be Unknown and you'll do a "get latest" to retrieve new baselines.
Similar user experience here:
http://support.sourcegear.com/viewtopic.php?t=4694
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager