Automic Workload Automation

 View Only
  • 1.  Unix job fails with error :: temp/OAGDFNUU.TXT(ReadFileAuthority())', error code '2', error description: 'No such file or directory

    Posted 25 days ago

    Unix job fails with error

    U02000009 Job 'JOBS.UNIX.NEW.4' with RunID '72756392' ended with return code '9'.
    20240919/083638.569 - U00029003 Cannot open file '/opt/uc4/V12.3.9/agents/bin/./../temp/OAGDFNUU.TXT(ReadFileAuthority())',
    error code '2', error description: 'No such file or directory

    Agent V12.3.9.

    this error occurs only when job executes on a particular user.

    when job executed with other users, it works fine on the same Agent.



  • 2.  RE: Unix job fails with error :: temp/OAGDFNUU.TXT(ReadFileAuthority())', error code '2', error description: 'No such file or directory

    Posted 24 days ago

    This sounds like a permission issue on your /opt/uc4/V12.3.9/agent/temp folder (or perhaps one of the parent folders).

    Does your user in question not have read access to that folder?

    Is your agent itself running as root?  (i.e., did you run the 'chown root ucxjlx6' and 'chmod 4755 ucxjlx6' commands when you installed the agent?)




  • 3.  RE: Unix job fails with error :: temp/OAGDFNUU.TXT(ReadFileAuthority())', error code '2', error description: 'No such file or directory

    Posted 24 days ago

    These were permissions for the folder.

    drwxr-xr-x 2 uc4 uc4       6 Jun 24  2022 resources
    drwxrwxrwx 2 uc4 uc4       6 Jun 24  2022 out
    drwxr-xr-x 2 uc4 uc4       6 Jun 24  2022 backup
    -rwxr-xr-x 1 uc4 uc4 7047680 Dec 15  2022 ucxjlx6_12.3.9.tar
    drwxr-xr-x 2 uc4 uc4     154 Mar  7  2023 bin
    drwxrwxrwx 2 uc4 uc4    4096 Sep 19 10:36 temp

    Agnet is running as root.

    root     57118     1  0 Sep19 ?        00:00:01 ./ucxjlx6

    The Job is failing with only one user, when executed with three other users, it's working fine.




  • 4.  RE: Unix job fails with error :: temp/OAGDFNUU.TXT(ReadFileAuthority())', error code '2', error description: 'No such file or directory

    Broadcom Employee
    Posted 21 days ago

    Hi,

    can you log on manually with the non-working user, cd into the temp folder and try to create and delete a test file using touch and rm? Does it work?

    Regards, Markus




  • 5.  RE: Unix job fails with error :: temp/OAGDFNUU.TXT(ReadFileAuthority())', error code '2', error description: 'No such file or directory

    Posted 19 days ago

    Are the users in different UserGroups?  Depending on your agent config, for the group your failing user is in, you might need to enable the privilege "FileEvents: Start without Login object specified".  



    ------------------------------
    Thanks,
    Doug
    ------------------------------



  • 6.  RE: Unix job fails with error :: temp/OAGDFNUU.TXT(ReadFileAuthority())', error code '2', error description: 'No such file or directory

    Posted 18 days ago

    Hello @Markus 

    I have tried to create and delete the file. it worked fine with working and non-working user.

    We were checking with user management team, if there might be some difference level of permissions among these users in server level




  • 7.  RE: Unix job fails with error :: temp/OAGDFNUU.TXT(ReadFileAuthority())', error code '2', error description: 'No such file or directory

    Broadcom Employee
    Posted 18 days ago

    Hi,

    is that agent running under a Automic Service Manager? If yes please make sure also the Service Manager gets restarted after any changes in permissions have been applied. This is required because the Agent inherits the environment from the ServiceManager.

    Please also check permissions on ACL level.

    Regards, Markus