Just recently I’ve been getting the following error in response to the check
config command bacula-dir -t. I also get an email saying "24-Feb 21:46
bacula-dir JobId 0: Loaded plugin: ldap-dir.so”. Backups are running normally
with no errors and normal completion emails (Bacula-v15/Debian-Bookworm
compiled from source).
<
chrisw@m910q:~$ bacula-dir -t
24-Feb 21:46 Message delivery ERROR: Msg delivery error: fopen
/opt/bacula/working/bacula-dir.bacula-dir.-1616568216.mail failed:
ERR=Permission denied
24-Feb 21:46 Message delivery ERROR: fopen /var/log/bacula/bacula.log failed:
ERR=Permission denied
>
DIR runs as bacula:bacula
chrisw@m910q:~$ ls -l /opt/bacula/
total 44
drwxr-xr-x 2 root root 4096 Nov 7 2024 bin
drwxr-x--- 2 bacula bacula 4096 Dec 24 18:32 bsr
drwxr-xr-x 7 bacula tape 4096 Feb 21 00:16 cache
drwxr-xr-x 2 bacula bacula 4096 Feb 23 19:44 etc
drwxr-xr-x 2 root root 4096 Nov 9 2024 lib
drwxr-xr-x 2 bacula bacula 4096 Feb 1 00:00 log
drwxr-xr-x 2 root root 4096 Nov 9 2024 plugins
drwxr-xr-x 3 root root 4096 Nov 7 2024 scripts
drwxr-xr-x 2 bacula bacula 12288 Feb 24 06:15 working
chrisw@m910q:~$ ls -l /opt/bacula/working/
total 40
-rw-r--r-- 1 bacula bacula 857 Jan 1 08:59 bacula.3513.traceback
-rw-r----- 1 bacula bacula 2196 Feb 24 06:15 bacula-dir.9101.state
-rw-r--r-- 1 bacula bacula 60 Feb 23 20:30
bacula-dir.bacula-dir.1914724472.mail
-rw-r----- 1 root root 2196 Feb 24 06:15 bacula-fd.9102.state
-rw-r----- 1 bacula tape 8 Feb 23 17:39 bacula-sd.9103.pid
-rw-r----- 1 bacula tape 2196 Feb 24 06:15 bacula-sd.9103.state
-rw------- 1 bacula bacula 13309 Feb 24 06:15 m910q-dir.conmsg
The messages resource is more or less per manual.
<
Messages {
Name = "Standard"
MailCommand = "/opt/bacula/bin/bsmtp -h localhost -s \"Bacula %n\" %r"
OperatorCommand = "/opt/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s
\"Bacula: Intervention needed for Job:%n %j\" %r"
Syslog = All, !Skipped
Mail = root@localhost = All, !Skipped
Append = /var/log/bacula/bacula.log = All, !Skipped
Console = All, !Skipped
Operator = root@localhost = All, !Skipped
Catalog = All, !Skipped
}
>
Similar commands for FD and SD run without error.
I’m guessing that there is a permissions issue somewhere but I’m struggling to
know where to look. Any suggestions would be great.
Best
-Chris-
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users