Dan Sanders
  • Home
  • About
  • Contact
  • – PowerShell
  • – SharePoint
  • – Workflow
Copyright © 2016 Dan Sanders. All Rights Reserved.
Dan Sanders
  • Home
  • About
  • Contact
  • – PowerShell
  • – SharePoint
  • – Workflow

Fix SharePoint 2013 UPS Stuck on Starting

byDan Sanders inSharePoint posted4 July, 2018
54
0
Fix SharePoint 2013 UPS Stuck on Starting

UPS Stuck on Starting

After installing the May 2018 CU on a SharePoint 2013 Farm the User Profile Synchronization Service (UPS) was stuck on starting.
This farm had not had any CUs applied for a year.
Starting the Sync service should upgrade the related databases and service as part of the provisioning process.
In my case the Sync service would get stuck on starting even after a reboot of the App server.

In this Article

What I tried
What worked
Unprovision the synchronization service
Delete Synchronization Provisioning Timer Jobs
Set Timer Service Instances Online
The Order that Worked

What I tried

  • Unprovisioning the Sync service
  • Reset the Timer Service cache on all servers
  • Run Products and configuration wizard on all servers
  • Restarted Servers
  • Followed Spence Harbars guide on Stuck on Starting issues
  • Reset the sync machine instance as detailed by Spence
  • Deleted and re-created the User Profile Application Service (UPAS) connecting to original DB’s and with new ones numerous times
  • Removed all ForefrontIdentityManager certificates as mentioned here (A post I logged years ago)
  • Confirmed correct permissions on the UPS
  • IIS App Pools are running as expected
  • Farm account is in the Administrators group and I have logged in as this account to try and get it started
  • Farm Account has log on locally right

When trying to provision the Sync service the ULS logs a whole lot of Upgrade events.
No ILM Configuration Steps are logged to the ULS like what’s expected.

What worked

Below includes a couple of things that are rarely blogged about.

Unprovision the synchronization service:
Get-SPServiceInstance |?{$_.TypeName -like "user*"} | Select TypeName, Server, Status, ID

PowerShell - Get-SPServiceInstance - UPS Stuck on Starting

$srvc = Get-SPServiceInstance *ID of provisioning service*
$srvc.Unprovision()

Delete Synchronization Provisioning Timer Jobs
Get-SPTimerJob | ?{$_.Name -like "*profile*"} | Select name

PowerShell - Get-SPTimerJob

If you see the two highlighted jobs above are created during the provisioning or unprovisioning process.
Delete them

$tj = Get-SPTimerJob ProfileSynchronizationSetupJob
$tj.Delete()
$tj = Get-SPTimerJob ProfileSynchronizationUnprovisionJob
$tj.Delete()

Set Timer Service Instances Online

Ensure that the Timer Service Instances are all online.
This is different to the timer service services.

$farm = Get-SPFarm
$farm.TimerService.Instances

PowerShell - TimerService.Instances

If there are instances that are not online update them as follows:

$disabledTimers = $farm.TimerService.Instances | where {$_.Status -ne "Online"}
foreach ($timer in $disabledTimers)
{
$timer.Status = [Microsoft.SharePoint.Administration.SPObjectStatus]::Online
$timer.Update()
}

The Order that Worked

With the above steps completed provisioning the Sync service failed for me again so I Worked through the below order to get it working.

– Deleted the User Profile Service Application (UPSA) again
– Restarted Timer Job Services
– Recreated UPSA with a new sync DB
– Started the User Profile Service on the app server
– Ensured correct permissions were set on the UPS
– Deleted stuck or provisioning timer jobs
– Cleared timer cache
– Re-checked timer instances were online
– Rechecked all settings and services
– Started sync service

The sync service started!
I re-setup the AD Sync connection and completed a full sync.

If you did recreate the UPSA make sure that you disable the My Site Cleanup Timer job, failure to do so will result in your existing My site Site Collections being deleted.
This is due to the new Sync Connection. After a full sync it would mark all previous profiles to be deleted, and eventually the timer Job will delete the Site Collections.

Once you have performed a number of syncs this should be OK to enable again.

PowerShellSharePoint 2013User Profile Service
Share this :

Related Posts

0
Showcase: SharePoint 2013 Global Reusable Workflow using REST
14 March, 2016
Showcase: SharePoint 2013 Global Reusable Workflow using REST

UPS Stuck on Starting After installing the May 2018 CU on a SharePoint 2013 Farm the User...

92 Comments
0
SharePoint Foundation 2013 Help-desk System
30 August, 2016
SharePoint Foundation 2013 Help-desk System

UPS Stuck on Starting After installing the May 2018 CU on a SharePoint 2013 Farm the User...

No comment
0
4 February, 2016
Adding a ContentType to each Library with PowerShell

UPS Stuck on Starting After installing the May 2018 CU on a SharePoint 2013 Farm the User...

30 Comments
0
Content Database and Site Collection Report
11 December, 2018
Content Database and Site Collection Report

UPS Stuck on Starting After installing the May 2018 CU on a SharePoint 2013 Farm the User...

No comment
0
17 September, 2013
Remove Drop Off Library and fix up the QuickLaunch in SharePoint 2010

UPS Stuck on Starting After installing the May 2018 CU on a SharePoint 2013 Farm the User...

67 Comments
0
25 June, 2013
Deploying SharePoint 2010 Solutions with Powershell

UPS Stuck on Starting After installing the May 2018 CU on a SharePoint 2013 Farm the User...

20 Comments
0
Creating a view for each Document Library in a Site Collection
3 February, 2016
Creating a view for each Document Library in a Site Collection

UPS Stuck on Starting After installing the May 2018 CU on a SharePoint 2013 Farm the User...

135 Comments
2
SharePoint Foundation 2013 Shopping Cart
30 August, 2016
SharePoint Foundation 2013 Shopping Cart

UPS Stuck on Starting After installing the May 2018 CU on a SharePoint 2013 Farm the User...

1 Comment
0
Libraries with no Default View
27 January, 2016
Libraries with no Default View

UPS Stuck on Starting After installing the May 2018 CU on a SharePoint 2013 Farm the User...

26 Comments
0
28 April, 2016
Disable Loopback check – UPA Picture Sync Error

UPS Stuck on Starting After installing the May 2018 CU on a SharePoint 2013 Farm the User...

73 Comments

Comments 54

  1. author Jack posted September 20th 2018. 4:32 pm Log in to Reply

    Mate, well done on finding a resolution to this issue and explaining it in great detail. I also experienced this issue after a cumulative update install and nothing worked….and I mean nothing (reboot, restart, recreate). I think my issue was with one of the Timer Instances being disabled. I followed all your steps and it worked first time. Much appreciated for this information.

  2. author Matthew posted October 6th 2018. 4:25 am Log in to Reply

    Sending you an internet beer for this – wish I’d found it sooner! My client had a Timer Service Instance that was Disabled. It’s so hard to diagnose this because the job to start the UPSS just disappears into a black hole and no errors get logged! Grr! Thanks dude!

  3. author Dan Sanders posted December 4th 2018. 11:36 am Log in to Reply

    You’re welcome guys. I know the frustration of trying to find these solutions out there, but they’re not often blogged enough about.

  4. author dolpsy.ru posted October 10th 2022. 5:59 pm Log in to Reply

    dolpsy.ru

    dolpsy.ru

  5. author hydroxychloroquine tablets posted October 10th 2022. 8:28 pm Log in to Reply

    buy hydroxychloroquine 200 mg

    hydroxychloroquine eye exam

  6. author kin0shki.ru posted October 17th 2022. 10:52 pm Log in to Reply

    kin0shki.ru

    kin0shki.ru

  7. author 3o9cpydyue4s8.ru posted October 18th 2022. 12:48 am Log in to Reply

    3o9cpydyue4s8.ru

    3o9cpydyue4s8.ru

  8. author mb588.ru posted October 19th 2022. 4:05 am Log in to Reply

    mb588.ru

    mb588.ru

  9. author history-of-ukraine.ru news ukraine posted October 19th 2022. 8:06 pm Log in to Reply

    history-of-ukraine.ru news ukraine

    history-of-ukraine.ru news ukraine

  10. author newsukraine.ru posted October 19th 2022. 11:31 pm Log in to Reply

    newsukraine.ru

    newsukraine.ru

  11. author edu-design.ru posted October 25th 2022. 8:08 am Log in to Reply

    edu-design.ru

    edu-design.ru

  12. author tftl.ru posted October 25th 2022. 8:05 pm Log in to Reply

    tftl.ru

    tftl.ru

  13. author buy kamagra online posted October 26th 2022. 5:24 pm Log in to Reply

    order kamagra

    buy kamagra 100mg

  14. author brutv posted October 30th 2022. 4:08 pm Log in to Reply

    brutv

    brutv

  15. author site 2023 posted November 2nd 2022. 5:51 am Log in to Reply

    site 2023

    site 2023

  16. author sitestats01 posted November 17th 2022. 12:40 pm Log in to Reply

    sitestats01

    sitestats01

  17. author 1c789.ru posted November 17th 2022. 9:58 pm Log in to Reply

    1c789.ru

    1c789.ru

  18. author cttdu.ru posted November 17th 2022. 10:46 pm Log in to Reply

    cttdu.ru

    cttdu.ru

  19. author 1703 posted November 23rd 2022. 12:08 am Log in to Reply

    1703

    1703

  20. author hdserial2023.ru posted November 23rd 2022. 1:09 am Log in to Reply

    hdserial2023.ru

    hdserial2023.ru

  21. author serialhd2023.ru posted November 23rd 2022. 6:09 am Log in to Reply

    serialhd2023.ru

    serialhd2023.ru

  22. author cenforce 200mg online posted November 23rd 2022. 11:38 am Log in to Reply

    how to take cenforce professional

    buy cenforce 150mg

  23. author matchonline2022.ru posted November 23rd 2022. 11:45 am Log in to Reply

    matchonline2022.ru

    matchonline2022.ru

  24. author bit.ly/3OEzOZR posted November 28th 2022. 12:45 pm Log in to Reply

    bit.ly/3OEzOZR

    bit.ly/3OEzOZR

  25. author bit.ly/3gGFqGq posted November 28th 2022. 1:38 pm Log in to Reply

    bit.ly/3gGFqGq

    bit.ly/3gGFqGq

  26. author vidalista 60 usa posted November 28th 2022. 9:32 pm Log in to Reply

    vidalista

    tadalafil tablets 60mg vidalista 60

  27. author bit.ly/3ARFdXA posted November 28th 2022. 10:16 pm Log in to Reply

    bit.ly/3ARFdXA

    bit.ly/3ARFdXA

  28. author bit.ly/3ig2UT5 posted November 28th 2022. 11:58 pm Log in to Reply

    bit.ly/3ig2UT5

    bit.ly/3ig2UT5

  29. author bit.ly/3GQNK0J posted November 29th 2022. 1:24 am Log in to Reply

    bit.ly/3GQNK0J

    bit.ly/3GQNK0J

  30. author vardenafil cost posted November 30th 2022. 7:32 am Log in to Reply

    vardenafil tablets 20 mg best price

    vardenafil with meals

  31. author bep5w0Df posted December 1st 2022. 2:31 pm Log in to Reply

    bep5w0Df

    bep5w0Df

  32. author www posted December 3rd 2022. 12:06 pm Log in to Reply

    www

    www

  33. author icf posted December 5th 2022. 10:27 am Log in to Reply

    icf

    icf

  34. author 24hours-news posted December 5th 2022. 3:56 pm Log in to Reply

    24hours-news

    24hours-news

  35. author rusnewsweek posted December 5th 2022. 4:56 pm Log in to Reply

    rusnewsweek

    rusnewsweek

  36. author uluro-ado posted December 5th 2022. 5:50 pm Log in to Reply

    uluro-ado

    uluro-ado

  37. author irannews.ru posted December 10th 2022. 10:01 am Log in to Reply

    irannews.ru

    irannews.ru

  38. author klondayk2022 posted December 10th 2022. 11:23 am Log in to Reply

    klondayk2022

    klondayk2022

  39. author fildena online pharmacy posted December 13th 2022. 3:27 am Log in to Reply

    cheap fildena

    fildena 1500mg

  40. author tqmFEB3B posted December 18th 2022. 11:23 pm Log in to Reply

    tqmFEB3B

    tqmFEB3B

  41. author mangalib posted January 5th 2023. 4:10 pm Log in to Reply

    mangalib

    mangalib

  42. author x posted January 20th 2023. 1:42 pm Log in to Reply

    x

    x

  43. author 9xflix posted January 20th 2023. 10:43 pm Log in to Reply

    9xflix

    9xflix

  44. author xnxx posted January 21st 2023. 2:43 am Log in to Reply

    xnxx

    xnxx

  45. author 123movies posted January 21st 2023. 2:43 pm Log in to Reply

    123movies

    123movies

  46. author kinokrad posted February 27th 2023. 6:16 am Log in to Reply

    kinokrad

    kinokrad

  47. author batmanapollo posted February 28th 2023. 9:38 pm Log in to Reply

    batmanapollo

    batmanapollo

  48. author batmanapollo.ru – psychologist posted March 1st 2023. 5:25 pm Log in to Reply

    batmanapollo.ru – psychologist

    batmanapollo.ru – psychologist

  49. author batmanapollo psychologist posted March 3rd 2023. 10:02 am Log in to Reply

    batmanapollo psychologist

    batmanapollo psychologist

  50. author elizavetaboyarskaya.ru posted March 8th 2023. 5:57 am Log in to Reply

    elizavetaboyarskaya.ru

    elizavetaboyarskaya.ru

  51. author vsovezdeisrazu posted March 15th 2023. 4:10 am Log in to Reply

    vsovezdeisrazu

    vsovezdeisrazu

  52. author 2023 posted March 21st 2023. 2:47 am Log in to Reply

    2023

    2023

  53. author Äèçàéí ÷åëîâåêà posted March 28th 2023. 8:11 am Log in to Reply

    Äèçàéí ÷åëîâåêà

    Äèçàéí ÷åëîâåêà

  54. author ipsychologos posted March 29th 2023. 10:42 am Log in to Reply

    ipsychologos

    ipsychologos

Leave a Comment! Cancel reply

You must be logged in to post a comment.

Recent Posts

  • SharePoint Add-in 401 Unauthorized
  • Content Database and Site Collection Report
  • SharePoint helpful hidden URLs

Tags

Config (1) Content Types (2) Design (3) Document Libraries (7) Document Sets (1) How-To (1) Lists (4) Office365 (1) PnP (1) PowerShell (12) Quick Edit (2) REST (1) SharePoint (11) SharePoint 2010 (11) SharePoint 2013 (14) SharePoint Foundation (2) SharePoint Online (1) SP2010 Workflow (2) SP2013 Workflow (3) Systems (2) User Profile Service (1) Views (5) Windows Server (1) Workflow (2)

Archives

  • November 2020
  • December 2018
  • September 2018
  • July 2018
  • September 2017
  • August 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • September 2013
  • July 2013
  • June 2013