April 20, 2021 at 5:05 pm
I cant figure out why backup failed
Here is my error:
Executed as user: NBHDHQDOMAIN\svcempsqlserver. ...0 for 64-bit Copyright (C) 2016 Microsoft. All rights reserved. Started: 12:40:50 PM Progress: 2021-04-20 12:40:54.16 Source: {DCE40FB3-F026-44F4-8B33-183461DFFA93} Executing query "DECLARE @GUID UNIQUEIDENTIFIER EXECUTE msdb..sp...".: 100% complete End Progress Progress: 2021-04-20 12:40:57.51 Source: Maintenance Cleanup Task Executing query "EXECUTE master.dbo.xp_delete_file 0,N'B:\Backup',N...".: 100% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\34...".: 0% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\AC...".: 1% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\AD...".: 2% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\AD...".: 2% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\An...".: 3% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\Ap...".: 4% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\Ar...".: 4% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\AS...".: 5% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\Au...".: 6% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\Az...".: 6% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\Az...".: 7% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\Bc...".: 8% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\BC...".: 8% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\Be...".: 9% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\BH...".: 10% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\BH...".: 10% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\BH...".: 11% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\BH...".: 12% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\BH...".: 12% complete End Progress Progress: 2021-04-20 12:42:08.26 Source: Back Up Database Task Executing query "EXECUTE master.dbo.xp_create_subdir N'B:\Backup\BH...... The package execution fa... The step failed.
April 21, 2021 at 1:14 am
Don't you have access to the rest of the failure message from the SQL Server Error Log?
If I had to guess from the truncated message above, I'd say you may have run out of disk space on the B: Drive.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 21, 2021 at 10:46 am
Yep. Without the rest of the error message, I can't even hazard a guess. Jeff is probably right (says Grant all the time).
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 21, 2021 at 2:21 pm
Yep. Without the rest of the error message, I can't even hazard a guess. Jeff is probably right (says Grant all the time).
Thanks, Grant. I'm humbled but I'm probably not right nor even close on this one... backups normally do a pre-allocation and check of space prior to starting, so running out of space at near 13% complete probably isn't it. It was a total swag on my part and I probably should have just said it's impossible to tell without extra info.
On a slightly different note, If I'm reading the log output in the original post correctly is possibly a bit of an unrelated but seriously important problem built into the maintenance plan... it would appear that they delete old backups before it's been confirmed that the new backup(s) have been successful.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 21, 2021 at 4:36 pm
you may be right - issue here is that the process is backing up all databases and outputting all commands to log - and it shows truncated.
so backup would have enough space up to a particular point and then fail - but that failure does not show on this particular log.
April 21, 2021 at 5:36 pm
I have space on B drive, how can I review full error?
April 21, 2021 at 5:39 pm
In the SQL job step, set an output file on the step to log the full error message to a text file.
The agent history is notorious for truncating the error log at something like 4000 characters.
April 21, 2021 at 6:41 pm
You can get the actual error message from the maintenance plan - trying to get the error from the agent job is useless. In Object Explorer - open the Maintenance Plan folder and right-click on that plan, select View History.
Remember - maintenance plans are basically SSIS packages and work the same way. The logging of the activity in the SSIS package is stored in separate SSIS specific tables in the MSDB database for maintenance plans. For normal SSIS packages the logging will be in the Integration Services Catalog (if implemented).
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply