Script fails when accessing AWS S3 filesystem through ESP Workload Automation
search cancel

Script fails when accessing AWS S3 filesystem through ESP Workload Automation

book

Article ID: 260136

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Script fails when accessing a directory on an AWS S3 mounted filesystem. I can execute the commands manually with no issues. 

The filesystems are mounted via the /etc/fstab and normal mount /umount commands.

Script fails when executing commands in script. 

cd /<mypath>/$DIR*/
export cnt=$( find /<mypath>/########*/* -type f | wc -l )

 

Environment

Release : All supported releases of ESP Workload Automation

Cause

The jobs can run on one of three servers. The job scripts and logging are on a shared filesystem and only looking on one server you can see the output.

The script is referencing a filesystem that was setup on one of the three servers. The jobs failed when executed on the two servers that did not have the target filesystem mounted.  

Resolution

The filesystem was added to the other 2 servers and now executing on all 3 servers.