Automic Workload Automation

Expand all | Collapse all

Unix job Aborted : Return code 205

Jump to Best Answer
  • 1.  Unix job Aborted : Return code 205

    Posted 04-11-2018 06:46 AM
      |   view attached
    Hi All,

    We are getting the following error while running a UNIX job. The job is running through AD user and surprisingly it is always looking for user home directory on the target host. I am curious to know why Automic requires user home directory and I see it will not write any files onto it. 

    20180409/120049.617 - U02000005 Job 'JOBS.UNIX.NEW.2' with RunID '1017751' started.
    20180409/120049.715 - U02003041 Invalid 'chdir()' call, file name '/home/betth02'. Error code: ('2' - 'No such file or directory')
    20180409/120049.716 - U02000003 Job 'JOBS.UNIX.NEW.2' started with RunID '1017751'.
    20180409/120049.716 - U02000009 Job 'JOBS.UNIX.NEW.2' with RunID '1017751' ended with return code '205'.
    20180409/120051.796 - U00029000 Report '1016565' for file '/fs0/od/automic/agents/linux/bin/./../out/OAACFXOH.TXT' has been started.
    20180409/120051.796 - U00029001 Report '1016565' ended normally.

    Note: The agent is running by root as per the installation docs and the authentication method used is PAM. I believe there is no login issues, instead it is looking for home directory. 

    Can some please help me with this.

    thanks in advance,
    Srujan.

    Attachment(s)



  • 2.  Unix job Aborted : Return code 205
    Best Answer

    Posted 04-11-2018 06:57 AM
    Hi.

    Let me say right ahead that I will not be able to answer any questions regarding our own AD/PAM integration, but:

    I have a UNIX user that's also coupled to an AD user, and it's also made available via PAM. But that user has a home directory, which exists as a proper directory (on NFS). I would also believe that having a home directory of some sort is essential to a UNIX shell (which is what's ultimately involved when executing UNIX jobs).

    Thus, have you considered creating /home/betth02, or did you inquire with your AD integration product whether creating a home directory is possibly a requirement you may have missed?

    Just my $0.02 ...


  • 3.  Unix job Aborted : Return code 205

    Posted 04-11-2018 07:19 AM
    Carsten_Schmitz_7883

    Thanks for your reply. I created user home directory manually, re-executed the job and it worked fine now. I understand that home directory is a must for UNIX shell. Apparently, whenever user login manually through ssh, it would automatically create home directory if it's not present. So my question is why can't automic create home dir just like sshd.

    Thanks.
    Srujan.


  • 4.  Unix job Aborted : Return code 205

    Posted 04-11-2018 07:22 AM
    Carsten_Schmitz_7883

    manually through ssh, it would automatically create home directory if it's not present. So my question is why can't automic create home dir just like sshd.

    No, a normal sshd does not automatically create any home directories. Why the AD product does not create any home directories is a question that would have to be addressed to the maker of that product, if they do claim to automatically create them.

    (edit: if an ssh login on your site automatically creates a home directory, then that is some sort of custom solution on your site alone, possibly something in /etc/profile or somesuch. Therein probably lies the answer why it's not executed via PAM).

    But glad to hear that it works now, just create home directories for your users and things should be fine :)

    Best regards,
    Carsten


  • 5.  Unix job Aborted : Return code 205

    Posted 04-11-2018 07:27 AM
    Do we need to change anything in /etc//pam.d/ucxjlx6. Currently the file looks like this.
    ------------------------------------
          /etc/pam.d/ucxjlx6
    ------------------------------------
    #%PAM-1.0
    auth          include      system-auth
    account     include      system-auth
    password  include      system-auth
    -------------------------------------

    And to my best knowledge, when user tries to so ssh, it would authenticate using the sshd pam file located in /etc/pam.d/sshd and authenticate the user based on the order of steps written in sshd. Hence, it seems, we need to make some changes in our agent pam file to create home dir if its not found. Otherwise, shall I give it a try to copy paste the content from sshd to ucxjl6?

    Thanks,
    Srujan.


  • 6.  Unix job Aborted : Return code 205

    Posted 04-11-2018 07:29 AM
    Hi Srujan,

    sorry, can't help you with this. This is beyond my knowledge, I've never looked into PAM that much.

    Best regards,
    Carsten