I\'ve installed GitLab on an Ubuntu Server. Everything seems to work fine except I can\'t push/pull/clone to/from the server.
When I push I get the general error message
To be more precise regarding the accepted answer ("answered Apr 6 at 17:23" and "edited Jul 21 at 10:07" by "Joakim Engstrom"):
You're most probably in the situation where you updated Gitlab to fit your own context path (that's accessing it from http://localhost/
and not http://localhost
).
In the how-tos for this, is not mentionned to also modify this gitlab-shell configuration file:
// logout any Gitlab open session, stop your Gitlab service, and your possible third-party webserver first
$ sudo service apache2 stop
$ sudo service gitlab stop
// perform the modification that fixes it, if you indeed configured Gitlab to be accessed with a custom context path
$ sudo -u git -H nano ~git/gitlab-shell/config.yml
# Url to gitlab instance. Used for api calls. Should end with a slash.
-gitlab_url: "http://localhost/"
+gitlab_url: "http://localhost//"
// restart services
$ sudo service gitlab start
$ sudo service apache2 start
// Try to push again from your particular Gitlab user local repository, to the Gitlab remote repository
$ cd
$ sudo -u -H git push -u origin master
Counting objects: 3202, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3115/3115), done.
Writing objects: 100% (3202/3202), 11.56 MiB | 5.34 MiB/s, done.
Total 3202 (delta 609), reused 0 (delta 0)
To `git@:/.git`
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
$
About "similar to stackoverflow.com/questions/13071234/… – Paul Verest Jul 18 at 6:20" (Can't push to new gitlab install):
No, this is not the same issue in this page topic.