Quando
sudo -u git -H /home/git/gitlab-shell/bin/check
ho ottenuto:
Check GitLab API access: FAILED. code: 503
Check directories and files:
/home/git/repositories: OK
/home/git/.ssh/authorized_keys: OK
Nel gitlab-shell.log ho trovato una risposta html che ha detto:
ERROR
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: http://my.gitlab.eu//api/v3/internal/check
Unable to determine IP address from host name my.gitlab.eu
The DNS server returned:
Name Error: The domain name does not exist. This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.
Your cache administrator is [email protected]
ho modificato il file di configurazione di gitlab-shell
/home/git/gitlab-shell# sudo -u git -H editor config.yml
come questo
# Url to gitlab instance. Used for api calls. Should end with a slash.
#gitlab_url: "http://my.gitlab.eu/"
gitlab_url: "http://123.xxx.xxx.xx"
La fine barra porta obviosly ad una doppia barra nella chiamata API, nonostante il suggerimento nel commento. Nel mio caso il dns non poteva essere risolto. Quindi ora uso l'indirizzo IP e funziona.
Perché il downvote senza un commento? Ho avuto il problema esatto e questo lo ha risolto. Potrebbe non aiutare l'OP, potrebbe aiutare qualcun altro. O mi sbaglio? – Zlatko