Answered by:
Cant start User Profile Sync Service

-
I have tested below condition and everything in right place but still I am not able to start the services
- You must run the UPA Service Instance as the Farm Account.
- Farm Account must be a local administrator of the machine running the UPA Service Instance during provisioning only.
- Farm Account must have Log on Locally rights.
- The Synchronization Connection Account must have Replicating Directory Changes..
- Sharepoint webservices application pool started in IIS.
During the start process it get this error.
UserProfileApplication.SynchronizeMIIS: Begin setup for 'Hamra User Profile Service'.
ILM Configuration: Configuring database
UserProfileApplication.SynchronizeMIIS: Failed to configure MIIS post database, will attempt during next rerun. Exception: System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
at Microsoft.Office.Server.UserProfiles.Synchronization.ILMPostSetupConfiguration.ConfigureMiisStage2()
at Microsoft.Office.Server.Administration.UserProfileApplication.SetupSynchronizationService(ProfileSynchronizationServiceInstance profileSyncInstance).
UserProfileApplication.SynchronizeMIIS: End setup for 'Hamra User Profile Service'.After it fails i get this error
User Profile Application: SynchronizeMIIS encounters an exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Office.Server.UserProfiles.UserProfileImportJob.<>c__DisplayClass2.<IsTimerJobRunning>b__1()
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at Microsoft.Office.Server.UserProfiles.UserProfileImportJob.IsTimerJobRunning(UserProfileApplicationJob timerJob)
at Microsoft.Office.Server.Administration.UserProfileApplication.SynchronizeMIIS()
at Microsoft.Office.Server.Administration.ILMProfileSynchronizationJob.Execute()
Question
Answers
-
I fixed it finally.
The issue is that UPS does not like Powershell profiles.
So to fix it I
- Moved the Profile file in the powershell folder to a new folder
- deleted cache
- un-prevision the DB's
- Reran the script and finally it started.
- Marked as answer by c_ostroski Wednesday, September 04, 2013 4:02 PM
All replies
-
It looks like the User Profile Import Job (timer job) may be missing. Can you delete and recreate the Service Application?
Trevor Seward, MCC
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
-
-
Can you try to do the same troubleshooting as this person did?
It looks like he ran process monitor and was able to look at SQL communication...
I think Netmon and Wireshark can also view SQL communication
Please mark my response as an answer if appropriate.
Learn.SharePoint.com- Edited by Learn.SharePoint.com Wednesday, August 28, 2013 9:34 PM
-
As you see, my ILM Configurations are not falling.
- ILM Configuration: Validating account.
- ILM Configuration: Validating the system groups
- ILM Configuration: Setting up WMI
- ILM Configuration: Setting required permissions
- ILM Configuration: Create install config file
- ILM Configuration: Update source project
- ILM Configuration: Changing service account credentials
- ILM Configuration: Setting policy for service account
- ILM Configuration: Configuring database
-
-
I fixed it finally.
The issue is that UPS does not like Powershell profiles.
So to fix it I
- Moved the Profile file in the powershell folder to a new folder
- deleted cache
- un-prevision the DB's
- Reran the script and finally it started.
- Marked as answer by c_ostroski Wednesday, September 04, 2013 4:02 PM
-
HI there,
having exactly the same Problem, but how can I delete a powershell Profile?
Futhermore I can not find a Profile file in the c:\windows\systen32\WindowsPowerShell\v1.0.
And which cache should be deleted?
I hope that you can give me some more Details concerning your solution.
Thxs,
Christian
-
Hi, I have exactly the same situation.
I have my SharePoint 2013 farm on Windows Server 2012 and I can't find the profile file in the c:\Windows\System32\WindowsPowerShell\v1.0
Does anybody can help me with that? I'm like 1 month with the same problem and I've tried everything! please help!
Piero Marchena Sekli
- Edited by pmarchenaMicrosoft employee Wednesday, October 09, 2013 12:29 PM
-
All of the PowerShell related items are located at C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\CONFIG\POWERSHELL\.
Trevor Seward, MCC
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
-
-
-
Hi,
We have set up SharePoint 2013 SP1 on Windows Server 2012 R2, we are facing the same problem of User Profile Sync stuck in starting, All the account permission is set up correctly and the April CU kb2760265 is installed, still no luck, Can you please elaborate on the steps taken to fix, I am unable to find the profile.ps1 file in any of the location i.e C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\CONFIG\PowerShell or C:\Windows\System32\WindowsPowerShell\v1.0.
Any help will be appreciated!!!!
Thanks,
Ajeet
- Edited by Ajeet Nigam Sunday, August 10, 2014 12:07 PM
- Proposed as answer by JCPAQUIN Wednesday, October 29, 2014 1:53 PM
-
Open Sharepoint Management shell and see if you get this message on top:
Method 'Upgrade' in type 'Microsoft.SharePoint.WorkflowServices.WorkflowServiceA
pplicationProxy' from assembly 'Microsoft.SharePoint.WorkflowServices, Version=1
5.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' does not have an impl
ementation.
If yes, Apply this fix:
http://support.microsoft.com/kb/2880963
Reboot just to make sure and After your User Profile Synchronization Service will start.
thanks,
JC
-
Does anyone have any follow up on which profile/folder needs to be moved? I've run into the same issue. Are we talking about something in the SharePoint powershell folders that Trevor references, or the profile.ps1 file for the farm account?
Thank you,
Chad
-
Hi JC,
This update download is not applicable for SharePoint server standard 2013, Can anybody suggest me download link for SharePoint server standard 2013?
My Issue is same as above
(Open Sharepoint Management shell and see if you get this message on top:Method 'Upgrade' in type 'Microsoft.SharePoint.WorkflowServices.WorkflowServiceApplicationProxy' from assembly 'Microsoft.SharePoint.WorkflowServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' does not have an implementation.")
Please let me know the solution for this...
Thanks,
Ujjwal Singh
- Edited by Ujjwal Kumar Singh Tuesday, December 08, 2015 4:54 AM