Can't login on webui

1,801 views
Skip to first unread message

Emerson Antunes Coimbra

unread,
Dec 22, 2016, 4:00:10 AM12/22/16
to bareos-users
Hi everyone,

I started using Bareos in my company about two years ago. Version 14.x. I used the webui in its first versions without problems. Around the same time that Bareos 15 was launched, my webui stopped working. I just could not log in and no error message was displayed on the screen or in logs. Move on...

Yesterday I made the migration to version 16.2.4. Everything works, except the webui.

:(

The problem is: when I put the access credentials, the webui instead of log me in dashboard, nothing happens and the user/password fields go blank again.

If I intentionally mistake the user or the password, the system informs me that there is an error, ie the user/password is being validated!

I've tried everything
*Create new users
*Change password patterns
*Switching browsers
*Private window

Nothing works. Always the same problem. Nothing in Bareos logs, nothing in Apache logs. I googled a lot and found no case like this.

Any suggestion?

Thanks,
Emerson


************************
My setup
************************

CentOS 7.3.1611
Bareos 16.2.4
PostgreSQL 9.2.18
Httpd 2.4.6
PHP 5.4.16
Installation via repositories, all packets updated.

************************
Configuration files
************************

[root@thanos console]# pwd
/etc/bareos/bareos-dir.d/console
[root@thanos console]# ll
total 12
-rw-r--r--. 1 bareos bareos 126 Dez 21 13:08 admin.conf
-rw-r--r--. 1 bareos bareos 203 Dez 21 12:40 bareos-mon.conf
-rw-r-----. 1 bareos bareos 75 Dez 21 13:20 ecoimbra.conf
[root@thanos console]# cat admin.conf
#
# Restricted console used by bareos-webui
#
Console {
Name = digit
Password = "bareos@cnen"
Profile = "webui-admin"
}
[root@thanos console]# cat ecoimbra.conf
Console {
Name = ecoimbra
Password = cnen123
Profile = webui-admin
}

[root@thanos console]# pwd
/etc/bareos/bareos-dir.d/console
[root@thanos console]# cd ..
[root@thanos bareos-dir.d]# cd profile/
[root@thanos profile]# ll
total 8
-rw-r--r--. 1 bareos bareos 459 Dez 21 12:40 operator.conf
-rw-r--r--. 1 bareos bareos 374 Dez 21 12:40 webui-admin.conf
[root@thanos profile]# cat webui-admin.conf
#
# bareos-webui webui-admin profile resource
#
Profile {
Name = "webui-admin"
CommandACL = !.bvfs_clear_cache, !.exit, !.sql, !configure, !create, !delete, !purge, !sqlquery, !umount, !unmount, *all*
Job ACL = *all*
Schedule ACL = *all*
Catalog ACL = *all*
Pool ACL = *all*
Storage ACL = *all*
Client ACL = *all*
FileSet ACL = *all*
Where ACL = *all*
}

Jörg Steffens

unread,
Dec 22, 2016, 4:17:14 AM12/22/16
to bareos...@googlegroups.com
On 22.12.2016 at 10:00 wrote Emerson Antunes Coimbra:
> Hi everyone,
>
> I started using Bareos in my company about two years ago. Version
> 14.x. I used the webui in its first versions without problems. Around
> the same time that Bareos 15 was launched, my webui stopped working.
> I just could not log in and no error message was displayed on the
> screen or in logs. Move on...
>
> Yesterday I made the migration to version 16.2.4. Everything works,
> except the webui.
>
> :(
>
> The problem is: when I put the access credentials, the webui instead
> of log me in dashboard, nothing happens and the user/password fields
> go blank again.
>
> If I intentionally mistake the user or the password, the system
> informs me that there is an error, ie the user/password is being
> validated!
>
> I've tried everything *Create new users *Change password patterns
> *Switching browsers *Private window
>
> Nothing works. Always the same problem. Nothing in Bareos logs,
> nothing in Apache logs. I googled a lot and found no case like this.
>
> Any suggestion?

This sounds strange. There should be something in the logs.
Maybe you try to set the webui to development?

In the Apache configuration file bareos-webui.conf you got a setting of
SetEnv "APPLICATION_ENV" "production"

Try
SetEnv "APPLICATION_ENV" "development"
instead, and see if bareos-webui complains on login.

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

Emerson Antunes Coimbra

unread,
Dec 22, 2016, 5:19:21 AM12/22/16
to Jörg Steffens, bareos...@googlegroups.com
Same problem, Jorg.

Look this shots:

1) first step, my internal url: http://10.10.4.74/bareos-webui

2) if i put wrong password:

3) if I put the correct password, url change to http://10.10.4.74/bareos-webui/auth/login?req=/bareos-webui/dashboard/ and reload the page


Last lines in access.log
10.10.1.21 - - [22/Dec/2016:08:08:14 -0200] "POST /bareos-webui/ HTTP/1.1" 302 - "http://10.10.4.74/bareos-webui/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
10.10.1.21 - - [22/Dec/2016:08:08:15 -0200] "GET /bareos-webui/dashboard/ HTTP/1.1" 302 - "http://10.10.4.74/bareos-webui/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
10.10.1.21 - - [22/Dec/2016:08:08:15 -0200] "GET /bareos-webui/auth/login?req=/bareos-webui/dashboard/ HTTP/1.1" 200 5228 "http://10.10.4.74/bareos-webui/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"

Last lines in error.log
[Thu Dec 22 07:47:33.371890 2016] [mpm_prefork:notice] [pid 13560] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Dec 22 07:47:34.734697 2016] [core:notice] [pid 7071] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Dec 22 07:47:34.755646 2016] [suexec:notice] [pid 7071] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Dec 22 07:47:34.781782 2016] [so:warn] [pid 7071] AH01574: module rewrite_module is already loaded, skipping
[Thu Dec 22 07:47:34.782952 2016] [auth_digest:notice] [pid 7071] AH01757: generating secret for digest authentication ...
[Thu Dec 22 07:47:34.783778 2016] [lbmethod_heartbeat:notice] [pid 7071] AH02282: No slotmem from mod_heartmonitor
[Thu Dec 22 07:47:35.237883 2016] [mpm_prefork:notice] [pid 7071] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations
[Thu Dec 22 07:47:35.237969 2016] [core:notice] [pid 7071] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

Bareos.log show only when I put de wrong pass
22-Dez 07:55 Thanos-dir JobId 0: Fatal error: Authorization key rejected by Console ecoimbra.
22-Dez 07:55 Thanos-dir: ERROR in authenticate.c:282 Unable to authenticate console "ecoimbra" at client:127.0.0.1:9101.


*SELinux is permissive.

Emerson


--
You received this message because you are subscribed to a topic in the Google Groups "bareos-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bareos-users/tsPAWiKAUQ8/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Tihomir Vlahovski

unread,
Jan 30, 2017, 3:59:48 PM1/30/17
to bareos-users

I had the same issue and the problem was with the php session folder permissions. First check your php.ini for the apache, where session folder is pointing and then check the permissions.
Hope that this will solve your login problems.

Regards,
-Tiho ( https://filesend.io - Send large files for free)

Reply all
Reply to author
Forward
0 new messages