Recently backup jobs started failing when I try to backup a remote client and when I tried to back up the local client (that is the bacula server itself). The remote client is called 'beta-new.mydomain.com' and the bacula server is called 'ops.mydomain.com'.
23-Aug 01:30 ops.mydomain.com JobId 94: BeforeJob: Can't open /var/bacula/.my.cnf for writing at /etc/bacula/make_catalog_backup.pl line 89, <FP> line 10.
These are the permissions I have on the file it's complaining about:
23-Aug 01:30 ops.mydomain.com JobId 94: BeforeJob: Can't open /var/bacula/.my.cnf for writing at /etc/bacula/make_catalog_backup.pl line 89, <FP> line 10.
I was hoping I could get some advice on how to solve these issues. I tried googling around but couldn't anything that could've helped.
Are you running with SELinux in targeted mode?
From what I've seen you're not running a standard configuration on RHEL. This is the place where I have the make_catalog_backup.pl file in the packages:
Keep in mind that if you move all files around and install Bacula by hand and have SELinux enabled you should also adjust file contexts, policy, etc. The folder /var/bacula is not in the default RHEL/Fedora SELinux policy:
# semanage fcontext -l | grep bacula
/bacula(/.*)? all files system_u:object_r:bacula_store_t:s0
/etc/bacula.* all files system_u:object_r:bacula_etc_t:s0
/var/spool/bacula.* all files system_u:object_r:bacula_spool_t:s0
/var/spool/bacula/log(/.*)? all files system_u:object_r:var_log_t:s0
If you are indeed running a custom Bacula on a RHEL system with SELinux enabled you should definitely check your file contexts.
Regards,
--Simone
--
You cannot discover new oceans unless you have the courage to lose sight of the shore (R. W. Emerson).
The Stone Age came to an end not for a lack of stones; and the oil age
will end, but not for a lack of oil. (Ahmed Zaki Yamani, former Saudi
Minister of Oil)
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/