Control-M/Agent on Linux fails to execute jobs with the message from Agent "Failed to Attach BE Library". - INCLUDES VIDEO
Knowledge Article
Control-M/Agent on Linux fails to execute jobs with the message from Agent "Failed to Attach BE Library". - INCLUDES VIDEO
Control-M/Agent on Linux fails to execute jobs with the message from Agent "Failed to Attach BE Library".
Control-M/Agent for UNIX and Microsoft Windows
Control-M/Agent for UNIX and Microsoft Windows
Control-M/Agent for UNIX and Microsoft Windows
When running a job, the job fails. When looking at the AS logs in the <Agent Home>/ctm/proclog directory, the following errors are visible: ... 0722 15:41:52:560 AS:OS_COMM_sess_write: fd='5' , mesg='0100792014072215415210CMX RT00138000010000000115txdot4avlerpftp14TXDOT4APERPWSS02OS000702310599999C0002e000073N11176Failed to Attach BE Library /opt/bmc/ctmag8/ctm/exe//lib_BEUNIX.so, error:'DLL '/opt/bmc/ctmag8/ctm/exe//lib_BEUNIX.so' can not be loaded, error <libstdc++.so.5: cannot open s'101010000020140722154152000000' ... Or when trying to add Run As user in Control-M Configuration Manager, why do we see: Error Code CTM6820 "Check Run as User credentials Failed. Control-M/Server is not authorized."
These errors indicate versions (64bit or 32bit) of the libstdc++.so.5 library are missing. To check which one is missing, issue the two following commands and compare their output:
Check if the 32bit version of libstdc++.so.5 is missing:
ls -al /usr/lib | grep libstdc++
Check if the 64bit version of libstdc++.so.5 is missing:
ls -al /usr/lib64 | grep libstdc++
One or both outputs will be missing these or similar lines from their output (indicating that the libstdc++.so.5 library is not installed):
lrwxrwxrwx. 1 root root 18 Jun 9 2011 libstdc++.so.5 -> libstdc++.so.5.0.7 -rwxr-xr-x. 1 root root 825480 Jun 28 2010 libstdc++.so.5.0.7
This error indicates versions (64bit or 32bit) of the libstdc++.so.5 library are missing
To resolve this issue, install both the 32bit and 64bit versions of the libstdc++.so.5 library with the following command as root:
It may say one of the libraries is already installed with the latest version. Disregard that error and retest the Control-M Agent by sending it a job.
Additional Information:
For Control-M/Agent 8.0.00 and lower, by default, the 64bit installer installs the 32bit version of the Control-M/Agent. Post installation, when the agent begins to receive jobs, it will complain about missing 32bit libraries if they're not installed, because the Control-M/Agent process is actually a 32bit process.
An issue to consider is that on Linux, most of the Plug-Ins with a version lower than 8, will only work with a 32bit Control-M/Agent. Please see KA 000016983 for a list of version 8 plug-ins that are compatible with a 64 bit Agent. If there is a need for a 64bit Control-M/Agent installation (not possible to install 32bit compatibility libraries, etc.), please follow this solution:
To reinstall the Control-M/Agent and force it to be 64bit, please execute the following solution:
Before installation, execute the following command (from the user to which you wish to install the Control-M/Agent): setenv INSTALL_AGENT_LINUX_X86_64 Y
Install the Control-M/Agent as explained in the Installation Guide.
As of Control-M/Agent 9.0.00, the default is to install the 64bit agent. If the 32bit agent install is required, the following instructions can be used:
Before installation, execute the following command (from the user to which you wish to install the Control-M/Agent): setenv INSTALL_AGENT_LINUX_X86_64 N
Install the Control-M/Agent as explained in the Installation Guide.