webacula, bareos-webui and bacula-web install errors

440 views
Skip to first unread message

hfsb...@gmail.com

unread,
Jan 30, 2015, 5:52:33 PM1/30/15
to bareos...@googlegroups.com
I tried to install the bareos contrib applications and have found the following problems:

1) yum reports: bareos-webui-0.1.git.1418833784-42.2.fc18.noarch (contrib)
Requires: php-ZendFramework2 >= 2.2.0 and fails


2) webacula.noarch 0:5.5.2.2.git.1420467742-34.1.fc18
bacula-web.noarch 0:5.2.13.1-4.3.fc18
bareos-webui-0.1.git.1418833784-42.2.fc18.noarch

My bareos system is PostgreSQL based, shouldn't they use postgres?
For all three systems, yum tried to install php-mysql, is that correct?



Frank Bergkemper

unread,
Feb 2, 2015, 7:32:43 AM2/2/15
to hfsb...@gmail.com, bareos...@googlegroups.com
Am 30.01.2015 um 23:52 schrieb hfsb...@gmail.com:
> I tried to install the bareos contrib applications and have found the following problems:
>
> 1) yum reports: bareos-webui-0.1.git.1418833784-42.2.fc18.noarch (contrib)
> Requires: php-ZendFramework2 >= 2.2.0 and fails
>

Sorry, we have only tested up from Fedora 19 and it seems Fedora 18 does
not ship with Zend Framework 2.

I feel sorry, but as Fedora 18 is pretty old now, we are going to
disable the build, so there won't be any updates or Zend Framework 2
packages from our site.

I would recommend upgrading your distribution >= Fedora 20 if you
would like to use bareos-webui.

>
> 2) webacula.noarch 0:5.5.2.2.git.1420467742-34.1.fc18
> bacula-web.noarch 0:5.2.13.1-4.3.fc18
> bareos-webui-0.1.git.1418833784-42.2.fc18.noarch
>
> My bareos system is PostgreSQL based, shouldn't they use postgres?
> For all three systems, yum tried to install php-mysql, is that correct?
>

Yes, it is correct as php5-mysql is a dependency by all of them, e.g. it
delivers php5-pdo-mysql for the php5-pdo extension.

Regards
Frank

hfsb...@gmail.com

unread,
Feb 2, 2015, 4:56:32 PM2/2/15
to bareos...@googlegroups.com, hfsb...@gmail.com, frank.be...@dass-it.de
On Monday, February 2, 2015 at 10:32:43 AM UTC-2, Frank Bergkemper wrote:
As per your suggestion, I tried a fresh install of Centos7
yum refused to install webacula because of a php-Zend Framework dependency but Zend was already installed during the installation of bareos-webui. Looks like a bug on the yum dependency list.

Also, I notice that the contrib repo for redhat/fedora systems are in a mixed state, some have zend in it, but version 1, etc etc. Probably they are not up to date.

Hunt, Phillip

unread,
Feb 2, 2015, 11:23:08 PM2/2/15
to hfsb...@gmail.com, bareos...@googlegroups.com, frank.be...@dass-it.de
Re webacula and centos7

I had the same problems in centos7

Zend is superceded with zend2 which is NOT supported by webacula. I was reportibg all this to the webacula author working thru problems until he stopped responding or doing a new version

If I remember, i found an old zend kit for centos7 and it required a few ln links to make it even install. When running, the web screens didnt show graphics and worked intermittently. I gave up.

This was back in October, if you want to see where I got

Phil

Sent from my iPhone 6 Plus
Please ignore typos
> --
> 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 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.
________________________________
This message (including any attachments) may contain confidential, proprietary, privileged and/or private information. The information is intended to be for the use of the individual or entity designated above. If you are not the intended recipient of this message, please notify the sender immediately, and delete the message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited.

Hilario Fochi

unread,
Feb 3, 2015, 7:50:52 AM2/3/15
to bareos...@googlegroups.com, frank.be...@dass-it.de
Hi Phil,

Thanks very much for your report. I will stop trying testing these contrib packages for now and wait for the developers declare it stable or at least beta state.

This will let me focus on the most important thing: the backup of our data and some proficiency with plain bareos.

