Can't push to new gitlab install

前端 未结 2 1275
渐次进展
渐次进展 2021-01-06 02:24

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

相关标签:
2条回答
  • 2021-01-06 02:57

    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.

    0 讨论(0)
  • 2021-01-06 03:13

    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.

    0 讨论(0)
提交回复
热议问题