Export (0) Print
Expand All
Expand Minimize

The State Service Delete Expired Sessions timer job is not enabled (SharePoint 2013)

Published: July 16, 2012

Summary: Learn how to resolve the SharePoint Health Analyzer rule "The State Service Delete Expired Sessions timer job is not enabled."

Applies to:  SharePoint Foundation 2013 | SharePoint Server 2013 

Rule Name:   The State Service Delete Expired Sessions timer job is not enabled

Summary:   The State Service uses a timer job to delete data for expired sessions from the State Service databases. If this timer job is not enabled, the server that hosts the State Service database will run out of disk space and the SharePoint farm will cease to function

Cause:   The State Service Delete Expired Sessions timer job is not enabled.

Resolution:   Enable the timer job by using Central Administration

  1. Verify that the user account that is performing this procedure is a member of the Farm Administrators group.

    note Note:

    The timer job settings are farm-wide and cannot be set for individual servers in the farm.

  2. Start SharePoint 2013 Central Administration.

    • For Windows Server 2008 R2:

      • Click Start, click Microsoft SharePoint 2013 Products, and then click SharePoint 2013 Central Administration.

    • For Windows Server 2012:

      • On the Start screen, click SharePoint 2013 Central Administration.

        If SharePoint 2013 Central Administration is not on the Start screen:

      • Right-click Computer, click All apps, and then click SharePoint 2013 Central Administration.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. In Central Administration, on the Home page, click Monitoring.

  4. On the Monitoring page, in the Timer Jobs section, click Review job definitions.

  5. On the Job Definitions page, click the State Service Delete Expired Sessions timer job.

  6. On the Edit Timer Job page, specify the schedule that you want, and then click Enable.

Resolution:   Enable the timer job by using Windows PowerShell

  1. Verify that you have the following memberships:

    • securityadmin fixed server role on the SQL Server instance.

    • db_owner fixed database role on all databases that are to be updated.

    • Administrators group on the server on which you are running the Windows PowerShell cmdlets.

    An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint 2013 Products cmdlets.

    note Note:

    If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about Windows PowerShell permissions, see Add-SPShellAdmin.

  2. Start the SharePoint 2013 Management Shell.

    • For Windows Server 2008 R2:

      1. On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, and then click SharePoint 2013 Management Shell.

    • For Windows Server 2012:

      • On the Start screen, click SharePoint 2013 Management Shell.

        If SharePoint 2013 Management Shell is not on the Start screen:

      • Right-click Computer, click All apps, and then click SharePoint 2013 Management Shell.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, type the following command:

    Enable-SPTimerJob StateServiceExpiredSessionJobDefinition
    

For more information, see Enable-SPTimerJob.

note Note:

We recommend that you use Windows PowerShell when performing command-line administrative tasks. The Stsadm command-line tool has been deprecated, but is included to support compatibility with previous product versions.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft