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

Duplicate logrotate entries #584

Closed
Konnichy opened this issue Apr 7, 2021 · 2 comments
Closed

Duplicate logrotate entries #584

Konnichy opened this issue Apr 7, 2021 · 2 comments

Comments

@Konnichy
Copy link

Konnichy commented Apr 7, 2021

Hello,

Using another project built on this one, I periodically received the following notification by email:

/etc/cron.daily/logrotate:
error: /etc/logrotate.conf:22 duplicate log entry for /var/log/wtmp
error: /etc/logrotate.conf:29 duplicate log entry for /var/log/btmp
run-parts: /etc/cron.daily/logrotate exited with return code 1

After investigating, I notice that duplicates are introduced by your logrotate.conf, installed at the end of syslog-ng.sh, which contains btmp and wtmp sections. This doubles with files /etc/logrotate.d/btmp and /etc/logrotate.d/wtmp, which are already installed by the official package, just one line above in your script.

@Theaxiom
Copy link
Collaborator

Theaxiom commented May 5, 2021

@Konnichy could you please submit a PR to resolve this? It would be greatly appreciate, thank you!

Konnichy pushed a commit to Konnichy/baseimage-docker that referenced this issue May 13, 2021
Theaxiom added a commit that referenced this issue May 14, 2021
(fix) Duplicate logrotate entries #584
@Theaxiom Theaxiom added this to the focal-1.1.0 milestone May 21, 2021
@Theaxiom
Copy link
Collaborator

This was resolved per PR.

ktreis added a commit to miriamtech/passenger-base that referenced this issue Jun 5, 2021
This has been fixed in baseimage-docker but not in passenger-docker yet.

phusion/baseimage-docker#584
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants