Tuesday, February 19, 2013

UPA in SharePoint 2010

User profile service application:
We must have SharePoint standard or enterprise edition, An instance of the managed metadata service must exists, A managed path exists, My site application pool exists, A site collection taht uses the My site host template exists, June 2011 CU update or later. With out this update the UPA Db cannot be restored. Add UPS service account in Managed accounts through Central Admin.
Should have service account for sync, it should have managed replicate permission at AD.

Create UPA:
Manage service application --> Create new --> Click User profile service application --> Enter the name of new application --> Enter the name of new App pool --> Select Security account for this app pool --> Enter Profile DB name and SQL server name, Authentication would e windows Authentication --> Enter Sync DB, SQL server name and windows authentication --> Social DB, SQL server and windows authentication --> My Site Host URL --> Type - My Site Managed Path --> Enable Self site creation for the Web application that hosts My Sites--> Site naming format would be best to select Domain and user name(will not conflict)

Enter the Sync settings in UPA, set the sync timings.
Set the credential at both the Forefront Identity Manager services in services console as Sync account.

Start the full sync at every change in sync connection.
Set the netBios name =1 if netbios have different name FQDN

Solution never deployed at one of a SharePoint server

Issue:
One of a SharePoint server in a farm creating problem and it stops to deploy solutions, but when we clicked on the solutions name it shows that the solution deployed all the servers except the corrupt server.
Resolution:
1) Enabled the verbose log --> Found that the error is related to timer service which stopped intermittently.
2) When we clicked on "Check Job status" in central admin we found the similar error message "Object reference not set to an instance of an object." and it is also pointing for timer service error in ULS log.
3) We checked the status of server and it was "Need Upgrade" in servers in farm(through central admin). We removed the corrupt from stage external farm.
4) Ran the stsadm command "PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures" at corrupt server and found few error that the web.config file of central admin is not available in virtual folder.
5) Copied the required folder/files from other stage server to corrupt server and again ran stsadm command "PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures. This time it completed and it upgraded the timer service.
6) Now the error at servers in farm has been wiped out.
7) We attached the server corrupt server back to stage farm.