When executing jobs on a v24 or v26 UNIX/Linux agent that use the ATTACH_RES command with task-specific resources (AGENT_RESOURCES_TASK), the task fails.
The log shows a permission denied error when attempting to execute the attached binary,
line x: /agent_path/resources/<CLIENT_ID>/<RUNID>/unzip/unzip: Permission denied
At the same time, the following kind of errors appear in the agent log:
U02001095 Job '<RUNID>' requested task-specific ressource '<CLIENT_ID>:STORE.UNZIP_LINUX/UNZIP'.U02001097 Job '<RUNID>' use task-specific ressource '<CLIENT_ID>:STORE.UNZIP_LINUX/UNZIP' - '/agent_path/resources/<CLIENT_ID>/<RUNID>/unzip'....U02000009 Job '<JOB_NAME>' with RunID '<RUNID>' ended with return code '126'.U02000250 Task-specific Storage object '<CLIENT_ID>:STORE.UNZIP_LINUX/UNZIP' - '/agent_path/resources/<CLIENT_ID>/<RUNID>/unzip' removed.U02000482 Process '<PID>' for Run-Id '<RUNID>', ended with exit code: '126'. Possible error description: 'Permission problem or command is not an executable.'.
The same works fine with Agents Unix C-based (v21 or inferior).
This is a product defect (DE209345). In v24 and v26 agents, the permissions for task-specific resources are set to rw-r--r-- (644), which lacks the execution bit.
In v21, these were correctly set to rwx------ (700).
Change the ATTACH_RES syntax to use client-wide resources instead of task-specific ones. This forces the agent to use the &$AGENT_RESOURCES_CLIENT# path, which maintains correct permissions.
ATTACH_RES call in the job script.C (Client) instead of T (Task).&$AGENT_RESOURCES_CLIENT#.Example modification:
From: : ATTACH_RES "STORE.OBJECT", "BINARY", T &$AGENT_RESOURCES_TASK#/binary
To: : ATTACH_RES "STORE.OBJECT", "BINARY", C &$AGENT_RESOURCES_CLIENT#/binary
Update to a fix version listed below or a newer version if available.
Fix version:
Component(s): Agent Unix
Automation.Engine 24.4.6 - TBA
Automation.Engine 26.1.0 - TBA
Subscribe to this article to be updated on the fix status (See ).
Once a fix is officially released (Post-GA), see to download the latest agent version.
Public Title: ATTACH_RES: Task specific resources files do not have execute permissions.
Public Description: The execute permission was missing on task specific resource files.