[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bacula-devel] Bug? "No Job found for JobId X" after successful backup


On Thursday 18 September 2008, Kern Sibbald said something like:
> You probably either purged the job manually or set you pruning time
> so low that it was pruned while it was running. Since there is no
> full job output, it is impossible to tell.

Sorry about that...I included the full output in my post to the users 
list, but forgot in my post to the devel list.  It does seem the job is 
autopruned after the backup.

The full report is below.  The job ran fine tonight.  I changed two 
things:

I changed the schedule to:

Schedule {
  Name = "MediaCycle"
  Run = Level=Full sun w01 at 10:00
  Run = Level=Incremental mon-sun at 20:00
}

(Added the Level=Full line)

And I changed the job, file, and volume retention period from 100 years 
to 25 months. So, if the problem was not with the schedule, then it 
must have been that Bacula didn't like the 100 year retention period.  
Was there a maximum I missed in the docs?

j

17-Sep 20:00 pedahzur-dir JobId 4: No prior Full backup Job record 
found.
17-Sep 20:00 pedahzur-dir JobId 4: No prior or suitable Full backup 
found in catalog. Doing FULL backup.
17-Sep 20:38 pedahzur-dir JobId 4: Start Backup JobId 4, 
Job=ruth-media.2008-09-17_20.00.09
17-Sep 20:38 pedahzur-dir JobId 4: Created new Volume "Media-0030" in 
catalog.
17-Sep 20:38 pedahzur-dir JobId 4: Using Device "FileStorage"
17-Sep 20:38 pedahzur-sd JobId 4: Labeled new Volume "Media-0030" on 
device "FileStorage" (/home/bacula).
17-Sep 20:38 pedahzur-sd JobId 4: Wrote label to prelabeled 
Volume "Media-0030" on device "FileStorage" (/home/bacula)
17-Sep 20:38 pedahzur-dir JobId 4: Volume used once. Marking 
Volume "Media-0030" as Used.
17-Sep 20:38 ruth-fd JobId 4: Generate VSS snapshots. Driver="VSS 
WinXP", Drive(s)="C"
17-Sep 20:38 ruth-fd JobId 4: VSS Writer (BackupComplete): "Microsoft 
Writer (Service State)", State: 0x1 (VSS_WS_STABLE)
17-Sep 20:38 ruth-fd JobId 4: VSS Writer (BackupComplete): "Microsoft 
Writer (Bootable State)", State: 0x1 (VSS_WS_STABLE)
17-Sep 20:38 ruth-fd JobId 4: VSS Writer (BackupComplete): "MSDEWriter", 
State: 0x1 (VSS_WS_STABLE)
17-Sep 20:38 ruth-fd JobId 4: VSS Writer (BackupComplete): "WMI Writer", 
State: 0x1 (VSS_WS_STABLE)
17-Sep 20:38 pedahzur-sd JobId 4: Job write elapsed time = 00:00:21, 
Transfer rate = 93.76 K bytes/second
17-Sep 20:38 pedahzur-dir JobId 4: Warning: Error getting Job record for 
Job report: ERR=sql_get.c:294 No Job found for JobId 4
17-Sep 20:38 pedahzur-dir JobId 4: Error: Bacula pedahzur-dir 2.2.8 
(26Jan08): 17-Sep-2008 20:38:55
  Build OS:               i486-pc-linux-gnu debian lenny/sid
  JobId:                  4
  Job:                    ruth-media.2008-09-17_20.00..09
  Backup Level:           Full (upgraded from Incremental)
  Client:                 "ruth-fd" 2.2.8 (26Jan08) 
Linux,Cross-compile,Win32
  FileSet:                "winMedia" 2008-09-17 15:44:51
  Pool:                   "MediaPool" (From Job resource)
  Storage:                "File" (From Job resource)
  Scheduled time:         17-Sep-2008 20:00:00
  Start time:             17-Sep-2008 20:38:33
  End time:               17-Sep-2008 20:38:55
  Elapsed time:           22 secs
  Priority:               11
  FD Files Written:       36
  SD Files Written:       36
  FD Bytes Written:       1,962,927 (1.962 MB)
  SD Bytes Written:       1,968,974 (1.968 MB)
  Rate:                   89.2 KB/s
  Software Compression:   None
  VSS:                    yes
  Storage Encryption:     no
  Volume name(s):         Media-0030
  Volume Session Id:      4
  Volume Session Time:    1221694171
  Last Volume Bytes:      1,972,036 (1.972 MB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            *** Backup Error ***

17-Sep 20:38 pedahzur-dir JobId 4: Begin pruning Jobs.
17-Sep 20:38 pedahzur-dir JobId 4: No Jobs found to prune.
17-Sep 20:38 pedahzur-dir JobId 4: Begin pruning Files.
17-Sep 20:38 pedahzur-dir JobId 4: Pruned Files from 1 Jobs for client 
ruth-fd from catalog.
17-Sep 20:38 pedahzur-dir JobId 4: End auto prune.

>
> On Friday 19 September 2008 00:37:53 Joshua J. Kugler wrote:
> > [Post on Bacula User, but didn't get a response.  Then it hit me
> > this might be some kind of bug.]
> >
> > I just got a couple job reports tonight with an error I've never
> > seen before.  I googled, but didn't see anything.
> >
> > FYI, empty SQLite database created from the SQLite create scripts.
> >
> > The full e-mail is below, but the error I got was:
> >
> > 17-Sep 20:38 pedahzur-sd JobId 4: Job write elapsed time =
> > 00:00:21, Transfer rate = 93.76 K bytes/second
> > 17-Sep 20:38 pedahzur-dir JobId 4: Warning: Error getting Job
> > record for Job report: ERR=sql_get.c:294 No Job found for JobId 4
> >
> > The schedule for this job looks like this:
> >
> > Schedule {
> >   Name = "MediaCycle"
> >   Run = Incremental mon-sun at 20:00
> > }
> >
> > Yes, that is the schedule I want.  The schedule for a backup that
> > did not produce the "no job found" error is:
> >
> > Schedule {
> >   Name = "WeeklyCycle"
> >   Run = Full 1st sun at 9:30
> >   Run = Differential 2nd-5th Sun at 9:30
> >   Run = Incremental mon-sat at 20:00
> > }
> >
> > Does the lack of an explicit Full run cause that error?  Any other
> > ideas?
> >
> > Thanks!
> >
> > j





-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bacula-devel


This mailing list archive is a service of Copilot Consulting.