SharePoint Timer service issues

I recently came across an issue with SharePoint 2010 , this issue related to SharePoint Timer service which cause many things to stop functioning in the right way for example deploying WSP solution will be stacked in “deploying” status or “retracting” status or for example if you run “Reanalyze Now” in health check items , it will not update the status and the button will be disabled for long time …etc.

02

In my case , I tried the solutions suggested in this post “SharePoint 2010 Troubleshooting: Solution deployment stuck on deploying” but no succeed result

http://social.technet.microsoft.com/wiki/contents/articles/21350.sharepoint-2010-troubleshooting-solution-deployment-stuck-on-deploying.aspx

After more investigation , I found this issue in the server with Visual Studio 2010 installed on it , when I restarted the SharePoint Timer service I got this error “System.Security.Cryptography.CryptographicException …”

01

The fix for this issue described in this post “System.Security.Cryptography.CryptographicException – Keyset does not exist”

https://blogs.technet.microsoft.com/stefan_gossner/2010/05/10/common-problem-with-sharepoint-2010-system-security-cryptography-cryptographicexception-keyset-does-not-exist/

but this is not the fix for the real issue which cause the job timers to stuck.

The real issue was,SPTimerServiceInstance wasn’t online in all servers after patching the SharePoint servers so to fix the issue , just run the following power shell in all SharePoint servers to make sure it’s online in all servers:

$farm  = Get-SPFarm
$disabledTimers = $farm.TimerService.Instances | where {$_.Status -ne “Online”}
if ($disabledTimers -ne $null)
{
foreach ($timer in $disabledTimers)
{
Write-Host “Timer service instance on server ” $timer.Server.Name ” is not Online. Current status:” $timer.Status
Write-Host “Attempting to set the status of the service instance to online”
$timer.Status = [Microsoft.SharePoint.Administration.SPObjectStatus]::Online
$timer.Update()
}
}

Then restart the SPTimer Windows service manually.

For more information about this issue check this post “SharePoint Server 2010: Timer Jobs not Functioning After Applying Updates”

https://blogs.msdn.microsoft.com/tehnoonr/2011/09/07/sharepoint-server-2010-timer-jobs-not-functioning-after-applying-updates/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s