404 on group and profile pages
Summary
After the Update to Gitlab CE 8.13 Omnibus, the group (https://server/gitlab/some-group) and profile pages (https://server/gitlab/some-user) result in 404 errors. Accessing a project inside a group (https://server/gitlab/some-group/some-project) works as expected.
Steps to reproduce
This probably has to do with GitLab running in relative URL configuration, so the steps to reproduce would be:
- Setup GitLab to use relative URL
- Go to a group or profile page
Expected behavior
The group or the profile page showing up.
Actual behavior
404 error is displayed.
Relevant logs and/or screenshots
gitlab-ctl tail reports the following:
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/gitlab/some-group" for 46.237.211.46 at 2016-10-24 16:14:54 +0200
Processing by ApplicationController#not_found as HTML
Parameters: {"unmatched_route"=>"some-group"}
Completed 404 Not Found in 18ms (Views: 6.2ms | ActiveRecord: 1.2ms)
==> /var/log/gitlab/gitlab-workhorse/current <==
2016-10-24_14:14:54.24301 2016/10/24 16:14:54 ErrorPage: serving predefined error page: 404
2016-10-24_14:14:54.24306 server @ - - [2016-10-24 16:14:54.21081207 +0200 CEST] "GET /gitlab/some-group HTTP/1.1" 404 2440 "" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0" 0.032231
Output of checks
Results of GitLab application Check
Checking GitLab Shell ...
GitLab Shell version >= 3.6.6 ? ... OK (3.6.6)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
3/1 ... repository is empty
2/2 ... ok
2/3 ... ok
6/9 ... ok
7/12 ... ok
7/13 ... ok
7/15 ... ok
7/16 ... ok
12/18 ... ok
12/20 ... ok
7/22 ... ok
7/23 ... ok
13/25 ... ok
13/26 ... repository is empty
12/28 ... ok
2/35 ... ok
2/36 ... ok
12/38 ... ok
7/42 ... ok
13/43 ... ok
13/44 ... ok
13/46 ... ok
13/47 ... ok
13/48 ... ok
13/49 ... ok
13/50 ... ok
25/51 ... ok
25/52 ... ok
25/53 ... ok
25/54 ... ok
25/55 ... ok
25/56 ... ok
25/57 ... ok
12/58 ... ok
12/59 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
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
Uploads directory setup correctly? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ...
3/1 ... yes
2/2 ... yes
2/3 ... yes
6/9 ... yes
7/12 ... yes
7/13 ... yes
7/15 ... yes
7/16 ... yes
12/18 ... yes
12/20 ... yes
7/22 ... yes
7/23 ... yes
13/25 ... yes
13/26 ... yes
12/28 ... yes
2/35 ... yes
2/36 ... yes
12/38 ... yes
7/42 ... yes
13/43 ... yes
13/44 ... yes
13/46 ... yes
13/47 ... yes
13/48 ... yes
13/49 ... yes
13/50 ... yes
25/51 ... yes
25/52 ... yes
25/53 ... yes
25/54 ... yes
25/55 ... yes
25/56 ... yes
25/57 ... yes
12/58 ... yes
12/59 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.7.4)
Active users: 12
Checking GitLab ... Finished
Results of GitLab environment info
System information
System: Debian testing
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version: 2.6.6
Bundler Version:1.13.6
Rake Version: 10.5.0
Sidekiq Version:4.2.1
GitLab information
Version: 8.13.0
Revision: 4f028f2
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://server/gitlab
HTTP Clone URL: https://server/gitlab/some-group/some-project.git
SSH Clone URL: git@server:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers: redmine
GitLab Shell
Version: 3.6.6
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git