CA Workload Automation System Agent patch installation fails, cybspawn.bin, Text file busy.

Document ID : KB000021954
Last Modified Date : 14/02/2018
Show Technical Document Details

Problem: 

The agent patch fails to install and the The patch_install.log in agent installs directory reports:

An IOException occured. java.io.FileNotFoundException: /path/to/SystemAgent/WA_AGENT_AD1/cybspawn.bin (Text file busy)

Cause: 

The patch script tries to shut down the agent before applying the patch to CA Workload Automation System Agent. It is possible that the agent may not fully shutdown and may require manual intervention.

Resolution:

If an error occurs, run the following command as root

lsof  | grep -i cybspawn

If the command shows any open files, then use the kill command to kill the PID associated with cybspawn and cybAgent processes. Then try to re-install the agent. Restarting the system may be required if the cybspawn process does not get cleared.