SharePoint 2013: UserProfileImportJob Generic failure
Problem
You are unable to get the User Profile Service application to run successfully. You rebuild the service application several times in an attempt to resolve the issue. The service application can be completely rebuilt without issues, and you can create a new synchronization connection without issue. However, the moment that you start a new synchronization, the service fails, no user profiles are imported and you see the following set of message appear every minute (per the timer job schedule):
Log Name: Application Source: Microsoft-SharePoint Products-SharePoint Foundation Date: [date/time] Event ID: 6398 Task Category: Timer Level: Critical Keywords: User: [farm service account] Computer: [farm app server] Description: The Execute method of job definition Microsoft.Office.Server.UserProfiles.UserProfileImportJob (ID 3c97e43b-0b13-405a-9bf3-3ff0277ad969) threw an exception. More information is included below. Generic failure Event Xml: ... Log Name: Application Source: MsiInstaller Date: [date/time] Event ID: 1004 Task Category: None Level: Warning Keywords: Classic User: NETWORK SERVICE Computer: [farm app server] Description: Detection of product '{90150000-104C-0000-1000-0000000FF1CE}', feature 'PeopleILM', component '{1AE472A9-E94A-41DC-9E98-F89A2821658F}' failed. The resource 'D:\Program Files\Microsoft Office Servers\15.0\Tools\makecert.exe' does not exist. Event Xml: ... Log Name: Application Source: MsiInstaller Date: [date/time] Event ID: 1001 Task Category: None Level: Warning Keywords: Classic User: NETWORK SERVICE Computer: [farm app server] Description: Detection of product '{90150000-104C-0000-1000-0000000FF1CE}', feature 'PeopleILM' failed during request for component '{1681AE41-ADA8-4B70-BC11-98A5A4EDD046}' Event Xml: ...
You also see numerous instances of error event 6313 messages appearing in the application log:
Log Name: Application Source: FIMSynchronizationService Date: [date/time] Event ID: 6313 Task Category: Server Level: Error Keywords: Classic User: N/A Computer: [farm app server] Description: The server encountered an unexpected error creating performance counters for management agent "ILMMA". Performance counters will not be available for this management agent. Event Xml: ... Log Name: Application Source: FIMSynchronizationService Date: [date/time] Event ID: 6313 Task Category: Server Level: Error Keywords: Classic User: N/A Computer: [farm app server] Description: The server encountered an unexpected error creating performance counters for management agent "MOSS-UserProfile". Performance counters will not be available for this management agent. Event Xml: ... Log Name: Application Source: FIMSynchronizationService Date: [date/time] Event ID: 6313 Task Category: Server Level: Error Keywords: Classic User: N/A Computer: [farm app server] Description: The server encountered an unexpected error creating performance counters for management agent "MOSSAD-OCS Sync Connection 1". Performance counters will not be available for this management agent. Event Xml: ...
The problem was found to involve the ability of the NETWORK SERVICE account to access certain User Profile Service application resources.
Solution
- Log into the farm application server on which the User Profile Service application is running (and on which the FIM services will be running too).
- Open the server's Application log, and look for 1001 and 1004 event messages accompanied by a 6398 timer event message.
- Note down the folder identified in the 1004 Warning message.
- Navigate to this folder.
- Grant the NETWORK SERVICE account Read & Execute privilege to the folder.
- Monitor the server's Application log for new appearances of the 1001, 1004 and 6398 set of messages.
- If no new sets occur, the issue has been resolved. Otherwise, repeat steps (3) through (6) until they no longer occur.
- After all instances have been resolved, FIM synchronization will proceed normally.
References
- You have any problems with the FIM services and profile sync?
- Detection of product '{90140000-104C-0000-1000-0000000FF1CE}', feature 'PeopleILM', component '{1C12B6E6-898C-4D58-9774-AAAFBDFE273C}' failed
- Troubleshoot profile synchronization configuration issues (SharePoint Server 2010)
- Troubleshoot User Profile Synchronization Service start issues (SharePoint Server 2010)
- Configure profile synchronization by using SharePoint Active Directory Import in SharePoint Server 2013
- SharePoint 2010 – Provisioning User Profile Synchronization
- Recreate SharePoint 2010 User Profile Service
- SharePoint 2010/2013 user profile synchronization
- SharePoint 2013 User Profile Synchronization with PowerShell
Notes
UPDATE (3/7/15): on encountering this problem again, this time on a production farm, I chose to add NETWORK SERVICE to the WSS_WPG group on the local server. I found that this group is granted READ permission to the "15.0" folder, containing the other three subfolders discussed above. These other three subfolders also have the WSS_WPG granted READ permission.
Thanks to Fred El for his posting that helped point to the solution of the problem.
The trick in resolving this issue was to not only look at Critical and Error severity event messages, but also Warning severity ones, which provided the necessary direction and information for actually resolving the problem.
The User Profile Service application was running fine previously. The cause for the change - the permissions for the resource folders - is still being investigated.
This problem was first detected when the following error appeared in the app server' Application log right after the usual 6 AM morning timer recycle:
Log Name: Application Source: Microsoft-SharePoint Products-SharePoint Foundation Date: [date/time] Event ID: 6398 Task Category: Timer Level: Critical Keywords: User: [farm service account] Computer: [farm app server] Description: The Execute method of job definition Microsoft.SharePoint.Administration.SPTimerRecycleJobDefinition (ID 966ec95d-d4de-4b54-9cdf-63cb9d2e3623) threw an exception. More information is included below. The timer service was not recycled because the following jobs were still running: User Profile Service - User Profile Incremental Synchronization
The synchronization task was found to be stuck. Checking the server Services applet, the FIM synchronization service was found to repeatedly stop and start. The Application log also showed these three error events occurring repeatedly:
Log Name: Application Source: FIMSynchronizationService Date: [date/time] Event ID: 6313 Task Category: Server Level: Error Keywords: Classic User: N/A Computer: [farm app server] Description: The server encountered an unexpected error creating performance counters for management agent "ILMMA". Performance counters will not be available for this management agent. Log Name: Application Source: FIMSynchronizationService Date: [date/time] Event ID: 6313 Task Category: Server Level: Error Keywords: Classic User: N/A Computer: [farm app server] Description: The server encountered an unexpected error creating performance counters for management agent "MOSS-UserProfile". Performance counters will not be available for this management agent. Log Name: Application Source: FIMSynchronizationService Date: [date/time] Event ID: 6313 Task Category: Server Level: Error Keywords: Classic User: N/A Computer: [farm app server] Description: The server encountered an unexpected error creating performance counters for management agent "MOSSAD-nos". Performance counters will not be available for this management agent.
Rebuilding the connection then resulted in this event appearing every second in the Application log:
Log Name: Application Source: Microsoft-SharePoint Products-SharePoint Foundation Date: [date/time] Event ID: 6398 Task Category: Timer Level: Critical Keywords: User: [farm service account] Computer: [farm app server] Description: The Execute method of job definition Microsoft.Office.Server.UserProfiles.UserProfileImportJob (ID deabe75d-3701-43c1-9968-920febb91024) threw an exception. More information is included below. Operation is not valid due to the current state of the object.
Rebuilding the entire service application, creating a new connection and then starting a new synchronization results in this message:
Log Name: Application Source: Microsoft-SharePoint Products-SharePoint Foundation Date: [date/time] Event ID: 6398 Task Category: Timer Level: Critical Keywords: User: [farm service account] Computer: [farm app server] Description: The Execute method of job definition Microsoft.Office.Server.UserProfiles.UserProfileImportJob (ID 3c97e43b-0b13-405a-9bf3-3ff0277ad969) threw an exception. More information is included below. Generic failure Event Xml: ...