Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
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
  • #915

Closed
Open
Created 12 years ago by Administrator@rootOwner
  • New issue

  • Report abuse

  • New issue

  • Report abuse

Cannot create user

Closed

Cannot create user

Created by: ProgVal

Hi,

I get this when trying to create a user:


Started POST "/admin/users" for 192.168.100.5 at 2012-06-10 17:19:37 +0000
Processing by Admin::UsersController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"+H+W0AkIV6LNsRznawCsesgTFQ454lafP8TYOWBYaZ4=", "user"=>{"name"=>"guest", "email"=>"guest@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "skype"=>"", "linkedin"=>"", "twitter"=>"", "projects_limit"=>"10", "admin"=>"0"}, "commit"=>"Save"}
Completed 500 Internal Server Error in 4ms

NoMethodError (undefined method `bio' for #<User:0x0000000670a098>):
  app/controllers/admin/users_controller.rb:70:in `block in create'
  app/controllers/admin/users_controller.rb:69:in `create'

Regards, Valentin

Linked issues
...

    Related merge requests

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: SaitoWu

      bundle exec rake db:migrate RAILS_ENV=production

      By Administrator on 2012-06-10T17:23:48 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: ProgVal

      Already did that.

      And I just ran it one time more to make sure; it is still not working.

      By Administrator on 2012-06-10T17:31:32 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: SaitoWu

      How did u start ur Gitlab server?

      By Administrator on 2012-06-10T17:42:39 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: ProgVal

      /etc/init.d/apache2 restart

      By Administrator on 2012-06-10T18:05:40 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: ProgVal

      (I use Passenger)

      By Administrator on 2012-06-10T18:05:51 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: SaitoWu

      I think u can check ur env first.

      Try to run bundle exec rails s RAILS_ENV=production, w/o passenger. check if it will work.

      By Administrator on 2012-06-10T18:21:28 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: ProgVal

      gitlab@Hydrogen:~/gitlab$ bundle exec rails s RAILS_ENV=production
      Exiting
      /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require': no such file to load -- rack/handler/rails__env=production (LoadError)
              from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `block in require'
              from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:236:in `load_dependency'
              from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require'
              from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:63:in `try_require'
              from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:16:in `get'
              from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:269:in `server'
              from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/railties-3.2.5/lib/rails/commands/server.rb:59:in `start'
              from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/railties-3.2.5/lib/rails/commands.rb:55:in `block in <top (required)>'
              from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/railties-3.2.5/lib/rails/commands.rb:50:in `tap'
              from /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/railties-3.2.5/lib/rails/commands.rb:50:in `<top (required)>'
              from script/rails:6:in `require

      By Administrator on 2012-06-10T19:01:16 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: ProgVal

      When I run bundle exec rake db:migrate RAILS_ENV=production, the file db/schema.rb is modified:

      
      gitlab@Hydrogen:~/gitlab$ git diff db/schema.rb
      gitlab@Hydrogen:~/gitlab$ bundle exec rake db:migrate RAILS_ENV=production
      gitlab@Hydrogen:~/gitlab$ git diff db/schema.rb
      diff --git a/db/schema.rb b/db/schema.rb
      index 59098d7..54f15ff 100644
      --- a/db/schema.rb
      +++ b/db/schema.rb
      @@ -36,7 +36,6 @@ ActiveRecord::Schema.define(:version => 20120413135904) do
           t.integer  "position",     :default => 0
           t.boolean  "critical",     :default => false, :null => false
           t.string   "branch_name"
      -    t.text     "description"
           t.integer  "milestone_id"
         end
      
      @@ -168,7 +167,6 @@ ActiveRecord::Schema.define(:version => 20120413135904) do
           t.string   "authentication_token"
           t.boolean  "dark_scheme",                           :default => false, :null => false
           t.integer  "theme_id",                              :default => 1,     :null => false
      -    t.string   "bio"
           t.boolean  "blocked",                               :default => false, :null => false
         end
      

      By Administrator on 2012-06-23T07:59:14 (imported from GitLab project)

    • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
    Please register or sign in to reply
    0 Assignees
    Assign to
    Milestone
    No milestone
    None
    None
    Time tracking
    Due date
    None
    None
    0
    Labels
    None
    Assign labels
    • No matching results
    • Manage project labels
    Confidentiality
    Not confidential

    You are going to turn on confidentiality. Only team members with at least Reporter access will be able to see and leave comments on the issue.

    Lock issue
    Unlocked
    participants
    Reference:

    Menu

    Projects Groups Snippets
    Help