Comments (5)
# emerge --config gitlab-ce
Configuring pkg...
* Checking configuration files
* Migrating database ...
/usr/bin/ruby /usr/bin/bundle exec rake db:migrate RAILS_ENV=production
D, [2017-01-17T16:08:12.850694 #18424] DEBUG -- sentry: ** [Raven] No such file or directory @ realpath_rec - /home/git excluded from capture due to environment or should_capture callback
rake aborted!
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:in `realpath'
/opt/gitlab/config/initializers/6_validations.rb:6:in `find_parent_path'
/opt/gitlab/config/initializers/6_validations.rb:22:in `block in validate_storages'
/opt/gitlab/config/initializers/6_validations.rb:19:in `each'
/opt/gitlab/config/initializers/6_validations.rb:19:in `validate_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.1/lib/active_support/dependencies.rb:268:in `load'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `block in load'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/engine.rb:652:in `block in load_config_initializer'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:166:in `instrument'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/engine.rb:651:in `load_config_initializer'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/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.1/lib/rails/engine.rb:615:in `each'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/engine.rb:615:in `block in <class:Engine>'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in `instance_exec'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in `run'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/initializable.rb:44:in `each'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/initializable.rb:44:in `tsort_each_child'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/initializable.rb:54:in `run_initializers'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/application.rb:352:in `initialize!'
/opt/gitlab/config/environment.rb:5:in `<top (required)>'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `block in require'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/application.rb:328:in `require_environment!'
/opt/gitlab/vendor/bundle/ruby/2.1.0/gems/railties-4.2.7.1/lib/rails/application.rb:457:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
* ERROR: www-apps/gitlab-ce-8.15.4::fritteli failed (config phase):
* failed to run rake db:migrate
*
* Call stack:
* ebuild.sh, line 115: Called pkg_config
* environment, line 4253: Called exec_rake 'db:migrate'
* environment, line 1861: Called die
* The specific snippet of code:
* ${command}" || die "failed to run rake $@"
*
* If you need support, post the output of `emerge --info '=www-apps/gitlab-ce-8.15.4::fritteli'`,
* the complete build log and the output of `emerge -pqv '=www-apps/gitlab-ce-8.15.4::fritteli'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM= CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =gitlab-ce-8.15.4
* The complete build log is located at '/var/tmp/portage/www-apps/gitlab-ce-8.15.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-apps/gitlab-ce-8.15.4/temp/environment'.
* Working directory: '/usr/lib64/python3.4/site-packages'
* S: '/var/tmp/portage/www-apps/gitlab-ce-8.15.4/work/gitlab-ce-8.15.4
from gentoo-overlay.
created
ln -s /var/lib/git/repositories /opt/gitlab/
ln -s /opt/gitlab /home/git
from gentoo-overlay.
I'm sorry I haven't responded earlier. We just got our second child, so my priorities currently lie with changing diapers rather than fixing the ebuild :)
I have to say, though, that I never had this error. Meanwhile v8.16.4 is out, perhaps I'll jump straight to that.
from gentoo-overlay.
I cannot reproduce this problem.
What home dir does your gitlab user (git
) have? It should be /var/lib/git
. To verify, use this command (as root):
grep git /etc/passwd
It should give something like this:
git:x:200:481:added by portage for gitlab-shell:/var/lib/git:/bin/bash
If it says /home/git
instead of /var/lib/git
, then something is wrong.
Also, check the option working_directory
in /etc/gitlab/unicorn.rb. It should point to /opt/gitab
.
In /etc/gitlab.yml, check the setting for repositories.storages.default (in my config file, it's on line 457). It should point to /var/lib/git/repositories
.
Are you using Mailroom? I'm not, so there might be a difference, too.
Can you post the output of
grep -R /home/git /etc/gitlab
?
from gentoo-overlay.
# grep git /etc/passwd
git:x:112:993:added by portage for gitlab-shell:/var/lib/git:/bin/bash
# grep -R /home/git /etc/gitlab
/etc/gitlab/gitlab.yml: default: /home/git/repositories/
/etc/gitlab/gitlab.yml: # secret_file: /home/git/gitlab/.gitlab_shell_secret
New release changed the gitlab.yml for some reason =(
from gentoo-overlay.
Related Issues (20)
- gitlab v8.10.2 HOT 3
- Sidekiq never sends mails (they pile up as background jobs) HOT 2
- Gitlab: .secret file gone HOT 4
- Update readme HOT 2
- GitLab 9.0 requires Ruby 2.3 HOT 3
- [GitLab] Location of .gitlab_workhorse_secret
- No such file or directory @ realpath_rec - /home/git HOT 6
- www-apps/gitlab-ce-9.1.4 upgrade failed HOT 2
- dev-vcs/gitlab-ci-multi-runner-9.3.0 missing init script HOT 3
- Impossible to install gitlab-gitaly HOT 6
- www-servers/gitlab-gitaly - Missing dependency for bundler HOT 1
- gitlab-shell build failure HOT 2
- gitlab-runner HOT 1
- Does your gitlab ebuild work with webapp-config? HOT 1
- XFS Filesystem issue with x86 systems - Duplicati-bin HOT 2
- Not an issue, but a request - can we have x86 builds again? HOT 4
- Duplicati failing to run HOT 3
- Duplicati. Add default certificates
- dev-dotnet/gtk-sharp failed to build HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gentoo-overlay.