We are noticing the following error in our Agent's Execution Log file:
The system has stopped writing to the log file because the maximum number of rollover files <0> has been exceeded. This safeguard protects the overcapacity of disk space by this agent.
You can increase the logs capacity by modifying a system parameter value – please refer to our documentation for further information
Release : 6.7
These files are the Execution Logs of a deployment and configuring their settings can be found under the "Execution Log Control" section - available in the following page: Debug Deployments
Note:
The agent must be stopped and started in order for its updated settings to be picked up.
Shortly after starting the agent and sending it a job we can see the following messages in the logs/nolio_all.log file (confirming the new settings):
INFO (com.nolio.platform.shared.log.conf.ApplicationLogConfig:53) - Setting maxBackupIndex to: 5
INFO (com.nolio.platform.shared.log.conf.ApplicationLogConfig:63) - Setting maxFileSize to: 3MB
INFO (com.nolio.platform.shared.log.conf.ApplicationLogConfig:73) - Setting maxFolderSize to: 50MB
INFO (com.nolio.platform.shared.log.conf.ApplicationLogConfig:83) - Setting schedulerPeriod to: 2
INFO (com.nolio.platform.shared.log.conf.ApplicationLogConfig:92) - Setting enableLog to: true
INFO (com.nolio.platform.shared.log.conf.ApplicationLogConfig:105) - Setting enableLog to: 20
The following messages are also logged in the nolio_all.log when it detects the maxFolderSize has been breached:
DEBUG (com.nolio.platform.shared.log.ApplicationLogsPurge:40) - size of applicationLogs folder is: 56227964
DEBUG (com.nolio.platform.shared.log.ApplicationLogsPurge:64) - size of applicationLogs folder after delete jobId: 1638400 is 56224294
DEBUG (com.nolio.platform.shared.log.ApplicationLogsPurge:64) - size of applicationLogs folder after delete jobId: 1638401 is 55972110
DEBUG (com.nolio.platform.shared.log.ApplicationLogsPurge:64) - size of applicationLogs folder after delete jobId: 1638402 is 55937490
DEBUG (com.nolio.platform.shared.log.ApplicationLogsPurge:64) - size of applicationLogs folder after delete jobId: 1638403 is 55285101
DEBUG (com.nolio.platform.shared.log.ApplicationLogsPurge:75) - reset files count to zero
DEBUG (com.nolio.platform.shared.log.ApplicationLogsPurge:77) - end Scheduler with files count equals:0
If it eventually reaches the limits imposed by the updated settings, it will show a message like this:
> cat Agent_gstew-rhel81_Job_1638405_JobServerID_1638405.last.log
The system has stopped writing to the log file because the maximum number of rollover files <5> has been exceeded. This safeguard protects the overcapacity of disk space by this agent.
You can increase the logs capacity by modifying a system parameter value – please refer to our documentation for further information
If you are still seeing a message indicating the "rollover files <oldValue> has been exceeded" after updating your config to use 3 backup index files, this suggests that the settings had not been detected yet. Please stop and start the agent - not restart.