GitLab on Apache/Passenger + SubURI("/gitlab") = relative url : "localhost/gitlab/gitlab"
Created by: Murazaki
I followed the "installation.md" (7-5-stable) and modified the relative url variables like explained in config/application.rb.
http://www.domain.com/gitlab gives me "Not Found:" http://www.domain.com/gitlab/gitlab works.
vhost config :
<VirtualHost *:80>
ServerName www.domain.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://www.domain.com/$1 [L,R]
RailsEnv production
DocumentRoot /website_folder
<Directory /website_folder>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Alias /gitlab /website_folder/gitlab/public
<Location /gitlab>
PassengerBaseURI /gitlab
PassengerAppRoot /website_folder/gitlab
PassengerMinInstances 1
</Location>
<Directory /website_folder/gitlab/public>
Options -MultiViews
<IfVersion < 2.3>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
gitlab env info :
System information
System: Ubuntu 12.04
Current User: user
Using RVM: yes
RVM Version: 1.6.9
Ruby Version: 2.1.4p265
Gem Version: 2.2.2
Bundler Version:1.7.4
Rake Version: 10.3.2
Sidekiq Version:2.17.0
GitLab information
Version: 7.5.1
Revision: 36679b5
Directory: /website_folder/gitlab
DB Adapter: mysql2
URL: http://www.domain.com
HTTP Clone URL: http://www.domain.com/some-project.git
SSH Clone URL: [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 2.2.0
Repositories: /website_folder/repositories/
Hooks: /website_folder/gitlab-shell/hooks/
Git: /usr/bin/git
gitlab check : (gitlab-shell can't connect to the API at /gitlab)
Checking Environment ...
Git configured for user user? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 2.2.0 ? ... OK (2.2.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by user:user? ... yes
Repo base access is drwxrws---? ... yes
Satellites access is drwxr-x---? ... yes
hooks directories in repos are links: ... can't check, you have no projects
Running /website_folder/gitlab-shell/bin/check
Check GitLab API access: /usr/lib/ruby/2.1.0/net/http.rb:879:in `initialize': Connection timed out - connect(2) for "www.domain.com" port 80 (Errno::ETIMEDOUT)
from /usr/lib/ruby/2.1.0/net/http.rb:879:in `open'
from /usr/lib/ruby/2.1.0/net/http.rb:879:in `block in connect'
from /usr/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
from /usr/lib/ruby/2.1.0/net/http.rb:878:in `connect'
from /usr/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
from /usr/lib/ruby/2.1.0/net/http.rb:852:in `start'
from /website_folder/gitlab-shell/lib/gitlab_net.rb:81:in `get'
from /website_folder/gitlab-shell/lib/gitlab_net.rb:39:in `check'
from /website_folder/gitlab-shell/bin/check:11:in `<main>'
gitlab-shell self-check failed
Try fixing it:
Make sure GitLab is running;
Check the gitlab-shell configuration file:
sudo -u user-H editor /website_folder/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 GroupMembers? ... 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: ... can't check, you have no projects
Projects have satellites? ... can't check, you have no projects
Redis version >= 2.0.0? ... yes
Ruby version >= 2.0.0 ? ... yes (2.1.4)
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (2.1.3)
Checking GitLab ... Finished