Hi Team,
i am getting the below error on post installation of WSUS server.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
i am using WID
the log files gives the below error.
2019-01-10 23:46:08 Postinstall started
2019-01-10 23:46:08 Detected role services: Api, UI, WidDatabase, Services
2019-01-10 23:46:08 Start: LoadSettingsFromParameters
2019-01-10 23:46:08 Content local is: True
2019-01-10 23:46:08 Content directory is: sccmsrvhamdbs11.abc.com
2019-01-10 23:46:08 SQL instname is:
2019-01-10 23:46:08 End: LoadSettingsFromParameters
2019-01-10 23:46:08 Start: Run
2019-01-10 23:46:08 Fetching WsusAdministratorsSid from registry store
2019-01-10 23:46:08 Value is S-1-5-21-4268575216-2807771012-2215709554-1012
2019-01-10 23:46:08 Fetching WsusReportersSid from registry store
2019-01-10 23:46:08 Value is S-1-5-21-4268575216-2807771012-2215709554-1013
2019-01-10 23:47:07 Configuring content directory...
2019-01-10 23:47:07 Configuring groups...
2019-01-10 23:47:07 Starting group configuration for WSUS Administrators...
2019-01-10 23:47:07 Found group in regsitry, attempting to use it...
2019-01-10 23:47:10 Writing group to registry...
2019-01-10 23:47:10 Finished group creation
2019-01-10 23:47:10 Starting group configuration for WSUS Reporters...
2019-01-10 23:47:10 Found group in regsitry, attempting to use it...
2019-01-10 23:47:10 Writing group to registry...
2019-01-10 23:47:10 Finished group creation
2019-01-10 23:47:10 Configuring permissions...
2019-01-10 23:47:10 Fetching content directory...
2019-01-10 23:47:10 Fetching ContentDir from registry store
2019-01-10 23:47:10 Value is sccmsrvhamdbs11.abc.com
2019-01-10 23:47:10 Fetching group SIDs...
2019-01-10 23:47:10 Fetching WsusAdministratorsSid from registry store
2019-01-10 23:47:10 Value is S-1-5-21-4268575216-2807771012-2215709554-1012
2019-01-10 23:47:10 Fetching WsusReportersSid from registry store
2019-01-10 23:47:10 Value is S-1-5-21-4268575216-2807771012-2215709554-1013
2019-01-10 23:47:10 Creating group principals...
2019-01-10 23:47:10 Granting directory permissions...
2019-01-10 23:47:10 Granting permissions on content directory...
2019-01-10 23:47:10 Granting registry permissions...
2019-01-10 23:47:10 Granting registry permissions...
2019-01-10 23:47:10 Granting registry permissions...
2019-01-10 23:47:10 Configuring shares...
2019-01-10 23:47:10 Configuring network shares...
2019-01-10 23:47:10 Fetching content directory...
2019-01-10 23:47:10 Fetching ContentDir from registry store
2019-01-10 23:47:10 Value is sccmsrvhamdbs11.abc.com
2019-01-10 23:47:10 Fetching WSUS admin SID...
2019-01-10 23:47:10 Fetching WsusAdministratorsSid from registry store
2019-01-10 23:47:10 Value is S-1-5-21-4268575216-2807771012-2215709554-1012
2019-01-10 23:47:10 Content directory is local, creating content shares...
2019-01-10 23:47:10 Creating share "UpdateServicesPackages" with path "sccmsrvhamdbs11.abc.com\UpdateServicesPackages" and description "A network share to be used by client systems for collecting all software packages (usually
applications) published on this WSUS system."
2019-01-10 23:47:10 Deleting existing share...
2019-01-10 23:47:10 Creating share...
2019-01-10 23:47:10 Share successfully created
2019-01-10 23:47:10 Creating share "WsusContent" with path "sccmsrvhamdbs11.abc.com\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system."
2019-01-10 23:47:10 Deleting existing share...
2019-01-10 23:47:10 Creating share...
2019-01-10 23:47:10 Share successfully created
2019-01-10 23:47:10 Creating share "WSUSTemp" with path "C:\Program Files\Update Services\LogFiles\WSUSTemp" and description "A network share used by Local Publishing from a Remote WSUS Console Instance."
2019-01-10 23:47:11 Deleting existing share...
2019-01-10 23:47:11 Creating share...
2019-01-10 23:47:11 Share successfully created
2019-01-10 23:47:11 Finished creating content shares
2019-01-10 23:47:11 Stopping service WSUSService
2019-01-10 23:47:11 Stopping service W3SVC
2019-01-10 23:47:11 Configuring WID database...
2019-01-10 23:47:11 Configuring the database...
2019-01-10 23:47:11 Establishing DB connection...
2019-01-10 23:48:11 Re-Establishing Connection to execute Multi User Query ...
2019-01-10 23:48:11 System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is
correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.UpdateServices.DatabaseAccess.DBConnection.Connect(String connectionString)
at Microsoft.UpdateServices.Administration.ConfigureDB.CreateDBConnection()
at Microsoft.UpdateServices.Administration.ConfigureDB.TryEnsureDatabaseIsInMultiUserMode()
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:2,State:0,Class:20
2019-01-10 23:48:11 System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is
correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.UpdateServices.DatabaseAccess.DBConnection.Connect(String connectionString)
at Microsoft.UpdateServices.Administration.ConfigureDB.CreateDBConnection()
at Microsoft.UpdateServices.Administration.ConfigureDB.ConnectToDB()
at Microsoft.UpdateServices.Administration.ConfigureDB.Configure()
at Microsoft.UpdateServices.Administration.ConfigureDB.Run(String instanceName, Action`1 logWriter, Boolean contentLocal)
at Microsoft.UpdateServices.Administration.PostInstall.Run()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:2,State:0,Class:20
TechGUy,System Administrator.