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

升级过程中Centos节点rsyslog启动失败 #538

Closed
breadysimon opened this issue Apr 28, 2019 · 3 comments
Closed

升级过程中Centos节点rsyslog启动失败 #538

breadysimon opened this issue Apr 28, 2019 · 3 comments

Comments

@breadysimon
Copy link

breadysimon commented Apr 28, 2019

升级的prepare过程中"禁止rsyslog获取journald日志"时, 将/etc/rsyslog.conf中的以下一行注释掉了:

$ModLoad imjournal # provides access to the systemd journal

但是, 这样改rsyslog重启会失败.

检查rsyslog.conf文件, 发现还有相关以下配置:

# File to store the position in the journal
$IMJournalStateFile imjournal.state

尝试把这一行也注释掉, 重启才能成功.

@waitingsong
Copy link
Contributor

我新装的集群,如下日志,不知道是否相关:

Apr 24 18:08:09 VM_8_96_centos rsyslogd[26941]:  [origin software="rsyslogd" swVersion="8.24.0-34.el7" x-pid="26941" x-info="http://www.rsyslog.com"] start
Apr 24 18:08:09 VM_8_96_centos rsyslogd[26941]: invalid or yet-unknown config file command 'IMJournalStateFile' - have you forgotten to load a module? [v8.24.0-34.el7 try http://www.rsyslog.com/e/3003 ]

@gjmzj
Copy link
Collaborator

gjmzj commented Apr 29, 2019

感谢指出,我再自己测试看看

@gjmzj
Copy link
Collaborator

gjmzj commented Apr 30, 2019

已修复提交 a193907

@gjmzj gjmzj closed this as completed May 9, 2019
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

3 participants