Bacula-users

[Bacula-users] catalogue fails after a reboot....

2015-10-26 17:12:08
Subject: [Bacula-users] catalogue fails after a reboot....
From: Thing <thing.thing AT gmail DOT com>
To: "Bacula-users AT lists.sourceforge DOT net" <Bacula-users AT lists.sourceforge DOT net>
Date: Tue, 27 Oct 2015 10:07:35 +1300

Not sure what is going on here, but I took down the Pi to add a sata disk and now the catalogue fails,

before job 80 was successful,

=========
root@warlocke:/etc/bacula/scripts# bconsole
Connecting to Director localhost:9101
bconsole: bsock.c:223 Socket open error. proto=10 port=9101. ERR=Address family not supported by protocol
1000 OK: warlocke-dir Version: 5.2.6 (21 February 2012)
Enter a period to cancel a command.
*status
Status available for:
     1: Director
     2: Storage
     3: Client
     4: All
Select daemon type for status (1-4): 1
warlocke-dir Version: 5.2.6 (21 February 2012) arm-unknown-linux-gnueabihf debian 7.0
Daemon started 25-Oct-15 14:34. Jobs: run=8, running=0 mode=0,0
 Heap: heap=393,216 smbytes=87,831 max_bytes=95,209 bufs=272 max_bufs=297

Scheduled Jobs:
Level          Type     Pri  Scheduled          Name               Volume
===================================================================================
Incremental    Backup    10  27-Oct-15 23:05    BackupLocalFiles   Local-0001
Full           Backup    11  27-Oct-15 23:10    BackupCatalog      Local-0001
====

Running Jobs:
Console connected at 27-Oct-15 09:51
Console connected at 27-Oct-15 10:02
No Jobs running.
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name
====================================================================
    77  Incr        509    36.62 M  OK       24-Oct-15 23:06 BackupLocalFiles
    78  Full          1    41.11 M  OK       24-Oct-15 23:10 BackupCatalog
    79  Diff     23,074    9.560 G  OK       26-Oct-15 00:15 BackupLocalFiles
    80  Full          1    43.75 M  OK       26-Oct-15 00:16 BackupCatalog
    81  Incr      1,030    38.23 M  OK       26-Oct-15 10:31 BackupLocalFiles
    82  Incr        769    48.88 M  OK       26-Oct-15 15:09 BackupLocalFiles
    83  Incr        604    38.04 M  OK       26-Oct-15 19:41 BackupLocalFiles
    84  Incr        589    36.35 M  OK       26-Oct-15 23:06 BackupLocalFiles
    85  Full          0         0   Error    26-Oct-15 23:10 BackupCatalog
    86  Full          0         0   Error    27-Oct-15 09:51 BackupCatalog

====
*

============

after the reboot job 85 and 86 failed,

===========
*list joblog jobid=86
+----------------------------------------------------------------------------------------------------+
| LogText                                                                                              |
+----------------------------------------------------------------------------------------------------+
| warlocke-dir JobId 86: shell command: run BeforeJob "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
 |
| warlocke-dir JobId 86: BeforeJob: Can't find your catalog (MyCatalog) in director configuration
     |
| warlocke-dir JobId 86: Error: Runscript: BeforeJob returned non-zero status=1. ERR=Child exited with code 1
 |
| warlocke-dir JobId 86: Error: Bacula warlocke-dir 5.2.6 (21Feb12):
  Build OS:               arm-unknown-linux-gnueabihf debian 7.0
  JobId:                  86
  Job:                    BackupCatalog.2015-10-27_09.51.32_14
  Backup Level:           Full
  Client:                 "warlocke-fd" 5.2.6 (21Feb12) arm-unknown-linux-gnueabihf,debian,7.0
  FileSet:                "Catalog" 2015-10-20 11:11:52
  Pool:                   "File" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File" (From Job resource)
  Scheduled time:         27-Oct-2015 09:51:29
  Start time:             27-Oct-2015 09:51:34
  End time:               27-Oct-2015 09:51:34
  Elapsed time:           0 secs
  Priority:               11
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0 (0 B)
  SD Bytes Written:       0 (0 B)
  Rate:                   0.0 KB/s
  Software Compression:   None
  VSS:                    no
  Encryption:             no
  Accurate:               no
  Volume name(s):        
  Volume Session Id:      0
  Volume Session Time:    0
  Last Volume Bytes:      0 (0 B)
  Non-fatal FD errors:    1
  SD Errors:              0
  FD termination status: 
  SD termination status: 
  Termination:            *** Backup Error ***

 |
+----------------------------------------------------------------------------------------------------+
+-------+---------------+---------------------+------+-------+----------+----------+-----------+
| JobId | Name          | StartTime           | Type | Level | JobFiles | JobBytes | JobStatus |
+-------+---------------+---------------------+------+-------+----------+----------+-----------+
|    86 | BackupCatalog | 2015-10-27 09:51:34 | B    | F     |        0 |        0 | E         |
+-------+---------------+---------------------+------+-------+----------+----------+-----------+
*quit
root@warlocke:~# cd /etc/bacula/

==============
8><----
# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  # Arguments to make_catalog_backup.pl are:
  #  make_catalog_backup.pl <catalog-name>
  RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/scripts/delete_catalog_backup"
  Write Bootstrap = "/var/lib/bacula/%n.bsr"
  Priority = 11                   # run after main backup
}
============


How to fix this please?


------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>