Linux 6.8.0-146-generic on x86_64 Hasproxy random shutdown

Ubuntu Version

Ubuntu 24.04 LTS

Desktop Environment (if applicable)

None (server/headless)

Problem Description

~$ sudo systemctl status haproxy.service
○ haproxy.service - HAProxy Load Balancer
Loaded: loaded (/usr/lib/systemd/system/haproxy.service; enabled; preset: enabled)
Active: inactive (dead) since Sat 2026-10-10 10:05:37 CEST; 4h 31min ago
Duration: 20h 59min 1.725s
Docs: man:haproxy(1)
file:/usr/share/doc/haproxy/configuration.txt.gz
Process: 48529 ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE $EXTRAOPTS (code=exited, status=0/SUCCESS)
Main PID: 48529 (code=exited, status=0/SUCCESS)
Status: “Ready.”
CPU: 2min 15.046s

Oct 09 13:06:35 backup0 systemd[1]: Started haproxy.service - HAProxy Load Balancer.
Oct 10 10:05:37 backup0 haproxy[48529]: [NOTICE] (48529) : haproxy version is 2.8.16-0ubuntu0.24.04.3
Oct 10 10:05:37 backup0 haproxy[48529]: [NOTICE] (48529) : path to executable is /usr/sbin/haproxy
Oct 10 10:05:37 backup0 haproxy[48529]: [WARNING] (48529) : Exiting Master process…
Oct 10 10:05:37 backup0 systemd[1]: Stopping haproxy.service - HAProxy Load Balancer…
Oct 10 10:05:37 backup0 haproxy[48529]: [ALERT] (48529) : Current worker (48531) exited with code 143 (Terminated)
Oct 10 10:05:37 backup0 haproxy[48529]: [WARNING] (48529) : All workers exited. Exiting… (0)
Oct 10 10:05:37 backup0 systemd[1]: haproxy.service: Deactivated successfully.
Oct 10 10:05:37 backup0 systemd[1]: Stopped haproxy.service - HAProxy Load Balancer.
Oct 10 10:05:37 backup0 systemd[1]: haproxy.service: Consumed 2min 15.046s CPU time.

Error Messages / Logs

No Logs

What I’ve Tried

Nothing only updated to the latest kermel 146 before that no problems at all
All software is updated until today but still haproxy did a shutdown without any change on the system

Please clarify your OS/release

You tagged ubuntu-core which would imply Ubuntu Core 24; but selected Ubuntu 24.04 LTS and not Ubuntu Core (24); which is correct?

1 Like

Something asked systemd to stop haproxy at 10:05:37, so it’s likely not a crash or the 6.8.0-146 kernel.

Check whether apt or unattended-upgrades ran at that minute:

zgrep -h -A3 "Start-Date: 2026-10-10" /var/log/apt/history.log*

Then list what else was logged in the minute before the stop:

sudo journalctl --since "2026-10-10 10:04:30" --until "2026-10-10 10:05:38" -o cat

Blur any usernames in either output before posting it.

Drafted with AI.

Using Ubuntu LTS 24.04 with Linux 6.8.0-147-generic on x86_64

1 Like

Thank you for this comment, it listed a interference from Certbot that tryed to renew the certificates and shut-down as pre-hook Haproxy

Removed this service by sudo systemctl stop certbot.timer and sudo systemcl disable certbot-timer

Disabling certbot.timer stops the shutdowns, but it also stops the certificate renewals, so the certificate will expire.

Turn the timer back on and add a post hook that starts HAProxy again after each renewal attempt:

sudo systemctl enable --now certbot.timer
printf '#!/bin/sh\nsystemctl start haproxy\n' | sudo tee /etc/letsencrypt/renewal-hooks/post/start-haproxy.sh
sudo chmod +x /etc/letsencrypt/renewal-hooks/post/start-haproxy.sh

Then run sudo certbot renew --dry-run (HAProxy stops for the few seconds the test takes) and check that systemctl is-active haproxy prints active.

Drafted with AI.

This topic was automatically closed after 30 days. New replies are no longer allowed.