On 04.06.2017 at 17:13 wrote LeonardM:
> Hello everyone,
> 
> I'm currently using bareos 16.2.5 server on Univention Corporate
> Server 4.1-4.
> 
> After having installed the latest package updates and rebooting the
> server I am no longer able to log into the Bareos webui. As suggested
> by
> https://help.univention.com/t/bareos-login-webinterface-nicht-moglich/4285/6
> I executed the "reload" command in the bconsole.
> 
> Unfortunately, this did not resolve the problem. In addition,
> "bareos-dir.conf" has been reset to its default values as expected.
> 
> Univention corporate server has its own registry (UCR). When
> modifying these registry variables the settings defined in the config
> files are automatically overwritten by the values set in the
> respective template file (hope I got that right).
> 
> However, I modified the values in the template director conf file
> "/etc/univention/templates/files/etc/bareos/bareos-dir.conf" and
> these altered values are no longer written in "bareos-dir.conf". To
> put it differently, modifying the bareos UCR variables or restarting
> "service bareos-dir" seems to have literally no effect on the bareos
> config files.
> 
> So in conclusion I can no longer log into bareos webui and can no
> longer change the bareos configuration through the univention
> registry.
> 
> Any ideas?

So, you updated from bareos < 16.2 to bareos-16.2.5?

Bareos has enhanced its configuration schema with Bareos 16.2.4, see
http://doc.bareos.org/master/html/bareos-manual-main-reference.html#ReleaseNotes

While earlier versions of the Director did only use the configuration
file /etc/bareos/bareos-dir.conf, newer version (>= 16.2.4) allow to use
the directory structure /etc/bareos/bareos-dir.d/ instead. However, to
not break systems on updates, the directory structure is only used if
the file /etc/bareos/bareos-dir.conf does not exist.

While this behavior is okay for most systems and users normally just
continue there old configuration file, on UCS things get more
complicated, as the UCR variable can not affect both the old and the new
configuration files. Therefore they do affect only the new onces (below
/etc/bareos/bareos-dir.d/).

What does this mean for you:

either edit the configuration files in /etc/bareos/bareos-dir.conf and
the files included by it manually (adding new clients will still work,
but changes to UCR variables will be ignored).
Changing UCR variables will not overwrite /etc/bareos/bareos-dir.conf.

or

Continue using the old configuration files and only replace the parts
required for webui users by
remove from /etc/bareos/bareos-dir.conf
the lines
#
# bareos-webui
#
@/etc/bareos/bareos-dir.d/webui-profiles.conf

# Restricted console used by bareos-webui
Console {
  Name = @%@bareos/webui/console/user1/username@%@
  Password = "@%@bareos/webui/console/user1/password@%@"
  Profile = webui
}

and add
@/etc/bareos/bareos-dir.d/profile/*.conf
@/etc/bareos/bareos-dir.d/console/*.conf

or

migrate all your settings to the /etc/bareos/bareos-dir.d/ directory
structure. If you have not changed anything in
/etc/bareos/bareos-dir.conf or its template, it should be sufficient, to
remove /etc/bareos/bareos-dir.conf

I hope, this helps. Sorry for inconveniences.

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