4

为什么我在安装 gitlab-ci 时在下面安装 gitlab ci 时会出现此错误

任何人都可以让我朝着正确的方向前进吗?我已经从安装页面做了很多事情,并且想使用远程服务器上的 postgress 和远程服务器上的 nginx:

谢谢

rake aborted!
Errno::EBADF: Bad file descriptor @ fptr_finalize - /home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/1.9.1/io/open.rb
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/1.9.1/io/open.rb:2:in `close'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/1.9.1/io/open.rb:2:in `open'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/1.9.1/io/open.rb:2:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require_with_backports'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:22:in `block in require_relative_dir'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:21:in `each'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:21:in `require_relative_dir'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/1.9.1/io.rb:3:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require_with_backports'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:22:in `block in require_relative_dir'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:21:in `each'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:21:in `require_relative_dir'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/1.9.1.rb:3:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require_with_backports'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/1.9.2.rb:2:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require_with_backports'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/1.9.3.rb:2:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require_with_backports'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/1.9.rb:2:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require_with_backports'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/2.0.0.rb:2:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require_with_backports'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/2.0.rb:2:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports/tools.rb:328:in `require_with_backports'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/backports-3.3.5/lib/backports.rb:3:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/coercible-0.2.0/lib/coercible.rb:16:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/virtus-1.0.0/lib/virtus.rb:225:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'
/home/gitlab_ci/gitlab-ci/vendor/bundle/ruby/2.1.0/gems/grape-0.6.1/lib/grape.rb:17:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/config/application.rb:5:in `<top (required)>'
/home/gitlab_ci/gitlab-ci/Rakefile:5:in `require'
/home/gitlab_ci/gitlab-ci/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
4

1 回答 1

5

归功于 Brian Hartvigsen,我从他的帖子中得到了这个答案

编辑 Gemfile.lock

sudo -u gitlab_ci -H vi ~/Gemfile.lock

并将 backports 行替换为“backports (3.6.1)”

然后重新安装捆绑包

# For MySQL (note, the option says "without ... postgres")
sudo -u gitlab_ci -H bundle install --without development test postgres --deployment

# Or for PostgreSQL (note, the option says "without ... mysql")
sudo -u gitlab_ci -H bundle install --without development test mysql --deployment
于 2014-10-03T04:26:34.700 回答