Azure PostgreSQL server unreachable – app failing with OperationalError (Tracking ID: e521870a-a610-410d-a970-b5b3e05e6e50)

Tom Rye 0 Reputation points
2025-06-14T21:44:39.98+00:00

Summary: My Django web app hosted on Azure App Service has worked flawlessly for months but suddenly started returning 500 errors on login. I have made no code changes.

On investigation, I've confirmed the app can no longer connect to the Azure PostgreSQL Flexible Server. Attempts to restart the DB result in an error.

Error on database connection (captured via SSH inside App Service):

django.db.utils.OperationalError: could not connect to server: Connection refused

Is the server running on host "feedback-server.postgres.database.azure.com" (10.0.2.4) and accepting TCP/IP connections on port 5432?

Additional context:

  • App: fastfeedback (Django, running in App Service on Linux)
  • DB server: feedback-server.postgres.database.azure.com
  • I attempted to restart the PostgreSQL server but received:

Error occurred restarting the server feedback-server. An unexpected error occurred while processing the request.

Tracking ID: e521870a-a610-410d-a970-b5b3e05e6e50

  1. The app loads static files and pages fine — only POST actions requiring DB access fail.
  2. python manage.py dbshell from inside the SSH shell also fails to connect.

Request:

Can someone from Microsoft support please investigate the server unavailability?

This is blocking all user logins for my live web application.

Azure SQL Database
0 comments No comments
{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.