Register
Home   Ask Question Discuss Purchase Submit Events Give Solutions Share News
Automobiles Beauty & Styles Business Computers & Internet Sports Travel Consumer Electronics Education Entertainment & Music Family Society & Culture Food & Drinks Health
Computer Networking
Hardware
Internet
Programming & Design
Security
Software
Other - Computers
Troubleshoot UPA in Sharepoint 2010
-->

Troubleshoting the UPA in Sharepoint 2010

The farm account must be local administrator on the machine.

  • Log on with the farm account interactively.
  • Always start the SharePoint 2010 Management Shell (PowerShell) window with machine administrator privileges. (Right-click run-as administrator)

The action plan below contains steps that might be irrelevant or obsolete for you. This is the full action plan that will give you a bulletproof action plan to recreate UPA.

1.     Log on the server with the farm account.

2.     Delete the current User Profile service application (UPA)

o    This will render the User Profile Synchronization service to Stopped phase.

o    Should it not, use the below PowerShell cmdlets to force shutdown of the service. (Please note that the below action plan is for one server only. If you have multiple servers, you have to tweak around with the steps below.)

$UPS = Get-SPServiceInstance | Where {$_.TypeName -eq "User Profile Synchronization Service"}
$UPS.Unprovision()

o    If the customer has data in the current User Profile Store that they do not want to lose, they can keep the databases (except for the SyncDB).

3.     Clear out the obsolete FIM certificates

o    Open mmc.exe console.

o    Click File / Add/Remove Snap-in.

o    Choose Certificates from the Available snap-ins list.

o    Click Add.

o    Choose My user account.

o    Click Finish.

o    Choose Certificates from the Available snap-ins list.

o    Click Add.

o    Choose Computer account.

o    Click Next.

o    Click Finish.

o    Click OK.

o    Expand each and every node and search for ForefrontIdentityManager certificate. Wherever you see it, delete it.

o    Alternatively you can run the below PowerShell script:
set-location cert:
Get-ChildItem localmachine -recurse | where {$_.Subject -like "*ForeFrontIdentityManager*"} | Remove-Item -DeleteKey

4.     Start the User Profile Service

o    Go to Central Administration / System Settings / Manage Services on Server page.

o    Start the User Profile Service only on that server where you want to run the User Profile Synchronization service.

5.     Create a new UPA.

o    When creating the UPA, make sure you choose the correct server in the Profile Synchronization Instance field.

6.     Add relevant users to Administrators group in Central Admin

7.     Reset the configuration cache.

o    Go to Central Administration / Monitoring / Review Job Definitions.

o    Locate the Timer Service Recycle timer job and run it.

o    Go to Timer Job Status page.

o    Scroll down to see if there are any other timer jobs running. Regularly refresh the page if there are any other timer jobs.

o    When you have only the Timer Service Recycle timer job running open the services console.

o    Locate the SharePoint 2010 Timer and SharePoint 2010 Administration services and stop them.

o    Open Windows Explorer and navigate to the below folder
c:\ProgramData\Microsoft\SharePoint\Config\<GUID>
(Should you have more than one GUID folder here, choose the one with the most recent modified date.)

o    Delete all the .xml files.

o    Open the cache.ini file for editing.

o    Change the number to 1, then save and close the file.

o    Go back to the services console and start the the SharePoint 2010 Timer service.

o    Monitor the folder in Windows Explorer if the .xml files start appearing.

8.     Start the User Profile Synchronization service under System Settings / Manage Services on server.

o    To monitor the current status of the service, please monitor the ULS log for the below entries. Use ULS Viewer for this.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

erx1

Medium

Provisioning service instance User Profile Synchronization Service.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

erx2

Medium

The service instance User Profile Synchronization Service is successfully provisioned.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

0000

Medium

SetupSynchronizationService :: Sync DB failover Check :: databaseServerMiis = sps2010-sql

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

0000

Medium

SetupSynchronizationService :: Sync DB failover Check :: originalSyncConnectionString = Data Source=sps2010-sql;Initial Catalog="Sync DB";Integrated Security=True;Enlist=False;Connect Timeout=15

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

0000

Medium

SetupSynchronizationService :: Sync DB failover Check::  originalSyncConnectionDataSource = sps2010-sql

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

0000

Medium

SetupSynchronizationService :: Sync DB failover Check :: new datasource string on connection object = sps2010-sql

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i1s

Medium

UserProfileApplication.SynchronizeMIIS: Begin setup for 'User Profile Service Application'.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i1x

Medium

ILMPostSetupConfiguration: ILM Configuration: Validating installation of SQL Service.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i1w

Medium

ILM Configuration: Error 'ERR_SERVICE_NOT_INSTALLED'.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

c31l

Medium

ERROR  ILMPostSetupConfiguration: ILM Configuration: Validating installation of SQL Service FAILED

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i1y

Medium

ILM Configuration: Validating account.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i20

Medium

ILM Configuration: Validating the system groups

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i23

Medium

ILM Configuration: Setting up WMI

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i24

Medium

ILM Configuration: Setting required permissions

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i26

Medium

ILM Configuration: Create install config file

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i28

Medium

ILM Configuration: Update source project

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i29

Medium

ILM Configuration: Changing service account credentials

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

d3bo

Medium

ILM Configuration: Setting policy for service account

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i2a

Medium

ILM Configuration: Configuring database

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i2b

Medium

ILM Configuration: Re-starting mms service

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i2d

Medium

ILM Configuration: Checking mms service

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9q1e

Medium

ILM Configuration: Configuring XML file.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9q1f

Medium

ILM Configuration: Checking for existing FIM database.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

eee3

Medium

ILM Configuration: Building database.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9q1h

Medium

ILM Configuration: Configuring certificate.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9q1g

Medium

ILM Configuration: Configuring Registry keys.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9q1i

Medium

ILM Configuration: Setting file permissions.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9q1j

Medium

ILM Configuration: Opening firewall ports.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9q1k

Medium

ILM Configuration: Starting services.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

d3bp

Medium

ILM Configuration: Post setup configuration.

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

g4bk

High

Synchronization database was not previously initialized. Exporting the encryption key from the registry key to the database

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

g4bm

High

ILM Configuration: The ExportMiisEncryptionKey process completed successfully

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

g136

Medium

UpdateILMMA: Updated 'ILMMA' credentials

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

g12z

Medium

UpdateStoreAndCredentialsForInitialManagementAgents: ILMMachine SPS2010-SPS, Username ZSOLTI-SPS2010\sp-svc-farmacc

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

g131

Medium

UpdateStoreAndCredentialsForInitialManagementAgents: Updated 'MOSS-b56eefb9-fd19-46b0-a794-f0317b389dea' credentials

OWSTIMER.EXE

SharePoint Portal Server

User Profiles

9i1u

Medium

UserProfileApplication.SynchronizeMIIS: End setup for 'User Profile Service Application'.

o    Once you have seen all the entries in the above order, the service is started correctly.

9.     Check in the Server Manager console if the FIM services are started and running under the farm account's credentials.

o    Should they not, please do not start them manually

10.  Do an iisreset.

11.  Go to the UPA page and make sure, you can view profile

--
Bookmark and Share
Related Posts
Comments
Add Comment
Name*
Email*
Comment*
Hot Categories: Internet Royalty Cultures & Groups Makeup Other - Family & Relationships Community Service Other - Entertainment Other - Electronics
Contact Us About Us Privacy Policy Copyright Sitemap