Thanks Robert Wang.
Em sexta-feira, 29 de novembro de 2013 04h14min37s UTC-3, Robert Wang
escreveu:
>
> I've encountered the same problem with my ubuntu 12.04.
> First thing you should make sure if there's directory called :
> /home/git/repositories/root, if no then :
>
> /home/git/gitlab-shell > sudo ./bin/install
>
> this should create the repositories directory only it owned by root. So
> change own with:
>
> /home/git > sudo chown -R git repositories/
>
> next go to the same /home/git/gitlab to execute that cmd again:
>
> /home/git/gitlab > sudo -u git -H bundle exec rake gitlab:setup
> RAILS_ENV=production
>
> Hope it works!
>
> Nicolas Collard於 2013年8月27日星期二UTC+8上午5時05分16秒寫道:
>>
>> Hi guys, I'm trying to install gitlab on my own server.
>>
>> I got 2 servers : one for the gitlab installation and one which is
>> hosting my dbs (MariaDB + Redis).
>>
>> I followed the instructions to install gitlab but at the moment I'm not
>> able to run the script to generate database correctly. All tables are
>> created in MariaDB but when it's the turn to Redis to work, the generation
>> fails.
>> I did the following :
>>
>> $ cp config/resque.yml.exemple config/resquest.yml
>>
>> and then I edited it like that (I don't need development and test
>> environment):
>>
>> production: redis://myadress.com:6379
>>
>> I execute
>>
>> bundle exec rake gitlab:setup RAILS_ENV=production
>>
>> and I'm getting that stack trace :
>>
>> ...
>> -- create_table("web_hooks", {:force=>true})
>> -> 0.0054s
>> -- add_index("web_hooks", ["project_id"],
>> {:name=>"index_web_hooks_on_project_id"})
>> -> 0.0057s
>> -- initialize_schema_migrations_table()
>> -> 0.0006s
>> -- assume_migrated_upto_version(20130812143708,
>> ["/home/git/gitlab/db/migrate"])
>> -> 0.0016s
>>
>> == Seed from /home/git/gitlab/db/fixtures/production/001_admin.rb
>> 2013-08-26T21:06:11Z 19784 TID-1z3pg INFO: Sidekiq client using redis://
>> myadress.com:6379 with options {:namespace=>"resque:gitlab"}
>> rake aborted!
>> No such file or directory - /home/git/repositories/root
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.2.0/lib/seed-fu/runner.rb:46:in
>>
>> `eval'
>> /home/git/gitlab/lib/gitlab/backend/shell.rb:157:in `add_namespace'
>> /home/git/gitlab/app/models/namespace.rb:59:in `ensure_dir_exist'
>> home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:409:in
>>
>> `_run__4488392797693541939__create__3734489669637070933__callbacks'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in
>>
>> `__run_callback'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in
>>
>> `_run_create_callbacks'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in
>>
>> `run_callbacks'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/callbacks.rb:268:in
>>
>> `create'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/persistence.rb:348:in
>>
>> `create_or_update'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/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.13/lib/active_support/callbacks.rb:425:in
>>
>> `_run__4488392797693541939__save__3734489669637070933__callbacks'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in
>>
>> `__run_callback'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in
>>
>> `_run_save_callbacks'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in
>>
>> `run_callbacks'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/callbacks.rb:264:in
>>
>> `create_or_update'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/persistence.rb:84:in
>>
>> `save'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/validations.rb:50:in
>>
>> `save'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/attribute_methods/dirty.rb:22:in
>>
>> `save'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/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.13/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.13/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.13/lib/active_record/transactions.rb:208:in
>>
>> `transaction'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:311:in
>>
>> `with_transaction_returning_status'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:259:in
>>
>> `block in save'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:270:in
>>
>> `rollback_active_record_state!'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:258:in
>>
>> `save'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/associations/singular_association.rb:57:in
>>
>> `create_record'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/associations/singular_association.rb:25:in
>>
>> `create!'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/associations/builder/singular_association.rb:28:in
>>
>> `block in define_constructors'
>> /home/git/gitlab/app/observers/user_observer.rb:14:in `after_save'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activemodel-3.2.13/lib/active_model/observing.rb:231:in
>>
>> `update'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/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.13/lib/active_support/callbacks.rb:427:in
>>
>> `_run__1424601521419650599__save__3734489669637070933__callbacks'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in
>>
>> `__run_callback'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in
>>
>> `_run_save_callbacks'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in
>>
>> `run_callbacks'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/callbacks.rb:264:in
>>
>> `create_or_update'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/persistence.rb:84:in
>>
>> `save'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/validations.rb:50:in
>>
>> `save'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/attribute_methods/dirty.rb:22:in
>>
>> `save'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/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.13/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.13/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.13/lib/active_record/transactions.rb:208:in
>>
>> `transaction'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:311:in
>>
>> `with_transaction_returning_status'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:259:in
>>
>> `block in save'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/transactions.rb:270:in
>>
>> `rollback_active_record_state!'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/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.13/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.13/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.13/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.2.0/lib/seed-fu/runner.rb:46:in
>>
>> `eval'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.2.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.2.0/lib/seed-fu/runner.rb:58:in
>>
>> `block in open'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.2.0/lib/seed-fu/runner.rb:57:in
>>
>> `open'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.2.0/lib/seed-fu/runner.rb:57:in
>>
>> `open'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.2.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.13/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.13/lib/active_record/transactions.rb:208:in
>>
>> `transaction'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.2.0/lib/seed-fu/runner.rb:35:in
>>
>> `run_file'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.2.0/lib/seed-fu/runner.rb:26:in
>>
>> `block in run'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.2.0/lib/seed-fu/runner.rb:25:in
>>
>> `each'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.2.0/lib/seed-fu/runner.rb:25:in
>>
>> `run'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.2.0/lib/seed-fu.rb:29:in
>>
>> `seed'
>> /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.2.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
>> (See full trace by running task with --trace)
>>
>> I don't really understand the error and I don't know how to fix it,
>> somebody has a clue ?
>>
>> Thanks in advance.
>>
>
--
You received this message because you are subscribed to the Google Groups
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.