-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rsyslog.service: Main process exited, code=exited, status=1/FAILURE #15
Comments
This is flooding the journald , so we would need it to be cleaner sooner. |
Found the problem. A behavioral change has been introduced in rsyslog, due to which we can no longer run it with "no actions enabled". This is how we used to run rsyslog before : it doesn't do anything when it starts up (no actions), but it can be configured (actions will be added) to perform remote logging. In previous revisions, you could start rsyslogd without any actions, in the recent revisions (that come with Yocto 2.6), you can no longer do that. I think the solution is to start rsyslogd when remote logging is configured. I'm working on a fix. This is the commit in rsyslog which changed this behavior : |
This seems counter to the justification in the upstream change log:
If adding actions at runtime is in the upstream code, then we should submit a patch upstream to allow startng with no actions required. Keeping the other half of the error makes sense (aparently an action that is broken). That being said, not starting a daemon that isn't doing useful work also sounds like a feature for resource consumption. |
I think I didn't explain myself clearly in my last comment : we don't add actions at runtime, rather we update the rsyslog config file and restart the service. So the latest upstream seems to do the right thing : it prevents running an rsyslod instance that has no actions. So we shouldn't be starting the rsyslogd daemon when we have no actions for the daemon. |
Ok. Be sure to consider removing the last action. Maybe by having the config exist or not based on having an action and using ConditionPathExists? |
On latest yacto 2.6 build
root@witherspoon:~# cat /etc/os-release
ID="openbmc-phosphor"
NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
VERSION="v2.4-247"
VERSION_ID="v2.4-247-g1a4b7ee"
PRETTY_NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro) v2.4-247"
BUILD_ID="v2.4"
Remote logging server crashed out
The text was updated successfully, but these errors were encountered: