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

Logging occasionally fails with existing rsyslogd.pid file error #36

Closed
mikkonie opened this issue Nov 13, 2024 · 3 comments
Closed

Logging occasionally fails with existing rsyslogd.pid file error #36

mikkonie opened this issue Nov 13, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mikkonie
Copy link
Contributor

When starting up the image using docker compose, there are occasional errors regarding logging. Either it's a complaint for not being able to write to the log file, or the following:

irods-1       | rsyslogd: pidfile '/run/rsyslogd.pid' and pid 18 already exist.
irods-1       | If you want to run multiple instances of rsyslog, you need to specify
irods-1       | different pid files for them (-i option).
irods-1       | rsyslogd: run failed with error -3000 (see rsyslog.h or try https://www.rsyslog.com/e/3000 to learn what that number means)

I'm definitely not a syslog expert, so no idea why these occur. Need to investigate.

@mikkonie mikkonie added the bug Something isn't working label Nov 13, 2024
@mikkonie mikkonie self-assigned this Nov 13, 2024
@mikkonie mikkonie changed the title Sporadic logging errors with rsyslogd Logging occasionally fails with existing rsyslogd.pid file error Nov 13, 2024
@mikkonie
Copy link
Contributor Author

mikkonie commented Nov 13, 2024

The file itself could be easily wiped by adding rm -f /var/run/rsyslogd.pid to the entrypoint. However, when this next happens I need to check if there is indeed a corresponding process running. If so, that should be killed as well I suppose.

@mikkonie
Copy link
Contributor Author

Nope, that process does not exist. Adding the rm command to the entrypoint. Open for ideas if there is a better way to handle this.

mikkonie added a commit that referenced this issue Nov 13, 2024
@mikkonie
Copy link
Contributor Author

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant