During the installation of an AutoSys Agent on UNIX/Linux, the following error occurs:
[CAUAJM_W_116414] Unable to install or upgrade the "WA_AGENT" agent. The agent
installer return code is "255".
From the installation log file:
Custom Action: cybermation.iainstaller.library.CybFatalLinuxService
Status: FATAL ERROR
Additional Notes: FATAL ERROR - class cybermation.iainstaller.library.CybFatalLinuxService FatalInstallException: Service could not be registered. A service with the same Agent name 'WA_AGENT' already exists. The agent cannot be registered to start automatically at system startup. Disable the automatic startup or change the Agent name to be unique.
Release : 12.0
Component : CA Workload Automation AE (AutoSys)
This error can occur when the Agent directory has been deleted or moved manually, but the Agent startup script still exist in '/etc/init.d' and the softlinks in /etc/rc.d/rc*.d are also still present:
ls -l /etc/init.d/waae_agent*
-rwxr-xr-x. 1 root root 6230 Sep 15 2020 waae_agent-WA_AGENT
ls -l /etc/rc.d/rc5.d/waae_agent*
lrwxrwxrwx. 1 root root 29 Sep 15 2020 S11waae_agent-WA_AGENT -> ../init.d/waae_agent-WA_AGENT
ls -l /etc/rc.d/rc4.d/waae_agent*
lrwxrwxrwx. 1 root root 29 Sep 15 2020 K89waae_agent-WA_AGENT -> ../init.d/waae_agent-WA_AGENT
ls -l /etc/rc.d/rc3.d/waae_agent*
lrwxrwxrwx. 1 root root 29 Sep 15 2020 S11waae_agent-WA_AGENT -> ../init.d/waae_agent-WA_AGENT
ls -l /etc/rc.d/rc6.d/waae_agent*
lrwxrwxrwx. 1 root root 29 Sep 15 2020 K89waae_agent-WA_AGENT -> ../init.d/waae_agent-WA_AGENT
ls -l /etc/rc.d/rc2.d/waae_agent*
lrwxrwxrwx. 1 root root 29 Sep 15 2020 K89waae_agent-WA_AGENT -> ../init.d/waae_agent-WA_AGENT
ls -l /etc/rc.d/rc0.d/waae_agent*
lrwxrwxrwx. 1 root root 29 Sep 15 2020 K89waae_agent-WA_AGENT -> ../init.d/waae_agent-WA_AGENT
The startup script from '/etc/init.d' and the softlinks in '/etc/rc.d/rc*.d' can be manually deleted.
Once done, the installer will not detect an existing WA_AGENT service anymore and will install the Agent and created new files in /etc/