Control-M/Server is not sending emails via Java and U_CTMMAIL logs in the proclog directory show errors like the following:  CM_IPC_ce_command: CM_IPC_ce_command: CE request ..... failed. rc = 30

Version 5
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M/Server for UNIX and Microsoft Windows


    COMPONENT:

    Control-M/Server for UNIX and Microsoft Windows


    APPLIES TO:

    Control-M/Server 9.0.00 and above



    PROBLEM:

    Control-M/Server is not sending emails via Java and U_CTMMAIL logs in the proclog directory show errors like the following: 

    0911 06:13:50.074 U_CTMMAIL64619334: CM_IPC_ce_command: CM_IPC_ce_command: CE request [send "<CTM HOME>/ctm_server/tmp/50S7ma.50S7ma.64619334" "<CTM HOME>/ctm_server/ 
    tmp/50S7mb.50S7mb.64619334" "<CTM HOME>/ctm_server/tmp/NS_5701645697037898118.txt"] failed. rc = 30

    When enabling debug in java for email, the p_ctmce*.out log file will show java errors like below: 

    ===================== 
    [Fatal Error] :1:2053: An invalid XML character (Unicode: 0x16) was found in the element content of the document. 
    com.sun.mail.smtp.SMTPSendFailedException: [EOF] 
    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2108) 
    at com.sun.mail.smtp.SMTPTransport.data(SMTPTransport.java:1876) 

    javax.mail.MessagingException: Can't send command to SMTP host; 
    nested exception is: 
    java.net.SocketException: Invalid argument 
    at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2157) 
    at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2144) 
    =====================

    To enable debug in java for email to gather more details, do the following:

    1. On Control-M/Server, edit the file <CTM HOME>/ctm_server/data/mail.properties.default by removing the comment symbol in line:
        mail.debug=true
    2. Rename file mail.properties.default to mail.properties
    3. Then run command "dbglvl CE 4 0"
    4 Run command :  "dbglvl TR 4 0"
    5. Duplicate the email failure and in the ctm_server/proclog directory look for a file p_ctmce*.out , TRxxx files and search for the above errors
    6. Disable debug by reverting the changes in step 1 and 2, and run the command dbglvl ALL 0 0 


    CAUSE:

    Java mail is not properly handling the email request


    SOLUTION:

    Revert back to the older method for Control-M/Server to send email.

    1. Define the environment variable CTMS_USE_OLD_EMAIL and set to a value of Y

    Unix:
    Add the following line to $HOME/.cshrc of the Control-M/Server Unix user account.
    setenv CTMS_USE_OLD_EMAIL Y

    In Windows, please open the System Properties, define a new System Variable

    Consult your Unix or Windows System Administrator for further assistance as needed.

    2. Stop and restart Control-M/Server for the change to take effect.
    Consult your Control-M/Server System Administrator for further assistance.

    NOTE: By having Control-M/Server use the previous email option,  this will disable new mail capabilities (e.g. authentication) which were introduced in Control-M Server 9.0.00 Fix Pack 3


    Article Number:

    000158605


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles