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

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

book

Article ID: 72472

calendar_today

Updated On:

Products

Workload Automation Agent DSERIES- SERVER CA Workload Automation DE - System Agent (dSeries)

Issue/Introduction

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 is 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, 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.