Azure Database for PostgreSQL flexible server stuck in restart state

Cosmin Ardeleanu 5 Reputation points
2024-03-01T16:24:29.6666667+00:00

I have restarted an Azure Database for PostgreSQL flexible server and is now stuck in Restarting state for a few hours, but the server is accessible. Of course I cannot manage it since Azure doesn't think this is running. Anyone encountered anything like this? I tried PS to restart/stop/start getting InternalServerError

Azure Database for PostgreSQL
{count} vote

1 answer

Sort by: Most helpful
  1. RahulRandive 10,486 Reputation points Volunteer Moderator
    2024-03-02T16:31:02.54+00:00

    Hi @Cosmin Ardeleanu

    What causes long recovery on Azure Database for PostgreSQL Recent checkpoints are critical for fast server recovery. Once a restart happens, either it was a new instance (failover to healthy instance) or same instance (in-place restart) will connect to disk that has all logs, all WAL logs after the last successful checkpoint need to be applied to the data pages before the server starts to accept connections again.

    Another reason would be long running transactions are queries that are running for too long which impact database performance and can potentially cause issues during restarts.

    I hope your server is back online now. If not, you'll need to open a support case to get it back online.

    Thank You!


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.