503 error when opening CA and sites on SharePoint 2019

Andy 1,346 Reputation points
2023-02-17T01:44:08.5466667+00:00

When opening CA and site on SharePoint 2019, the following error displayed:

User's image

When checking the application pools on IIS manager, I found they are stopped. Then start them manually, but after several minutes, they changed to be stopped again.

Anyone see this before? How to fix it.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,339 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yanli Jiang - MSFT 26,016 Reputation points Microsoft Vendor
    2023-02-17T08:48:34.9633333+00:00

    Hi @Andy ,

    Service Unavailable: HTTP Error 503. The service is unavailable error normally occurs whenever the password for the application pool identity account is changed or application pools are in the stopped state.

    Therefore, please try the follow steps to troubleshoot.

    1. Make sure all SharePoint services are started under Services.msc.
      Go to Services.msc.
      266366-image.png
    2. Go to Internet Information Services(IIS) Manager.
      If the error occurs when accessing the Central Administration site, the SharePoint admin center v4 application pool may be stopped and needs to be started. If the error occurs when accessing the SharePoint site, the SharePoint – 80 application pool may have been stopped and needs to be started.
      For this, select the correct application pool, click Start. Reboot if already started.
    3. If the necessary application pools are started and the error persists, then you should check the group membership of the group IIS_IUSRS and the application pool account in Local Group Policy (visible in IIS Manager).
      Check the group membership of the group "IIS_IUSRS"
      Go to IIS Manager, note the account of the application pool in question in the identity column.
      266357-image.png

    Go to lusrmgr.msc, Open Local Users and Groups and the group "IIS_IUSRS". The application pool account must be a member of this group.
    266298-image.png

    Check the application pool account in Local Group Policy.
    Go to gpedit.msc. Open Local Group Policy Editor.
    Open the following items:
    Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment.
    Verify that the IIS_IUSRS group is included in the following policy:
    "Log on as batch job" and "Impersonate client after authentication"
    266278-image.png

    1. Check ULS log file to check if there are any clues about this issue. The path of ULS log files are C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\LOGS.
      There is a blog about how to check ULS log for your reference:
      https://blog.machsol.com/microsoft-sharepoint/sharepoint-unified-logging-system-uls

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

    There is an article for your reference:

    https://social.technet.microsoft.com/wiki/contents/articles/25408.sharepoint-troubleshooting-application-pool-keeps-stopping-service-unavailable-and-503-errors.aspx


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.