4

I'm trying to execute the kitchen setup but then an error happened

kitchen setup
-----> Starting Kitchen (v1.1.1)
-----> Setting up <default-ubuntu-1204>...
       ERROR:  Could not find a valid gem 'busser' (>= 0) in any repository
       ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
           Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
sudo: /tmp/busser/gems/bin/busser: command not found       
sudo: /tmp/busser/bin/busser: command not found       
>>>>>> Setup failed on instance <default-ubuntu-1204>.
>>>>>> Please see .kitchen/logs/default-ubuntu-1204.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sh -c 'BUSSER_ROOT="/tmp/busser" GEM_HOME="/tmp/busser/gems" GEM_PATH="/tmp/busser/gems" GEM_CACHE="/tmp/busser/gems/cache" ; export BUSSER_ROOT GEM_HOME GEM_PATH GEM_CACHE; if ! sudo -E /opt/chef/embedded/bin/gem list busser -i >/dev/null; then sudo -E /opt/chef/embedded/bin/gem install busser --no-rdoc --no-ri; fi; gem_bindir=`/opt/chef/embedded/bin/ruby -rrubygems -e "puts Gem.bindir"`; sudo -E ${gem_bindir}/busser setup; sudo -E /tmp/busser/bin/busser plugin install busser-serverspec']

I have installed the busser gem

gem list buss

*** LOCAL GEMS ***

busser (0.6.0)
busser-serverspec (0.2.5)

I'm really lost..!!

2
  • That error is on your VM. Does your VM have Internet access? If you're using VirtualBox, you probably have to enable shared networking. Stackoverflow is not the correct venue for bug reports, please use GitHub issues instead.
    – sethvargo
    Jan 23, 2014 at 5:50
  • I'm sorry for my mistake...!!!
    – Robert
    Jan 23, 2014 at 13:00

1 Answer 1

3

Ok, I made a more deep research and I found that my internet connection was really bad and then when the guess machine tried to connect to rubygems.org, this return a error connection timeout or refuted.

I downloaded busser gem and put it on my local repository, I entered to kitchen instance and changed the gem source repository for my local repository and everything works fine.

1
  • @sethvargo, do you know how to configure o customize a gem source for kitchen instances from kitchen.yml file?
    – Robert
    Jan 23, 2014 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.