Deleting branches and committing changes using GitLab hangs it
Summary
GitLab hangs when I do any actions involving Git changes using the web interface. This includes making commits on GitLabs interface, creating files and deleting branches.
Steps to reproduce
I'm not really sure, this seems to only happen to me. I first used GitLab at version 6.7 and upgraded to every version in the last two years, maybe this has something to do with it.
The request never gets an answer and is terminated after 1 minute of no data being sent by GitLab. I'm using the sameersbn/gitlab Docker image version 8.5.1.
This bug started to happend around 8.0 but I waited a few versions to see if it affected other people and would be subsequently fixed as I'm using GitLab mostly with the Git command-line client.
Relevant logs and/or screenshots
W, [2016-03-01T17:35:48.620256 #10943] WARN -- : Failed to connect to internal API <POST http://localhost:8080/api/v3/internal/allowed>: #<Net::ReadTimeout: Net::ReadTimeout>
Started DELETE "/lorenz/[redacted]/branches/next" for 127.0.0.1 at 2016-03-01 17:33:45 +0000
Processing by Projects::BranchesController#destroy as JS
Parameters: {"namespace_id"=>"lorenz", "project_id"=>"[redacted]", "id"=>"next"}
Started POST "/api/v3/internal/allowed" for 127.0.0.1 at 2016-03-01 17:34:46 +0000
Completed 400 Bad Request in 60534ms (Views: 4.6ms | ActiveRecord: 3.4ms)
2016/03/01 17:34:46 error: proxyRoundTripper: DELETE "/lorenz/[redacted]/branches/next" failed with: "EOF"
2016/03/01 17:34:46 ErrorPage: serving predefined error page: 502
Output of checks
Results of GitLab Application Check
Checking GitLab Shell ...
GitLab Shell version >= 2.6.10 ? ... OK (2.6.10)
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
hooks directories in repos are links: ...
9/3 ... ok
3/9 ... ok
3/11 ... ok
3/13 ... ok
3/15 ... ok
7/17 ... ok
7/19 ... ok
5/21 ... ok
5/23 ... ok
3/25 ... ok
3/28 ... ok
7/30 ... ok
9/31 ... ok
5/32 ... ok
3/33 ... ok
3/41 ... ok
3/42 ... ok
3/43 ... ok
3/44 ... ok
9/47 ... ok
5/48 ... ok
9/49 ... ok
3/51 ... ok
9/52 ... ok
11/53 ... ok
7/54 ... ok
3/55 ... ok
3/57 ... ok
3/58 ... ok
5/60 ... ok
5/61 ... ok
3/62 ... ok
9/63 ... ok
3/64 ... ok
3/65 ... ok
5/66 ... ok
3/67 ... ok
3/68 ... ok
7/69 ... repository is empty
3/70 ... ok
3/72 ... ok
9/73 ... ok
9/74 ... ok
7/75 ... ok
3/76 ... ok
3/77 ... ok
3/78 ... ok
9/79 ... ok
3/80 ... ok
11/82 ... ok
3/84 ... ok
3/85 ... ok
3/86 ... ok
3/87 ... ok
3/88 ... ok
11/90 ... ok
11/92 ... ok
3/93 ... ok
11/95 ... ok
3/96 ... ok
7/97 ... ok
3/98 ... ok
3/99 ... ok
7/100 ... ok
7/101 ... ok
11/102 ... ok
7/103 ... ok
3/104 ... ok
3/105 ... ok
7/106 ... ok
3/108 ... ok
3/109 ... ok
11/110 ... ok
3/112 ... ok
3/114 ... ok
3/115 ... ok
11/116 ... ok
11/117 ... ok
11/118 ... ok
3/122 ... ok
3/123 ... ok
11/126 ... ok
3/127 ... ok
3/130 ... ok
11/131 ... ok
3/132 ... ok
3/133 ... ok
11/134 ... ok
9/136 ... ok
3/137 ... ok
11/138 ... ok
3/139 ... ok
3/140 ... ok
9/141 ... ok
11/142 ... ok
3/143 ... ok
3/144 ... ok
3/145 ... ok
11/146 ... ok
3/147 ... ok
3/148 ... ok
3/149 ... ok
3/150 ... ok
3/151 ... ok
3/153 ... ok
3/156 ... ok
3/157 ... ok
3/158 ... ok
3/159 ... ok
11/160 ... ok
11/162 ... ok
3/166 ... ok
15/167 ... ok
3/168 ... ok
3/169 ... ok
9/170 ... ok
3/172 ... ok
3/173 ... ok
3/174 ... repository is empty
11/175 ... ok
3/176 ... ok
13/177 ... ok
3/178 ... ok
3/179 ... ok
17/180 ... ok
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/home/git/data/repositories: OK
/home/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.8.4
Send ping to redis server: PONG
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 ...
Address formatted correctly? ... yes
IMAP server credentials are correct? ... yes
Init.d configured correctly? ... yes
MailRoom running? ... yes
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? ... yes
Init script up-to-date? ... yes
projects have namespace: ...
9/3 ... yes
3/9 ... yes
3/11 ... yes
3/13 ... yes
3/15 ... yes
7/17 ... yes
7/19 ... yes
5/21 ... yes
5/23 ... yes
3/25 ... yes
3/28 ... yes
7/30 ... yes
9/31 ... yes
5/32 ... yes
3/33 ... yes
3/41 ... yes
3/42 ... yes
3/43 ... yes
3/44 ... yes
9/47 ... yes
5/48 ... yes
9/49 ... yes
3/51 ... yes
9/52 ... yes
11/53 ... yes
7/54 ... yes
3/55 ... yes
3/57 ... yes
3/58 ... yes
5/60 ... yes
5/61 ... yes
3/62 ... yes
9/63 ... yes
3/64 ... yes
3/65 ... yes
5/66 ... yes
3/67 ... yes
3/68 ... yes
7/69 ... yes
3/70 ... yes
3/72 ... yes
9/73 ... yes
9/74 ... yes
7/75 ... yes
3/76 ... yes
3/77 ... yes
3/78 ... yes
9/79 ... yes
3/80 ... yes
11/82 ... yes
3/84 ... yes
3/85 ... yes
3/86 ... yes
3/87 ... yes
3/88 ... yes
11/90 ... yes
11/92 ... yes
3/93 ... yes
11/95 ... yes
3/96 ... yes
7/97 ... yes
3/98 ... yes
3/99 ... yes
7/100 ... yes
7/101 ... yes
11/102 ... yes
7/103 ... yes
3/104 ... yes
3/105 ... yes
7/106 ... yes
3/108 ... yes
3/109 ... yes
11/110 ... yes
3/112 ... yes
3/114 ... yes
3/115 ... yes
11/116 ... yes
11/117 ... yes
11/118 ... yes
3/122 ... yes
3/123 ... yes
11/126 ... yes
3/127 ... yes
3/130 ... yes
11/131 ... yes
3/132 ... yes
3/133 ... yes
11/134 ... yes
9/136 ... yes
3/137 ... yes
11/138 ... yes
3/139 ... yes
3/140 ... yes
9/141 ... yes
11/142 ... yes
3/143 ... yes
3/144 ... yes
3/145 ... yes
11/146 ... yes
3/147 ... yes
3/148 ... yes
3/149 ... yes
3/150 ... yes
3/151 ... yes
3/153 ... yes
3/156 ... yes
3/157 ... yes
3/158 ... yes
3/159 ... yes
11/160 ... yes
11/162 ... yes
3/166 ... yes
15/167 ... yes
3/168 ... yes
3/169 ... yes
9/170 ... yes
3/172 ... yes
3/173 ... yes
3/174 ... yes
11/175 ... yes
3/176 ... yes
13/177 ... yes
3/178 ... yes
3/179 ... yes
17/180 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.1.8)
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (2.7.2)
Active users: 7
Checking GitLab ... Finished
Results of GitLab Environment Info
System information
System: Ubuntu 14.04
Current User: git
Using RVM: no
Ruby Version: 2.1.8p440
Gem Version: 2.2.5
Bundler Version:1.11.2
Rake Version: 10.5.0
Sidekiq Version:4.0.1
GitLab information
Version: 8.5.1
Revision: 8b7080d
Directory: /home/git/gitlab
DB Adapter: postgresql
URL: https://git.dolansoft.org
HTTP Clone URL: https://git.dolansoft.org/some-group/some-project.git
SSH Clone URL: ssh://git@git.dolansoft.org:23/some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 2.6.10
Repositories: /home/git/data/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git