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

Syslog deprecated log messages #1792

Closed
TrevorBenson opened this issue Jul 29, 2024 · 0 comments
Closed

Syslog deprecated log messages #1792

TrevorBenson opened this issue Jul 29, 2024 · 0 comments

Comments

@TrevorBenson
Copy link
Collaborator

Thanks @TrevorBenson , updating to nginx 1.26 with your instructions solved the stream issue in the nginx.conf. One strange thing I did notice after upgrading using those instructions, though, is when I tried to see the mithril service logs with sudo journalctl -u cnode-mithril-signer.service -f I started getting this error in the logs

Jul 26 21:24:54 bp.us-central1-a.c.stake-pool-428321.internal systemd[1]: /etc/systemd/system/cnode-mithril-signer.service:19: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.

sure enough, removing these two entries in the cnode-mithril-signer.service script

StandardOutput=syslog
StandardError=syslog

Resolves the logging error. But definitely something to look out for.

For tracking purposes @gmoratorio and I spoke in DM. I suspect this might come from libsystemd0/noble-updates 255.4-1ubuntu8.2 amd64 [upgradable from: 255.4-1ubuntu8.1] which appears to have been released a couple of weeks ago.

Originally posted by @TrevorBenson in #1785 (comment)


Confirmed this appears to happen on ubuntu 22.04 and 24.04 once updates are applied and systemd is a new enough version.

[    2.259878] systemd[1]: /etc/systemd/system/cnode-logmonitor.service:16: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    2.260732] systemd[1]: /etc/systemd/system/cnode-logmonitor.service:17: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    2.261634] systemd[1]: /etc/systemd/system/cnode-cncli-sync.service:15: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    2.263375] systemd[1]: /etc/systemd/system/cnode-cncli-sync.service:16: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    2.265196] systemd[1]: /etc/systemd/system/cnode-cncli-validate.service:15: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    2.266161] systemd[1]: /etc/systemd/system/cnode-cncli-validate.service:16: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    2.267095] systemd[1]: /etc/systemd/system/cnode-cncli-leaderlog.service:14: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    2.268638] systemd[1]: /etc/systemd/system/cnode-cncli-leaderlog.service:15: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    2.270313] systemd[1]: /etc/systemd/system/cnode-mithril-signer.service:18: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    2.271844] systemd[1]: /etc/systemd/system/cnode-mithril-signer.service:19: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.

This blog post also mentions it can get worse when exporters are Systemd based services and get scraped by Prometheus.

@TrevorBenson TrevorBenson changed the title > Thanks @TrevorBenson , updating to nginx 1.26 with your instructions solved the stream issue in the nginx.conf. One strange thing I did notice after upgrading using those instructions, though, is when I tried to see the mithril service logs with sudo journalctl -u cnode-mithril-signer.service -f I started getting this error in the logs Syslog deprecated log messages Jul 29, 2024
@rdlrt rdlrt closed this as completed in b0164ca Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant