Problem Description
MS-SQL differential backups fail, and the Druva console reports the error code SQL49.
When reviewing mssql_plugin_job.log from the detailed job logs bundle, the following errors are present, indicating that the VSS writer is not in a stable state:
level=error filename=vssbackuphelper.go method=checkWriterStatus message="Writer state is not stable"
level=error filename=vssbackuphelper.go message="Error in checking writer status" Error="message: Writer state is not stable."
Simultaneously, the Windows Application Event Log on the SQL server records corresponding errors from the SQLWRITER source. These events explicitly state that a differential backup cannot be performed because a current full database backup does not exist.
Cause
The root cause of the SQL49 error is the absence of a recent and valid full backup for the SQL database. Differential backups rely on a preceding full backup as a baseline. When the Druva agent initiates a differential backup, the SQL VSS writer checks for this baseline. If it cannot find a valid full backup, it intentionally fails the operation. This failure is reported in the logs as the writer being in an "unstable state," even though the instability is a direct result of the missing prerequisite baseline and not a persistent VSS writer fault.
Traceback
Druva Plugin Log (mssql_plugin_job.log)
level=error filename=vssbackuphelper.go:2492 method=checkWriterStatus message="Writer state is not stable" WriterState=8 Error=null
level=error filename=vssbackuphelper.go:1521 message="Error in checking writer status" Error="message: Writer state is not stable."
Windows Application Event Log
Log Name: Application
Source: SQLWRITER
Event ID: 24583
Level: Error
Description:
Sqllib error: OLEDB Error encountered calling ICommandText::Execute. hr = 0x80040e14. SQLSTATE: 42000, Native Error: 3014
Error message: BACKUP DATABASE is terminating abnormally.
SQLSTATE: 42000, Native Error: 3035
Error message: Cannot perform a differential backup for database "MyDatabase", because a current database backup does not exist. Perform a full database backup by reissuing BACKUP DATABASE, omitting the WITH DIFFERENTIAL option.
Resolution
The solution is to run a new full backup to establish the required baseline. Before initiating the backup, check and stabilize the VSS writer if needed.
Step 1: Check and Stabilize VSS Writers (If Needed)
On the affected SQL server, open PowerShell or Command Prompt as an Administrator.
Run the command to check the status of all VSS writers:
vssadmin list writersLocate SqlServerWriter in the list. If its State is [1] Stable and Last error is No error, proceed to Step 2.
If the writer is in a Failed state, open services.msc and restart the following services in order to reset it:
SQL Server VSS Writer
Volume Shadow Copy
Step 2: Initiate a Manual Full Backup
Log in to the Druva console and navigate to your MS-SQL server.
Select the database(s) configured in the backup set that is failing.
Trigger an On-Demand Backup and select the Full Backup option. This creates the baseline that the SQL writer requires.
Alternative: If you cannot run a manual backup, review the backup policy assigned to the SQL server and ensure it is configured with a recurring schedule for Full backups (e.g., weekly) to prevent recurrence.
Verification
1. Confirm Backup Success
Monitor the full backup job in the Druva console. A Successful status confirms the new baseline has been created.
After the full backup succeeds, wait for the next scheduled differential backup or trigger one manually. A successful differential backup without the SQL49 error confirms the primary issue is resolved.
2. Confirm VSS Writer Stability
After the full backup completes successfully, verify that the "Writer state is not stable" error was only a symptom:
Run the VSS writer status command again on the SQL server:
vssadmin list writersConfirm that SqlServerWriter consistently reports its State as [1] Stable and Last error as No error. This proves the instability was directly caused by the missing full backup and is now resolved.
