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.
Original Message:
Sent: Aug 22, 2023 03:06 AM
From: Andrzej Golaszewski
Subject: HTTPS request error : TCP connection reset by peer
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.
- 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
- 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.
- Test your ssh connection before you use it :
ssh -Tvvv user@servername
Hope that helps
Best Regards
Andrzej Golaszewski
Original Message:
Sent: Aug 22, 2023 02:27 AM
From: Madhu Sudhan Gajavalli
Subject: HTTPS request error : TCP connection reset by peer
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 'NetsMS@dev.azure.com/NetsMS/NetsDataSuite/_git/NetsDataSuite/%27:" rel="noreferrer noopener" title="https://netsms@dev.azure.com/netsms/netsdatasuite/_git/netsdatasuite/%27:" target="_blank">https://': TCP connection reset by peer"