Core 185 killed my IPFire... again

Hi all,
Here is my log ,from my upgrade, when my WUI also froze after some time and then I received “ipfire refused to connect” as I mentioned earlier:
Stopping SSH Server…
e[1Ae[0Ge[24G e[1;33mNot running.
e[1Ae[0Ge[-8Ge[1;34m[e[1;33m WARN e[1;34m]e[0;39m
Stopping Apache daemon…
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
Starting Apache daemon…
httpd (pid 2812) already running
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
Stopping Intrusion Detection System…
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
Starting Intrusion Detection System…
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
Stopping Unbound DNS Proxy…
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
Starting Unbound DNS Proxy…
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
Setting time on boot…
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
Starting ntpd…
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
Creating Squid swap directories…
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
Starting Squid Proxy Server…
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
Stopping Collection daemon…
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m

Starting Collection daemon…
e[1Ae[0Ge[-8Ge[1;34m[e[1;32m OK e[1;34m]e[0;39m
mv: cannot stat ‘/var/ipfire/ovpn/ovpnconfig.new’: No such file or directory
dracut: Executing: /usr/bin/dracut --kver=6.6.15-ipfire --force
dracut: *** Including module: modsign ***
dracut: *** Including module: i18n ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: lvm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 56-lvm.rules
dracut: Skipping udev rule: 60-persistent-storage-lvm.rules
dracut: *** Including module: mdraid ***
dracut: Skipping udev rule: 64-md-raid.rules
dracut: *** Including module: qemu ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping program /bin/loginctl using in udev rule 71-seat.rules as it cannot be found
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode: real
dracut: Method: sha256
dracut: Files: 1070
dracut: Linked: 5 files
dracut: Compared: 0 xattrs
dracut: Compared: 49 files
dracut: Saved: 1.11 MiB
dracut: Duration: 0.022479 seconds
dracut: *** Hardlinking files done ***
dracut: Could not find ‘strip’. Not stripping the initramfs.
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing AuthenticAMD.bin ***
dracut: *** Constructing GenuineIntel.bin ***
dracut: *** Store current command line parameters ***
dracut: *** Creating image file ‘/boot/initramfs-6.6.15-ipfire.img’ ***
dracut: *** Creating initramfs image file ‘/boot/initramfs-6.6.15-ipfire.img’ done ***
Generating grub configuration file …
Found background: /boot/grub/splash.png
Found linux image: /boot/vmlinuz-6.6.15-ipfire
Found initrd image: /boot/initramfs-6.6.15-ipfire.img
Adding boot menu entry for UEFI Firmware Settings …
done

Hi @markadewet thanks very much for your log.

It is very interesting as it also shows a different message to what I had, which was just Restarting Apache daemon... .

Yours has a Stopping and a Starting line. The Stopping line says OK but the Starting line says httpd is already running.

This may be a timing issue. The stopping of apache, including removing its pid may not have stopped fully when the OK for stopping Apache has been provided, so the start says it doesn’t need top start as it is already starting. However, maybe after this the pid is finally removed resulting in apache not being started again after being stopped.

Still need to understand why the messages are different between different people. Maybe some changes to initscripts did not get updated for all systems. I will have to check this out.

Thanks for finding something for me to work on.

2 Likes

Here is my log, starting with:

Stopping SSH Server…
ESC[1AESC[0GESC[24G ESC[1;33mNot running.
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;33m WARN ESC[1;34m]ESC[0;39m
Restarting Apache daemon…
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m
Stopping Intrusion Detection System…
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m
Starting Intrusion Detection System…
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m
Stopping Unbound DNS Proxy…
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m
Starting Unbound DNS Proxy…
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m
Setting time on boot…
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m
Starting ntpd…
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m
Creating Squid swap directories…
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m
Starting Squid Proxy Server…
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m
Stopping Collection daemon…
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m

Starting Collection daemon…
ESC[1AESC[0GESC[-8GESC[1;34m[ESC[1;32m OK ESC[1;34m]ESC[0;39m
mv: cannot stat ‘/var/ipfire/ovpn/ovpnconfig.new’: No such file or directory
dracut: Executing: /usr/bin/dracut --kver=6.6.15-ipfire --force
dracut: *** Including module: modsign ***
dracut: *** Including module: i18n ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: lvm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 56-lvm.rules
dracut: Skipping udev rule: 60-persistent-storage-lvm.rules
dracut: *** Including module: mdraid ***
dracut: Skipping udev rule: 64-md-raid.rules
dracut: *** Including module: qemu ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping program /bin/loginctl using in udev rule 71-seat.rules as it cannot be found
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode: real
dracut: Method: sha256
dracut: Files: 1067
dracut: Linked: 5 files
dracut: Compared: 0 xattrs
dracut: Compared: 49 files
dracut: Saved: 1.1 MiB
dracut: Duration: 0.013425 seconds
dracut: *** Hardlinking files done ***
dracut: Could not find ‘strip’. Not stripping the initramfs.
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing AuthenticAMD.bin ***
dracut: *** Constructing GenuineIntel.bin ***
dracut: *** Store current command line parameters ***
dracut: *** Creating image file ‘/boot/initramfs-6.6.15-ipfire.img’ ***
dracut: *** Creating initramfs image file ‘/boot/initramfs-6.6.15-ipfire.img’ done ***
Generating grub configuration file …
Found background: /boot/grub/splash.png
Found linux image: /boot/vmlinuz-6.6.15-ipfire
Found initrd image: /boot/initramfs-6.6.15-ipfire.img
Adding boot menu entry for UEFI Firmware Settings …
done
(END)

I had initiated the upgrade from WUI, which is why SSH server was not running.

Re the WUI - I was certainly able to change tabs to “System”, then execute “Shutdown > Reboot” from the WUI, thus avoiding a hardware reset. Many are reporting resorting to hardware reset, although they might not have tried navigating the (apparently hung) WUI.

1 Like

@rodneyp Well, in my case, I definiely DID try navigating to other tabs on the WUI and ALL gave me “ipfire refused to connect”, hence my having to hard reboot with reset button.

This isn’t quite true. If you have physical access to your IPFire system, you can use the console ( KVM/serial).

@bbitsch I hear you, however, I do not have a KVM/serial connction to my box, so I had no choice but to hard reset. Still ,lesson learned, will use SSH to install updates in future.

I put that down to browser functionality. I can’t get this forum to load in Falkon and use Chromium instead.

The IPF WUI works reliably in Falkon. It also works in Chromium, although I have not tested it extensively there.

1 Like

@rodneyp I respectfully disagree, I am using Vivaldi browser and under normal circumstances, ALL tabs in the WUI work with no issue whatsoever.

Okay, I may be getting closer to understanding what is driving this.

In November last year with Core Update 181 a change was made to the apache initscript.

This change was because there had been a problem with apache stopping working when an update had been made to glibc. So the initscript was changed to have the restart command use the stop followed by the start command with some changes in the stop command also.

The changed apache initscript was in the list of files to be changed in the update.

For some reason it looks like the change did not occur for some people.

My production system and the three vm’s I use all still have the apache initscript from before Core Update 181. I ran each CU in turn as they occurred so it is not due to missing a CU.

Other users, the ones having the problem, look to have received the updated apache initscript.
The likelihood is that the changed initscript needs a delay between the stop and start command to ensure that the pid has been fully removed from the filesystem so that the start really can start rather than finding the pid still hanging around on its way out.

I will raise a bug on this, because we need to understand why the apache initscript only got applied to some users and not to others.

5 Likes

Bang on, this seems to be the problem.

A question for all the users that had a frozen WUI screen with CU185, where none of the menu items worked at all.

Did any of you have your IPFire in existence at or earlier than Core Update 181.

You can confirm this by checking in /var/log/pakfire

to see if you have the log file

update-core-upgrade-181.log

I am trying to understand if the apache initscript update did not get installed to anyone and all users having this issue had a fresh install of IPFire from CU181 or later.

If any users have the CU181 log file present then it means that the apache initscript was only updated on some systems and that will be harder to figure out why but we need to know which way round the situation is.

2 Likes

Two bugs raised related to this.

https://bugzilla.ipfire.org/show_bug.cgi?id=13656

https://bugzilla.ipfire.org/show_bug.cgi?id=13657

1 Like

My oldest log-file is from 160 :rofl:
181 is also present…

I updated from 184 to 185 and then WUI was frozen. But OpenVPN connections, firewall stuff etc. all seemed to be running fine. I pushed the power-button and system shut down flawlessly. After a new start, everything ran fine. The firewall had been running for several years and I updated step by step. So it might well be that there was some old stuff from before 181 on the system.
Hope this helps.

It looks like it is related to the apache initscript from Core181 and apache not shutting down before restarting.

I had several Core185 upgrades (various Intel based systems) with the apache WUI issue. All systems had previously existed and upgraded from versions before Core181.

The IPFire Core185 upgrades where the WUI did not restart had an apache initscript dated a few days before the Core181 upgrade was done (Nov-Dec2023). Those systems also showed a running apache pid (so apache did not restart)
Successful upgrades did not show the running apache pid in the upgrade log.

All the other systems on similar hardware upgraded fine.
Those systems that successfully upgraded had either older apache initscripts (dated 2020-2021 so for some reason Core181 did not update those) or new scripts dated a few days before the 185 upgrade.

[root@ipfire ~]# ls -al /var/log/pakfire
total 10916
drwxr-xr-x 2 root root 4096 Apr 19 18:49 .
drwxr-xr-x 18 root root 12288 Apr 21 22:37 …

-rw-r–r-- 1 root root 560438 Aug 8 2023 update-core-upgrade-177.log
-rw-r–r-- 1 root root 534138 Aug 19 2023 update-core-upgrade-178.log
-rw-r–r-- 1 root root 50959 Sep 26 2023 update-core-upgrade-179.log
-rw-r–r-- 1 root root 364704 Oct 13 2023 update-core-upgrade-180.log
-rw-r–r-- 1 root root 784321 Dec 12 19:01 update-core-upgrade-181.log
-rw-r–r-- 1 root root 91899 Jan 4 00:57 update-core-upgrade-182.log
-rw-r–r-- 1 root root 944547 Feb 13 19:29 update-core-upgrade-183.log
-rw-r–r-- 1 root root 278879 Mar 16 02:53 update-core-upgrade-184.log
-rw-r–r-- 1 root root 351715 Apr 19 18:50 update-core-upgrade-185.log

[root@ipfire ~]# ls -al /etc/init.d/apache
-rwxr-xr-- 1 root root 3714 Dec 9 02:48 /etc/init.d/apache

For all the problematic upgrades (all with initscripts from 181), the update-core-upgrade-185.log showed an apache pid still running after the stop / before the restart.

[root@ipfire ~]# cat /var/log/pakfire/update-core-upgrade-185.log | grep pid
httpd (pid 7904) already running

[within the update-core-upgrade-185.log file:]
Stopping SSH Server…
Not running.
WARN
Stopping Apache daemon…
OK
Starting Apache daemon…
httpd (pid 7904) already running

OK
Stopping Intrusion Detection System…
OK

After reboot ALL systems were successfully upgraded to Core185 :slight_smile:

2 Likes

We now understand that the apache initscript update from CU181 was implemented due to issues that were only found after the full release.

The updated initscript went into CU181 but anyone who had already updated to CU181 before that initscript was changed would not have got it.

The plan was to ship the updated apache initscript also with CU182 to catch all those who had updated early to CU181. Unfortunately that was missed to be done with CU182.

The updated apache initscript, together with a delay between the stop and start commands for the restart, will be shipped with CU186.

9 Likes

Hi @bonnietwin.

Sorry to put it up so late.

update-core-upgrade-185.zip (47,4 KB)

I use the browser:

Saludos.