Cloud Controller NG component won't start

55 views
Skip to first unread message

yaco...@gmail.com

unread,
Jun 16, 2014, 12:44:45 PM6/16/14
to vcap...@cloudfoundry.org
Hello everyone.

I have a bare metal ubuntu 10.04 server I'm trying to install CF on it, using nise bosh.

everything goes smoothly, but it seems it installs nokogiri 1.5, and the cloud_controller_ng and cloud controller worker1, etc. all fail to start and complain that:

/var/vcap/packages/ruby/lib/
ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find nokogiri-1.6.1 in any of the sources (Bundler::GemNotFound)
        from /var/vcap/packages/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/spec_set.rb:83:in `map!'
        from /var/vcap/packages/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/spec_set.rb:83:in `materialize'
        from /var/vcap/packages/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/definition.rb:113:in `specs'
        from /var/vcap/packages/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/definition.rb:158:in `specs_for'
        from /var/vcap/packages/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/definition.rb:147:in `requested_specs'
        from /var/vcap/packages/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/environment.rb:23:in `requested_specs'
        from /var/vcap/packages/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/runtime.rb:11:in `setup'
        from /var/vcap/packages/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler.rb:116:in `setup'
        from /var/vcap/packages/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/setup.rb:17:in `<top (required)>'
        from /var/vcap/packages/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /var/vcap/packages/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'


I tried invoking gem install nokogiri, but it didn't help. It seems like the installation is using its own configuration of rubygems which I don't know how to manipulate.

Has anyone encountered this before, or knows what to do?


Many thanks in advance, Yacov.

Iwasaki Yudai

unread,
Jun 16, 2014, 10:00:46 PM6/16/14
to vcap...@cloudfoundry.org, yaco...@gmail.com
It is strange that Nokogiri was not installed by the installer.
How did you start the process?

cf_nise_installer installs rbenv to manage ruby binaries. You can manage ruby gems with rbenv.

wulo...@huawei.com

unread,
Jun 17, 2014, 2:22:51 AM6/17/14
to vcap...@cloudfoundry.org, yaco...@gmail.com
Hi,

You can follow the packaing script of cloud_controller_ng[1] to check whether nokogiri is installed.

[1]https://github.com/cloudfoundry/cf-release/blob/master/packages/cloud_controller_ng/packaging


Tim

yaco...@gmail.com

unread,
Jun 17, 2014, 2:48:11 AM6/17/14
to vcap...@cloudfoundry.org, yaco...@gmail.com
It was, I think. But it installed version 1.5.
1) What user do I need to be to run rbenv?
2) Can you tell me the command line I need to run to install the correct nokogiri version?
3) I've noticed that you added some warning that bundle isn't supposed to be run as root, that's why I'm asking about (1).


בתאריך יום שלישי, 17 ביוני 2014 05:00:46 UTC+3, מאת Iwasaki Yudai:
Message has been deleted
Message has been deleted

Iwasaki Yudai

unread,
Jun 19, 2014, 12:48:37 AM6/19/14
to vcap...@cloudfoundry.org, yaco...@gmail.com
I realized that Nokogiri is not installed by rbenv. It should be installed by Nise BOSH.
It's hard to manually install gems installed into /var/vcap/packages. Try reruning the install script.
Reply all
Reply to author
Forward
0 new messages