Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#63046 - [hiawatha] service fails to start at boot with status 1/HUP
Attached to Project:
Community Packages
Opened by Armand (Kewl) - Sunday, 30 June 2019, 19:33 GMT
Last edited by Kyle Keen (keenerd) - Tuesday, 09 July 2019, 01:36 GMT
Opened by Armand (Kewl) - Sunday, 30 June 2019, 19:33 GMT
Last edited by Kyle Keen (keenerd) - Tuesday, 09 July 2019, 01:36 GMT
|
DetailsDescription:
The hiawatha service happens to randomly terminates with status 1/signal hang up at startup ~~~ Jun 30 07:25:15 systemd[1]: hiawatha.service: Control process exited, code=killed, status=1/HUP Jun 30 07:25:15 systemd[1]: hiawatha.service: Failed with result 'signal'. Jun 30 07:25:15 systemd[1]: Failed to start Hiawatha Web Server. ~~~ Additional info: * package version(s)10.9-2 Steps to reproduce: After a fresh reboot check: `systemctl status hiawatha` From time to time, the hiawatha service fails at startup with SIGHUP (see log above) |
This task depends upon
Closed by Kyle Keen (keenerd)
Tuesday, 09 July 2019, 01:36 GMT
Reason for closing: Fixed
Additional comments about closing: hiawatha 10.9-3
Tuesday, 09 July 2019, 01:36 GMT
Reason for closing: Fixed
Additional comments about closing: hiawatha 10.9-3
Looking at `/etc/logrotate.d/hiawatha`, logrotate executes `killall -HUP hiawatha` after rotation of the log file `/var/log/hiawatha/access.log`
While killall -HUP hiawatha should only trigger the unlocking of the log files (see https://gitlab.com/hsleisink/hiawatha/blob/master/src/hiawatha.c#L311), for some reason in this situation it fails and exit.
This is where I stand in my partial understanding of the issue.
Removing 'hiawatha -k' from the service's ExecStartPre (which is not necessary) fixes the bug.
The amended .service file is attached.