Answered by:
Lync Server - Installing CSDatabase fails

Question
-
I am having trouble publishing the topolopgy for a new (VM based) Lync install.
When I try to publish the topology I get the error:
ERROR: Script Failed (Code "ERROR_INVALID_ACCOUNT") when installing "centralMgmtStore" on "se1.reskit.org\rtc"
I have given the machine and the account just about every privelege I can think of several times over
Clues?
Thomas Lee Doctordns@Gmail.ComThursday, November 4, 2010 6:42 PM
Answers
-
Apparantly the installer is not able to add a SQL login to the SQL instance:
RESKIT\RTCUniversalConfigReplicator is not a valid SQL login. A SQL login with this name will be created
RESKIT\RTCUniversalConfigReplicator has a Win32_Account instance of SIDType 2
Global.SqlDmo.Logins.Add failed for RESKIT\RTCUniversalConfigReplicatorYou might want to try to add it manually or remove that specific SQL instance entirely from the box and redo the steps required so it gets installed automatically by the Lync Setup wizards. The reason for this could be, as Randy Wintle said, that you installed the SQL manually and there is a misconfiguration or the current account has no permissions to add a new account to SQL.
Technical Specialist Microsoft OCS/UC - http://www.uwictpartner.be- Marked as answer by Ben-Shun Zhu Wednesday, November 10, 2010 9:00 AM
Monday, November 8, 2010 11:59 AM
All replies
-
I know you said you checked all groups, but can you verify the install account has CSAdministrator rights?
I feel like I have seen this error brought up in discussions, trying to poke my brain for it.
Standard or enterprise edition install?
Randy Wintle |MVP:Communications Server, MCTS: UC Voice Specialization | Winxnet IncThursday, November 4, 2010 9:00 PM -
If it is a Standard Edition Lync 2010 server, did you already setup / install the first Standard Edition database to receive the CMS after completion of AD prep steps? Publication of the topology should only happen thereafter.
Also, do not forget to logoff and re-logon after adding the administrative account to the CSAdministrator security group.
TechNet Forum Moderator (Unified Communications) - http://www.leedesmond.comThursday, November 4, 2010 11:24 PMModerator -
Just a thought have you reimaged machine with a new SID?
Best regards,Friday, November 5, 2010 6:33 AM -
According to Mark Russinovitch, new sids are a myth:
http://blogs.technet.com/b/markrussinovich/archive/2009/11/03/3291024.aspx
I am using cloned VMs but that should not make a difference.
Thomas Lee Doctordns@Gmail.ComFriday, November 5, 2010 2:47 PM -
yes - 1st SE database is created.
The publication after this, however fails.
And yes, Admin is in the CSAdministrator security group and I've logged off and logged back on.
Thomas Lee Doctordns@Gmail.ComFriday, November 5, 2010 2:48 PM -
I know you said you checked all groups, but can you verify the install account has CSAdministrator rights?
I feel like I have seen this error brought up in discussions, trying to poke my brain for it.
Standard or enterprise edition install?
SE install and yes, the admin is in CSadministrator group.
Frankly, I'm about ready to give up and tell the customer to look at Cisco and IBM! THose products can not have such a poor installation experience.
Thomas Lee Doctordns@Gmail.ComFriday, November 5, 2010 2:50 PM -
I am having trouble publishing the topolopgy for a new (VM based) Lync install.
When I try to publish the topology I get the error:
ERROR: Script Failed (Code "ERROR_INVALID_ACCOUNT") when installing "centralMgmtStore" on "se1.reskit.org\rtc"
I have given the machine and the account just about every privelege I can think of several times over
I'm stil having this issue, but here's the log output:
▼ Install-CSDatabase
Completed with errors └ ► Get Forest State
11/5/2010 2:56:39 PM Success └ Find root domain reskit.org. 11/5/2010 2:56:39 PM └ Schema type: server 11/5/2010 2:56:39 PM └ Action: Check Groups 11/5/2010 2:56:39 PM └ Action: Check Group permissions 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCUniversalGlobalReadOnlyGroup,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCUniversalGlobalWriteGroup,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCUniversalServerReadOnlyGroup,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCUniversalUserReadOnlyGroup,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCHSUniversalServices,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCComponentUniversalServices,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCProxyUniversalServices,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCUniversalServerAdmins,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCUniversalUserAdmins,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCUniversalReadOnlyAdmins,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCUniversalConfigReplicator,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCUniversalSBATechnicians,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=RTCSBAUniversalServices,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=CSAdministrator,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=CSVoiceAdministrator,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=CSUserAdministrator,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=CSResponseGroupAdministrator,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=CSLocationAdministrator,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=CSArchivingAdministrator,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=CSServerAdministrator,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=CSViewOnlyAdministrator,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Process permissions on "CN=CSHelpDesk,CN=Users,DC=reskit,DC=org". 11/5/2010 2:56:39 PM └ Action: Check Permission settings of CN=RTC Service,CN=Services,CN=Configuration,DC=reskit,DC=org 11/5/2010 2:56:39 PM └ Action: Check Permission settings of ConfigurationContainer 11/5/2010 2:56:40 PM └ Action: Check Permission settings of RootDomainSystemContainer 11/5/2010 2:56:40 PM └ Access permission only applies to the Active Directory System container. 11/5/2010 2:56:40 PM └ Forest state: LC_FORESTSETTINGS_STATE_READY 11/5/2010 2:56:40 PM └ Found "RTCUniversalServerAdmins": True 11/5/2010 2:56:40 PM └ Found "RTCUniversalConfigReplicator": True 11/5/2010 2:56:40 PM └ Found "RTCUniversalReadOnlyAdmins": True 11/5/2010 2:56:40 PM └ ▼ InstallDatabaseCmdlet.CreateDatabaseForFeature
11/5/2010 2:56:51 PM Completed with errors └ Feature: CentralMgmtStore 11/5/2010 2:56:51 PM └ SQL Instance: se1.reskit.org\rtc 11/5/2010 2:56:51 PM └ Collocated: False 11/5/2010 2:56:51 PM └ Found "RTCUniversalServerAdmins": True 11/5/2010 2:56:51 PM └ Found "RTCUniversalConfigReplicator": True 11/5/2010 2:56:51 PM └ Found "RTCUniversalReadOnlyAdmins": True 11/5/2010 2:56:51 PM └ Found "RTCUniversalServerAdmins": True 11/5/2010 2:56:51 PM └ Found "RTCUniversalConfigReplicator": True 11/5/2010 2:56:51 PM └ Found "RTCUniversalReadOnlyAdmins": True 11/5/2010 2:56:51 PM └ Log file: C:\Users\Administrator\AppData\Local\Temp\Create-CentralMgmtStore-se1.reskit.org_rtc-[2010_11_05][14_56_51].log 11/5/2010 2:56:58 PM └ Script result: ERROR_INVALID_ACCOUNT 11/5/2010 2:56:58 PM └ Error: Script failed (code "ERROR_INVALID_ACCOUNT") when installing "CentralMgmtStore" on "se1.reskit.org\rtc". For details, see the following log file: "C:\Users\Administrator\AppData\Local\Temp\Create-CentralMgmtStore-se1.reskit.org_rtc-[2010_11_05][14_56_51].log" 11/5/2010 2:56:58 PM Error └ Command Status: Command processing is complete. 11/5/2010 2:57:02 PM └ Command Status: Command run is complete. 11/5/2010 2:57:02 PM And here's the 2nd log referred to:
Running script: C:\Windows\system32\cscript.exe //Nologo "C:\Program Files\Common Files\Microsoft Lync Server 2010\DbSetup\xdssetup.wsf" /dbexists /sqlserver:se1.reskit.org\rtc /publisheracct:RESKIT\RTCUniversalServerAdmins /replicatoracct:RESKIT\RTCUniversalConfigReplicator /consumeracct:RESKIT\RTCUniversalReadOnlyAdmins /role:master /verbose --------------- Installed SQL Server 2005 Backward Compatibility version is 8.05.2312 Connecting to SQL Server on se1.reskit.org\rtc SqlMajorVersion : 10 SqlMinorVersion : 0 SqlBuildNo : 2531 SQL version is acceptable: 10.0.2531.0 Database does not exist. --------------- Exit code: ERROR_NO_DATABASE_EXISTS (-23) When running /dbexists, non-zero exit codes are not necessarily errors --------------- Running script: C:\Windows\system32\cscript.exe //Nologo "C:\Program Files\Common Files\Microsoft Lync Server 2010\DbSetup\xdssetup.wsf" /sqlserver:se1.reskit.org\rtc /publisheracct:RESKIT\RTCUniversalServerAdmins /replicatoracct:RESKIT\RTCUniversalConfigReplicator /consumeracct:RESKIT\RTCUniversalReadOnlyAdmins /dbpath:C:\CsData\CentralMgmtStore\rtc\dbpath /logpath:C:\CsData\CentralMgmtStore\rtc\logpath /role:master /verbose --------------- Installed SQL Server 2005 Backward Compatibility version is 8.05.2312 Connecting to SQL Server on se1.reskit.org\rtc SqlMajorVersion : 10 SqlMinorVersion : 0 SqlBuildNo : 2531 SQL version is acceptable: 10.0.2531.0 (Database doesn't exist. Performing clean install.) Creating database xds DbFile : PhysicalName = c:\csdata\centralmgmtstore\rtc\dbpath\xds.mdf LogFile: PhysicalName = c:\csdata\centralmgmtstore\rtc\logpath\xds.ldf Executing batch dbcommon.sql on xds Executing resource SetDbRoles on xds Executing batch xds.sql on xds Setting master role Executing resource SetMaster on xds Executing resource DbReIndex on xds Setting security in xds DbOwner is now sa RESKIT\RTCUniversalConfigReplicator is not a valid SQL login. A SQL login with this name will be created. RESKIT\RTCUniversalConfigReplicator has a Win32_Account instance of SIDType 2 Global.SqlDmo.Logins.Add failed for RESKIT\RTCUniversalConfigReplicator --------------- Exit code: ERROR_INVALID_ACCOUNT (-20) ---------------
I assume this is a bug in the Lync product that was not picked up in the haste to get to RTM.
Thomas Lee Doctordns@Gmail.ComFriday, November 5, 2010 3:04 PM -
Did you install any SQL roles manually, or have you just let the installer handle this.
And this is definitely a unique experience. This morning I installed a Standard Edition server and Edge Server in a customer environment in under 2 hours, just running through the wizards...
Randy Wintle |MVP:Communications Server, MCTS: UC Voice Specialization | Winxnet IncFriday, November 5, 2010 3:32 PM -
Did you at least try to run sysprep on the cloned virtual machine beforehand? On the same blog post you referred, the last paragraph summed it clearly:
[quote]
Note that Sysprep resets other machine-specific state that, if duplicated, can cause problems for certain applications like Windows Server Update Services (WSUS), so Microsoft’s support policy will still require cloned systems to be made unique with Sysprep
[/quote]rgds,
TechNet Forum Moderator (Unified Communications) - http://www.leedesmond.comMonday, November 8, 2010 11:01 AMModerator -
Apparantly the installer is not able to add a SQL login to the SQL instance:
RESKIT\RTCUniversalConfigReplicator is not a valid SQL login. A SQL login with this name will be created
RESKIT\RTCUniversalConfigReplicator has a Win32_Account instance of SIDType 2
Global.SqlDmo.Logins.Add failed for RESKIT\RTCUniversalConfigReplicatorYou might want to try to add it manually or remove that specific SQL instance entirely from the box and redo the steps required so it gets installed automatically by the Lync Setup wizards. The reason for this could be, as Randy Wintle said, that you installed the SQL manually and there is a misconfiguration or the current account has no permissions to add a new account to SQL.
Technical Specialist Microsoft OCS/UC - http://www.uwictpartner.be- Marked as answer by Ben-Shun Zhu Wednesday, November 10, 2010 9:00 AM
Monday, November 8, 2010 11:59 AM -
not found the windows NT user or group RV\RTCUniversalConfigReplicator
Microsoft Sql Server error:15401
Lync install ,bugs bugs
Tuesday, January 11, 2011 6:44 AM -
how can we remove instance from power shell. Just need exact command please thanks
Any comment will be appreciated ________________________________ Thanks Zahid Haseeb zahidhaseeb.wordpress.comMonday, September 19, 2011 1:50 PM -
You might want to try to add it manually.
Would anyone plz explain how ?
Any comment will be appreciated ________________________________ Thanks Zahid Haseeb zahidhaseeb.wordpress.comThursday, September 22, 2011 4:54 AM -
Thanks to all for kind help. My problem resolved. I was using both machine as VM's on same machine. What I did I used Domain Controller as VM and Lync Server also as VM. I put the Domain Controller VM on a different machine and install 2008R2 on a machine and then installed Lync Server then I did all initial configuration on Lync Server and started publishing Topology and this got successful.
What I feel that the main problem is the Domain Controller and the Lync Server cant be on the same machine.
Any comment will be appreciated ________________________________ Thanks Zahid Haseeb zahidhaseeb.wordpress.comThursday, September 22, 2011 11:53 AM