Hi,

i finally get the gitlab website to work, but when i run 

sudo -u git -H /home/git/gitlab-shell/bin/check
i get the following error:

> Check GitLab API access: FAILED. code: 404
>


My system

> Hostname: "hostname" (the hostname is the part behind the @ if you connect 
> via SSH to your server "username@hostname", is it? )
> domain: "dyndnsuser.dyndnshoster.org" (i'm using a dyndns serive)
>
 

sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

> Checking Environment ...
>
> Git configured for git user? ... yes
>
> Checking Environment ... Finished
>
> Checking GitLab Shell ...
>
> GitLab Shell version >= 1.9.1 ? ... OK (1.9.1)
> Repo base directory exists? ... yes
> Repo base directory is a symlink? ... no
> Repo base owned by git:git? ... yes
> Repo base access is drwxrws---? ... yes
> update hook up-to-date? ... yes
> update hooks in repos are links: ...
> marcelGroup / test ... repository is empty
> Running /home/git/gitlab-shell/bin/check
> Check GitLab API access: FAILED. code: 404
> gitlab-shell self-check failed
>   Try fixing it:
>   Make sure GitLab is running;
>   Check the gitlab-shell configuration file:
>   sudo -u git -H editor /home/git/gitlab-shell/config.yml
>   Please fix the error above and rerun the checks.
>
> Checking GitLab Shell ... Finished
>
> Checking Sidekiq ...
>
> Running? ... yes
> Number of Sidekiq processes ... 1
>
> Checking Sidekiq ... Finished
>
> Checking LDAP ...
>
> LDAP is disabled in config/gitlab.yml
>
> Checking LDAP ... Finished
>
> Checking GitLab ...
>
> Database config exists? ... yes
> Database is SQLite ... no
> All migrations up? ... yes
> Database contains orphaned UsersGroups? ... no
> GitLab config exists? ... yes
> GitLab config outdated? ... no
> Log directory writable? ... yes
> Tmp directory writable? ... yes
> Init script exists? ... yes
> Init script up-to-date? ... yes
> projects have namespace: ...
> marcelGroup / test ... yes
> Projects have satellites? ...
> marcelGroup / test ... can't create, repository is empty
> Redis version >= 2.0.0? ... yes
> Your git bin path is "/usr/bin/git"
> Git version >= 1.7.10 ? ... yes (1.9.1)
>
> Checking GitLab ... Finished
>


sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production

> System information
> System:         Ubuntu 14.04
> Current User:   git
> Using RVM:      no
> Ruby Version:   2.1.1p76
> Gem Version:    2.2.2
> Bundler Version:1.6.2
> Rake Version:   10.1.1
>
> GitLab information
> Version:        6.7.5
> Revision:       00aa5c1
> Directory:      /home/git/gitlab
> DB Adapter:     mysql2
> URL:            http://$hostname.$domain
> HTTP Clone URL: http://$hostname$domain/some-project.git
> SSH Clone URL:  git@$hostname.$domain:some-project.git
> Using LDAP:     no
> Using Omniauth: no
>
> GitLab Shell
> Version:        1.9.1
> Repositories:   /home/git/repositories/
> Hooks:          /home/git/gitlab-shell/hooks/
> Git:            /usr/bin/git
>


I read that it has to do with the "/home/git/gitlab-shell/config.yml" 
gitlab_url
but i don't know what exactly to put there. i tried almost every 
combination of "with http:// or without" , "$hostname yes or no" , "$domain 
or ip" "slash at the end or not"



There is a Slash after $gitlab_url, so if $gitlab_url contains a slash, 
there are two slashes ! 
I can manually visit http://$domain/api/v3/internal/check , but when is set 
the gitlab_url to "http://$domain"; it fails reading.

nano /home/git/gitlab-shell/gitlab-shell.log 

> E, [2014-04-24T11:24:40.016039 #13077] ERROR -- : API call <GET $gitlab_url
> */*api/v3/internal/check> failed: 404 => <<html>
> <head><title>404 Not Found</title></head>
> <body bgcolor="white">
> <center><h1>404 Not Found</h1></center>
> <hr><center>nginx/1.4.6 (Ubuntu)</center>
> </body>
> </html>
> >.
>


I don't know if it's important, but i changed unicorn.rb

>  listen "/home/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 64
> ## commented by my
> #listen "127.0.0.1:8080", :tcp_nopush => true
>
> # nuke workers after 30 seconds instead of 60 seconds (the default)
> timeout 300
>



 





-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to