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

Closed
Open
Created Dec 11, 2013 by Administrator@rootOwner

rake aborted! wrong number of arguments (0 for 1..3)

Created by: fraywing

Hey there!

I'm having a weird issue, I'm running Ubuntu with Apache, I already have the Mysql DB created, the user is has correct permissions, and have followed the specs for the official install to the tee.

I'm able to access the login page on the dashboard on my server, but when I try to create the default admin credentials using:

sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production

I'm greeted with an error, below i'll paste the entirety of the --trace'd log:

    == Seed from /home/git/gitlab/db/fixtures/production/001_admin.rb
    rake aborted!
    wrong number of arguments (0 for 1..3)
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu/runner.rb:46:in `eval'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation/delegation.rb:14:in `block in logger'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation.rb:241:in `block in scoping'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/scoping.rb:98:in `with_scope'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation.rb:241:in `scoping'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation/delegation.rb:14:in `logger'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/explain.rb:26:in `logging_query_plan'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation.rb:159:in `to_a'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation/finder_methods.rb:159:in `all'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/querying.rb:5:in `all'
    /home/git/gitlab/app/services/system_hooks_service.rb:9:in `execute_hooks'
    /home/git/gitlab/app/services/system_hooks_service.rb:3:in `execute_hooks_for'
    /home/git/gitlab/app/observers/system_hook_observer.rb:5:in `after_create'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activemodel-3.2.16/lib/active_model/observing.rb:231:in `update'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/observer.rb:114:in `block (2 levels) in define_callbacks'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:492:in `_run__920756296428933787__create__1882536836677963513__callbacks'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/callbacks.rb:268:in `create'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/persistence.rb:348:in `create_or_update'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/callbacks.rb:264:in `block in create_or_update'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:436:in `_run__920756296428933787__save__1882536836677963513__callbacks'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_callback'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/callbacks.rb:264:in `create_or_update'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/persistence.rb:84:in `save'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/validations.rb:50:in `save'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/attribute_methods/dirty.rb:22:in `save'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/transactions.rb:259:in `block (2 levels) in save'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/transactions.rb:208:in `transaction'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/transactions.rb:259:in `block in save'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/transactions.rb:258:in `save'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:483:in `block in save'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:502:in `block (2 levels) in around_save'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:150:in `block in run_actions'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:170:in `catch_exceptions'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:148:in `run_actions'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:133:in `run_callbacks'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:212:in `run_callbacks'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:63:in `block (2 levels) in perform'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:63:in `catch'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:63:in `block in perform'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:186:in `within_transaction'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:62:in `perform'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:502:in `block in around_save'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:530:in `block in transaction'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/transactions.rb:208:in `transaction'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:529:in `transaction'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:501:in `around_save'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:483:in `save'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/persistence.rb:45:in `create'
    (eval):1:in `block (2 levels) in run_file'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu/runner.rb:46:in `eval'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu/runner.rb:46:in `block (2 levels) in run_file'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu/runner.rb:58:in `block in open'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu/runner.rb:57:in `open'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu/runner.rb:57:in `open'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu/runner.rb:36:in `block in run_file'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.16/lib/active_record/transactions.rb:208:in `transaction'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu/runner.rb:35:in `run_file'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu/runner.rb:26:in `block in run'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu/runner.rb:25:in `each'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu/runner.rb:25:in `run'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/seed-fu.rb:29:in `seed'
    /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.0/lib/tasks/seed_fu.rake:36:in `block (2 levels) in <top (required)>'
    /home/git/gitlab/lib/tasks/gitlab/setup.rake:18:in `setup_db'
    /home/git/gitlab/lib/tasks/gitlab/setup.rake:4:in `block (2 levels) in <top (required)>'
    Tasks: TOP => db:seed_fu

Any ideas why this is happening? I'm banging my head trying to figure this ok, I've googled it a million times and haven't seen anything quite like it.

Thank you!

Assignee
Assign to
Time tracking