1

In Katalon , I am trying to clone a project from Gitlab. I am getting the below error. I am relatively new to using Katalon. Please help. I have added the necessary SSH keys to Git and Katalon.

Steps followed:

In Katalon Studio, click on Clone Project Paste the Repository URL which was copied from GitLab using Clone with SSH. When I click on Next, getting the error as seen in screenshot attached. Error Details:

An error occurred when trying to contact XXXXX@gitlab.com:.XXXX...... Possible Reasons: Incorrect URL No network connection (eg wrong proxy settings)

enter image description here

torek
  • 448,244
  • 59
  • 642
  • 775
Swarna
  • 11
  • 3
  • Can you ping that host (gitlab.com) from that box that you are trying to clone from? If you can't ping, it _might_ be ok, as long as you get an IP in the output. But also, it looks like you are using ssh. Can you test connecting to it with ssh? If _not_, then you might have to use https instead of ssh (possibly through a proxy). – eftshift0 Oct 10 '22 at 06:57

2 Answers2

0

click on Clone Project Paste the Repository URL which was copied from Github

XXXXX@gitlab.com:.XXXX

First, this looks like a gitlab.com URL, not a GitHub one.

Second, in both cases, the XXXX@ must be git@

git@github.com:me/myRepo
git@gitlab.com:me/myRepo

The remote SSH user is always git. Your private/public key will allow GitHub or GitLab to authenticate you.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Yes, its gitlab.. sorry for the confusion... I am able to clone the project using Gitbash successfully to my local... but using Katalon I am facing issue.. the URL starts with git@ . – Swarna Oct 10 '22 at 13:53
  • @Swarna Is Katalon running on the same computer as the one where you execute git bash? And using the same user account? not "root"? (On which OS are you, by the way?) – VonC Oct 10 '22 at 14:29
  • Yes, same system...same user account, this is on Windows – Swarna Oct 11 '22 at 05:25
  • @Swarna Make sure your Katalon process is running as your regular account, inheriting the same environment variables as your regular CMD. If it is running as "Administrator" or "System Account", that would not work, as it would not access your SSH keys in your `%USERPROFILE%\.ssh` folder. Also: define a user environment variable named `HOME` set to `%USERPROFILE%` – VonC Oct 11 '22 at 06:30
0

If your using katalon studio Trial version then you cannot add private repository via katalon's Studio Git Plugin. only Public Repo's can be added.

alternative is using Git SCM/Git Bash via command prompt.

But if you have enterprise licensed KS then it will work for public/private repo's.

Rakesh
  • 118
  • 1
  • 9