bareos-dir.conf Missing?

3,599 views
Skip to first unread message

Zach

unread,
Dec 29, 2016, 11:57:24 PM12/29/16
to bareos-users
Hello,

Looking for a new alternative to some enterprise backup solutions, and I came across BareOS. Needless to say, I was excited to install and test it.

I followed the instructions to install BareOS/BareOS-WebUi on Centos 7 with the following link: https://www.linuxhelp.com/how-to-install-bareos-in-centos/

The epel repo downloads the latest version of Bareos and their instructions are set for 15.2.2. I went through the install process regardless and had success up to the point where I installed the WebUI.

The bareos-dir service is running with no problems until I get to the point where I add the following into /etc/bareos/bareos-dir.conf:

@/etc/bareos/bareos-dir.d/webui-consoles.conf
@/etc/bareos/bareos-dir.d/webui-profiles.conf

According to VI, this wants to create a new file, which I thought was odd. Turns out, bareos-dir.conf does not exist in /etc/bareos. So I created it anyways, restarted httpd and bareos-dir services, and now I get an error when restarting bareos-dir:

Job for bareos-dir.service failed because a configured resource limit was exceeded. See "systemctl status bareos-dir.service" and "journalctl -xe" for details.

Further:

bareos-dir.service - Bareos Director Daemon service
Loaded: loaded (/usr/lib/systemd/system/bareos-dir.service; enabled; vendor preset: disabled)
Active: failed (Result: resources) since Thu 2016-12-29 21:53:04 MST; 28s ago
Docs: man:bareos-dir(8)
Process: 4170 ExecStart=/usr/sbin/bareos-dir (code=exited, status=1/FAILURE)
Process: 4168 ExecStartPre=/usr/sbin/bareos-dir -t -f (code=exited, status=1/FAILURE)
Main PID: 2489 (code=exited, status=1/FAILURE)

Dec 29 21:53:04 brady.test.com systemd[1]: Starting Bareos Director Daemon service...
Dec 29 21:53:04 brady.test.com bareos-dir[4170]: [48B blob data]
Dec 29 21:53:04 brady.test.com bareos-dir[4170]: Config error: Cannot open included config file /etc/bareos/bareos-dir.d/webui-consoles.conf: No such file or directory
Dec 29 21:53:04 brady.test.com systemd[1]: PID file /var/lib/bareos/bareos-dir.9101.pid not readable (yet?) after start.
Dec 29 21:53:04 brady.test.com systemd[1]: Failed to start Bareos Director Daemon service.
Dec 29 21:53:04 brady.test.com systemd[1]: Unit bareos-dir.service entered failed state.
Dec 29 21:53:04 brady.test.com systemd[1]: bareos-dir.service failed.


In addition, when I log into the webui, I get the initial login page, and after I log in, I get: Error: Connection refused, director seems to be down or blocking our request.


At this point, I think I'm narrowing it down to this missing bareos-dir.conf file. I went on GitHub and found a bareos-dir.conf file from 2013, so I thought inserting that into the "conf" file would fix it, but I get the same error.

Once I delete the bareos-dir.conf file that I created, the bareos-dir service starts successfully.

Any ideas/suggestions would greatly be appreciated.

Bruno Friedmann

unread,
Dec 30, 2016, 2:05:47 AM12/30/16
to bareos...@googlegroups.com
if you're using 16.2 the configuration layout diretory has changed, as
indicate in the release note.

so you don't need anymore *daemon*.conf in /etc/bareos.

If you have installed the webui rpm, normally you will have their
configuration stored in bareos-dir.d/console and bareos-dir.d/profile

or you can have a sub dir called webui, and place the configuration there.

bareos-dir -t -d100 is your friend to help debugging.


--

Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch
Bareos Partner, openSUSE Member, fsfe fellowship
GPG KEY : D5C9B751C4653227
irc: tigerfoot

openSUSE Tumbleweed
Linux 4.9.0-2-default x86_64 GNU/Linux, nvidia: 375.26
Qt: 5.7.1, KDE Frameworks: 5.29.0, Plasma: 5.8.4, kmail2 5.4.0

Zach

unread,
Dec 30, 2016, 10:50:22 PM12/30/16
to bareos-users
Thanks Bruno! That helped alot. I was able to figure it out from there. I appreciate your response.

rubin...@gmail.com

unread,
Jan 28, 2019, 11:17:18 PM1/28/19
to bareos-users
what was your solution here??

Eero Volotinen

unread,
Jan 29, 2019, 3:19:35 AM1/29/19
to rubin...@gmail.com, bareos-users
read the documentation and follow instructions?

On Tue, Jan 29, 2019, 06:17 <rubin...@gmail.com wrote:
what was your solution here??

--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To post to this group, send email to bareos...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages