I have just upgraded from Ubuntu 12.04 to Ubuntu 14.04 on our Bacula backup server. Everything is backing up okay however it’s failing to delete the catalogue backup job after it has run. The error message is:
24-Apr 23:31 bacula-dir JobId 7388: shell command: run AfterJob "/etc/bacula/scripts/delete_catalog_backup"
It turns out that Ubuntu 14.04 updated the backup script /etc/bacula/scripts/delete_catalog_backup but didn’t make is excutable. I could see this by running:
ls -la /etc/bacula/scripts/
-rw------- 1 root root 104 Apr 24 20:30 delete_catalog_backup -rwxr-xr-x 1 root root 112 Sep 8 2012 delete_catalog_backup.ucf-old
To fix this you just need to run the following command:
sudo chmod 755 /etc/bacula/scripts/delete_catalog_backup
This should fix the issue but you can test this my:
sudo bconsole run job=BackupCatalog"
Let me know if this works for you.