On 24.03.2017 at 19:29 wrote Kyle Hutson:
> I've been trying to get bareos working, and have run into several
> frustrating problems. Can somebody point me in the right direction?
> 
> I'm running on Centos 7.3. selinux is disabled and all firewalls are
> turned off.
> 
> I setup my database just fine, and was able to install bareos through
> yum just fine. Then things went awry.
> 
> Getting to Step 3.3 of
> http://doc.bareos.org/master/html/bareos-manual-main-reference.html I
> get this:
> 
> *configure add console name=admin password=secret profile=webui-admin 
> It seems that the configuration is not adapted to the include
> directory structure. This means, that the configure command may not
> work as expected. Your configuration changes may not survive a
> reload/restart. Please see
> http://doc.bareos.org/master/html/bareos-manual-main-reference.html#ConfigurationIncludeDirectory
> for details. configure error: Could not find config Resource
> "Profile" referenced on line 4 :   Profile = webui-admin
> 
> The URL provided doesn't provide an anchor within the document, and
> "ConfigurationIncludeDirectory" doesn't appear in the document
> (either with or without spaces).

Chapter
http://doc.bareos.org/master/html/bareos-manual-main-reference.html#ConfigurationPathLayout
is meant. I'll fix add the anchor to the documentation again.

The default installation of Bareos >= 16.2 has the configuration split
in the directory structure /etc/bareos/bareos-dir.d/*/*.conf.
This kind of setup is required for the "configure add" command to work.
However, it seams, you still have the /etc/bareos/bareos-dir.conf
configuration file. If this is the case, only this file (and the
includes mentioned in this file) are loaded as configuration.

> 
> So, I looked through the examples given and added 
> @/etc/bareos/bareos-dir.d/console to the end of
> /etc/bareos/bareos-dir.conf
> 
> But apparently, /etc/bareos.d/console/admin never got created.
> 
> So within /etc/bareos/bareos-dir.d/console I manually copied
> admin.conf.example to admin.conf
> 
> It still tells me I cannot authenticate.
> 
> So, thinking my include is probably wrong  I manually copied the
> admin.conf (identical to the .example)  to the end of
> /etc/bareos/bareos-dir.conf
> 
> Now when I try to restart bareos-dir, it doesn't restart, and in the
> syslog I see Config error: Could not find config Resource "Profile"
> referenced on line 351 :   Profile = "webui-admin"
> 
> I've tried following the bconsole instructions to try to get a basic
> configuration working, but haven't had any luck there either, so went
> back to trying to get the webui working. Any hints?

if this is a non productive installation, you best start new.
Remove all configuration, reinstall bareos-16.2 and it should work as
expected. bconsole should work out of the box after installing. Make
sure to not create a /etc/bareos/bareos-dir.conf file. Instead create
file for the different resources that you require in the
/etc/bareos/bareos-dir.d/<RESOURCETYPE>/<RESOURCENAME>.conf structure or
use the "configure add" command.

regards,
Jörg
-- 
 Jörg Steffens                   [email protected]
 Bareos GmbH & Co. KG            Phone: +49 221 630693-91
 http://www.bareos.com           Fax:   +49 221 630693-10

 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
 Komplementär: Bareos Verwaltungs-GmbH
 Geschäftsführer:
 S. Dühr, M. Außendorf, Jörg Steffens, P. Storz

-- 
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to