question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] logrotate config waagent-extn.logrotate conflict with azure-lad

See original GitHub issue

/etc/logrotate.d/waagent-extn.logrotate which is installed by WALinuxAgent 2.2.46 conflict with /etc/logrotate.d/azure-lad which is installed by lad-mdsd-1.5.109-LADmaster.101.x86_64.

Distro and WALinuxAgent details (please complete the following information):

  • Any Distro with 2.2.46

Additional context The rotate file was merged by #1740

Log file attached

# logrotate /etc/logrotate.conf
error: waagent-extn.logrotate:1 duplicate log entry for /var/log/azure/Microsoft.Azure.Diagnostics.LinuxDiagnostic/extension.log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
johan-chassaingcommented, Dec 29, 2020

Hi there!

I think that I found the same issue:

# /usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.conf
error: waagent-extn.logrotate:1 duplicate log entry for /var/log/azure/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux/extension.log
error: found error in file waagent-extn.logrotate, skipping

It’s looks like, the waagent try to handle the log rotation for omsagent logs but omsagent has already a logrorate configuration:

omsagent-02463909-facf-4e68-85af-10fa3f9a193c:/var/log/azure/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux/watcher.log {
omsagent-02463909-facf-4e68-85af-10fa3f9a193c:/var/log/azure/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux/extension.log {
waagent-extn.logrotate:/var/log/azure/*/*.log

Is waagent is legitimate to rotate the logs of other plugin/extension which are not populated by waagent ?

1reaction
narrietacommented, Mar 11, 2021

Fixed by #2143

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure linux VM error: waagent-extn.logrotate:1 - Microsoft Q&A
After a minor Linux OS version upgrade we have noticed a problem with the following command: logrotate /etc/logrotate.conf error: ...
Read more >
Logrotate - Is there a conflict? - Server Fault
There is no conflict, but there is a problem. Your config will cause auth.log to be rotated daily, without notifying rsyslog.
Read more >
1992155 – consider splitting out logrotate config and ...
Bug 1992155 - consider splitting out logrotate config and dependency in a subpackage ... for rotating logs (where the default config may conflict...
Read more >
error with logrotate that it has insecure permissions | Support
Set the "su" directive in the config file to tell logrotate which user/group should be used for rotation. When mysql has been installed,...
Read more >
How to Manage Log Files Using Logrotate - Datadog
In this case, logrotate will only run the rsync script once, after all Apache access and error logs are rotated. This configuration ensures...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found