Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Sendmsg()/writev() failed in logger after system restart

$
0
0

I have noticed that sometimes HAProxy stops writing the HTTP access log entries to the logger after an OS reboot and reports this error:

sendmsg()/writev() failed in logger #1: Permission denied (errno=13)

It was working as expected before the reboot, this is running Ubuntu 24.04 and HAproxy 2.8 from the Ubuntu repos.

To solve this I run:

sudo systemctl restart systemd-journald
sudo systemctl restart haproxy

And HAProxy starts writing again the http logs.

The HAProxy service configuration file looks like this:

[Unit]

Description=HAProxy Load Balancer

Documentation=man:haproxy(1)

Documentation=file:/usr/share/doc/haproxy/configuration.txt.gz

After=network-online.target rsyslog.service

Wants=network-online.target

There is no mention of systemd-journald, CoPilot suggests that a Requires entry should be added via an override to add a dependency on journald, the cause of the problem may be HAProxy starting before journald has set up its socket.

The proposed override:

[Unit]
After=systemd-journald.service
Requires=systemd-journald.service

I would like to know your opinions on this.

Thank you very much.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>