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

Logrotate fails to rotate logs #538

Open
gboutry opened this issue Dec 5, 2024 · 1 comment
Open

Logrotate fails to rotate logs #538

gboutry opened this issue Dec 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gboutry
Copy link

gboutry commented Dec 5, 2024

Steps to reproduce

From what happened in the user environment, after accelerating status hooks, mysql charm started to fail to log rotate

  1. juju model-config update-status-hook-interval=30s

Expected behavior

Having faster status hook should not fail the

Actual behavior

Charm fails again and again to logrotate

Versions

mysql-k8s: 8.0/stable 180

Juju CLI: 3.6.0

Log output

Juju debug log:

unit-mysql-0: 13:43:13 ERROR unit.mysql/0.juju-log Failed command: commands=logrotate -f /etc/logrotate.d/flush_mysql_logs, user=None, group=None
unit-mysql-0: 13:43:13 WARNING unit.mysql/0.juju-log Failed to rotate MySQL logs
juju ssh -m openstack --container mysql mysql/0 bash
root@mysql-0:/# logrotate -f /etc/logrotate.d/flush_mysql_logs
error: destination /var/log/mysql/archive_error/error.log-20241205_1344 already exists, skipping rotation
error: destination /var/log/mysql/archive_general/general.log-20241205_1344 already exists, skipping rotation
error: destination /var/log/mysql/archive_audit/audit.log-20241205_1344 already exists, skipping rotation

^C

Additional context

Deleting the files (log lost then) allowed the charm to resume operations.

@gboutry gboutry added the bug Something isn't working label Dec 5, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/DPE-6156.

This message was autogenerated

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