How to resolve "GitLab: API is not accessible" when pushing to a new repository? -
we have locally-hosted enterprise edition of gitlab @ place of employment (currently @ v7.12.00-ee ceb5083). can create repository through gui without issue. when try add repository, error:
d:\ws\testing [master]> git push -u origin master counting objects: 3, done. writing objects: 100% (3/3), 219 bytes | 0 bytes/s, done. total 3 (delta 0), reused 0 (delta 0) remote: gitlab: api not accessible http://gitlab.ops.cld/duffrw/testing.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed push refs 'http://gitlab.ops.cld/duffrw/testing.git'
i see in /var/log/gitlab/gitlab-shell/gitlab-shell.log
file api isn't responding, , giving "internal server error":
e, [2015-07-22t16:05:51.812454 #15110] error -- : api call <post http://127.0.0.1:8080/api/v3/internal/allowed> failed: 500 => <{"message":"500 internal server error"}>.
a few questions... can go here? there must sort of service provider isn't running. why not? what's called? how start it?
i checked in /var/log/gitlab/nginx/gitlab_access.log
, found these lines, didn't see interesting:
172.31.201.164 - - [22/jul/2015:16:05:50 +0000] "get /duffrw/testing.git/info/refs?service=git-receive-pack http/1.1" 401 0 "-" "git/1.9.5.msysgit.1" 172.31.201.164 - - [22/jul/2015:16:05:50 +0000] "get /duffrw/testing.git/info/refs?service=git-receive-pack http/1.1" 401 0 "-" "git/1.9.5.msysgit.1" 172.31.201.164 - duffrw [22/jul/2015:16:05:51 +0000] "get /duffrw/testing.git/info/refs?service=git-receive-pack http/1.1" 200 179 "-" "git/1.9.5.msysgit.1" 172.31.201.164 - duffrw [22/jul/2015:16:05:51 +0000] "post /duffrw/testing.git/git-receive-pack http/1.1" 200 124 "-" "git/1.9.5.msysgit.1"
there aren't errors push of repository in /var/log/gitlab/nginx/gitlab_error.log
, /var/log/gitlab/nginx/error.log
empty.
what missing?
update:
using gitlab-ctl tail
command handy! revealed stack trace, sent gitlab , told me bug in 7.12.00. fixed in 7.13.00.
you have set correct url gitlab api in gitlab's configuration files.
as can see in gitlab-shell.log
api address set http://127.0.0.1:8080/
. if change default url gitlab running or if changed default port, have change it.
this parameter configurable in /opt/gitlab/embedded/service/gitlab-shell/config.yml
:
# url gitlab instance. used api calls. should end slash. gitlab_url: "http://127.0.0.1:3000"
this default value (as port 3000
default value in gitlab omnibus unicorn
). after updated you'll have run sudo gitlab-ctl restart
apply parameter.
Comments
Post a Comment