Skip to content

Commit a192171

Browse files
authored
Merge pull request #8208 from MicrosoftDocs/main
Auto push to live 2025-02-12 02:00:02
2 parents b912515 + 44eba09 commit a192171

22 files changed

+163
-35
lines changed

support/power-platform/power-automate/approvals/common-errors-creating-and-assigning-flow-approvals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Common errors creating and assigning flow approvals
33
description: Common Power Automate approval errors and potential resolutions.
44
ms.reviewer: hamenon, mansong
5-
ms.date: 08/20/2024
5+
ms.date: 02/12/2025
66
ms.custom: sap:Approvals\Approval action failing
77
---
88
# Common errors creating and assigning flow approvals
@@ -169,7 +169,7 @@ The user that originally created the Approvals connection used by the flow is no
169169

170170
> Cannot wait on this approval in its current state.
171171
172-
By the time the "Wait for an approval" action executed, the approval had already been completed. Only active approvals can be waited upon by this action.
172+
By the time the **Wait for an approval** action was executed, the approval had already expired or been abandoned. Only active approvals can be waited upon by this action.
173173

174174
### InvalidApprovalCustomOptions
175175

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
---
2+
title: Availability Replica is Disconnected in an Availability Group
3+
description: Identify possible causes for why a replica is disconnected within an Always On availability group.
4+
author: MashaMSFT
5+
ms.author: mathoma
6+
ms.reviewer: randolphwest
7+
ms.date: 05/08/2024
8+
ms.custom: sap:Always On Availability Groups (AG)
9+
---
10+
11+
# Availability replica is disconnected within an Always On availability group
12+
13+
_Applies to:_  SQL Server
14+
15+
## Introduction
16+
17+
- **Policy Name**: Availability Replica Connection State
18+
- **Issue**: Availability replica is disconnected
19+
- **Category**: **Critical**
20+
- **Facet**: Availability replica
21+
22+
## Description
23+
24+
This policy checks the connection state between availability replicas. The policy is in an unhealthy state when the connection state of the availability replica is `DISCONNECTED`. The policy is otherwise in a healthy state.
25+
26+
## Possible causes
27+
28+
The secondary replica isn't connected to the primary replica. The connected state is `DISCONNECTED`. This issue can be caused by one of the following reasons:
29+
30+
- [The connection port might be in conflict with another application](#the-connection-port-might-be-in-conflict-with-another-application).
31+
- [The encryption type or algorithm is mismatched](#the-encryption-type-or-algorithm-is-mismatched).
32+
- [The connection endpoint was deleted or isn't started](#the-connection-endpoint-was-deleted-or-isnt-started).
33+
- [There are network/connectivity issues or Ports are blocked at the firewall](#network-or-connectivity-issues-or-ports-are-blocked-at-the-firewall).
34+
- [Service/startup account isn't a domain user and isn't able to connect to the DC and to the remote node and port (for example, 5022)](#account-isnt-a-domain-user-and-cant-connect-to-the-dc-and-to-the-remote-node).
35+
36+
## Possible solutions
37+
38+
Check the database mirroring endpoint configuration for the instances of the primary and secondary replica and update the mismatched configuration. Also, check if the port is conflicting, and if so, change the port number.
39+
40+
The following are possible solutions for this issue:
41+
42+
#### The connection port might be in conflict with another application
43+
44+
Run the following commands to diagnose port issues:
45+
46+
```powershell
47+
$server_name = "server_instance" #replace with your SQL Server instance
48+
sqlcmd -S $server_name -E -Q "SELECT type_desc, port FROM sys.tcp_endpoints WHERE type_desc = 'DATABASE_MIRRORING'; "
49+
```
50+
51+
The previous command returns the port number that you have to use in the following command.
52+
53+
```powershell
54+
$port = "5022"
55+
Get-NetTCPConnection -LocalPort $port
56+
Get-Process -Id (Get-NetTCPConnection -LocalPort $port).OwningProcess | Select-Object Name, ProductVersion, Path, Id
57+
```
58+
59+
#### The encryption type or algorithm is mismatched
60+
61+
Run this command on both servers and compare the encryption and make sure both are the same.
62+
63+
```powershell
64+
$server_name = "server_instance" #replace with your SQL Server instance
65+
sqlcmd -S $server_name -E -Q "SELECT name, state_desc, encryption_algorithm_desc, protocol_desc, type_desc FROM sys.database_mirroring_endpoints"
66+
```
67+
68+
#### The connection endpoint was deleted or isn't started
69+
70+
Run the following command if the mirroring endpoint exits and is started.
71+
72+
```powershell
73+
$server_name = "server_instance" #replace with your SQL Server instance
74+
sqlcmd -S $server_name -E -Q "SELECT name, state_desc, encryption_algorithm_desc, protocol_desc, type_desc FROM sys.database_mirroring_endpoints"
75+
```
76+
77+
Run the following command if you suspect that endpoint isn't responding to connections, or isn't running.
78+
79+
```powershell
80+
$server_name = "server_instance" #use your SQL Server instance here
81+
$server_name = "hadr_endpoint" #replace with your endpoint name
82+
sqlcmd -S $server_name -E -Q "ALTER ENDPOINT hadr_endpoint STATE = stopped"
83+
sqlcmd -S $server_name -E -Q "ALTER ENDPOINT hadr_endpoint STATE = started"
84+
```
85+
86+
> [!WARNING]
87+
> Running the command with `STATE = stopped` will stop your endpoint and temporarily interrupt Always On traffic flow.
88+
89+
#### Network or connectivity issues, or ports are blocked at the firewall
90+
91+
Use the following commands to test connectivity in both directions from `Node1` to `Node2` and `Node2` to `Node1`:
92+
93+
```powershell
94+
$computer = "remote_node" # replace with node name in your environment
95+
$port = "5022" # replace with the port from your database_mirroring_endpoints
96+
Test-NetConnection -ComputerName $computer -Port $port
97+
```
98+
99+
#### Account isn't a domain user and can't connect to the DC, and to the remote node
100+
101+
To test whether the service account can connect to the remote node, follow these steps. The steps assume that you aren't logged in with the service account.
102+
103+
1. Select **Start** > **Windows PowerShell** > right-click the icon.
104+
105+
1. Select **More** > **Run as Different User** > **Use a different account**.
106+
107+
1. Type the service account name and password.
108+
109+
1. After Windows PowerShell opens, type the following command to verify that you signed in with the service account:
110+
111+
```powershell
112+
whoami
113+
```
114+
115+
1. Then you can test the connection to the remote node, as in the following example.
116+
117+
```powershell
118+
$computer = "remote_node" # replace with node name in your environment
119+
$port = "5022" # replace with the port from your database_mirroring_endpoints
120+
Test-NetConnection -ComputerName $computer -Port $port
121+
```
122+
123+
## Related content
124+
125+
- [What is an Always On availability group?](/sql/database-engine/availability-groups/windows/overview-of-always-on-availability-groups-sql-server)
126+
- [Use the Always On Availability Group dashboard (SQL Server Management Studio)](/sql/database-engine/availability-groups/windows/use-the-always-on-dashboard-sql-server-management-studio)

support/sql/database-engine/availability-groups/error-9002-transaction-log-large.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Error 9002 when transaction log is large
33
description: This article describes troubleshooting steps that may help resolve problems that occur when the transaction log becomes large or runs out of space in SQL Server.
4-
ms.date: 07/22/2020
4+
ms.date: 02/12/2025
55
ms.custom: sap:Always On Availability Groups (AG)
6-
ms.reviewer: ramakoni, amamun
6+
ms.reviewer: ramakoni, amamun, jopilov
77
---
88
# Error 9002: The transaction log for database is full due to AVAILABILITY_REPLICA error message in SQL Server
99

support/sql/database-engine/availability-groups/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ items:
2929
href: troubleshooting-availability-group-failover.md
3030
- name: Use AGDiag to diagnose availability group health events
3131
href: use-agdiag-diagnose-availability-group-health-events.md
32+
- name: Use the Always On Availability Group dashboard
33+
href: availability-replica-is-disconnected.md
3234
- name: Troubleshoot recovery queueing in an availability group
3335
href: troubleshooting-recovery-queuing-in-alwayson-availability-group.md

support/sql/database-engine/connect/consistent-sql-network-connectivity-issue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Consistent SQL Server network connectivity issues
33
description: Troubleshoots consistent SQL Server network connectivity issues.
4-
ms.date: 12/05/2023
4+
ms.date: 02/12/2025
55
ms.reviewer: prmadhes, jopilov, v-sidong
66
ms.custom: sap:Database Connectivity and Authentication
77
---

support/sql/database-engine/connect/intermittent-periodic-network-issue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Intermittent or periodic issues with connecting to SQL Server
33
description: Troubleshoots intermittent or periodic network issues in SQL Server connectivity.
4-
ms.date: 03/25/2024
4+
ms.date: 02/12/2025
55
ms.custom: sap:Database Connectivity and Authentication
66
ms.reviewer: mastewa, prmadhes, jopilov, v-sidong
77
---

support/sql/database-engine/connect/ssl-errors-after-tls-1-2.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
title: SSL errors after upgrading to TLS 1.2 in SQL Server
33
description: This article provides information about the SSL errors that you might encounter after you upgrade to TLS 1.2 in SQL Server.
4-
ms.date: 04/18/2024
4+
ms.date: 02/12/2025
55
ms.custom: sap:Database Connectivity and Authentication
66
author: Malcolm-Stewart
7-
ms.author: mastewa
87
ms.reviewer: jopilov, haiyingyu, prmadhes, v-jayaramanp
98
---
109

support/sql/database-engine/connect/static-or-dynamic-port-config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: How to check SQL Server dynamic versus static ports
33
description: Check if an instance of the SQL Server database engine listens on a dynamic versus a static port using the SQL Server Configuration Manager.
4-
ms.date: 02/23/2022
5-
ms.reviewer: v-jayaramanp
4+
ms.date: 02/12/2025
5+
ms.reviewer: jopilov
66
ms.custom: sap:Database Connectivity and Authentication
77
---
88

support/sql/database-engine/database-file-operations/1450-and-665-errors-running-dbcc-checkdb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: Operating System errors 665 and 1450 are reported for database files
33
description: This article provides resolutions for the problem where OS errors 1450 and 665 are reported for SQL Server database files.
44
author: PiJoCoder
55
ms.author: jopilov
6-
ms.date: 12/12/2022
7-
ms.reviewer: v-jayaramanp
6+
ms.date: 02/12/2025
7+
ms.reviewer: jopilov
88
ms.custom: sap:File, Filegroup, Database Operations or Corruption
99
---
1010

support/sql/database-engine/development/error-run-clr-object-create-assembly.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Error when you run CLR object or create assembly
33
description: This article helps you resolve two different problems that occur when working with CLR objects on a database that has been moved from a different instance of SQL Server.
4-
ms.date: 09/19/2022
4+
ms.date: 02/12/2025
55
ms.custom: sap:Database or Client application Development
6-
ms.reviewer: jackli
6+
ms.reviewer: jackli, jopilov
77
---
88

99
# Error when you run an existing CLR object or create an assembly

0 commit comments

Comments
 (0)