Connectivity and Timeout Issues After Second Migration with PostgreSQL from Single to flexible server

Waleed Asad 0 Reputation points
2024-09-10T15:59:33.7666667+00:00

Hello,

I am encountering a connectivity issue PostgreSQL following a recent migration by microsoft. Here's a brief timeline of events:

  • 1st Migration: On 2nd September 2024, there was a migration by microsoft mainly for validations from single to flexible server. Everything was working fine after this migration, with no connectivity or timeout issues.
  • 2nd Migration: On 7th September 2024, a second migration was executed by Microsoft. After this migration, we started facing connectivity problems. The system times out frequently when attempting to connect to the PostgreSQL database after 3 attempts. The following error is raised:
System.InvalidOperationException: An exception has been raised that 
An error occurred using the connection to database 'xxxxxx' on server 'tcp://xxxx.postgres.database.azure.com:5432'.

I've ensured that the connection string and database configurations are correct, and there were no changes to the database credentials. The server was functioning correctly before the second migration.

How can I resolve the timeout/ connectivity problems? Has anyone encountered something similar with Entity Framework Core and PostgreSQL after migrations?

Azure Database for PostgreSQL
{count} votes

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.