SQL Server does not exist or access denied.
Moderator: SourceGear
SQL Server does not exist or access denied.
We are occasionally not able to get into Vault because the Vault server cannot connect to SQL Server. After a period of time it just mysteriously starts working. Here is a section of the log where the error starts:
Login
----11/30/2005 11:11:39 AM tstrum--of08610.dot.int.lan(172.28.28.105)--SSL Disabled
General network error. Check your network documentation.
----11/30/2005 11:11:39 AM tstrum--of08610.dot.int.lan(172.28.28.105)--SSL Disabled
GetRepositoryStructure returned: FailPermissionDenied
----11/30/2005 11:12:25 AM dingham--hlt08235.dot.int.lan(172.28.4.62)--SSL Disabled
Vault Failed to establish a connection to the database.
----11/30/2005 11:12:25 AM dingham--hlt08235.dot.int.lan(172.28.4.62)--SSL Disabled
Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
----11/30/2005 11:12:25 AM dingham--hlt08235.dot.int.lan(172.28.4.62)--SSL Disabled
FailDBConn
After this some of the timeout messages repeat but most of the entries look like this one:
FailDBConn
----11/30/2005 12:47:34 PM admin--ats09127.dot.int.lan(172.28.124.136)--SSL Disabled
Vault Failed to establish a connection to the database.
----11/30/2005 12:47:34 PM admin--ats09127.dot.int.lan(172.28.124.136)--SSL Disabled
SQL Server does not exist or access denied.
During the outage we are able to connect to the SQL Server instance and are able to retrieve data from it. However this was not done from the Vault server. We didn't try it from there. The SQL Server logs do not show any problems.
Do you have any ideas about what's going on?
Thanks
Tom
Login
----11/30/2005 11:11:39 AM tstrum--of08610.dot.int.lan(172.28.28.105)--SSL Disabled
General network error. Check your network documentation.
----11/30/2005 11:11:39 AM tstrum--of08610.dot.int.lan(172.28.28.105)--SSL Disabled
GetRepositoryStructure returned: FailPermissionDenied
----11/30/2005 11:12:25 AM dingham--hlt08235.dot.int.lan(172.28.4.62)--SSL Disabled
Vault Failed to establish a connection to the database.
----11/30/2005 11:12:25 AM dingham--hlt08235.dot.int.lan(172.28.4.62)--SSL Disabled
Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
----11/30/2005 11:12:25 AM dingham--hlt08235.dot.int.lan(172.28.4.62)--SSL Disabled
FailDBConn
After this some of the timeout messages repeat but most of the entries look like this one:
FailDBConn
----11/30/2005 12:47:34 PM admin--ats09127.dot.int.lan(172.28.124.136)--SSL Disabled
Vault Failed to establish a connection to the database.
----11/30/2005 12:47:34 PM admin--ats09127.dot.int.lan(172.28.124.136)--SSL Disabled
SQL Server does not exist or access denied.
During the outage we are able to connect to the SQL Server instance and are able to retrieve data from it. However this was not done from the Vault server. We didn't try it from there. The SQL Server logs do not show any problems.
Do you have any ideas about what's going on?
Thanks
Tom
How many users are using the server? It looks as if you're using more than 100 concurrent connections to the database.
In any case, this number can be controlled by the database's connection string with 'Max Pool Size' in Vault's web.config
Ex - <add key="ConnectString" value="Application Name='SourceGear Vault Server'; Connection Reset='true'; Server=(local); Database=sgvault; Max Pool Size=175; Integrated Security='true'" />
In any case, this number can be controlled by the database's connection string with 'Max Pool Size' in Vault's web.config
Ex - <add key="ConnectString" value="Application Name='SourceGear Vault Server'; Connection Reset='true'; Server=(local); Database=sgvault; Max Pool Size=175; Integrated Security='true'" />
Jeff Clausius
SourceGear
SourceGear
Tom:
Yes, just add the text to the connection string in web.config. You can use my example as a starting point. Also, I'd suggest making a backup of the file just in case.
Anyway, once you made your changes, save the file. Nothing else is required. IIS will take care of restarting the Vault server.
Yes, just add the text to the connection string in web.config. You can use my example as a starting point. Also, I'd suggest making a backup of the file just in case.
Anyway, once you made your changes, save the file. Nothing else is required. IIS will take care of restarting the Vault server.
Jeff Clausius
SourceGear
SourceGear
We are continuing to experience intermittant outages. Today other programs can establish a connection to SQL Server from the Vault web server but Vault cannot. It was working yesterday. We had an outage in our SQL Server during the night. Other programs have recovered but Vault stays unavailable for minutes to hours after the SQL Server is restored. The first time you ask to connect it takes a long time. After that the response is immediate. Does the service check once and then return the same result without checking each time? We are on 2.0.6.
There is a bug in the .Net framework in relation to connection pools. In essence, if at any time your SQL Server goes down while the Vault server has a valid connection in the database connection pool, you must restart the Vault server.
There are no work arounds, as the .Net Framework reports the database connections in the pool are still good, and there is no way to remove a connection from the pool in the 1.1 .Net Framework. The only option is to force a restart of the Vault server.
There are no work arounds, as the .Net Framework reports the database connections in the pool are still good, and there is no way to remove a connection from the pool in the 1.1 .Net Framework. The only option is to force a restart of the Vault server.
Jeff Clausius
SourceGear
SourceGear