2013-09-10 12 views

risposta

8

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.

0

Disattivare selinux.

setenforce 0 

impostato anche SELINUX a permissive in/etc/selinux/config.

Poi vai upvote questa risposta: https://stackoverflow.com/a/24212432/162070

+0

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

0

Controllare i permisions conto. Solo il proprietario può impegnarsi nel ramo principale. Se il tuo account è di tipo Developer devi creare un nuovo ramo e il membro che è proprietario fonderà il tuo ramo con il ramo principale.

Problemi correlati