Facing error while integrating with GITLAB

140 views
Skip to first unread message

Dollar Strike

unread,
Apr 7, 2017, 1:37:48 PM4/7/17
to PrimaTest Automation
As suggested in the documentation, I have clicked on 'use External Repository' checkbox and provided SSH/HTTPS remote repo URL. Also added SSH key in my remote repo. When I click on Enable Remote Repo, I am facing below issue

Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

Tried with both SSH & HTTP remote repo urls

Documentation followed: http://www.manula.com/manuals/primatest/redwoodhq/2.0/en/topic/git-source-control

Madhuri Medarametla

unread,
Apr 15, 2017, 7:30:52 AM4/15/17
to PrimaTest Automation
it's nt the issue regarding access rights but issu is about the path.
So just take the ssh cloned url from git directly and click on enable remote repo..it will work.

Dollar Strike

unread,
Apr 15, 2017, 8:19:25 AM4/15/17
to PrimaTest Automation
I am sure that I tried with SSH not only HTTPS. By the way we're using GITLAB not GITHUB. And it's running on 'HTTPS'. I have noticed that Redwood is generating same key all the time. It never changes?

dmi...@primatest.net

unread,
Apr 16, 2017, 12:20:32 PM4/16/17
to PrimaTest Automation
On Saturday, April 15, 2017 at 5:19:25 AM UTC-7, Dollar Strike wrote:
> I am sure that I tried with SSH not only HTTPS. By the way we're using GITLAB not GITHUB. And it's running on 'HTTPS'. I have noticed that Redwood is generating same key all the time. It never changes?

What ssh url did you try?

Dollar Strike

unread,
Apr 18, 2017, 2:45:47 AM4/18/17
to PrimaTest Automation
Sorry for delayed response, here's the SSH URL i tried 
External Repo URL: g...@gitlab.mycompany.com:root/Redwood_test.git

Gitlab was running on Https (TLS 1.3)

dmi...@primatest.net

unread,
Apr 19, 2017, 2:11:49 PM4/19/17
to PrimaTest Automation
Place ssh:// before the URL you are using.

Dollar Strike

unread,
May 8, 2017, 2:26:14 AM5/8/17
to PrimaTest Automation
Tried with ssh:// and also with https://
Here's the url I tried ssh://g...@gitlab.mycompany.com:root/TestRedwood.git
I have checked the logs

{"level":"error","message":"keyScan stderr: gitlab.mycompany.com:22 SSH-2.0-OpenSSH_5.3\n","timestamp":"2017-05-08T18:24:35.880Z"}
{"level":"error","message":"status stderr: fatal: A branch named 'admin' already exists.\n","timestamp":"2017-05-08T18:24:35.972Z"}
{"level":"error","message":"pushRemote stderr: GitLab: The project you were looking for could not be found.\n","timestamp":"2017-05-08T18:24:37.023Z"}
{"level":"error","message":"keyScan stderr: Bad port ''\n","timestamp":"2017-05-08T18:25:35.097Z"}
{"level":"error","message":"pushRemote stderr: ssh: Could not resolve hostname gitlab.mycompany.com:root: Name or service not known\r\n","timestamp":"2017-05-08T18:31:47.845Z"}
{"level":"error","message":"pushRemote stderr: fatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n","timestamp":"2017-05-08T18:31:47.846Z"}

With https://

{"level":"error","message":"pushRemote stderr: fatal: unable to access 'https://gitlab.mycompany.com/root/TestRedwood.git/': SSL certificate problem: unable to get local issuer certificate\n","timestamp":"2017-05-08T18:25:35.867Z"}

dmi...@primatest.net

unread,
May 8, 2017, 1:33:46 PM5/8/17
to PrimaTest Automation

Looks like connection error Could not resolve hostname gitlab.mycompany.com:root:

I'm pretty sure you need to replace "mycompany" with something valid.

siddarth pradhan

unread,
Apr 6, 2018, 8:54:58 AM4/6/18
to PrimaTest Automation
Hi 
where  can we see server log.

Thanks
Siddartha

siddarth pradhan

unread,
Apr 6, 2018, 8:56:20 AM4/6/18
to PrimaTest Automation

Hi 

where can we see server log for RedwoodHQ.

Thanks
Siddartha

Freddy Vega

unread,
Apr 9, 2018, 10:16:19 AM4/9/18
to PrimaTest Automation
In the "logs" directory in the folder where RHQ is installed.

owens...@hotmail.com

unread,
Apr 9, 2018, 4:39:47 PM4/9/18
to PrimaTest Automation
This sounds exactly to the issue I encountered trying to connect to bitbucket.

The issue I found is when attempts to create the knowhost file, it fails. What gets created is an empty file called knownhost. I had to hand edit the host file AND then mark it readonly to keep it from being recreated as an empty file.

siddarth pradhan

unread,
Apr 12, 2018, 6:35:01 AM4/12/18
to PrimaTest Automation
Hi 

I am facing similar issue , Please see my config file below ( change URL and email) :-


[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = C:\\Program Files\\RedwoodHQ\\public\\automationscripts\\RedWoodTest/master.gitt
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[user]
name = sddprd
[remote "remoteRepo"]
url = ssh://g...@gitlab.test.com:sddprd/RedwoodHQ.git
fetch = +refs/heads/*:refs/remotes/remoteRepo/*


Thanks
Siddartha
Reply all
Reply to author
Forward
0 new messages