View Issue Details

IDProjectCategoryView StatusLast Update
0001365bareos-core[All Projects] webuipublic2021-07-30 10:53
ReportergrizlyAssigned Tofrank 
PriorityhighSeverityminorReproducibilityhave not tried
Status acknowledgedResolutionopen 
PlatformLinuxOSUbuntuOS VersionUbuntu 18.04.5 L
Product Version19.2.10 
Fixed in Version 
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.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

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?

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