Skip to content
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

incusd will not run with --syslog specified but no syslog available. #1413

Open
cmspam opened this issue Nov 23, 2024 · 1 comment
Open

incusd will not run with --syslog specified but no syslog available. #1413

cmspam opened this issue Nov 23, 2024 · 1 comment

Comments

@cmspam
Copy link
Contributor

cmspam commented Nov 23, 2024

I have been testing Incus on Chimera Linux and encountered an issue related to logging. Chimera Linux does not enable a syslog service on boot by default, but incusd is started with the --syslog option.

As a result, on a fresh install without enabling syslog, incusd fails to start and exits with the following error message:

Syslog logging isn't supported on this platform

I thought it was a Chimera problem initially, but during some discussion in the Chimera Linux IRC, it was suggested that services typically do not terminate solely because syslog is unavailable. While it is helpful that incusd reports this error, the current behavior raises a question:

Is the intended behavior for incusd to terminate completely in this scenario? Alternatively, would it be preferable for incusd to continue running, emit the error, and proceed without syslog logging?

I would love to get your insights.

@stgraber
Copy link
Member

I think the current behavior is reasonable. You specifically requested that Incus uses syslog logging by passing --syslog so having Incus fail to start when it can't do so seems appropriate as the alternative would be Incus running with no logging as you've instructed it to log everything to a non-existing target.

Syslog logging tends to be used in many enterprise environments where failing to log through syslog may be a compliance issue, so having startup fail when it was requested and isn't working seems appropriate.

This is different from a number of other pieces of software where they will automatically attempt to log to syslog and fallback to stderr or a log file if they can't connect to syslog, but in those environments the user didn't explicitly request that logging happens through syslog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants