16.2 RC 1 cannot login to webui

2,744 views
Skip to first unread message

Jochen Eggemann

unread,
Sep 28, 2016, 6:02:09 AM9/28/16
to bareos-users
Hi everybody,

I installed Bareos 16.2 RC1 on Ubuntu 16.04.1.
Everything works, bconsole is OK.

But trying to log into the webui gives me following error:

Backup-dir: ERROR in authenticate.c:282 Unable to authenticate console "BckpAdmin" at client:192.168.100.210:9101.

How can I check if that user is still in the database?
Any ideas?

I added the relevant config files (I hope)

baroes/bareos-dir.d/console/admin.conf:
#
# Restricted console used by bareos-webui
#
Console {
Name = BckpAdmin
Password = "XXXXXXXX"
Profile = "webui-admin"
}

bareos/bareos-dir.d/profile/operator.conf:
Profile {
Name = operator
Description = "Profile allowing normal Bareos operations."

Command ACL = !.bvfs_clear_cache, !.exit, !.sql
Command ACL = !configure, !create, !delete, !purge, !sqlquery, !umount, !unmount
Command ACL = *all*

Catalog ACL = *all*
Client ACL = *all*
FileSet ACL = *all*
Job ACL = *all*
Plugin Options ACL = *all*
Pool ACL = *all*
Schedule ACL = *all*
Storage ACL = *all*
Where ACL = *all*
}

bareos/bareos-dir.d/profile/webui-admin.conf
#
# bareos-webui webui-admin profile resource
#
Profile {
Name = webui-admin
Command ACL = !.bvfs_clear_cache, !.exit, !.sql
Command ACL = !configure, !create, !delete, !purge, !sqlquery, !umount, !unmount
Command ACL = *all*

Catalog ACL = *all*
Client ACL = *all*
FileSet ACL = *all*
Job ACL = *all*
Pool ACL = *all*
Schedule ACL = *all*
Storage ACL = *all*
Where ACL = *all*
}

Thanks for the OSB conference I enjoyed it very much.

Jochen

Frank Bergkemper

unread,
Sep 28, 2016, 6:20:18 AM9/28/16
to bareos...@googlegroups.com
Hi Jochen,

great to hear you enjoyed OSBConf very much.

Did you reload your configuration after installing webui and adding a
new console by executing the reload command in bconsole?

I think you simply may have forgotten to reload you configuration or
restarting you director.

Users are not stored in database. But you can check which consoles for
users are currently configured by executing the ".console" command in
bconsole.

Regards,
Frank

--
Frank Bergkemper frank.be...@dass-it.de
dass IT GmbH Phone: +49.221.3565666-94
http://www.dass-IT.de/ Fax : +49.221.3565666-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRB52500
GF: Stephan Dühr, Maik Außendorf, Jörg Steffens, Philipp Storz

Jochen Eggemann

unread,
Sep 28, 2016, 8:00:48 AM9/28/16
to bareos-users, frank.be...@dass-it.de
Hi Frank,

thanks for the fast response.

I was hit by the mix of the new structured conf directories and an old bareos-dir.conf. After manually adding the path to bareos-dir.d/[console, profile]/xxx.conf in bareos-dir.conf everything works.

Regards, Jochen

Kenny Hibberd

unread,
Sep 28, 2016, 8:05:33 AM9/28/16
to bareos-users, frank.be...@dass-it.de
I have the same problem. I'm running Raspian Jessie on a Raspberry Pi, using the repository http://download.bareos.org/bareos/release/16.2/Debian_8.0/ in apt, however. I used 16.2 because I couldn't find any zendframework packages for my OS.

I have never used one of these backup systems before. If I open a console session using bconsole, and execute ".console" or "console", it replies that is an invalid command.

Thanks!!!

Kenny

Kenny Hibberd

unread,
Sep 28, 2016, 8:08:01 AM9/28/16
to bareos-users, frank.be...@dass-it.de
Jochen,

Thanks for your input. This sounds like it might fix my issue as well, I'll try it later today, and let you know if it fixes my issue.

Thanks!!!!

Kenny

Kenny Hibberd

unread,
Oct 3, 2016, 1:33:10 PM10/3/16
to bareos-users, frank.be...@dass-it.de
I didn't get back to this until today. I'm not sure of the syntax to add config files for the bareos-dir.d to the bareos-dir.conf file. Can somebody post an example, and say whether it should go in any special place in the file?

Very much appreciated!!!

Kenny

Kenny Hibberd

unread,
Oct 3, 2016, 2:46:44 PM10/3/16
to bareos-users, frank.be...@dass-it.de
I added the following to the end of the bareos-dir.conf file:

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

Then I restarted the bareos-dir service. Now when I login, I get the message: Error:

"Connection refused, director seems to be down or blocking our request."

I think I've moved past the login issue, and on to the next issue. Can somebody check my work to tell me if I setup these links correctly?

Thank you!!!

Kenny

Kenny Hibberd

unread,
Oct 3, 2016, 4:06:43 PM10/3/16
to bareos-users, frank.be...@dass-it.de
Maybe I didn't move past this issue, because I found this in the syslog:

Oct 3 09:41:08 backup bareos-dir[1173]: Config error: Cannot open included config file /etc/bareos/bareos-dir.d/console/*.conf: No such file or directory

So I tried to explicitly define the actual files with this:

@/etc/bareos/bareos-dir.d/console/admin.conf
@/etc/bareos/bareos-dir.d/profile/webui-admin.conf

Then I found this in the syslog:

Oct 3 10:17:25 backup bareos-dir[1192]: Config error: Keyword "Profile" not permitted in this resource.

So I removed the reference to the profile configuration file, and restarted, but still have the same error message. I'm not sure what it needs.

Kenny

Kenny Hibberd

unread,
Oct 3, 2016, 4:34:50 PM10/3/16
to bareos-users, frank.be...@dass-it.de
I mean I still have the same "Connection refused" error message when I try to login to the bareos-webui interface. And if I remove the webui-admin.conf reference, and restart, then of course, I'm back to where I started; simply not being able to login. Can anybody tell me what I'm doing wrong?

Thanks

Kenny

Frank Bergkemper

unread,
Oct 4, 2016, 8:26:14 AM10/4/16
to bareos-users
Am 03.10.2016 um 22:34 schrieb Kenny Hibberd:
> @/etc/bareos/bareos-dir.d/console/admin.conf
>> @/etc/bareos/bareos-dir.d/profile/webui-admin.conf

Hi Kenny,

with the new config structure, which recently got introduced in 16.2,
where configuration resources are split into subdirectories, you no
longer have to include your config files explictly.

Just put your various configuration files into the subdirectoy they
belong to. The Director will read them automagically.

If not already done you propably want to have a look at the
documentation regarding the new configuration scheme.

See:
http://doc.bareos.org/master/html/bareos-manual-main-reference.html#SubdirectoryConfigurationScheme

Jörg Steffens

unread,
Oct 5, 2016, 7:22:00 AM10/5/16
to bareos...@googlegroups.com
Am 03.10.2016 um 22:34 schrieb Kenny Hibberd:
>>> I added the following to the end of the bareos-dir.conf file:
>>>
>>> @/etc/bareos/bareos-dir.d/console/*.conf
>>> @/etc/bareos/bareos-dir.d/profile/*.conf
>>>
>>> Then I restarted the bareos-dir service. Now when I login, I get the message: Error:
>>>
>>> "Connection refused, director seems to be down or blocking our request."
>>>
>>> I think I've moved past the login issue, and on to the next issue. Can somebody check my work to tell me if I setup these links correctly?
>>>
>>> Thank you!!!
>>>
>>> Kenny
>>
>> Maybe I didn't move past this issue, because I found this in the syslog:
>>
>> Oct 3 09:41:08 backup bareos-dir[1173]: Config error: Cannot open included config file /etc/bareos/bareos-dir.d/console/*.conf: No such file or directory
>>
>> So I tried to explicitly define the actual files with this:
>>
>> @/etc/bareos/bareos-dir.d/console/admin.conf
>> @/etc/bareos/bareos-dir.d/profile/webui-admin.conf
>>
>> Then I found this in the syslog:
>>
>> Oct 3 10:17:25 backup bareos-dir[1192]: Config error: Keyword "Profile" not permitted in this resource.
>>
>> So I removed the reference to the profile configuration file, and restarted, but still have the same error message. I'm not sure what it needs.
>>
>> Kenny
>
> I mean I still have the same "Connection refused" error message when I try to login to the bareos-webui interface. And if I remove the webui-admin.conf reference, and restart, then of course, I'm back to where I started; simply not being able to login. Can anybody tell me what I'm doing wrong?

@Kenny: are your sure, your bareos director runs on 16.2?
The repository
http://download.bareos.org/bareos/release/16.2/Debian_8.0/ does only
provide x86 binaries, (none for Raspberry).

The errors you describe, should like and older version of the
bareos-director (including configuration files by wildcard and the
.console command have been added with bareos-16.2).

The version of bareos-director should be >= than the version of the
bareos-webui.

Jörg
--
Jörg Steffens joerg.s...@bareos.com
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

Kenny Hibberd

unread,
Oct 5, 2016, 12:42:25 PM10/5/16
to bareos-users
You are absolutely correct.

I believe my Bareos director was running 15.2, only the webui was running 16.2. I apologize for not making that clear; thank you for clearing that up.

Now I know the director should be >= than the version of the
bareos-webui. Ideally =, I suppose.

I had never used any kind of a system like this before. I was previously having difficulty understanding which parts were the director, and which were the webui, because I installed them at the same time. I thought the webui would help me understand the system, is why I did that. But, with your explanation, I now understand. The syntax in particular was very strange to me. Thank you very much for helping me understand!!!!

Very much grateful!!!

Kenny

Reply all
Reply to author
Forward
0 new messages