Bareos 24 webui problem

44 views
Skip to first unread message

Silvio Schloeffel

unread,
Dec 14, 2024, 4:14:46 AM12/14/24
to bareos-users
Hi,

After yesterday's upgrade to the latest version, everything seemed to
work as it should.
The nightly backup jobs also ran and no errors occurred.
However, during a quick check via the WebUI, I noticed the following.

All the tabs for the functions work and show me data except for the
Restore tab.

I don't get any error messages (not even in the Apache log) but the page
is completely empty.
Reload, clear cache and restart Apache did not bring any change.

Can anyone reproduce the problem?

Package versions:

bareos-filedaemon-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-bconsole-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-filedaemon-postgresql-python-plugin-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-database-tools-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-storage-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-database-common-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-filedaemon-python-plugins-common-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-tools-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-webui-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-database-postgresql-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-director-python-plugins-common-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-client-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-storage-python3-plugin-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-director-python3-plugin-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-director-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-storage-python-plugins-common-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-common-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-filedaemon-python3-plugin-24.0.0~pre1543.d66bd14a5-4.el8.x86_64
bareos-filedaemon-ldap-python-plugin-24.0.0~pre1543.d66bd14a5-4.el8.x86_64


Best

Silvio




OpenPGP_signature.asc

Silvio Schloeffel

unread,
Dec 14, 2024, 4:23:52 AM12/14/24
to bareos...@googlegroups.com
Apache access log shows an error 500

192.168.2.1 - - [14/Dec/2024:09:17:39 +0000] "GET /bareos-webui/restore/
HTTP/1.1" 500 - "http://10.234.73.12/bareos-webui/dashboard/"

I can see the module in
/usr/share/bareos-webui/

and the rights are OK.

Silvio




Am 14.12.24 um 10:14 schrieb Silvio Schloeffel:
--
Silvio Schloeffel | CIO
silvio.s...@musicdna.com
Tel. +49 3677 2094 840

the evolution of music continues

MusicDNA GmbH
Schwanitzstrasse 6,
98693 Ilmenau, Germany
Phone: +49 3677 2094 840 | Fax: +49 322 298 222 00

Steuer-NR.: DE 156/114/04317

Handelsregisterzeichen: HRB Jena 517208,
Geschäftsführer: Sebastian Schmidt
www.musicdna.com

OpenPGP_signature.asc

Jörg Steffens

unread,
Dec 15, 2024, 11:55:43 AM12/15/24
to bareos...@googlegroups.com
Hi Silvio,

I reproduced the problem on EL8.
The error message is, in a freshly installed EL8, in
/var/log/php-fpm/www-error.log

Reason is, that we used the function array_key_first, only available in
PHP 7 >= 7.3.0, while EL 8 ships with PHP 7.2.
We will publish a fix soon. Thank you for your report.

Regards,
Jörg


On 14.12.24 at 10:23 wrote Silvio Schloeffel:
Jörg Steffens joerg.s...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 630693-91
https://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz

Jörg Steffens

unread,
Dec 15, 2024, 5:00:31 PM12/15/24
to bareos...@googlegroups.com
On 15.12.24 at 17:55 wrote Jörg Steffens:
> Hi Silvio,
>
> I reproduced the problem on EL8.
> The error message is, in a freshly installed EL8, in
> /var/log/php-fpm/www-error.log
>
> Reason is, that we used the function array_key_first, only available in
> PHP 7 >= 7.3.0, while EL 8 ships with PHP 7.2.
> We will publish a fix soon. Thank you for your report.

See https://github.com/bareos/bareos/pull/2067 for the one line fix.

Silvio Schloeffel

unread,
Dec 16, 2024, 3:00:06 AM12/16/24
to bareos...@googlegroups.com
Hi Jörg,

thanks for the fast fix. Will have a look on it.
The Bareos ui is the only php related software on this server, so it
should also be possible for us to upgrade to another php version.

Eventually you could make this as a requirement for the future versions.
At the moment RedHat offers this:

[root@storage-serv php-fpm]# dnf module list|grep php
php 7.2 [d][e] common [d], devel, minimal
PHP scripting language



php 7.3 common [d], devel, minimal
PHP scripting language



php 7.4 common [d], devel, minimal
PHP scripting language



php 8.0 common [d], devel, minimal
PHP scripting language



php 8.2 common [d], devel, minimal
PHP scripting language


Best

Silvio



Am 15.12.24 um 23:00 schrieb Jörg Steffens:
> On 15.12.24 at 17:55 wrote Jörg Steffens:
>> Hi Silvio,
>>
>> I reproduced the problem on EL8.
>> The error message is, in a freshly installed EL8, in
>> /var/log/php-fpm/www-error.log
>>
>> Reason is, that we used the function array_key_first, only available
>> in PHP 7 >= 7.3.0, while EL 8 ships with PHP 7.2.
>> We will publish a fix soon. Thank you for your report.
>
> See https://github.com/bareos/bareos/pull/2067 for the one line fix.
>

--
OpenPGP_signature.asc

Silvio Schloeffel

unread,
Dec 16, 2024, 3:28:07 AM12/16/24
to bareos...@googlegroups.com
Changed the line and the restore function is working now -> problem fixed


Thanks

Silvio



Am 15.12.24 um 23:00 schrieb Jörg Steffens:
> On 15.12.24 at 17:55 wrote Jörg Steffens:
>> Hi Silvio,
>>
>> I reproduced the problem on EL8.
>> The error message is, in a freshly installed EL8, in
>> /var/log/php-fpm/www-error.log
>>
>> Reason is, that we used the function array_key_first, only available
>> in PHP 7 >= 7.3.0, while EL 8 ships with PHP 7.2.
>> We will publish a fix soon. Thank you for your report.
>
> See https://github.com/bareos/bareos/pull/2067 for the one line fix.
>

--
OpenPGP_signature.asc
Reply all
Reply to author
Forward
0 new messages