Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message: SSH exited (1) for command: [sudo -E /tmp/kitchen/bootstrap.sh] #342

Closed
lmayorga1980 opened this issue Jan 30, 2014 · 2 comments
Closed

Comments

@lmayorga1980
Copy link

It seems that it could find my bootstrap.sh but fails to run the command. I did vagrant ssh and the bootstrap.sh was copied successfully to /tmp/kitchen/data/bootstrap.sh.

kitchen diagnose output...

LT71707-MAC:tk lmo0$ kitchen diagnose

---
timestamp: 2014-01-30 19:30:37.311466000 Z
kitchen_version: 1.1.2.dev
instances:
  default-puppet-ubuntu-precise64:
    state_file:
      hostname: 127.0.0.1
      last_action: create
      port: '2222'
      ssh_key: /Users/lmo0/.vagrant.d/insecure_private_key
      username: vagrant
    driver:
      box: ubuntu_master
      box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_puppet-ubuntu-precise64_chef-provisionerless.box
      customize:
        memory: '256'
      kitchen_root: /Users/lmo0/git/tk
      log_level: :info
      name: vagrant
      network: []
      port: 22
      pre_create_command: 
      provider: virtualbox
      sudo: true
      synced_folders: []
      test_base_path: /Users/lmo0/git/tk/test/integration
      vagrantfile_erb: /Users/lmo0/.rvm/gems/ruby-2.0.0-p353/gems/kitchen-vagrant-0.14.0/templates/Vagrantfile.erb
      vm_hostname: default-puppet-ubuntu-precise64.vagrantup.com
    provisioner:
      data_path: /Users/lmo0/git/tk/test/integration/data
      kitchen_root: /Users/lmo0/git/tk
      log_level: :info
      name: shell
      root_path: /tmp/kitchen
      script: /Users/lmo0/git/tk/test/integration/data/bootstrap.sh
      sudo: true
      test_base_path: /Users/lmo0/git/tk/test/integration
    busser:
      busser_bin: /tmp/busser/bin/busser
      kitchen_root: /Users/lmo0/git/tk
      root_path: /tmp/busser
      ruby_bindir: /opt/chef/embedded/bin
      sudo: true
      suite_name: default
      test_base_path: /Users/lmo0/git/tk/test/integration
      version: busser
LT71707-MAC:tk lmo0$ kitchen test
-----> Starting Kitchen (v1.1.2.dev)
-----> Cleaning up any prior instances of <default-puppet-ubuntu-precise64>
-----> Destroying <default-puppet-ubuntu-precise64>...
       Finished destroying <default-puppet-ubuntu-precise64> (0m0.00s).
-----> Testing <default-puppet-ubuntu-precise64>
-----> Creating <default-puppet-ubuntu-precise64>...
       Bringing machine 'default' up with 'virtualbox' provider...
       [default] Importing base box 'ubuntu_master'...
       [default] Matching MAC address for NAT networking...
^R
       [default] Setting the name of the VM...
       [default] Clearing any previously set forwarded ports...
       [default] Clearing any previously set network interfaces...
       [default] Preparing network interfaces based on configuration...
       [default] Forwarding ports...
       [default] -- 22 => 2222 (adapter 1)
       [default] Running 'pre-boot' VM customizations...
       [default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...       [default] Machine booted and ready!
       [default] Setting hostname...
       Vagrant instance <default-puppet-ubuntu-precise64> created.
       Finished creating <default-puppet-ubuntu-precise64> (0m50.54s).
-----> Converging <default-puppet-ubuntu-precise64>...
       Preparing files for transfer
       Preparing data
       Preparing script
       Transfering files to <default-puppet-ubuntu-precise64>
       sudo: puppet: command not found
>>>>>> Converge failed on instance <default-puppet-ubuntu-precise64>.
>>>>>> Please see .kitchen/logs/default-puppet-ubuntu-precise64.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sudo -E /tmp/kitchen/bootstrap.sh]
>>>>>> ----------------------

full log ...

https://gist.github.com/lmayorga1980/8716974

@sethvargo
Copy link
Contributor

Puppet is not on the system - that's what the output says.

@lmayorga1980
Copy link
Author

Yes indeed.

@test-kitchen test-kitchen locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants