The Service Broker endpoint is in disabled or stopped state.

Bilal H. Bhatt 136 Reputation points
2023-02-19T07:53:14.9633333+00:00

Hello,

We have SQL 2019 shared AG instance hosting many databases. We are getting lots of below messages.

The Service Broker endpoint is in disabled or stopped state.

Please help

SQL Server | Other
{count} vote

2 answers

Sort by: Most helpful
  1. Ronen Ariely 15,206 Reputation points
    2023-02-19T09:48:30.7933333+00:00

    Hi,

    (1) All machines with Availability Groups must have the Service Broker endpoint exists and correctly configured. Use the following query to confirm you have Service Broker endpoint:

    SELECT name, protocol_desc, type_desc, state_desc, port
    FROM sys.tcp_endpoints
    WHERE type_desc = 'SERVICE_BROKER';
    

    Go over the following document: https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/service-broker-with-always-on-availability-groups-sql-server?view=sql-server-ver15&WT.mc_id=DP-MVP-5001699

    In most cases, you simply need to CREATE ENDPOINT

    (2) If the above did not solve your issue then please check what is the exact version of he server (please check @@VERSION)


  2. LiHongMSFT-4306 31,576 Reputation points
    2023-02-20T08:43:59.35+00:00

    Hi @Bilal H. Bhatt

    The Service Broker endpoint is in disabled or stopped state.

    For most cases, you might ignore this message.

    If you need service in an Availability Group to receive remote messages, then the CREATE ENDPOINT code you post is needed. Besides, you need ensure that the availability group possesses a listener, and the Service Broker endpoint exists and is correctly configured.

    See: Requirements for a Service in an Availability Group to Receive Remote Messages.

    Best regards,

    Cosmog Hong


    If the answer is the right solution, 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 comments No comments

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.