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
  • #2836

Closed
Open
Created Jan 29, 2013 by Administrator@rootOwner

500 error after creating user

Created by: radmen

I know, that there are many similar issues. I looked at them, but none of the solutions work.

After saving new user I have 500 error.

sudo -u gitlab -H bundle exec rake gitlab:env:info RAILS_ENV=production

System information
System:         Debian 5.0.10
Current User:   gitlab
Using RVM:      no
Ruby Version:   1.9.3p374
Gem Version:    1.8.23
Bundler Version:1.2.3
Rake Version:   10.0.3

GitLab information
Version:        4.1.0
Revision:       d14069e
Directory:      /home/gitlab/gitlab
DB Adapter:     mysql2
URL:            http://XXX
HTTP Clone URL: http://XXX/some-project.git
SSH Clone URL:  ssh://XXX/some-project.git
Using LDAP:     no
Using Omniauth: no

Gitolite information
Version:        v3.2-gitlab-patched-0-g2d29cf7
Admin URI:      git@localhost:gitolite-admin
Admin Key:      gitlab
Repositories:   /home/git/repositories/
Hooks:          /home/git/.gitolite/hooks/
Git:            /usr/bin/git

application.log: January 29, 2013 18:19: User "Mr Trolo" (trolo@mailinator.com) was created

production.log:

Started POST "/admin/users" for XX.XX.XXX.XX at 2013-01-29 18:19:48 +0100
Processing by Admin::UsersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"XXX", "user"=>{"name"=>"Mr Trolo", "username"=>"trolo", "email"=>"trolo@mailinator.com", "force_random_password"=>"[FILTERED]", "projects_limit"=>"0", "admin"=>"0", "skype"=>"", "linkedin"=>"", "twitter"=>""}}
Completed 500 Internal Server Error in 292ms
TypeError (can't dump anonymous class Class):
app/observers/user_observer.rb:5:in `after_create'
app/controllers/admin/users_controller.rb:67:in `block in create'
app/controllers/admin/users_controller.rb:66:in `create'

I've tried also with Ruby v1.9.3p327, same problem. My Gitlab installation was migrated from 3.x.

Assignee
Assign to
Time tracking