Automic Workload Automation

 View Only
  • 1.  HTTPS request error : TCP connection reset by peer

    Posted Aug 22, 2023 02:28 AM
    Edited by Madhu Sudhan Gajavalli Aug 23, 2023 04:25 AM

    We are trying to pull from our git repository in a script triggered by Automic.

    When I connect with SSH and run the script as the application user( ABCD), it works correctly. When we run the script through Automic from a unix job with same user(ABCD), the connection times out or is terminated.  

     

    The error message we get is:
    "fatal: unable to access https://  TCP connection reset by peer"



  • 2.  RE: HTTPS request error : TCP connection reset by peer

    Posted Aug 22, 2023 03:06 AM

    hello Madhu Sudhan Gajavalli,

    to help you out with your problem we need a little bit more information about your use case. Which kind of script you run,  abstracted what do you want to do and so on. 

    Most of problems are due to environment settings. The script environment you run in dialog shell is per default not the same as in automic job. You have to take care of it.

    1. Check the Job Settings on the general UNIX tab of the job. In the dropdown field you can select for example Bourne-Shell on Linux with .profile so the same Environment settings are loaded you use in the dialog shell
    2. If that doesn't bring the desired result try to check your environment settings in dialog and compare it with the environment of automic job. 
    3. Test your ssh connection before you use it : 

      ssh -Tvvv user@servername

    Hope that helps

    Best Regards 

    Andrzej Golaszewski




  • 3.  RE: HTTPS request error : TCP connection reset by peer

    Posted Aug 23, 2023 05:05 AM

    Hello Andrzej Golaszewski,

    Updated the UNIX job settings to Bourne-Shell on Linux with .profile, it worked .

    Thank you for the quick response.

    Regards,

    Madhu.