Home All Groups Group Topic Archive Search About

Backup job reported as failed

Author
7 Oct 2007 5:13 PM
BlackToe
Using the wizard, I set up a maintenance plan to backup a few
databases in MS SQL Server 2005.  The plan does:

1) Integrity check
2) Database shrink
3) Rebuilds indexes
4) Backs up the databases
5) Deletes old backup files

I also configured Database Email and SQL Agent to run the plan nightly
and email me the results.  The email states that the job is failing:

JOB RUN:    'Nightly backup' was run on 10/7/2007 at 2:00:00 AM
DURATION: 0 hours, 1 minutes, 44 seconds
STATUS: Failed
MESSAGES: The job failed.  The Job was invoked by Schedule 1 (Nightly
backup).  The last step to run was step 1 (Subplan).

However, the backups all appear to be made correctly, and the log file
shows no errors.  I also can't get any detail from the Job History to
determine exactly what is failing.

Thanks in advance for any help.

Author
7 Oct 2007 7:45 PM
Tibor Karaszi
Perhaps you can find some details if you specify a report file for the plan and investigate that
file?

Show quote
"BlackToe" <goo***@tripletreesoftware.com> wrote in message
news:1191777184.181970.184540@k79g2000hse.googlegroups.com...
> Using the wizard, I set up a maintenance plan to backup a few
> databases in MS SQL Server 2005.  The plan does:
>
> 1) Integrity check
> 2) Database shrink
> 3) Rebuilds indexes
> 4) Backs up the databases
> 5) Deletes old backup files
>
> I also configured Database Email and SQL Agent to run the plan nightly
> and email me the results.  The email states that the job is failing:
>
> JOB RUN: 'Nightly backup' was run on 10/7/2007 at 2:00:00 AM
> DURATION: 0 hours, 1 minutes, 44 seconds
> STATUS: Failed
> MESSAGES: The job failed.  The Job was invoked by Schedule 1 (Nightly
> backup).  The last step to run was step 1 (Subplan).
>
> However, the backups all appear to be made correctly, and the log file
> shows no errors.  I also can't get any detail from the Job History to
> determine exactly what is failing.
>
> Thanks in advance for any help.
>
Author
8 Oct 2007 4:14 PM
BlackToe
On Oct 7, 12:45 pm, "Tibor Karaszi"
<tibor_please.no.email_kara***@hotmail.nomail.com> wrote:
Show quote
> Perhaps you can find some details if you specify a report file for the plan and investigate that
> file?
>
> --
> Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/tibor_karaszi
>
> "BlackToe" <goo***@tripletreesoftware.com> wrote in message
>
> news:1191777184.181970.184540@k79g2000hse.googlegroups.com...
>
>
>
> > Using the wizard, I set up a maintenance plan to backup a few
> > databases in MS SQL Server 2005.  The plan does:
>
> > 1) Integrity check
> > 2) Database shrink
> > 3) Rebuilds indexes
> > 4) Backs up the databases
> > 5) Deletes old backup files
>
> > I also configured Database Email and SQL Agent to run the plan nightly
> > and email me the results.  The email states that the job is failing:
>
> > JOB RUN: 'Nightly backup' was run on 10/7/2007 at 2:00:00 AM
> > DURATION: 0 hours, 1 minutes, 44 seconds
> > STATUS: Failed
> > MESSAGES: The job failed.  The Job was invoked by Schedule 1 (Nightly
> > backup).  The last step to run was step 1 (Subplan).
>
> > However, the backups all appear to be made correctly, and the log file
> > shows no errors.  I also can't get any detail from the Job History to
> > determine exactly what is failing.
>
> > Thanks in advance for any help.- Hide quoted text -
>
> - Show quoted text -

I'll give that a shot.  Here's some more information that may or may
not be helpful:

In the "Maintenance Plan" node of the log viewer:
1) There are green checkmarks next to each entry for "Nightly backup"
2) There are two identical entries for each time the plan was executed
3) The duration on all is listed as "00:00:00"

In the "Job History" node of the log viewer:
1) Every entry has a red X next to it.
2) There is only one entry for each time the job was run.
3) The duration is between 1:40 and 1:50 (i.e. < 2 minutes) for each
entry
Author
7 Oct 2007 9:55 PM
Erland Sommarskog
BlackToe (goo***@tripletreesoftware.com) writes:
Show quote
> Using the wizard, I set up a maintenance plan to backup a few
> databases in MS SQL Server 2005.  The plan does:
>
> 1) Integrity check
> 2) Database shrink
> 3) Rebuilds indexes
> 4) Backs up the databases
> 5) Deletes old backup files
>
> I also configured Database Email and SQL Agent to run the plan nightly
> and email me the results.  The email states that the job is failing:
>
> JOB RUN:     'Nightly backup' was run on 10/7/2007 at 2:00:00 AM
> DURATION: 0 hours, 1 minutes, 44 seconds
> STATUS: Failed
> MESSAGES: The job failed.  The Job was invoked by Schedule 1 (Nightly
> backup).  The last step to run was step 1 (Subplan).
>
> However, the backups all appear to be made correctly, and the log file
> shows no errors.  I also can't get any detail from the Job History to
> determine exactly what is failing.

In the job history for 'Nightly backup' is that job listed as passed
or failed? Have you look at the step details?

--
Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Author
8 Oct 2007 3:58 PM
BlackToe
On Oct 7, 2:55 pm, Erland Sommarskog <esq***@sommarskog.se> wrote:
Show quote
> BlackToe (goo***@tripletreesoftware.com) writes:
> > Using the wizard, I set up a maintenance plan to backup a few
> > databases in MS SQL Server 2005.  The plan does:
>
> > 1) Integrity check
> > 2) Database shrink
> > 3) Rebuilds indexes
> > 4) Backs up the databases
> > 5) Deletes old backup files
>
> > I also configured Database Email and SQL Agent to run the plan nightly
> > and email me the results.  The email states that the job is failing:
>
> > JOB RUN:     'Nightly backup' was run on 10/7/2007 at 2:00:00 AM
> > DURATION: 0 hours, 1 minutes, 44 seconds
> > STATUS: Failed
> > MESSAGES: The job failed.  The Job was invoked by Schedule 1 (Nightly
> > backup).  The last step to run was step 1 (Subplan).
>
> > However, the backups all appear to be made correctly, and the log file
> > shows no errors.  I also can't get any detail from the Job History to
> > determine exactly what is failing.
>
> In the job history for 'Nightly backup' is that job listed as passed
> or failed? Have you look at the step details?
>
> --
> Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se
>
> Books Online for SQL Server 2005 athttp://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books...
> Books Online for SQL Server 2000 athttp://www.microsoft.com/sql/prodinfo/previousversions/books.mspx- Hide quoted text -
>
> - Show quoted text -

The job history lists the job as failed.  When I expand the step
details, there is only one additional level (step name = "Subplan"),
and the message is "The package execution failed.  The step failed".

AddThis Social Bookmark Button