Automic Workload Automation

 View Only

Expand all | Collapse all

Email with attachment and agent linux 24.4

  • 1.  Email with attachment and agent linux 24.4

    Posted Oct 14, 2025 08:07 AM

    Hello

    on the same server we have 2 versions of one automation:

           - 12.3

           - and 24.4

    in the 12.3 version we managed to use call object or send_mail command and to push an attachement file

    (linux is :   SLES    VERSION="15-SP5")

    but it does not work any more with 24.4 :

    the error message is 
    priority=null, boundary=null, firstFailedAttachment=/opt/OA/agents/linux/temp/HEURtoto.ACC, attachmentErrorMessage=canRead()==false, isContentTypeHTML=false, charset=UTF-8, mailProtocol=PLAIN, certName=, certDate=2025-04-01 10:24:53]'.
    20251014/134009.511 - U00050013 Error when reading attachment file '/opt/OA/agents/linux/temp/HEURtoto.ACC' error code: 'canRead()==false', error description: 'Cannot read file'

    of course the file has all the permission (777) ...
    I changed the place of the file (for instance /tmp) ...

    and nothings works with OA objecs/command in 24.4

    any idea please ???



    thanks

    marc Broussard

    Equans France



    -------------------------------------------


  • 2.  RE: Email with attachment and agent linux 24.4

    Broadcom Employee
    Posted Oct 23, 2025 05:53 AM
    Edited by Bogdan Mustiata Oct 24, 2025 08:19 AM

    Hi Marc,

    Please look in the full path hierarchy if the user that the agent impersonates can enter the folder (`execute` for others should be present in all the hierarchy)

    Save the following as "checkperm.sh":

    #!/usr/bin/env bash
    
    if [[ "$1" == "" ]]; then
        echo "you need to pass an absolute path to display the permissions"
        exit 1
    fi # [[ "$1" == "" ]]
    
    f="$1"
    
    while [[ "$f" != "" ]]; do
        ls -ld $f
    
        if [[ "$f" == "/" ]]; then
            break
        fi # [[ "$f" == "/" ]]
    
        f=$(dirname $f)
    done # [[ "$f" != "" ]]
    

    Then:

    ./checkperm.sh /opt/OA/agents/linux/temp/HEURtoto.ACC