Jobs fail with error TMOUT: is read only
search cancel

Jobs fail with error TMOUT: is read only

book

Article ID: 231958

calendar_today

Updated On:

Products

CA Workload Automation AE - System Agent (AutoSys)

Issue/Introduction

Jobs are failing with exit code 1

 

Agent spool's wrapper script has data like this:

#!/bin/sh
. /home/jobuser/.auto_profile

exec  /opt/autosys/SystemAgent/wa_agent/cybspawn 7 1:/home/jobuser 15 "AUTOSERV=SQE" "AUTO_JOB_NAME=test-firewall-job" "AUTORUN=46581960-1" "EWA_ENV_SRC_1=/home/jobuser/.auto_profile" "ESP_INTERACTIVE=true" "ESPOBJECT=16808.46581960_1/WAAE_WF0.1/MAIN" "ESPWOB=16808.46581960_1" "ESPAPPL=WAAE_WF0" "ESPAPGEN=1" "ESPAPPLMGR=filemon#JavaAgent#tcpip@SQE_SCH" "ESPAGENTDIR=/opt/autosys/SystemAgent/wa_agent" "ESPAGENT=wa_agent" "ESPAGENTPORT=7520" "ESPAGENTHASH=C6C713B37CF57233FEB6D4C18E98777E6D23881F" "ESPMSGQUEUE=/opt/autosys/SystemAgent/wa_agent/cybAgent.bin" /opt/autosys/SystemAgent/wa_agent/spool/SQE_SCH/MAIN/WAAE_WF0.1/16808.46581960_1.C6C713B37CF57233FEB6D4C18E98777E6D23881F.sh

 

 

contents of 16808.46581960_1
----------------------------------------------------------------
Output of messages for workload object 16808.46581960_1/WAAE_WF0.1/MAIN
Start date Mon Jan 10 13:50:01 2022
----------------------------------------------------------------
/opt/autosys/SystemAgent/wa_agent/spool/SQE_SCH/MAIN/WAAE_WF0.1/16808.46581960_1.C6C713B37CF57233FEB6D4C18E98777E6D23881F_wrapper.sh[2]: TMOUT: is read only

 

 

Environment

Release : 11.3.6

Component :

Cause

. /home/jobuser/.auto_profile    this profile file had a TMOUT variable that was being set to read only.  But was being used later on for updates.  So, the shell was rejecting as  TMOUT: is read only.  This lead to non zero exit.

Resolution

Fix the . /home/jobuser/.auto_profile  file to either comment out TMOUT  or not update it later on during rest of the scripts.