26-Mar 15:57 bacula-dir JobId 0: Fatal error: Query failed: SELECT VersionId FROM Version: ERR=no such table: Version
26-Mar 15:57 bacula-dir JobId 0: Fatal error: Could not open Catalog "JokefireCatalog", database "bacula".
26-Mar 15:57 bacula-dir JobId 0: Fatal error: Query failed: SELECT VersionId FROM Version: ERR=no such table: Version
Here, it's complaining that it can't do a select from the database. But when I go into the DB myself, I can see it works just fine:
26-Mar 15:57 bacula-dir JobId 0: Fatal error: Could not open Catalog "JokefireCatalog", database "bacula".
[root@ops:/etc/bacula] #grep -v '#' bacula-dir.conf
Name = ops.jokefire.com
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/var/spool/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 1
Messages = Daemon
TLS Certificate = /etc/pki/tls/certs/ops.jokefire.com.crt
TLS Key = /etc/pki/tls/private/ops.jokefire.com.key
TLS CA Certificate File = /etc/pki/CA/certs/ca.crt
TLS Enable = yes
TLS Require = yes
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = ops.jokefire.com
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = "Default"
Priority = 10
Write Bootstrap = "/var/spool/bacula/%c.bsr"
}
Job {
Name = "ops.jokefire.com"
Type = Backup
Client = ops.jokefire.com
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = "Default"
Write Bootstrap = "/var/spool/bacula/%c.bsr"
}
Job {
Name = "web1.jokefire.com"
Type = Backup
Client = web1.jokefire.com
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = "Default"
Write Bootstrap = "/var/spool/bacula/%c.bsr"
}
Job {
Name = "Jokefire BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="JokefireCatalog"
Schedule = "WeeklyCycleAfterBackup"
RunBeforeJob = "/etc/bacula/make_catalog_backup.pl JokefireCatalog"
RunAfterJob = "/etc/bacula/delete_catalog_backup"
Write Bootstrap = "/var/bacula/%n.bsr"
}
Job {
Name = "RestoreFiles"
Type = Restore
Client=ops.jokefire.com
FileSet="Full Set"
Storage = File
Pool = "Default"
Messages = Standard
Where = /backup/tapes/bacula-restores
}
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
File = /
}
Exclude {
File = /var/bacula
File = /proc
File = /tmp
File = /.journal
File = /.fsck
File = /backup
}
}
Schedule {
Name = "WeeklyCycle"
Run = Full 1st sun at 03:05
Run = Differential 2nd-5th sun at 03:05
Run = Incremental mon-sat at 03:05
}
Schedule {
Name = "WeeklyCycleFullBackup"
Run = Full sun-sat at 02:10
}
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 03:10
}
FileSet {
Name = "JokefireCatalog"
Include {
Options {
signature = MD5
}
File = "/var/bacula/bacula.sql"
}
}
Client {
Name = ops.jokefire.com
Address = ops.jokefire.com
FDPort = 9102
Catalog = JokefireCatalog
TLS Certificate = /etc/pki/tls/certs/ops.jokefire.com.crt
TLS Key = /etc/pki/tls/private/ops.jokefire.com.key
TLS CA Certificate File = /etc/pki/CA/certs/ca.crt
TLS Enable = yes
TLS Require = yes
}
Client {
Name = web1.jokefire.com
Address = web1.jokefire.com
FDPort = 9102
Catalog = JokefireCatalog
TLS Certificate = /etc/pki/tls/certs/ops.jokefire.com.crt
TLS Key = /etc/pki/tls/private/ops.jokefire.com.key
TLS CA Certificate File = /etc/pki/CA/certs/ca.crt
TLS Enable = yes
TLS Require = yes
}
Storage {
Name = File
SDPort = 9103
Password = "secret"
Device = FileStorage
Media Type = File
TLS Certificate = /etc/pki/tls/certs/ops.jokefire.com.crt
TLS Key = /etc/pki/tls/private/ops.jokefire.com.key
TLS CA Certificate File = /etc/pki/CA/certs/ca.crt
TLS Enable = yes
TLS Require = yes
}
Catalog {
Name = JokefireCatalog
dbname = "bacula"; dbuser = "admin"; dbpassword = "secret"
}
Messages {
Name = Standard
mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = bluethundr AT gmail DOT com = all, !skipped
operator = bluethundr AT gmail DOT com = mount
console = all, !skipped, !saved
append = "/usr/opt/bacula/log/bacula.log" = all, !skipped
catalog = all
}
Messages {
Name = Daemon
mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/log/bacula/bacula.log" = all, !skipped
}
Pool {
Name = "Default"
Pool Type = Backup
LabelFormat = "jf-backup-tape-"
}
Pool {
Name = "File"
Pool Type = Backup
LabelFormat = "jf-backup-tape-"
}
Pool {
Name = Scratch
Pool Type = Backup
}
Console {
Name = ops.jokefire.com
Password = "secret"
CommandACL = status, .status
}
Thanks! I'd really appreciate your help in this problem. I need to get backups back online again.
Thank you!
Tim