|
| 1 | +--- |
| 2 | +title: Troubleshoot Azure Database for PostgreSQL - Flexible server backup |
| 3 | +description: Troubleshooting information for backing up Azure Database for PostgreSQL - Flexible server. |
| 4 | +ms.topic: troubleshooting |
| 5 | +ms.date: 03/26/2024 |
| 6 | +ms.service: backup |
| 7 | +author: AbhishekMallick-MS |
| 8 | +ms.author: v-abhmallick |
| 9 | +--- |
| 10 | + |
| 11 | +# Troubleshoot Azure Database for PostgreSQL - Flexible server backup (preview) |
| 12 | + |
| 13 | +This article provides the recommended actions to troubleshoot the issues you might encounter during the backup or restore of Azure Database for PostgreSQL - Flexible server. |
| 14 | + |
| 15 | +## Common errors for the backup and restore operations |
| 16 | + |
| 17 | +### PostgreSQLFlexOperationFailedUserError |
| 18 | + |
| 19 | +**Error code**: PostgreSQLFlexOperationFailedUserError |
| 20 | + |
| 21 | +**Inner error code**: `ServerNotReadyForLongTermBackup` |
| 22 | + |
| 23 | +**Cause**: Resource isn't in a valid state to perform the backup operation. |
| 24 | + |
| 25 | +**Recommended action**: Validate if the PostgreSQL - Flexible server has the following properties in its resource JSON script: `"state": "Ready"`. If not present, wait for the state to change or fix the PostgreSQL - Flexible server properties to make it ready for backup. |
| 26 | + |
| 27 | +### PostgreSQLFlexOperationFailedUserError |
| 28 | + |
| 29 | +**Error code**: PostgreSQLFlexOperationFailedUserError |
| 30 | + |
| 31 | +**Inner error code**: `ResourceGroupNotFound` |
| 32 | + |
| 33 | +**Cause**: Resource group isn't found. |
| 34 | + |
| 35 | +**Recommended action**: Stop protection for the backup instance to avoid failures. |
| 36 | + |
| 37 | +### PostgreSQLFlexOperationFailedUserError |
| 38 | + |
| 39 | +**Error code**: PostgreSQLFlexOperationFailedUserError |
| 40 | + |
| 41 | +**Inner error code**: `ResourceNotFound` |
| 42 | + |
| 43 | +**Cause**: Resource isn't found. |
| 44 | + |
| 45 | +**Recommended action**: Stop protection for the backup instance to avoid failures. |
| 46 | + |
| 47 | +### PostgreSQLFlexOperationFailedUserError |
| 48 | + |
| 49 | +**Error code**: PostgreSQLFlexOperationFailedUserError |
| 50 | + |
| 51 | +**Inner error code**: `AuthorizationFailed` |
| 52 | + |
| 53 | +**Cause**: Required permissions aren't present to perform the backup operation. |
| 54 | + |
| 55 | +**Recommended action**: Assign the [appropriate permissions](backup-azure-database-postgresql-flex-overview.md#permissions-for-backup) and retrigger the backup operation. |
| 56 | + |
| 57 | +### UserErrorMaxConcurrentOperationLimitReached |
| 58 | + |
| 59 | +**Error code**: UserErrorMaxConcurrentOperationLimitReached |
| 60 | + |
| 61 | +**Inner error code**: `UserErrorMaxConcurrentOperationLimitReached` |
| 62 | + |
| 63 | +**Cause**: Limit to the number of backups that can be performed on a backup instance has reached to maximum. |
| 64 | + |
| 65 | +**Recommended action**: Try to trigger a backup operation once the current backup job is complete. |
| 66 | + |
| 67 | +### UserErrorMSIMissingPermissions |
| 68 | + |
| 69 | +**Error code**: UserErrorMSIMissingPermissions |
| 70 | + |
| 71 | +**Inner error code**: `UserErrorMSIMissingPermissions` |
| 72 | + |
| 73 | +**Cause**: The required set of permissions aren't present to perform the restore operation. |
| 74 | + |
| 75 | +**Recommended action**: Assign the [appropriate permissions](backup-azure-database-postgresql-flex-overview.md#permissions-for-backup) and retrigger the backup operation. |
| 76 | + |
| 77 | +## Next steps |
| 78 | + |
| 79 | +- [About Azure Database for PostgreSQL - Flexible server backup (preview)](backup-azure-database-postgresql-flex-overview.md). |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
0 commit comments