Good afternoon all,
Backed up several old git repos and am in the process of adding them to a knew gitlab install. Install looks like the guide here https://github.c
As the same user as you are attempting to connect with do a:
ssh git@1.2.3.4 "ls /usr/local/project.git"
and make sure you see the repo.
Then add do a git clone:
git clone git@1.2.3.4:/usr/local/project.git
as the same user.
My suspicion is that you don't have the correct repo location.
This question a bit old, so I'm not sure if this is still helpful, but I was having the same problem and finally fixed it.
I found the solution in one of the comments in this bug report.
In /etc/nginx/sites-available/gitlab
, there's a line that, if you follow the helpful comments, will have your IP. Change it to listen to *:80
instead. It should look like this:
listen *:80 default_server; # e.g., listen 192.168.1.1:80;
Then, restart Gitlab and Nginx:
sudo service gitlab restart
sudo service nginx restart
That resolved the problem for me.
To confirm that this was the problem, I removed the *
and put in the IP, restarted and it broke again. Put it back, and it worked.
I'm not completely sure why this fixes it, but I hope this helps somebody out there; this was a very frustrating problem to deal with.