"Raw" file returns no content
Summary
Requesting the raw version of a file returns success, but with no content
Steps to reproduce
- Go to any file in any repository
- Click 'Raw'
Expected behavior
The raw text of the file
Actual behavior
Empty screen
Relevant logs and/or screenshots
Request headers (certain private information omitted):
GET /fastmail/hm/raw/master/ME/DB/DBI.pm HTTP/1.1
Host: <omitted>
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
DNT: 1
Referer: https://<omitted>/fastmail/hm/blob/master/ME/DB/DBI.pm
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: en-US,en;q=0.8
Cookie: remember_user_token=<omitted>; _gitlab_session=<omitted>
Response headers:
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 08 Sep 2016 01:47:57 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-UA-Compatible: IE=edge
Strict-Transport-Security: max-age=31536000
ETag: "1c5fd81ead4e3240f144deec150b33f3"
Gitlab-Workhorse-Send-Data: git-blob:eyJSZXBvUGF0aCI6Ii92YXIvb3B0L2dpdGxhYi9naXQtZGF0YS9yZXBvc2l0b3JpZXMvZmFzdG1haWwvaG0uZ2l0IiwiQmxvYklkIjoiMDhjMWZkNmZjYjc3NTRiNDIyMDA4Mjc3MDRmNjNiNWNkMzA4OGJhNSJ9
Content-Disposition: inline
Cache-Control: max-age=60, private
X-Request-Id: 3925065d-9ec2-4132-bf7f-0794950c2377
X-Runtime: 0.057838
Entry from gitlab-rails/production.log:
Started GET "/fastmail/hm/raw/master/ME/DB/DBI.pm" for <omitted> at 2016-09-08 01:47:56 +0000
Processing by Projects::RawController#show as HTML
Parameters: {"namespace_id"=>"fastmail", "project_id"=>"hm", "id"=>"master/ME/DB/DBI.pm"}
Completed 200 OK in 53ms (ActiveRecord: 6.9ms)
Output of checks
Results of GitLab application Check
root@qext3:~# gitlab-rake gitlab:check SANITIZE=true
Checking GitLab Shell ...
GitLab Shell version >= 3.4.0 ? ... OK (3.4.0)
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: ...
4/1 ... ok
4/2 ... ok
4/3 ... ok
4/4 ... ok
4/5 ... ok
4/7 ... ok
4/8 ... ok
4/9 ... ok
4/10 ... ok
3/11 ... ok
4/12 ... ok
4/13 ... ok
19/14 ... ok
20/15 ... ok
4/16 ... ok
2/18 ... ok
24/19 ... repository is empty
2/20 ... ok
24/21 ... ok
4/22 ... ok
22/23 ... ok
20/24 ... ok
22/25 ... ok
2/26 ... ok
4/27 ... ok
27/29 ... ok
27/30 ... ok
27/31 ... ok
27/32 ... ok
27/33 ... ok
27/34 ... ok
27/35 ... ok
27/36 ... ok
27/37 ... ok
27/38 ... ok
27/39 ... ok
27/40 ... ok
27/41 ... ok
27/42 ... ok
27/43 ... ok
27/44 ... ok
27/45 ... ok
27/46 ... ok
27/47 ... ok
27/48 ... ok
27/49 ... ok
27/50 ... ok
27/51 ... ok
27/52 ... ok
27/53 ... ok
27/54 ... ok
27/55 ... ok
27/56 ... ok
27/57 ... ok
27/58 ... ok
27/59 ... ok
27/60 ... ok
27/61 ... ok
27/62 ... ok
27/63 ... ok
27/64 ... ok
27/65 ... ok
27/66 ... ok
27/67 ... ok
27/68 ... ok
27/69 ... ok
27/70 ... ok
27/71 ... ok
27/72 ... ok
27/73 ... ok
27/74 ... ok
27/75 ... ok
27/76 ... ok
27/77 ... ok
27/78 ... ok
27/79 ... ok
27/80 ... ok
27/81 ... ok
27/82 ... ok
27/83 ... ok
27/84 ... ok
29/85 ... ok
32/86 ... ok
29/87 ... ok
24/88 ... ok
24/89 ... ok
24/90 ... ok
24/91 ... ok
22/92 ... ok
27/94 ... ok
27/95 ... ok
24/96 ... ok
24/97 ... ok
22/99 ... ok
4/101 ... ok
4/102 ... ok
24/103 ... ok
22/104 ... ok
4/105 ... ok
27/106 ... ok
27/107 ... ok
27/108 ... ok
24/109 ... repository is empty
3/110 ... ok
32/113 ... ok
24/114 ... ok
24/115 ... ok
32/116 ... ok
24/117 ... ok
24/118 ... ok
24/119 ... ok
32/120 ... ok
24/121 ... ok
32/122 ... ok
24/123 ... ok
24/124 ... ok
32/125 ... ok
32/126 ... ok
32/127 ... ok
32/128 ... ok
24/129 ... ok
24/130 ... ok
24/131 ... ok
24/132 ... ok
32/133 ... ok
24/134 ... ok
24/135 ... ok
24/136 ... ok
32/137 ... ok
24/138 ... ok
27/139 ... ok
24/140 ... ok
24/141 ... ok
24/142 ... ok
24/143 ... ok
24/144 ... ok
24/145 ... ok
24/146 ... ok
24/147 ... ok
24/148 ... ok
24/149 ... ok
24/150 ... ok
24/151 ... ok
24/152 ... ok
24/153 ... ok
26/154 ... ok
24/155 ... ok
32/156 ... ok
32/157 ... ok
32/158 ... ok
32/159 ... ok
32/160 ... ok
32/161 ... ok
32/162 ... ok
32/163 ... ok
32/164 ... ok
32/165 ... ok
32/166 ... ok
32/167 ... ok
32/168 ... ok
32/169 ... repository is empty
32/170 ... ok
32/171 ... ok
32/172 ... ok
32/173 ... ok
32/174 ... ok
32/175 ... ok
32/176 ... ok
32/177 ... ok
32/178 ... ok
32/179 ... ok
32/180 ... ok
32/181 ... ok
32/182 ... ok
22/183 ... ok
21/184 ... ok
22/185 ... ok
26/186 ... ok
22/187 ... ok
22/188 ... ok
21/189 ... ok
22/190 ... ok
21/191 ... ok
22/192 ... ok
21/193 ... ok
21/194 ... ok
22/195 ... ok
22/196 ... ok
26/197 ... ok
22/198 ... ok
27/199 ... ok
22/200 ... ok
26/201 ... ok
26/202 ... ok
22/203 ... ok
22/204 ... ok
12/205 ... ok
22/206 ... ok
22/207 ... ok
22/208 ... ok
22/209 ... ok
22/210 ... ok
22/211 ... ok
4/212 ... ok
27/213 ... ok
27/214 ... ok
22/215 ... ok
21/216 ... ok
27/217 ... ok
27/218 ... ok
22/219 ... ok
22/220 ... ok
22/221 ... ok
33/222 ... 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: ...
4/1 ... yes
4/2 ... yes
4/3 ... yes
4/4 ... yes
4/5 ... yes
4/7 ... yes
4/8 ... yes
4/9 ... yes
4/10 ... yes
3/11 ... yes
4/12 ... yes
4/13 ... yes
19/14 ... yes
20/15 ... yes
4/16 ... yes
2/18 ... yes
24/19 ... yes
2/20 ... yes
24/21 ... yes
4/22 ... yes
22/23 ... yes
20/24 ... yes
22/25 ... yes
2/26 ... yes
4/27 ... yes
27/29 ... yes
27/30 ... yes
27/31 ... yes
27/32 ... yes
27/33 ... yes
27/34 ... yes
27/35 ... yes
27/36 ... yes
27/37 ... yes
27/38 ... yes
27/39 ... yes
27/40 ... yes
27/41 ... yes
27/42 ... yes
27/43 ... yes
27/44 ... yes
27/45 ... yes
27/46 ... yes
27/47 ... yes
27/48 ... yes
27/49 ... yes
27/50 ... yes
27/51 ... yes
27/52 ... yes
27/53 ... yes
27/54 ... yes
27/55 ... yes
27/56 ... yes
27/57 ... yes
27/58 ... yes
27/59 ... yes
27/60 ... yes
27/61 ... yes
27/62 ... yes
27/63 ... yes
27/64 ... yes
27/65 ... yes
27/66 ... yes
27/67 ... yes
27/68 ... yes
27/69 ... yes
27/70 ... yes
27/71 ... yes
27/72 ... yes
27/73 ... yes
27/74 ... yes
27/75 ... yes
27/76 ... yes
27/77 ... yes
27/78 ... yes
27/79 ... yes
27/80 ... yes
27/81 ... yes
27/82 ... yes
27/83 ... yes
27/84 ... yes
29/85 ... yes
32/86 ... yes
29/87 ... yes
24/88 ... yes
24/89 ... yes
24/90 ... yes
24/91 ... yes
22/92 ... yes
27/94 ... yes
27/95 ... yes
24/96 ... yes
24/97 ... yes
22/99 ... yes
4/101 ... yes
4/102 ... yes
24/103 ... yes
22/104 ... yes
4/105 ... yes
27/106 ... yes
27/107 ... yes
27/108 ... yes
24/109 ... yes
3/110 ... yes
32/113 ... yes
24/114 ... yes
24/115 ... yes
32/116 ... yes
24/117 ... yes
24/118 ... yes
24/119 ... yes
32/120 ... yes
24/121 ... yes
32/122 ... yes
24/123 ... yes
24/124 ... yes
32/125 ... yes
32/126 ... yes
32/127 ... yes
32/128 ... yes
24/129 ... yes
24/130 ... yes
24/131 ... yes
24/132 ... yes
32/133 ... yes
24/134 ... yes
24/135 ... yes
24/136 ... yes
32/137 ... yes
24/138 ... yes
27/139 ... yes
24/140 ... yes
24/141 ... yes
24/142 ... yes
24/143 ... yes
24/144 ... yes
24/145 ... yes
24/146 ... yes
24/147 ... yes
24/148 ... yes
24/149 ... yes
24/150 ... yes
24/151 ... yes
24/152 ... yes
24/153 ... yes
26/154 ... yes
24/155 ... yes
32/156 ... yes
32/157 ... yes
32/158 ... yes
32/159 ... yes
32/160 ... yes
32/161 ... yes
32/162 ... yes
32/163 ... yes
32/164 ... yes
32/165 ... yes
32/166 ... yes
32/167 ... yes
32/168 ... yes
32/169 ... yes
32/170 ... yes
32/171 ... yes
32/172 ... yes
32/173 ... yes
32/174 ... yes
32/175 ... yes
32/176 ... yes
32/177 ... yes
32/178 ... yes
32/179 ... yes
32/180 ... yes
32/181 ... yes
32/182 ... yes
22/183 ... yes
21/184 ... yes
22/185 ... yes
26/186 ... yes
22/187 ... yes
22/188 ... yes
21/189 ... yes
22/190 ... yes
21/191 ... yes
22/192 ... yes
21/193 ... yes
21/194 ... yes
22/195 ... yes
22/196 ... yes
26/197 ... yes
22/198 ... yes
27/199 ... yes
22/200 ... yes
26/201 ... yes
26/202 ... yes
22/203 ... yes
22/204 ... yes
12/205 ... yes
22/206 ... yes
22/207 ... yes
22/208 ... yes
22/209 ... yes
22/210 ... yes
22/211 ... yes
4/212 ... yes
27/213 ... yes
27/214 ... yes
22/215 ... yes
21/216 ... yes
27/217 ... yes
27/218 ... yes
22/219 ... yes
22/220 ... yes
22/221 ... yes
33/222 ... 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: 25
Checking GitLab ... Finished
Results of GitLab environment info
This is gitlab-ce from the APT repository for wheezy at https://packages.gitlab.com/gitlab/gitlab-ce/debian/
ii gitlab-ce 8.11.5-ce.0 amd64 GitLab Community Edition and GitLab CI (including N
ii gitlab-ci-multi-runner 1.5.2 amd64 GitLab Runner
root@qext3:~# gitlab-rake gitlab:env:info
System information
System: Debian 7.11
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version: 2.6.6
Bundler Version:2.3.0
Rake Version: 10.5.0
Sidekiq Version:4.1.4
GitLab information
Version: 8.11.5
Revision: f1ce997
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://<omitted>
HTTP Clone URL: https://<omitted>/some-group/some-project.git
SSH Clone URL: git@<omitted>:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 3.4.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
Possible fixes
No idea. Previous reports have suggested modifying nginx/apache config, but I have not modified this installation by hand at all and am not keen to do so, because the installer usually does a fine job of upgrading safely and I don't want to get in its way.