View Issue Details

IDProjectCategoryView StatusLast Update
0001365bareos-corewebuipublic2024-05-08 15:02
Reportergrizly Assigned To 
PriorityhighSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
PlatformLinuxOSUbuntuOS VersionUbuntu 18.04.5 L
Product Version19.2.10 
Summary0001365: apt postinstall is activating
DescriptionEssentially https://github.com/bareos/bareos-webui/blob/890997a2f6c836beaa7a36160c1e1e737b66df1e/debian/postinst#L4 caused a minor outage this morning.

We run php7.2, which works fine for bareos-webui, however after apt-update ran this morning the postinst script activated php5.. which is not installed. So, not sure how it did that, but it did. /etc/apache2/mods-enabled/php5.load and /etc/apache2/mods-enabled/php5.conf were created and as the packages weren't installed, it prevented apache2 from restarting.


Deleting those two erroneous files allowed apache2 to restart and work just fine.
Steps To Reproduceinstall apache2 and php7-fpm
install bareos-webui
check apache2
Additional InformationFrom term.log

Setting up bareos-webui (19.2.7-2) ...
Installing new version of config file /etc/bareos-webui/configuration.ini ...
/usr/sbin/a2enmod
Module rewrite already enabled
/usr/sbin/a2enmod
Module rewrite already enabled
Enabling module php5.
To activate the new configuration, you need to run:
  systemctl restart apache2
/usr/sbin/a2enconf
Conf bareos-webui already enabled


...

Jun 23 06:56:06 server-name systemd[1]: Starting The Apache HTTP Server...
Jun 23 06:56:06 server-name apachectl[21560]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
Jun 23 06:56:06 server-name apachectl[21560]: Action 'start' failed.
Jun 23 06:56:06 server-name apachectl[21560]: The Apache error log may have more information.
Jun 23 06:56:06 server-name systemd[1]: apache2.service: Control process exited, code=exited status=1
Jun 23 06:56:06 server-name systemd[1]: apache2.service: Failed with result 'exit-code'.
Jun 23 06:56:06 server-name systemd[1]: Failed to start The Apache HTTP Server.


TagsNo tags attached.

Activities

grizly

grizly

2021-06-23 02:13

reporter   ~0004158

Well, that submitted before I was finished, but it's mostly there.

Not sure what the fix would be, but I would guess if it can detect php, just leave the current php alone?
joergs

joergs

2024-04-23 16:00

developer   ~0005904

This bug report have been lingering around for to long, however, in the meantime Debian/Ubuntu package have the dependencies php-fpm (>= 7.0) and does not call a2enmod php5 anymore (nor other a2enmod php*). So I think, this problem is resolved.

Issue History

Date Modified Username Field Change
2021-06-23 02:11 grizly New Issue
2021-06-23 02:13 grizly Note Added: 0004158
2021-07-30 10:51 frank Assigned To => frank
2021-07-30 10:51 frank Status new => assigned
2021-07-30 10:53 frank Status assigned => acknowledged
2024-04-23 16:00 joergs Assigned To frank =>
2024-04-23 16:00 joergs Status acknowledged => resolved
2024-04-23 16:00 joergs Resolution open => fixed
2024-04-23 16:00 joergs Note Added: 0005904
2024-05-08 15:02 arogge Status resolved => closed