frapposelli / vagrant-vcloud

Vagrant provider for VMware vCloud Director®
MIT License
67 stars 38 forks source link

cannot load such file nokogiri error #151

Closed usbulat closed 3 years ago

usbulat commented 5 years ago

Hello,

Vagrant 2.2.4 vagrant-vcloud (0.5.0, global)

I'm facing such problem:

/opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in 'require': cannot load such file -- nokogiri (LoadError)
    from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from /mnt/ssd/Vagrant VMs/gems/2.4.4/gems/vagrant-vcloud-0.5.0/lib/vagrant-vcloud/driver/meta.rb:20:in '<top (required)>'
    from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from /mnt/ssd/Vagrant VMs/gems/2.4.4/gems/vagrant-vcloud-0.5.0/lib/vagrant-vcloud/action/connect_vcloud.rb:23:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/before_trigger.rb:23:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/after_trigger.rb:26:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/config_validate.rb:25:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/before_trigger.rb:23:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builder.rb:116:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/runner.rb:102:in 'block in run'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/util/busy.rb:19:in 'busy'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/runner.rb:102:in 'run'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:238:in 'action_raw'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:209:in 'block in action'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/environment.rb:615:in 'lock'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:195:in 'call'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:195:in 'action'
    from /mnt/ssd/Vagrant VMs/gems/2.4.4/gems/vagrant-vcloud-0.5.0/lib/vagrant-vcloud/provider.rb:23:in 'state'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:529:in 'state'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:146:in 'initialize'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/vagrantfile.rb:81:in 'new'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/vagrantfile.rb:81:in 'machine'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/environment.rb:717:in 'machine'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/v2/command.rb:180:in 'block in with_target_vms'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/v2/command.rb:204:in 'block in with_target_vms'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/v2/command.rb:186:in 'each'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/v2/command.rb:186:in 'with_target_vms'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/commands/up/command.rb:87:in 'execute'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/cli.rb:66:in 'execute'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/environment.rb:292:in 'cli'
    from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/bin/vagrant:182:in '<main>'

Have such Vagrantfile:

precise32_vm_box_url = "http://vagrant.tsugliani.fr/precise32.box"
nodes = [
  { :hostname => "test",  :box => "precise32", :box_url => precise32_vm_box_url },
]
Vagrant.configure("2") do |config|
  # vCloud Director provider settings
  config.vm.provider :vcloud do |vcloud|
    vcloud.vapp_prefix = "test"
    vcloud.hostname = "https://[redacted]/"
    vcloud.username = "[redacted]"
    vcloud.password = "[redacted]"
    vcloud.org_name = "org"
    vcloud.vdc_name = "org-VDC"
    vcloud.catalog_name = "Linux"
    vcloud.ip_subnet = "172.16.0.1/255.255.255.0"
    vcloud.vdc_network_name = "public"
    vcloud.vdc_edge_gateway = "org-EdgeGW"
    vcloud.vdc_edge_gateway_ip = "[redacted]"
  end
  nodes.each do |node|
    config.vm.define node[:hostname] do |node_config|
      node_config.vm.box = node[:box]
      node_config.vm.hostname = node[:hostname]
      node_config.vm.box_url = node[:box_url]
    end
  end
end

What can be the problem? Did anyone face it?