bareos-sd Config error: Cannot open config file "/usr/local/etc/bareos/bareos-sd.d/*/*.conf": Permission denied

68 views
Skip to first unread message

John Zoch

unread,
Sep 13, 2021, 6:05:18 PM9/13/21
to bareos-users
  I'm running FreeBSD 11.2-Stable (running an older version because IXSystems pulled support for fiber channel in TrueNAS Core).

I'm trying to run Bareos 20.0.0_3 in an IOCage jail.

My tape hardware is a Dell PowerVault ML6020 and all of the LTO4 tape drives are Fiber channel.

When I attempt:

=========================================
root@Bareos:/var/log/dbconfig-common # bareos start
Starting the Bareos Storage daemon
bareos-sd: ERROR TERMINATION at lib/parse_conf.cc:242
Config error: Cannot open config file "/usr/local/etc/bareos/bareos-sd.d/*/*.conf": Permission denied

Starting the Bareos File daemon
Starting the Bareos Director daemon
Checking Configuration and Database connection ...
root@Bareos:/var/log/dbconfig-common #

=========================================
root@Bareos:/var/log/dbconfig-common # service bareos-sd start
Starting bareos_sd.
bareos-sd: ERROR TERMINATION at lib/parse_conf.cc:242
Config error: Cannot open config file "/usr/local/etc/bareos/bareos-sd.d/*/*.conf": Permission denied

/usr/local/etc/rc.d/bareos-sd: WARNING: failed to start bareos_sd
root@Bareos:/var/log/dbconfig-common #

=========================================
My questions are:

What CONF file is it trying to access?   

Does wildcards in the error even make sense?   

Do I need to edit a CONF file to remove wildcards and provide an explicit path to a particular CONF file?

Thanks for any help you can offer.

John

kley...@gmail.com

unread,
Sep 15, 2021, 11:51:22 AM9/15/21
to bareos-users

Hey,

Check that all files under /etc/bareos are indeed owned by user bareos and group bareos. I seem to recall having this type of errors frequently when adding new configs and forgetting to change the ownership/groupship from root:root to bareos:bareos.

HTH,
Benny
Reply all
Reply to author
Forward
0 new messages