Upgrade 2.0 --> 2.02 problem
Moderator: SourceGear
Upgrade 2.0 --> 2.02 problem
Greetings,
I've been using version 2.0 for a while as a single user. I decided to upgade to 2.02 last night. When I did, I can no longer log in. It doesn't seem to find the database server. It says it failed to establish a connection to the database server yet, all my own softwre that I write has no problems connecting to the server and besides, I was connecting just find up until the minute I decided to upgrade (its the source control system I use in the stead of SourceSafe).
My client is WinXP Pro SP1 (all updates applied), server is Win2k Server SP3 (all updates applied), SQL 2k SP3.
The way I upgraded was simply by just installing 2.02. I didn't uninstall the old one but according to the way I read the instructions, that is ok.
Thanks,
Shawn
I've been using version 2.0 for a while as a single user. I decided to upgade to 2.02 last night. When I did, I can no longer log in. It doesn't seem to find the database server. It says it failed to establish a connection to the database server yet, all my own softwre that I write has no problems connecting to the server and besides, I was connecting just find up until the minute I decided to upgrade (its the source control system I use in the stead of SourceSafe).
My client is WinXP Pro SP1 (all updates applied), server is Win2k Server SP3 (all updates applied), SQL 2k SP3.
The way I upgraded was simply by just installing 2.02. I didn't uninstall the old one but according to the way I read the instructions, that is ok.
Thanks,
Shawn
Here is the output:
The log is redundant in the manner above.
Thanks for the help,
Shawn
Code: Select all
----4/29/2004 11:31:17 PM sgvaultsystem--()--
Vault Failed to establish a connection to the database.
----4/29/2004 11:31:17 PM sgvaultsystem--()--
Login failed for user 'sgvaultuser'.
----4/29/2004 11:31:17 PM sgvaultsystem--()--
The session information was not removed from the database. Please check sgvault.dbo.tblsessions within SQL Server. There may be orphaned sessions stored within the database. Error: FailDBConn
----4/29/2004 11:31:22 PM --CHARITY(192.168.1.20)--SSL Disabled
Vault Failed to establish a connection to the database.
Thanks for the help,
Shawn
Most likely, during the upgrade you entered a password for admin that was dfferent from you previous password, or you selected a different authentication scheme. Make sure that the sgvaultuser exists in your database, and that its password matches the vault admin password.
This SQL code is taken from http://support.sourcegear.com/viewtopic ... gvaultuser
These commands should configure your database properly.
This SQL code is taken from http://support.sourcegear.com/viewtopic ... gvaultuser
Code: Select all
USE [master]
IF ( NOT EXISTS (SELECT sid FROM syslogins WHERE name = 'sgvaultuser') )
EXEC sp_addlogin N'sgvaultuser', N'VAULTS_ADMIN_PWD', N'sgvault'
GO
-- next access should be granted in the vault database
USE [sgvault]
EXEC sp_grantdbaccess N'sgvaultuser'
EXEC sp_addrolemember N'db_owner', N'sgvaultuser'
GO
You shouldn't need to restore anything. You're data is there, and it's fine, we just need to get SQL set up so that Vault can access it. Try logging in to your SQL server through Query Analyzer as the sgvaultuser. I'm assuming that you typed a different admin password during the upgrade install. Can you log in as sgvaultuser with the new password? Can you log in as sgvaultuser with the old password?
If all else fails, you can uninstall the server (choosing to keep the database), then reinstall using Windows Authentication for the SQL connection (choosing to keep the database). Windows Authentication doesn't have the problem of updating the password.
If all else fails, you can uninstall the server (choosing to keep the database), then reinstall using Windows Authentication for the SQL connection (choosing to keep the database). Windows Authentication doesn't have the problem of updating the password.