Red Hat Bugzilla – Bug 1312495
systemd: misleading error messages on pid file problems
Last modified: 2016-12-20 14:03:25 EST
Debugging an unrelated failure, I was looking at my VM's journal and saw the following:
Feb 26 16:24:45 freeipa.rharwood.biz systemd: Starting Kerberos 5 KDC...
Feb 26 16:24:45 freeipa.rharwood.biz systemd: krb5kdc.service: PID file /var/run/krb5kdc.pid not readable (yet?) after start: No such file or directory
Reading that message in the absence of context, I assumed that what had happened was that systemd had encountered some fatal problem in trying to do a manipulation of what would become the pidfile, and that this had caused the service to fail to start.
Reading through source suggests that this is not the intent of the message:
Instead, it appears to me that the intent is to warn the user of a slow service.
It would be good, I think, to change this message (and the others in service_load_pid_file()) to be more useful to a user unfamiliar with systemd's inner workings. This would enable those users (like me!) to more effectively debug service failures (i.e., without having to sourcedive to figure out that the message about a pid file is not a cause but rather a symptom).
When the child that systemd forked exits, the service should be up an running and the pidfile written (that's how synchronization in the daemonization protocol works). The error means that pidfile is not present at the expected time, and signifies an error in the daemon (or the service file). Reassigning to the daemon.
Please provide the version of krb5-server and systemd you are using.
Perhaps I was not sufficiently clear earlier. As stated in my original report, I am requesting that the message logged be changed, not reporting a bug in my own package.
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 23 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.