fritteli / gentoo-overlay

https://gittr.ch/linux/gentoo-overlay
GNU General Public License v2.0
24 stars 7 forks source link

gitlab v8.10.2 #38

Closed Kami-no closed 8 years ago

Kami-no commented 8 years ago

avalon ~ # emerge --config gitlab-ce

Configuring pkg...

Errno::ENOENT: No such file or directory @ realpath_rec - /home/git /opt/gitlab/config/initializers/6_validations.rb:6:in realpath' /opt/gitlab/config/initializers/6_validations.rb:6:inrealpath' /opt/gitlab/config/initializers/6_validations.rb:6:in find_parent_path' /opt/gitlab/config/initializers/6_validations.rb:22:inblock in validate_storages' /opt/gitlab/config/initializers/6_validations.rb:19:in each' /opt/gitlab/config/initializers/6_validations.rb:19:invalidate_storages' /opt/gitlab/config/initializers/6_validations.rb:29:in <top (required)>' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:268:inload' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:268:in block in load' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:240:inload_dependency' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:268:in load' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/engine.rb:652:inblock in load_config_initializer' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7/lib/active_support/notifications.rb:166:in instrument' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/engine.rb:651:inload_config_initializer' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/engine.rb:616:in block (2 levels) in <class:Engine>' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/engine.rb:615:ineach' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/engine.rb:615:in block in <class:Engine>' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/initializable.rb:30:ininstance_exec' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/initializable.rb:30:in run' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/initializable.rb:55:inblock in run_initializers' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/initializable.rb:44:in each' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/initializable.rb:44:intsort_each_child' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/initializable.rb:54:in run_initializers' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/application.rb:352:ininitialize!' /opt/gitlab/config/environment.rb:5:in <top (required)>' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:274:inrequire' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:274:in block in require' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:240:inload_dependency' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:274:in require' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/application.rb:328:inrequire_environment!' /opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7/lib/rails/application.rb:457:in `block in run_tasks_blocks' Tasks: TOP => db:migrate => environment (See full trace by running task with --trace)

fritteli commented 8 years ago

Gitlab 8.10 has considerably changed the configuration. Have you checked that the path to the repository in gitlab.yml is correct?

If grep home/git /etc/gitlab/gitlab.ymlgives you a result, then you need to adjust the path, probably to /var/lib/git/repositories/.

Did that do the trick?

Kami-no commented 8 years ago

It fixes the bug...

fritteli commented 8 years ago

Okay, that's good. But it shows me that perhaps the ebuild should take care of that config change. After all, the path will always be /var/lib/git/repositories/ and never /home/git. Maybe I'll add a patch to future ebuilds. Thanks for reporting!