Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #5556

Closed
Open
Created Nov 07, 2013 by Administrator@rootOwner

can not block user - error 500

Created by: leventyalcin

Hi,

I couldn't block users when i was using 6.1 and then updated to 6.2 but still have same issue

Processing by Admin::UsersController#block as HTML
  Parameters: {"authenticity_token"=>"iZLrQDqH+k2TnJxigvsRi0BarZs7XbJzVAup9UwKkFA=", "id"=>"[USERNAME]"}
Completed 500 Internal Server Error in 128ms

NoMethodError (undefined method `owner' for nil:NilClass):
  app/models/user.rb:135:in `block (3 levels) in <class:User>'
  app/models/user.rb:133:in `block (2 levels) in <class:User>'
  app/controllers/admin/users_controller.rb:24:in `block'
  app/controllers/application_controller.rb:54:in `set_current_user_for_thread'


Started GET "/admin/users/[USERNAME]/block" for 127.0.0.1 at 2013-11-06 21:58:10 -0800
Processing by Admin::UsersController#show as */*
  Parameters: {"id"=>"[USERNAME]/block"}

ActiveRecord::RecordNotFound (Couldn't find User with username = [USERNAME]/block):
  app/controllers/admin/users_controller.rb:104:in `user'
  app/controllers/application_controller.rb:54:in `set_current_user_for_thread'

  Rendered errors/not_found.html.haml within layouts/errors (0.1ms)
  Rendered layouts/_head.html.haml (2.1ms)
  Rendered layouts/_search.html.haml (39.8ms)
  Rendered layouts/_head_panel.html.haml (48.1ms)
  Rendered layouts/_flash.html.haml (0.2ms)

env info

System information
System:     Ubuntu
Current User:   git
Using RVM:  no
Ruby Version:   2.0.0p247
Gem Version:    2.0.3
Bundler Version:1.3.5
Rake Version:   10.1.0

GitLab information
Version:    6.2.3
Revision:   b490fde
Directory:  /home/git/gitlab
DB Adapter: mysql2
URL:        http://git.
HTTP Clone URL: http://git.
SSH Clone URL:  git@git.
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    1.7.1
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git

check

bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...

Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.7.4 ? ... OK (1.7.4)
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
update hook up-to-date? ... yes
update hooks in repos are links: ...
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
... ok
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
    /home/git/repositories: OK
    /home/git/.ssh/authorized_keys: OK
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
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: ...
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
... yes
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.7.10)

Checking GitLab ... Finished
Assignee
Assign to
Time tracking