Unable to publish workflow from SharePoint Designer 2013

Frank Martin 501 Reputation points
2021-12-05T11:17:28.213+00:00

I have SharePoint 2019 on premise environment consisting of an APP + Web server. I am trying to publish a simple SharePoint 2013 workflow but getting following error:

System.ServiceModel.ServerTooBusyException: The HTTP service located at http://APPServer:32843/a81ee7e967be4165b9ada2b6bc67fc4a/AppMng.svc is unavailable. This could be because the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the address is correct and try accessing the service again later. ---> System.Net.WebException: The remote server returned an error: (503) Server Unavailable.
at System.Net.HttpWebRequest.GetResponse()

Workflow Manager is installed on Web server and when I go to Workflow Manager proxy in CA then it shows Workflow is connected. It's service is running in services.msc. How do I go about diagnosing and fixing this issue because may be workflow manager is not properly installed? Here's the current setup:

On APP server SharePoint Search Host Controller service is running in services.msc

On Web server SharePoint Search Host Controller is in disabled state. Trying to start it using same account which is being used on App server throws error that Windows cannot start service.

Both App Management and Subscriptions Settings service applications are started. App management service is running on both App and Web server.

How to fix the issue? By the way why the URL in error above even points to App server. Shouldn't it point to Web server because this is where Workflow Manager is installed!?

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
{count} votes

Accepted answer
  1. Frank Martin 501 Reputation points
    2021-12-08T09:28:53.063+00:00

    Found and fixed the issue. The account under which AppManagementServicePool was running (in IIS application pools) didn't have proper permission. I changed it to a different account and now I am able to publish workflows.

    Because as soon as I published the workflow, this particular application pool would stop. But the name being shown in IIS is not user friendly and it is something like 6d7ef89da........ so to find out I ran following command in SharePoint power shell.

    Get-SPServiceApplicationPool | Select Name, ID
    

    This gave me name of the pool which is AppmanagementServicePool so I changed its account in IIS.


2 additional answers

Sort by: Most helpful
  1. Mohamed El-Qassas 1,401 Reputation points MVP Volunteer Moderator
    2021-12-06T03:39:50.1+00:00

    In general, the 503 Service Unavailable means the Application Pool was stopped!

    So you have first to check the status of the App pool "WorkflowMgmtPool" for Workflow Management Site.

    • If it was stopped, try to restart it.
    • Even it was started, I would suggest providing its Identity credential again and restarting it.

    Besides that, I would suggest

    Also, review the workflow installation and configuration steps as mentioned at Install and Configure Workflow Manager SharePoint 2019 Step by Step

    1 person found this answer helpful.

  2. Emily Du-MSFT 51,846 Reputation points Microsoft External Staff
    2021-12-06T10:43:05.607+00:00

    @Frank Martin

    1.Please restart the SharePoint Search Host Controller in the web server.
    2.Make sure that the firewall is turn off, it allows the connections between workflow manager server and SP server.


    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.


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.