we are experimenting CI/CD with gitlab. We have gitlab running at custom port and gitlab runner configured from windows machine. While running jobs gitlab runner is failing with following error .
Cloning into ‘C:/TH/builds/01522b92/0/VisualDSS/Project1’…
fatal: repository ‘http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@BANWOR451/VisualDSS/Project1.git/’ not found
The system cannot find the path specified.
Checking out 52f270ff as master…
fatal: Not a git repository (or any of the parent directories): .git
ERROR: Job failed: exit status 128
I am running gitlab on banwor451: 22280
How to configure gitlab runner to use port 22280
Thanks for your attention
1 Like
hello, at the moment you register the runner it will place the correct url for gitlab host, including the port.
Try search file config.toml
For linux path /etc/gitlab-runner/config.toml
Thank you Ariel,
I registered with port , I confirm config.toml has proper values.
Perhaps I am missing something
concurrent = 1
check_interval = 0
[[runners]]
name = “VPS-VCP”
url = “http://BANWOR451:22280/”
token = “f2cdccbedd21f8e17149b6a51903bb”
executor = “shell”
[runners.cache]
I added clone_url and it works now.
url = “http://BANWOR451:22280/”
clone_url = “http://BANWOR451:22280/”
Thank you for sharing the solution.
Did you do that in the config.toml file?
if you do a git clone from any other conputer or session does it have the same behavior?
Can you try changing it in the gitlab.rb file?
and find the external_url key and place the value.
Otherwise, the solution will only be for the runners.
I confirm that issue is for Runners only, we are able to clone from any other computers. no issues at all,
But i will follow your suggestion of gitlab.rb , to check the behavior.
Thanks again.
Also check the file /etc/gitlab/config.toml in the runner