Skip to content

Commit 825e8ed

Browse files
authored
Merge pull request #4 from markingmyname/2358291
[PostgreSQL] improve harmeet article about common errors
2 parents 9825c89 + 146f816 commit 825e8ed

File tree

6 files changed

+39
-49
lines changed

6 files changed

+39
-49
lines changed

articles/postgresql/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
href: migrate/how-to-migrate-single-to-flexible-portal.md
2323
- name: Single to Flexible server migration tool - Using CLI
2424
href: migrate/how-to-migrate-single-to-flexible-cli.md
25+
- name: Common errors
26+
href: migrate/common-errors-and-special-scenarios-fms.md
2527
- name: Migrate data with pg_dump and pg_restore
2628
href: single-server/how-to-migrate-using-dump-and-restore.md
2729
displayName: pg_dump, pg_restore
Lines changed: 37 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,90 @@
11
---
22
title: "Common errors and special scenarios for PostgreSQL Single Server to Flexible using the FMS migration tool"
3-
titleSuffix:
43
description: Common errors and special scenarios for PostgreSQL Single Server to Flexible using the FMS migration tool.
54
author: harmeet-singh
65
ms.author: hasingh
6+
ms.reviewer: maghan
7+
ms.date: 05/01/2023
78
ms.service: postgresql
89
ms.topic: conceptual
9-
ms.date: 04/25/2023
10-
ms.custom:
1110
---
1211

1312
# Common errors and special scenarios for PostgreSQL Single Server to Flexible using the FMS migration tool.
1413

15-
 
14+
This articles explains common errors and special scenarios for PostgreSQL Single Server to Flexible using the FMS migration tool.
15+
1616
## Custom DNS
1717

1818
- Error message
19-
Connecting to the Source DB server failed. ErrorMessage: Validation of one or more databases failedFailed to run `select 1;` with exception 28000: The public network access on this server is disabled. To connect to this server, use the Private Endpoint from inside your virtual network.
20-
19+
Connecting to the Source DB server failed. ErrorMessage: Validation of one or more databases failed to run `select 1;` with exception 28000: The public network access on this server is disabled. Use the Private Endpoint inside your virtual network to connect to this server.
20+
2121
- Root Cause
22-
23-
The VNet is by default not enabled for outbound connections when we use CustomDNS. Migration make outbound calls which cause the failure.
24-
22+
23+
The VNet is, by default, not enabled for outbound connections when we use CustomDNS. Migration makes outbound calls, which cause the failure.
24+
2525
- Mitigation/Resolution
26-
27-
While Microsoft is working on fix as part of the product, customers can use one of the below two mitigations to unblock:
26+
27+
While Microsoft is working on a fix as part of the product, customers can use one of the following mitigations to unblock:
2828
Temporarily enable the public network access on the server
2929
OR
30-
Reach out to Microsoft and we will enable the server for outbound connections for the selected DNS addresses.
31-
32-
## Allow-listing extensions
30+
Reach out to Microsoft, and we enable the server for outbound connections for the selected DNS addresses.
31+
32+
## Allowlist extensions
3333

3434
- Symptom
35-
Error message appears as below “Extensions plpgsql, pg_stat_statements, pg_buffercache are not allowlisted on target server” or
36-
37-
:::image type="content" source="media/common-errors-and-special-scenarios-fms/allow-list-extensions.png" alt-text="Scenario for allow listing extensions":::
38-
39-
- Root Cause
40-
41-
Flexible server doesn’t have extensions allow-listed by default and have to be manually allow-listed before migration/use.
42-
43-
- Mitigation/Resolution
44-
45-
Customers need to go to server parameters of the flexible server and allow list all the extensions they intend to use. At least the ones mentioned in the error message should be allow listed.
35+
Error message appears as "Extensions plpgsql, pg_stat_statements, pg_buffercache aren't allowlisted on target server."
4636

47-
## Migrations with TimescaleDB extension
37+
:::image type="content" source="media/common-errors-and-special-scenarios-fms/allow-list-extensions-common-errors-postgresql.png" alt-text="Screenshot of scenario for allow listing extensions." lightbox="media/common-errors-and-special-scenarios-fms/allow-list-extensions-common-errors-postgresql.png":::
4838

49-
- Error Message
50-
EX001: Extension creation failed for one or more extensions:
51-
Failed to run `CREATE EXTENSION IF NOT EXISTS "{0}" CASCADE;` with exception XX000: extension "timescaledb" must be preloaded.
52-
5339
- Root Cause
54-
55-
<TBA>
40+
41+
The flexible server doesn't have extensions allow-listed by default and has to be manually allow-listed before migration/use.
5642

5743
- Mitigation/Resolution
58-
59-
<TBA>
44+
45+
Customers need to go to the server parameters of the flexible server and allowlist all the extensions they intend to use. At least the ones mentioned in the error message should be allowed to be listed.
6046

6147
## No pg_hba.conf entry for host
6248

6349
- Error Message
64-
Connecting to the Source DB server failed. ErrorMessage: Validation of one or more databases failed.Failed to run `select 1;` with exception 28000: no pg_hba.conf entry for host "xx.xx.xx.xx", user "username", database "postgres", SSL on Parameter name: SourceDBServerResourceId.
50+
Connecting to the Source DB server failed. ErrorMessage: Validation of one or more databases failed. Failed to run `select 1;` with exception 28000: no pg_hba.conf entry for host "xx.xx.xx.xx", the user "username," database "postgres," SSL on Parameter name: SourceDBServerResourceId.
6551

6652
- Root Cause
67-
68-
The IP address isnt added to the firewall rules.
53+
54+
The IP address isn't added to the firewall rules.
6955

7056
- Mitigation/Resolution
71-
57+
7258
Add IP addresses in the Firewall rules in the Networking tab of the Flex Server.
7359

74-
## Migration to Flex server with Burtsable SKU is not Supported
60+
:::image type="content" source="media/common-errors-and-special-scenarios-fms/ip-addresses-common-errors-postgresql.png" alt-text="Screenshot of ip addresses." lightbox="media/common-errors-and-special-scenarios-fms/ip-addresses-common-errors-postgresql.png":::
61+
62+
## Migration to Flex server with Burstable SKU isn't Supported
7563

7664
- Error Message
77-
Migration to Flex server with Burtsable SKU is not Supported.
65+
Migration to Flex server with Burstable SKU isn't Supported.
7866

7967
- Root Cause
80-
68+
8169
By Design.
8270

8371
- Mitigation/Resolution
84-
72+
8573
Change the flexible server from Burstable to General Purpose or Memory Optimized by going to compute + storage tab on the left menu.
86-
 
87-
## Cross region migration is not supported
74+
75+
## Cross-region migration isn't supported
8876

8977
- Error Message
90-
Cross region migration is not supported.
78+
Cross-region migration isn't supported.
9179

9280
- Root Cause
93-
81+
9482
By Design.
9583

9684
- Mitigation/Resolution
97-
98-
This feature is coming soon, in the mean time only migrations within servers of the same region is supported.
85+
86+
This feature is coming soon; in the meantime, only migrations within servers of the same region are supported.
9987

10088
## Next steps
10189

102-
- [Migration tool](concepts-single-to-flexible.md)
90+
- [Migration tool](concepts-single-to-flexible.md)
Loading
Loading

0 commit comments

Comments
 (0)