Best Regards,

Hilario

Ashley

unread,
Feb 4, 2015, 10:52:17 PM2/4/15
to bareos...@googlegroups.com, frank.be...@dass-it.de
Hi Guys,

I successfully got bareos-webui working in Centos 7.

Make sure you have epel installed:

yum install epel-release

I used the contrib repo from RHEL 7 as there was no Centos 7 contrib Repo yet.

Also you need to edit /etc/httpd/conf.d/bareos-webui.conf and update the Allow From syntax to the new apache 2.4 syntax like below

# Deny from all
# Allow from localhost
# Allow from ::1
Require all granted

Hilario Fochi

unread,
Feb 25, 2015, 2:17:36 PM2/25/15
to bareos...@googlegroups.com, frank.be...@dass-it.de
Hello Ashley.
I confirm that bareos-webui did install in Centos 7 with epel-release.

Initially it presented a "Forbidden You don't have permission to access /bareos-webui/statistics/ on this server"
It only worked after I inserted the "Require all granted" line as you instructed.

It also presented connection failure to postgresql due to a SELinux restriction.
The solution as suggested by SELinux alert is to set a SELinux boolean:
sudo setsebool -P httpd_can_network_connect 1
sudo setsebool -P httpd_can_network_connect_db 1

Frank Bergkemper:
May I kindly suggest that you update your installation information on github.com (INSTALL.md file) to include these instructions?
While there you could also include the information that on RedHat, the bareos-webui apache configuration file should be in /etc/httpd/conf.d instead of /etc/apache2/conf.d

Frank Bergkemper

unread,
Mar 2, 2015, 7:56:10 AM3/2/15
to bareos...@googlegroups.com
Hi Hilario,

SELinux stuff excluded, mostly done with the new release, I guess.

Steps to do, if SELinux is enabled, will be added to the documentation
after some testing with latest changes.

If you already have done that or would like to, you are welcome to
contribute something.

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

Hilario Fochi

unread,
Mar 6, 2015, 8:59:10 AM3/6/15
to bareos...@googlegroups.com, frank.be...@dass-it.de
> Frank Bergkemper frank.bergkemperATdass-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

Frank,
I will continue to test the bareos-webui and will report any SELinux issues or solution I may have.
I will indeed install it with SELinux enforcing because it is the correct and sensible way to do it. As soon as we figure-out all the settings, than the rpm install scriptlet should be updated to fix it. Also the install docs must have a section dedicated to SELinux and how to manually set it.
All the Best,

Hilário

Frank Bergkemper

unread,
Mar 6, 2015, 10:06:58 AM3/6/15
to Hilario Fochi, bareos...@googlegroups.com
Hi Hilario,

I've already pushed a commit with an updated INSTALL.md including
SELinux configuration. By setting these two booleans, I was able to get
bareos-webui running on a CentOS 7 box with SELinux enabled.

# Allow HTTPD scripts and modules to connect to the network
setsebool -P httpd_can_network_connect on

# Allow HTTPD to connect to a remote database
setsebool -P httpd_can_network_connect_db on

See:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Booleans-Configuring_Booleans.html


Regards,
Frank

--
Frank Bergkemper frank.be...@dass-it.de

Stephan Dühr

unread,
Mar 6, 2015, 1:02:15 PM3/6/15
to bareos...@googlegroups.com
Simply adding setsebool to %post may not be compliant with common Fedora/EPEL packaging
Guidelines and may also cause other problems if not done properly. While Bareos Packages
do not necesarily need to comply to them, nevertheless it's better to check how to do
that properly. Some popular EPEL packages like drupal or wordpress don't have any setsebool
in %post. Others have an additional -selinux package, for example dokuwiki-selinux, but
that does only set contexts.

See http://fedoraproject.org/wiki/SELinux_Policy_Modules_Packaging_Draft
and some interesting remarks here: https://bugzilla.redhat.com/show_bug.cgi?id=801752

Regards

--
Stephan Dühr stepha...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-90
http://www.bareos.com

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. Steffens, Philipp Storz, M. v. Wieringen
Reply all
Reply to author
Forward
0 new messages