How to fix sql server having a stuck ExportDatabase job at 1%, cancelling leads to stuck CancelInProgress instead

Kalle Macklin 0 Reputation points
2025-02-18T08:04:09.8533333+00:00

We were doing an ExportDatabase operation on our production database. This is part of our release pipeline, to do a backup before deploying new code.

The github action timed out eventually since the export job got stuck at 1% and was stuck for 8 hours. We then used az cli to cancel this job. This job is now stuck at status CancelInProgress. It has been so for 22 hours now.

We cannot do any more backups. We cannot cancel the job more than it being cancel in progress. We cannot deploy our new code the client is waiting for.

Is there any way to fix this "hostage situation" other than paying for a support plan to ask Microsoft themselves a "technical question" with their broken system?

A server restart could perhaps fix it we thought, however disruptive that is for the client. But there is no way to restart an SQL server in Azure from what we could gather in the documentation.

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,490 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Kalle Macklin 0 Reputation points
    2025-02-20T10:09:41.45+00:00

    The solution is to pay for a support plan since that is the only way you are allowed to contact Microsoft about this bug/error, due to it being a "technical question".

    0 comments No comments

  2. Kalle Macklin 0 Reputation points
    2025-02-24T09:34:08.2633333+00:00

    I have marked an answer, please don't contact me anymore regarding this.

    PraktikLad above has already private messaged me, refusing to explain who they are, trying to get tons of sensitive technical details from me so right now this is only a breeding ground for scam attempts sadly.

    0 comments No comments

  3. Kalle Macklin 0 Reputation points
    2025-02-26T20:21:33.14+00:00

    Solution finally:

    After either 3 or 4 full days, the job released from CancelInProgress to Cancelled, so perhaps time heals all wounds.

    0 comments No comments

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.