Hello,
On 23 August 2014 17:05, Tim Dunphy <bluethu...@gmail.com> wrote:
> 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 <http://ops.mydomain.com> JobId 94:
> BeforeJob: Can't open /var/bacula/.my.cnf for writing at
> /etc/bacula/make_catalog_backup.pl <http://make_catalog_backup.pl> line 89,
> <FP> line 10.*
>
> These are the permissions I have on the file it's complaining about:
>
> [root@ops:~] #ls -lh /var/bacula/.my.cnf
>
> -rwxrwx--- 1 bacula bacula 69 Jul 25 05:08 /var/bacula/.my.cnf
>
> And here's the output of messages:
>
> 23-Aug 01:30 ops.mydomain.com JobId 94: shell command: run BeforeJob
> "/etc/bacula/make_catalog_backup.pl mydomainCatalog"
>
> *23-Aug 01:30 ops.mydomain.com <http://ops.mydomain.com> JobId 94:
> BeforeJob: Can't open /var/bacula/.my.cnf for writing at
> /etc/bacula/make_catalog_backup.pl <http://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:
# rpm -ql bacula-director | grep backup.pl
/usr/libexec/bacula/make_catalog_backup.pl
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
/etc/rc\.d/init\.d/bacula.* regular file
system_u:object_r:bacula_initrc_exec_t:s0
/usr/sbin/bacula.* regular file
system_u:object_r:bacula_exec_t:s0
/usr/sbin/bat regular file
system_u:object_r:bacula_admin_exec_t:s0
/usr/sbin/bconsole regular file
system_u:object_r:bacula_admin_exec_t:s0
/var/lib/bacula.* all files
system_u:object_r:bacula_var_lib_t:s0
/var/log/bacula.* all files
system_u:object_r:bacula_log_t:s0
/var/run/bacula.* regular file
system_u:object_r:bacula_var_run_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)
http://xkcd.com/229/
http://negativo17.org/
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users