When a new user registers with GitHub connection, and they are later unblocked, it succeeds but ends up on a 500 error
When users register at my GitLab server, using GitHub integration, they are automatically blocked. When I go to unblock them in the admin section, the unblock button pops up a prompt asking me to confirm it, and when I do, it goes forward to a page with a 500 error. It otherwise succeeds.
I need to check my logs, maybe there is something wrong with my SMTP settings?
Steps to reproduce:
- User registers using GitHub.
- Open admin section.
- Open user profile.
- Click Unblock.
- Click OK on the confirmation dialog.
What happens: User is approved, but browser navigates to a link that ends with /unblock, which results in a 500 internal server error.
What is expected: I don't recall, since it's been a while since I last had to approve anybody.
Excerpt from /var/log/gitlab/gitlab-rails/production.log:
Started GET "/admin/users/Deewiant" for 99.11.158.33 at 2015-10-20 05:07:07 +0000
Processing by Admin::UsersController#show as HTML
Parameters: {"id"=>"Deewiant"}
Completed 200 OK in 509ms (Views: 139.6ms | ActiveRecord: 37.4ms)
Started PUT "/admin/users/Deewiant/unblock" for 99.11.158.33 at 2015-10-20 05:07:13 +0000
Processing by Admin::UsersController#unblock as HTML
Parameters: {"authenticity_token"=>"[FILTERED]", "id"=>"Deewiant"}
Redirected to
Completed 500 Internal Server Error in 47ms (ActiveRecord: 6.5ms)
ActionController::RedirectBackError (No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure to specify request.env["HTTP_REFERER"].):
app/controllers/admin/users_controller.rb:44:in `unblock'
Output of Application Check:
Checking GitLab Shell ...
GitLab Shell version >= 2.6.5 ? ... OK (2.6.5)
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: ...
2/1 ... ok
2/2 ... ok
2/3 ... ok
2/4 ... ok
2/5 ... ok
2/6 ... ok
2/7 ... ok
2/8 ... ok
2/9 ... ok
2/10 ... ok
2/11 ... ok
2/12 ... ok
2/13 ... ok
2/14 ... ok
2/15 ... ok
2/16 ... ok
2/17 ... ok
2/18 ... ok
2/19 ... ok
2/20 ... ok
2/21 ... ok
2/22 ... ok
2/23 ... ok
2/24 ... ok
2/25 ... ok
2/26 ... ok
2/27 ... ok
2/28 ... ok
2/29 ... ok
2/30 ... ok
2/31 ... ok
2/33 ... ok
2/34 ... ok
2/35 ... ok
2/36 ... ok
2/37 ... ok
2/38 ... ok
2/39 ... ok
2/40 ... ok
2/41 ... ok
2/42 ... ok
2/43 ... ok
2/44 ... ok
2/45 ... ok
2/46 ... ok
2/47 ... ok
2/48 ... ok
2/49 ... ok
2/50 ... ok
2/51 ... ok
2/52 ... ok
2/53 ... ok
2/54 ... ok
2/55 ... ok
2/56 ... ok
2/57 ... ok
2/58 ... ok
2/59 ... ok
2/60 ... ok
2/61 ... ok
2/62 ... ok
2/63 ... ok
2/64 ... ok
2/65 ... ok
2/66 ... ok
2/67 ... ok
2/68 ... ok
2/69 ... ok
2/70 ... ok
2/71 ... ok
2/72 ... ok
2/73 ... ok
2/74 ... ok
2/75 ... ok
2/76 ... ok
2/77 ... ok
2/78 ... ok
2/79 ... ok
2/80 ... ok
2/81 ... ok
2/82 ... ok
2/84 ... ok
6/85 ... ok
2/86 ... ok
2/87 ... ok
2/88 ... ok
2/90 ... ok
2/92 ... ok
2/94 ... ok
16/95 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/var/opt/gitlab/git-data/repositories: OK
/var/opt/gitlab/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.8.21
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 ...
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
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
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: ...
2/1 ... yes
2/2 ... yes
2/3 ... yes
2/4 ... yes
2/5 ... yes
2/6 ... yes
2/7 ... yes
2/8 ... yes
2/9 ... yes
2/10 ... yes
2/11 ... yes
2/12 ... yes
2/13 ... yes
2/14 ... yes
2/15 ... yes
2/16 ... yes
2/17 ... yes
2/18 ... yes
2/19 ... yes
2/20 ... yes
2/21 ... yes
2/22 ... yes
2/23 ... yes
2/24 ... yes
2/25 ... yes
2/26 ... yes
2/27 ... yes
2/28 ... yes
2/29 ... yes
2/30 ... yes
2/31 ... yes
2/33 ... yes
2/34 ... yes
2/35 ... yes
2/36 ... yes
2/37 ... yes
2/38 ... yes
2/39 ... yes
2/40 ... yes
2/41 ... yes
2/42 ... yes
2/43 ... yes
2/44 ... yes
2/45 ... yes
2/46 ... yes
2/47 ... yes
2/48 ... yes
2/49 ... yes
2/50 ... yes
2/51 ... yes
2/52 ... yes
2/53 ... yes
2/54 ... yes
2/55 ... yes
2/56 ... yes
2/57 ... yes
2/58 ... yes
2/59 ... yes
2/60 ... yes
2/61 ... yes
2/62 ... yes
2/63 ... yes
2/64 ... yes
2/65 ... yes
2/66 ... yes
2/67 ... yes
2/68 ... yes
2/69 ... yes
2/70 ... yes
2/71 ... yes
2/72 ... yes
2/73 ... yes
2/74 ... yes
2/75 ... yes
2/76 ... yes
2/77 ... yes
2/78 ... yes
2/79 ... yes
2/80 ... yes
2/81 ... yes
2/82 ... yes
2/84 ... yes
6/85 ... yes
2/86 ... yes
2/87 ... yes
2/88 ... yes
2/90 ... yes
2/92 ... yes
2/94 ... yes
16/95 ... yes
Redis version >= 2.4.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.1.6)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 1.7.10 ? ... yes (2.4.3)
Active users: 21
Checking GitLab ... Finished
Version of GitLab: GitLab 8.0.5, Omnibus edition.
GitLab server setup info:
System information
System: Ubuntu 14.04
Current User: git
Using RVM: no
Ruby Version: 2.1.6p336
Gem Version: 2.2.5
Bundler Version:1.5.3
Rake Version: 10.4.2
Sidekiq Version:3.3.0
GitLab information
Version: 8.0.5
Revision: 2866c50
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://gitlab.kode54.net
HTTP Clone URL: https://gitlab.kode54.net/some-group/some-project.git
SSH Clone URL: git@gitlab.kode54.net:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers: github, bitbucket
GitLab Shell
Version: 2.6.5
Repositories: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
If I need to upload my configuration, with the API and SSH keys removed, I will do so.