Coder Social home page Coder Social logo

chef-homesick's People

Contributors

fnichol avatar smdahlen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chef-homesick's Issues

'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' ---- STDOUT: error. Could not pull dotfiles, expected /home/mdesales/.homesick/repos/dotfiles/home exist and contain dotfiles

Hi @fnichol,

I've been trying to build a Vagrant box with chef-homesick and I'm getting a problem during bootstrap... It is clear to me that it is doing a successful "clone", but also is doing an "update" as well and fails to do the "pull"... I'm guessing the sequence is incorrect...

My environment is:
mdesales@Marcello-Work ~/dev/workboxes/cfp-workbox (master) $ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.5.0]
homesick-0.9.7
*** Chef 10.30.2 ***
Vagrant 1.4.1
Ubuntu 13.04

Here's the log of the error

uccessfully installed homesick-0.9.7
1 gem installed
Installing ri documentation for homesick-0.9.7...
rdoc --ri --op /var/lib/gems/1.9.1/doc/homesick-0.9.7/ri lib ChangeLog.markdown LICENSE README.markdown --title homesick-0.9.7 Documentation --quiet
Installing RDoc documentation for homesick-0.9.7...
rdoc --op /var/lib/gems/1.9.1/doc/homesick-0.9.7/rdoc lib ChangeLog.markdown LICENSE README.markdown --title homesick-0.9.7 Documentation --quiet
Reading package lists...
Building dependency tree...
Reading state information...
vim is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[default] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
stdin: is not a tty
stdin: is not a tty
[2013-12-25T22:39:52+00:00] INFO: *** Chef 10.30.2 ***
[2013-12-25T22:39:52+00:00] INFO: Setting the run_list to ["recipe[apache2]", "recipe[homesick]", "recipe[zsh]", "recipe[oh-my-zsh]", "recipe[users::ruby_shadow]", "recipe[users::sysadmins]", "recipe[users::sysadmin_sudo]", "recipe[homesick_agent::data_bag]", "recipe[root_ssh_agent::ppid]", "recipe[ssh_known_hosts]"] from JSON

2013-12-25T22:39:55+00:00] INFO: execute[ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick clone git://github.com/marcellodesales/dotpickles.git --force'] ran successfully

Error executing action run on resource 'execute[ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force']'

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '1'
---- Begin output of ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' ----
STDOUT: error Could not pull dotfiles, expected /home/mdesales/.homesick/repos/dotfiles/home exist and contain dotfiles
STDERR: Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
---- End output of ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' ----
Ran ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' returned 1

Resource Declaration:

In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/homesick_agent/libraries/castle_agent.rb

39: execute remote_command
40: end

Compiled Resource:

Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/homesick_agent/libraries/castle_agent.rb:39:in `run_with_agent'

execute("ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force'") do
action "run"
retries 0
retry_delay 2
command "ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force'"
backup 5
returns 0
cookbook_name :homesick
end

[2013-12-25T22:39:55+00:00] ERROR: Running exception handlers
[2013-12-25T22:39:55+00:00] ERROR: Exception handlers complete
[2013-12-25T22:39:55+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-12-25T22:39:55+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force'](/tmp/vagrant-chef-1/chef-solo-1/cookbooks/homesick_agent/libraries/castle_agent.rb line 39) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' ----
STDOUT: error Could not pull dotfiles, expected /home/mdesales/.homesick/repos/dotfiles/home exist and contain dotfiles
STDERR: Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
---- End output of ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' ----
Ran ssh -A -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no mdesales@localhost 'PATH=$PATH:/opt/vagrant_ruby/bin homesick pull dotfiles --force' returned 1
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.