winlin
Goto Top

WSUS Server aus lokalr Workgroup mit ext MSSQL Server verbinden

ICh habe einen MSSQL Server 2014 Standard Edition als externen MSSQL Server für meinen WSUS eingerichtet.
Beide Systeme sind nicht AD gejoint.

Wenn ich nun auf dem WSUS die Windows Update Service Rolle installieren will dann frage ich mich wie das funktioniert da beide lokale Accounts haben?!?!? Geht das überhaupt? Ich habe ja keinen Domänennutzer den ich im msql als db owner eintagen kann und somit auch keinen User mit dem ich den WSUS Setup durchführen kann?!?!

Wie mcht man das ???

Content-Key: 307738

Url: https://administrator.de/contentid/307738

Printed on: April 19, 2024 at 18:04 o'clock

Member: Pjordorf
Pjordorf Jun 21, 2016 at 08:43:32 (UTC)
Goto Top
Hallo,

Zitat von @winlin:
Geht das überhaupt?
Klar

Ich habe ja keinen Domänennutzer
Lokale benutzer tun es auch. Rechnername\Benutzername hat fast gleiche bedeutung wie dein Domäne\Benutzer - beides spezifiert ein (Domäne\Benutzer) Objekt. Lokale Rechner haben ihre eigene Domäne - den Rechnername....

Wie mcht man das ???
Sind doch beides (der SQL und der WSUS) aufm gleichen Blech oder?

Gruß,
Peter
Member: winlin
winlin Jun 21, 2016 updated at 19:04:54 (UTC)
Goto Top
mssql server ist seperat und der wsus auch beide nicht domain gejoint. aber beide im gleichen netz. habe beide in die gleiche workgroup getan firewall freischaltung mit port 1433 durchgeführt und nun konnte ich beim wsus setup die mssql connecten. beim post installation task des wsus dann folgende meldung
Fatal Error: The local computer is not joined to a domain or the domain cannot be contacted.
in der Logdatei steht am ende das hier:
2016-06-21 20:51:15  Reestablishing database connection...
2016-06-21 20:51:15  Configuring database...
2016-06-21 20:51:15  Writing settings...
2016-06-21 20:51:15  Settings set
2016-06-21 20:51:15  Creating logins...
2016-06-21 20:51:15  Fetching machine account info
2016-06-21 20:51:15  System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The local computer is not joined to a domain or the domain cannot be contacted.
   at System.DirectoryServices.ActiveDirectory.Domain.GetComputerDomain()
   at Microsoft.UpdateServices.Administration.ConfigureDB.GetMachineAccountInfo(Byte& binarySid, String& accountName)
   at Microsoft.UpdateServices.Administration.ConfigureDB.Configure()
   at Microsoft.UpdateServices.Administration.PostInstall.Run()
   at Microsoft.UpdateServices.Administration.PostInstall.Execute(String arguments)

Der lokale Admin auf beiden Servern heisst Administrator und haben dieselben Passwörter.
Member: Pjordorf
Pjordorf Jun 21, 2016 at 19:28:24 (UTC)
Goto Top
Hallo,

Zitat von @winlin:
firewall freischaltung mit port 1433
Fehlt da nicht noch ein Port? Meine UDP 1434 ist auch nötig wenn....

beim wsus setup die mssql connecten.
Was gibst du denn an? Rechner? Instanzenname? Benutzer? Kombination aus Rechner\Instanzen?

> Fatal Error: The local computer is not joined to a domain or the domain cannot be contacted.

> 2016-06-21 20:51:15  System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The local computer is not joined to a domain or the domain cannot be contacted.
SQLInstanzname
Rechner\SQLInstanzname
Windows Authentifizierung?

Gruß,
Peter
Member: winlin
winlin Jun 21, 2016 at 19:58:45 (UTC)
Goto Top
Stimmt hast recht habe gerade auch den 1434 Udp freigeschaltet.
Zuvor habe ich nur den Rechner, der gleich sql Name ist angegeben.

Jetzt geben Ich das an: Rechner\instanzname
Nun sagt er nix mehr mit Domain sondern das er Rechner oder instanz nicht finde. Kann. Komischerweise als ich die DB offen hatte sagte er beim verbinden kann keine Verbindung herstellen da die DB (Single User Mode) offen ist....
Dachte mir das ich diese DB nun lösche und neu anlege.... Macht das das wsus Setup oder muss ich es manuell machen? Falls manuell aus welche Einstellungen bei der DB muss ich achten??? Rechte etc????
Member: winlin
winlin Jun 21, 2016 at 21:21:55 (UTC)
Goto Top
hab alles ausprobiert mit rechnernamen mit db instanznamen usw....mit IP, egal wie bekomme immer dieen Fehler:
2016-06-21 23:17:14  Deleting existing share...
2016-06-21 23:17:14  Creating share...
2016-06-21 23:17:15  Share successfully created
2016-06-21 23:17:15  Finished creating content shares
2016-06-21 23:17:15  Stopping service WSUSService
2016-06-21 23:17:15  Stopping service W3SVC
2016-06-21 23:17:15  Configuring database...
2016-06-21 23:17:15  Configuring the database...
2016-06-21 23:17:15  Establishing DB connection...
2016-06-21 23:18:15  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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
   at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
   at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
   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.DatabaseAccess.DBConnection.Connect()
   at Microsoft.UpdateServices.Administration.ConfigureDB.CreateDBConnection()
   at Microsoft.UpdateServices.Administration.ConfigureDB.ConnectToDB()
   at Microsoft.UpdateServices.Administration.ConfigureDB.Configure()
   at Microsoft.UpdateServices.Administration.PostInstall.Run()
   at Microsoft.UpdateServices.Administration.PostInstall.Execute(String arguments)
ClientConnectionId:00000000-0000-0000-0000-000000000000
Member: Pjordorf
Pjordorf Jun 21, 2016 at 21:36:55 (UTC)
Goto Top
Hallo,

Zitat von @winlin:
Stimmt hast recht habe gerade auch den 1434 Udp freigeschaltet.
Dein SQL ist aber auch eingerichtet Anfargen über TCP/IP anzunehmen?
Den SQL Server-Konfigurationsmanager (Lokal) hast du schon genutzt, oder?

Nun sagt er nix mehr
Warum eigentlich mit einen externen MS SQL Server? Welche Version ist es denn?
https://technet.microsoft.com/de-de/library/cc708595(v=ws.10).aspx
https://technet.microsoft.com/en-us/library/cc708452(v=ws.10).aspx
https://microspecialist.wordpress.com/2013/10/28/installing-wsus-on-serv ...

Gruß,
Peter
Member: Pjordorf
Pjordorf Jun 21, 2016 at 21:41:01 (UTC)
Goto Top
Hallo,

Zitat von @winlin:
2016-06-21 23:18:15 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Dein SQL ist nicht per TCP/IP erreichbar.

Nimm mal Excel zum Testen oder SQL Management Studio uaf ein Client um zu testen...

Gruß,
Peter
Member: winlin
winlin Jun 21, 2016 at 22:36:52 (UTC)
Goto Top
leider ist das vorgabe das wir einen mssql server 2014 standard nehmen müssen. im mssql config manager ist tcp/ip auf enabled gesetzt.
Ich habe mal eine *.udl file erstellt und data link properties getestet. Hier funktioniert ein connect aber nur mit dem "sa" User (also den sql admin user" obwohl als login sql und windows aktiviert ist....nur ein connect über die wsus setup gui geht nicht...da bekomme ich obigen fehler.