Rob Stone
asked on
SQL or Permission problem?
Hi,
I am looking after a tiered system which has two IIS servers connecting to a SQL server.
I also changed the NTFS permissions on the servers through a GPO recently (which ties in to the problem start date) where I overwrote settings instead of appending them.
From the website test the MSDTC fails to communicate. I've checked the settings in the DCOM, System, MSDTC, Security settings and they are correct. I have also ran sc sdshow and got the following response:
D:(A;;CCLCSWRPLOCRRC;;;S-1 -2-0)(A;;C CLCSWRPWPD TLOCRRC;;; SY)(A;;CCD CLCSWRPWPD TLOC
RSDRCWDWO;;;BA)(A;;CCLCSWL OCRRC;;;AU )(A;;CCLCS WRPWPDTLOC RRC;;;PU)( A;;CCLCSWR PRC;
;;WD)(A;;CCLCSWRPLORC;;;NS )S:(AU;FA; CCDCLCSWRP WPDTLOCRSD RCWDWO;;;W D)
This is consistant on all 3 servers and another server in a different environment which does work so I presume this is OK?
I am also getting a number of event logs (full auditing on fail is on) like this:
Event Type: Failure Audit
Event Source: Security
Event Category: Object Access
Event ID: 560
Date: 11/12/2008
Time: 14:24:46
User: DOMAIN\SERVICE ACCOUNT 1
Computer: COMPUTERNAME
Description:
Object Open:
Object Server: SC Manager
Object Type: SC_MANAGER OBJECT
Object Name: ServicesActive
Handle ID: -
Operation ID: {0,184791139}
Process ID: 716
Image File Name: C:\WINDOWS\system32\servic es.exe
Primary User Name: COMPUTERNAME$
Primary Domain: DOMAIN
Primary Logon ID: (0x0,0x3E7)
Client User Name: SERVICE ACCOUNT1
Client Domain: DOMAIN
Client Logon ID: (0x0,0x7670151)
Accesses: READ_CONTROL
Connect to service controller
Enumerate services
Query service database lock state
Privileges: -
Restricted Sid Count: 0
Access Mask: 0x20015
This error occurs when the tests are run which would indicate some of the problem. This error only started after my permissions error.
The system test fails on MSDTC Write Test. See error log below.
Reference Number 081211165707-7 Session ID = 8fac38e1-272a-4b24-9a5a-7c aa202a213c Insight Exception Occurred:
Communication with the underlying transaction manager has failed.
at System.Transactions.Transa ctionInter op.GetOlet xTransacti onFromTran smitterPro pigationTo ken(Byte[] propagationToken)
at System.Transactions.Transa ctionState PSPEOperat ion.PSPEPr omote(Inte rnalTransa ction tx)
at System.Transactions.Transa ctionState DelegatedB ase.EnterS tate(Inter nalTransac tion tx)
at System.Transactions.Enlist ableStates .Promote(I nternalTra nsaction tx)
at System.Transactions.Transa ction.Prom ote()
at System.Transactions.Transa ctionInter op.Convert ToOletxTra nsaction(T ransaction transaction)
at System.Transactions.Transa ctionInter op.GetExpo rtCookie(T ransaction transaction, Byte[] whereabouts)
at System.Data.SqlClient.SqlI nternalCon nection.En listNonNul l(Transact ion tx)
at System.Data.SqlClient.SqlI nternalCon nection.En list(Trans action tx)
at System.Data.SqlClient.SqlI nternalCon nectionTds .Activate( Transactio n transaction)
at System.Data.ProviderBase.D bConnectio nInternal. ActivateCo nnection(T ransaction transaction)
at System.Data.ProviderBase.D bConnectio nPool.GetC onnection( DbConnecti on owningObject)
at System.Data.ProviderBase.D bConnectio nFactory.G etConnecti on(DbConne ction owningConnection)
at System.Data.ProviderBase.D bConnectio nClosed.Op enConnecti on(DbConne ction outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlC onnection. Open()
at VENDOR.Insight.DataAccess. DBAccess.R unNonQuery CommandWit hResult()
at VENDOR.Insight.DataAccess. DBAccess.R unCommandW ithResult( )
at VENDOR.Insight.DataAccessC omponents. DACClient. SaveFromEn tity(BECli ent entity, String sessionID, Boolean insert)
at VENDOR.Insight.DataAccessC omponents. DACClient. Create(BEC lient entity, String sessionID)
at VENDOR.Insight.BusinessCom ponents.BC Client.Sav eClient(BE Client entity, String userID, String sessionID)
at VENDOR.Insight.BusinessWor kflows.BWC lient.Inte rnalSave(B EClient client, String userID, String sessionID)
at VENDOR.Insight.BusinessWor kflows.BWC lient.Save (BEClient client, String userID, String sessionID)
Reference Number 081211165707-8 Session ID = 8fac38e1-272a-4b24-9a5a-7c aa202a213c Insight Exception Occurred:
Test Error - Raised by testing the system
Event logs on the SQL server are not showing anything in the same time period which could indicate the problem, nor the Services IIS server. The Internet IIS server appears to be the problem server (event log anyway).
I'm wondering if the Network Service account should have access to something it currently doesn't have, but I can't figure out what. That is what the MSDTC is using.
I do have alternative environments to compare the settings against, there are just a lot of settings!
Any help appriciated.
I am looking after a tiered system which has two IIS servers connecting to a SQL server.
I also changed the NTFS permissions on the servers through a GPO recently (which ties in to the problem start date) where I overwrote settings instead of appending them.
From the website test the MSDTC fails to communicate. I've checked the settings in the DCOM, System, MSDTC, Security settings and they are correct. I have also ran sc sdshow and got the following response:
D:(A;;CCLCSWRPLOCRRC;;;S-1
RSDRCWDWO;;;BA)(A;;CCLCSWL
;;WD)(A;;CCLCSWRPLORC;;;NS
This is consistant on all 3 servers and another server in a different environment which does work so I presume this is OK?
I am also getting a number of event logs (full auditing on fail is on) like this:
Event Type: Failure Audit
Event Source: Security
Event Category: Object Access
Event ID: 560
Date: 11/12/2008
Time: 14:24:46
User: DOMAIN\SERVICE ACCOUNT 1
Computer: COMPUTERNAME
Description:
Object Open:
Object Server: SC Manager
Object Type: SC_MANAGER OBJECT
Object Name: ServicesActive
Handle ID: -
Operation ID: {0,184791139}
Process ID: 716
Image File Name: C:\WINDOWS\system32\servic
Primary User Name: COMPUTERNAME$
Primary Domain: DOMAIN
Primary Logon ID: (0x0,0x3E7)
Client User Name: SERVICE ACCOUNT1
Client Domain: DOMAIN
Client Logon ID: (0x0,0x7670151)
Accesses: READ_CONTROL
Connect to service controller
Enumerate services
Query service database lock state
Privileges: -
Restricted Sid Count: 0
Access Mask: 0x20015
This error occurs when the tests are run which would indicate some of the problem. This error only started after my permissions error.
The system test fails on MSDTC Write Test. See error log below.
Reference Number 081211165707-7 Session ID = 8fac38e1-272a-4b24-9a5a-7c
Communication with the underlying transaction manager has failed.
at System.Transactions.Transa
at System.Transactions.Transa
at System.Transactions.Transa
at System.Transactions.Enlist
at System.Transactions.Transa
at System.Transactions.Transa
at System.Transactions.Transa
at System.Data.SqlClient.SqlI
at System.Data.SqlClient.SqlI
at System.Data.SqlClient.SqlI
at System.Data.ProviderBase.D
at System.Data.ProviderBase.D
at System.Data.ProviderBase.D
at System.Data.ProviderBase.D
at System.Data.SqlClient.SqlC
at VENDOR.Insight.DataAccess.
at VENDOR.Insight.DataAccess.
at VENDOR.Insight.DataAccessC
at VENDOR.Insight.DataAccessC
at VENDOR.Insight.BusinessCom
at VENDOR.Insight.BusinessWor
at VENDOR.Insight.BusinessWor
Reference Number 081211165707-8 Session ID = 8fac38e1-272a-4b24-9a5a-7c
Test Error - Raised by testing the system
Event logs on the SQL server are not showing anything in the same time period which could indicate the problem, nor the Services IIS server. The Internet IIS server appears to be the problem server (event log anyway).
I'm wondering if the Network Service account should have access to something it currently doesn't have, but I can't figure out what. That is what the MSDTC is using.
I do have alternative environments to compare the settings against, there are just a lot of settings!
Any help appriciated.
just read this unsure but it may help http://www.eggheadcafe.com/forumarchives/virtualserver/Mar2006/post26087846.asp
ASKER
Tried but it made no difference.
Thanks anyway.
Any other offers apart from a restore?
Thanks anyway.
Any other offers apart from a restore?
nope sorry restore would be my last suggestion
ASKER
Found the resolution which may be in the link provided (I can't check at work as it's blocked the site).
The restore failed as well.
The problem was on the SQL server the RDP registry settings were missing to specify the ports used. I identified this was the problem by using DTCPing as it wouldn't connect going through the firewall but would to another server in the same VLAN.
I will review the link provided and if it does state this I will award the points.
Thanks
The restore failed as well.
The problem was on the SQL server the RDP registry settings were missing to specify the ports used. I identified this was the problem by using DTCPing as it wouldn't connect going through the firewall but would to another server in the same VLAN.
I will review the link provided and if it does state this I will award the points.
Thanks
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.