CA WA Agent gets java.io.FileNotFoundException: log/<some_agent>.log and The requested resource is busy

Document ID : KB000072472
Last Modified Date : 01/03/2018
Show Technical Document Details
Issue:
The CA WA Agent on i5/OS (aka AS/400) job may fail with error "java.io.FileNotFoundException: log/<agent log>.log (The requested resource is busy.)".
Environment:
CA WA System Agent for i5/OS
CA WA System Agent for Windows OS
Cause:
The CA Agent needs write access to logs.  It will update the logs with various messages.  Certain backup utilities or other similar processes may lock the agent log directory and files.  This will cause the CA Agent to throw an I/O error.
Resolution:
Set the backup so that it does not lock the files.  If that s not possible, then you may skip the backing of logs.  The agent logs are rotated frequently.  They are not needed to restore the agent.  The agent creates new logs when it is started/restarted.
If the agent gets the I/O error, the fix the issue and then restart the agent.
Additional Information:
Note:  The I/O error may also indicate that the hard disk may have other issues such as space or requires maintenance.