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

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.