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

rsyslog starting too soon causes race condition, could look the server for several minutes before a successful start #26

Open
curtishall opened this issue Sep 25, 2023 · 3 comments
Assignees

Comments

@curtishall
Copy link
Member

bc-server    | > /usr/sbin/rsyslogd
bc-server    | rsyslogd: pidfile '/run/rsyslogd.pid' and pid 10 already exist.
bc-server    | If you want to run multiple instances of rsyslog, you need to specify
bc-server    | rsyslogd: run failed with error -3000 (see rsyslog.h or try https://www.rsyslog.com/e/3000 to learn what that number means)
bc-server    | > /usr/sbin/rsyslogd
bc-server    | rsyslogd: pidfile '/run/rsyslogd.pid' and pid 10 already exist.
bc-server    | If you want to run multiple instances of rsyslog, you need to specify
bc-server    | rsyslogd: run failed with error -3000 (see rsyslog.h or try https://www.rsyslog.com/e/3000 to learn what that number means)
bc-server    | > /usr/sbin/rsyslogd
bc-server    | > /usr/sbin/rsyslogd
@curtishall curtishall self-assigned this Sep 25, 2023
@dawei1
Copy link

dawei1 commented Oct 22, 2023

Having this problem, any fix yet?

@curtishall
Copy link
Member Author

curtishall commented Oct 22, 2023 via email

@dawei1
Copy link

dawei1 commented Oct 22, 2023

Tried both. Same issue in new install of ubuntu 22.04 and rocky 9.2. I found a workaround, I need to hack the entrypoint.sh inside the bc-server container's filesystem (inside /var/lib/docker/overlay2/) and add the following line right before line '/usr/sbin/rsyslogd':
rm -f /run/rsyslogd.pid

This will remove any existing rsyslogd.pid before starting a new instance of rsyslogd. Then it works well.

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

2 participants