Skip to main content

Administrative Timer Jobs not running after upgrade



Symptoms


Every SharePoint server has one SPTimerServiceInstance object which represents the SPTimerV4 Windows Service. In certain circumstances (typically after an upgrade), you could end up in a situation where your timer service is running on the server but the SPTimerSericeInstance object is not Online. In this case, any administrative operations that depend on timer jobs to be completed (such as starting the User Profile Synchronization Service) will not be successful. 


Cause


An unexpected event during the upgrade prevented the timer service instance object to be brought back online.


Resolution


The following PowerShell script can be run on one of the SharePoint servers in the farm. The script detects timer service instances in the farm that are not online and attempts to bring them online. After running the script, please manually restart the SPTimerV4 Windows Service (SharePoint 2010 Timer) on each server that is identified to have the problem

$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()
}
}
else
{
Write-Host "All Timer Service Instances in the farm are online! No problems found"
}

Comments

Popular posts from this blog

Nintex Web Service call error: Unauthorized

Nintex Web Service call unauthorized (401) Issue: When Nintex web service call fails with unauthorized error (401) Remedy: Ensure all of the SSL certificates have been installed in IIS and SharePoint. SharePoint:  Central Admin Security In the General Security Section, Manage Trust Select New Enter a friendly name. Browse to the saved file. To save a certificate: Navigate to the site. Select the cert icon. View Certificates. Select the Details tab. Copy to file. Next, select DER encoded binary X.509 (.CER) Select/enter a path/filename. Next, and select Finish to save to local filesystem.

SharePoint User Display Name Incorrect

SharePoint User Display Name Incorrect Scenario: This scenario occurs when SharePoint pulls the display name value from active directory. At some point later, a change was made to the display name. The change in display name was not pushed down to SharePoint.  Find the SharePoint User Account Identity Go to a site collection/site where the incorrect display name is used. Go to Site -> Site Settings Under "Users and Permissions", select "People and Groups" Locate a group where the user is a member Click on the name of the user to find the user's information You will see the account name to use in the script to change the SharePoint user display name Change SharePoint User Display Name Run powershell as an administrator, and call the SharePoint snapin if you are not using the management shell. Use "Set-SPUser". Specify the account (identity), the new display name, and the site.  Set-SPUser -Identity 'account_name' ...

AgreeYa QuickApps for SharePoint Javascript Files Missing

Description: SCRIPT5009: 'xxxJavascript Control' is undefined. Cause: The error happens because javascript files required for the QuickApps Web Parts are missing. This occurrence has been observed to happen when a Web Application is deleted. Resolution: Check to see if the javascript files are found in the following location: %program files%Common Files%Microsoft Shared%Web Server Extensions%wpresources If the files are not found, reinstall QuickApps.