nethesis / dev

Nethesis issue tracker
http://www.nethesis.it
4 stars 1 forks source link

Service lmagent fails to start after reboot #6219

Closed Sempronto closed 8 months ago

Sempronto commented 9 months ago

Service lmagent fails to start after reboot due to the inability to resolve names. Maybe it starts too early, and after 3 attempts the unit goes in timeout.

Traceback:

systemd[1]: lmagent.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Unit lmagent.service entered failed state.
systemd[1]: lmagent.service failed.
systemd[1]: lmagent.service holdoff time over, scheduling restart.
systemd[1]: Stopped lmagent.

Workaround:

mkdir -p /etc/systemd/system/lmagent.service.d
echo -e '[Unit]\nAfter=network.target' > /etc/systemd/system/lmagent.service.d/override.conf
systemctl daemon-reload

to fix the issue we can add the directive After=network.target into the lmagent systemd unit

Steps to reproduce

Expected behavior

Actual behavior

Components

nethserver-lmagent-1.0.1-1.ns7.x86_64

nethbot commented 8 months ago

in 7.9.2009/nethesis-testing:

gsanchietti commented 8 months ago

Test case

Check the issue is not reproducible

Sempronto commented 8 months ago

Test OK the issue is no longer reproducible

nethbot commented 8 months ago

in 7.9.2009/nethesis-updates: