Jump to: navigation, search
MithiWiki Home > ConnectXf Home > ConnectXf Administration > Configuration > Logs are not rotating


Troubleshooting Icon.png
Troubleshooting
Product ConnectXf
Version 3.10
Applies to Administrators
Level Advanced





Logs are not rotating

Symptom

  • It is observed that the logs are growing continuously.
  • The space occupied by the /var/log folder is also growing continuously.

Investigations

  • Executing the following command returns an error:
/mithi/mcs/bin/agent_mcs_logrotate.sh
  • Executing the following commands also returns an error
logrotate /mithi/mcs/modules/mithi-bl/binconf/mithi-bl.logrotate.sh
  • The error can be either of the following two lines:
error: bad top line in state file /var/lib/logrotate.status
error: bad line 7 in state file /var/lib/logrotate.status

Cause

The file /var/lib/logrotate.status is corrupt.

Resolution

echo "logrotate state -- version 2" > /var/lib/logrotate.status
/mithi/mcs/bin/agent_mcs_logrotate.sh	
head /var/log/maillog
(Above command should show the todays date in log rotation logs.)