FAQ
Hello,

I'm trying to install BOSH on AWS. I'm using Dr Nic`s tutorial:
https://github.com/drnic/bosh-getting-started/blob/master/creating-a-bosh-from-scratch.md

When I run "ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh" I
get the following error:

% ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh
config reading cloud configuration config.yml
metadata generating cookbook metadata
config reading deploy configuration
config reading repo configuration
syncing syncing bosh
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of
known hosts.
repos checking which repos need to be uploaded
==> DIRECTLY CONNECTING TO ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com
repos uploading bosh to
ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com
==> EXECUTING SSH LOGIN git push -q
ssh://ubuntu@ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com:22/var/vcap/deploy/repos/bosh
master
Warning: Permanently added
'ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com,XXX.XX.XX.XXX' (RSA) to
the list of known hosts.
/home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in
`eof?': Input/output error - /dev/pts/2 (Errno::EIO)
from
/home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in
`expect'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:136:in
`block in answer_ssh'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
`spawn'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
`answer_ssh'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:163:in
`block in update_remote_repo'
from
/home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in
`block in inside'
from
/home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in
`chdir'
from
/home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in
`cd'
from
/home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in
`inside'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:161:in
`update_remote_repo'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:409:in
`block (5 levels) in deploy'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:276:in
`connect'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:408:in
`block (4 levels) in deploy'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in `each'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in
`block (3 levels) in deploy'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:230:in
`prepare_connection_for'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:404:in
`block (2 levels) in deploy'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in `each'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in
`block in deploy'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in `each'
from
/home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in
`deploy'
from
/home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/task.rb:22:in
`run'
from
/home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/invocation.rb:118:in
`invoke_task'
from
/home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor.rb:263:in
`dispatch'
from
/home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/base.rb:389:in
`start'
from ../chef_deployer/bin/chef_deployer:16:in `<main>'

I can ssh into the instance without problems and I also get the same error
when I try to deploy it from another ec2 instance.

Is there something I might be doing wrong? Should I use some other version
of ruby? (I have 1.9.2p180 installed with RVM).

Or maybe there is some other way to install BOSH? My goal is to deploy
Cloud Foundry on AWS.

Thanks,

Tomas

Search Discussions

  • Dr Nic Williams at Jun 25, 2012 at 3:08 pm
    Did you deviate from any steps in the tutorial at all? (to figure out if its a regression in chef_deployer or something different on your VM)

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:05 AM, Tomas Markauskas wrote:

    Hello,

    I'm trying to install BOSH on AWS. I'm using Dr Nic`s tutorial: https://github.com/drnic/bosh-getting-started/blob/master/creating-a-bosh-from-scratch.md

    When I run "ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh" I get the following error:

    % ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh
    config reading cloud configuration config.yml
    metadata generating cookbook metadata
    config reading deploy configuration
    config reading repo configuration
    syncing syncing bosh
    Warning: Permanently added 'github.com (http://github.com),207.97.227.239' (RSA) to the list of known hosts.
    repos checking which repos need to be uploaded
    ==> DIRECTLY CONNECTING TO ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com (http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com)
    repos uploading bosh to ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com (http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com)
    ==> EXECUTING SSH LOGIN git push -q ssh://ubuntu@ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com (mailto:ubuntu@ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com):22/var/vcap/deploy/repos/bosh master
    Warning: Permanently added 'ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com (http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com),XXX.XX.XX.XXX' (RSA) to the list of known hosts.
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in `eof?': Input/output error - /dev/pts/2 (Errno::EIO)
    from /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in `expect'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:136:in `block in answer_ssh'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in `spawn'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in `answer_ssh'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:163:in `block in update_remote_repo'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in `block in inside'
    from /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in `chdir'
    from /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in `cd'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in `inside'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:161:in `update_remote_repo'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:409:in `block (5 levels) in deploy'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:276:in `connect'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:408:in `block (4 levels) in deploy'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in `each'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in `block (3 levels) in deploy'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:230:in `prepare_connection_for'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:404:in `block (2 levels) in deploy'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in `each'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in `block in deploy'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in `each'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in `deploy'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
    from ../chef_deployer/bin/chef_deployer:16:in `<main>'

    I can ssh into the instance without problems and I also get the same error when I try to deploy it from another ec2 instance.

    Is there something I might be doing wrong? Should I use some other version of ruby? (I have 1.9.2p180 installed with RVM).

    Or maybe there is some other way to install BOSH? My goal is to deploy Cloud Foundry on AWS.

    Thanks,

    Tomas
  • Tomas Markauskas at Jun 25, 2012 at 3:17 pm
    The only thing I did differently was that I used a newer Ubuntu 10.04 AMI:
    ami-edc6fe99 (also provided by Canonical).

    Tomas
    On Monday, June 25, 2012 5:08:27 PM UTC+2, Dr Nic Williams wrote:

    Did you deviate from any steps in the tutorial at all? (to figure out if
    its a regression in chef_deployer or something different on your VM)

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:05 AM, Tomas Markauskas wrote:

    Hello,

    I'm trying to install BOSH on AWS. I'm using Dr Nic`s tutorial:
    https://github.com/drnic/bosh-getting-started/blob/master/creating-a-bosh-from-scratch.md

    When I run "ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh"
    I get the following error:

    % ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh
    config reading cloud configuration config.yml
    metadata generating cookbook metadata
    config reading deploy configuration
    config reading repo configuration
    syncing syncing bosh
    Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list
    of known hosts.
    repos checking which repos need to be uploaded
    ==> DIRECTLY CONNECTING TO
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com
    repos uploading bosh to
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com
    ==> EXECUTING SSH LOGIN git push -q ssh://
    ubuntu@ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com:22/var/vcap/deploy/repos/bosh
    master
    Warning: Permanently added '
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com,XXX.XX.XX.XXX' (RSA) to
    the list of known hosts.
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in
    `eof?': Input/output error - /dev/pts/2 (Errno::EIO)
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in
    `expect'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:136:in
    `block in answer_ssh'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
    `spawn'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
    `answer_ssh'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:163:in
    `block in update_remote_repo'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in
    `block in inside'
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in
    `chdir'
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in
    `cd'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in
    `inside'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:161:in
    `update_remote_repo'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:409:in
    `block (5 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:276:in
    `connect'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:408:in
    `block (4 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in
    `block (3 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:230:in
    `prepare_connection_for'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:404:in
    `block (2 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in
    `block in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in
    `deploy'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/task.rb:22:in
    `run'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/invocation.rb:118:in
    `invoke_task'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor.rb:263:in
    `dispatch'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/base.rb:389:in
    `start'
    from ../chef_deployer/bin/chef_deployer:16:in `<main>'

    I can ssh into the instance without problems and I also get the same error
    when I try to deploy it from another ec2 instance.

    Is there something I might be doing wrong? Should I use some other version
    of ruby? (I have 1.9.2p180 installed with RVM).

    Or maybe there is some other way to install BOSH? My goal is to deploy
    Cloud Foundry on AWS.

    Thanks,

    Tomas

  • Dr Nic Williams at Jun 25, 2012 at 3:41 pm
    Are you able to try the tutorial exactly as mentioned? Perhaps the fog-provided AMI has something extra in it that we're not aware of.

    If you can't; I'll try to reproduce your bug and investigate later this week.

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:17 AM, Tomas Markauskas wrote:

    The only thing I did differently was that I used a newer Ubuntu 10.04 AMI: ami-edc6fe99 (also provided by Canonical).

    Tomas
    On Monday, June 25, 2012 5:08:27 PM UTC+2, Dr Nic Williams wrote:
    Did you deviate from any steps in the tutorial at all? (to figure out if its a regression in chef_deployer or something different on your VM)

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:05 AM, Tomas Markauskas wrote:

    Hello,

    I'm trying to install BOSH on AWS. I'm using Dr Nic`s tutorial: https://github.com/drnic/bosh-getting-started/blob/master/creating-a-bosh-from-scratch.md

    When I run "ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh" I get the following error:

    % ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh
    config reading cloud configuration config.yml
    metadata generating cookbook metadata
    config reading deploy configuration
    config reading repo configuration
    syncing syncing bosh
    Warning: Permanently added 'github.com (http://github.com),207.97.227.239' (RSA) to the list of known hosts.
    repos checking which repos need to be uploaded
    ==> DIRECTLY CONNECTING TO ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com (http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com)
    repos uploading bosh to ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com (http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com)
    ==> EXECUTING SSH LOGIN git push -q ssh://ubuntu@ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com (mailto:ubuntu@ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com):22/var/vcap/deploy/repos/bosh master
    Warning: Permanently added 'ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com (http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com),XXX.XX.XX.XXX' (RSA) to the list of known hosts.
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in `eof?': Input/output error - /dev/pts/2 (Errno::EIO)
    from /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in `expect'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:136:in `block in answer_ssh'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in `spawn'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in `answer_ssh'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:163:in `block in update_remote_repo'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in `block in inside'
    from /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in `chdir'
    from /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in `cd'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in `inside'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:161:in `update_remote_repo'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:409:in `block (5 levels) in deploy'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:276:in `connect'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:408:in `block (4 levels) in deploy'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in `each'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in `block (3 levels) in deploy'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:230:in `prepare_connection_for'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:404:in `block (2 levels) in deploy'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in `each'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in `block in deploy'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in `each'
    from /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in `deploy'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
    from /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
    from ../chef_deployer/bin/chef_deployer:16:in `<main>'

    I can ssh into the instance without problems and I also get the same error when I try to deploy it from another ec2 instance.

    Is there something I might be doing wrong? Should I use some other version of ruby? (I have 1.9.2p180 installed with RVM).

    Or maybe there is some other way to install BOSH? My goal is to deploy Cloud Foundry on AWS.

    Thanks,

    Tomas
  • Tomas Markauskas at Jun 25, 2012 at 3:50 pm
    It looks like you were using ami-3202f25b in us-east-1. I'll try it. But it
    seems to be also provided by Canonical
    (099720109477/ebs/ubuntu-images/ubuntu-lucid-10.04-amd64-server-20110201.1).

    Tomas
    On Monday, June 25, 2012 5:41:46 PM UTC+2, Dr Nic Williams wrote:

    Are you able to try the tutorial exactly as mentioned? Perhaps the
    fog-provided AMI has something extra in it that we're not aware of.

    If you can't; I'll try to reproduce your bug and investigate later this
    week.

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:17 AM, Tomas Markauskas wrote:

    The only thing I did differently was that I used a newer Ubuntu 10.04 AMI:
    ami-edc6fe99 (also provided by Canonical).

    Tomas

    On Monday, June 25, 2012 5:08:27 PM UTC+2, Dr Nic Williams wrote:

    Did you deviate from any steps in the tutorial at all? (to figure out if
    its a regression in chef_deployer or something different on your VM)

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:05 AM, Tomas Markauskas wrote:

    Hello,

    I'm trying to install BOSH on AWS. I'm using Dr Nic`s tutorial:
    https://github.com/drnic/bosh-getting-started/blob/master/creating-a-bosh-from-scratch.md

    When I run "ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh"
    I get the following error:

    % ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh
    config reading cloud configuration config.yml
    metadata generating cookbook metadata
    config reading deploy configuration
    config reading repo configuration
    syncing syncing bosh
    Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list
    of known hosts.
    repos checking which repos need to be uploaded
    ==> DIRECTLY CONNECTING TO
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com
    repos uploading bosh to
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com
    ==> EXECUTING SSH LOGIN git push -q ssh://
    ubuntu@ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com:22/var/vcap/deploy/repos/bosh
    master
    Warning: Permanently added '
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com,XXX.XX.XX.XXX' (RSA) to
    the list of known hosts.
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in
    `eof?': Input/output error - /dev/pts/2 (Errno::EIO)
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in
    `expect'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:136:in
    `block in answer_ssh'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
    `spawn'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
    `answer_ssh'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:163:in
    `block in update_remote_repo'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in
    `block in inside'
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in
    `chdir'
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in
    `cd'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in
    `inside'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:161:in
    `update_remote_repo'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:409:in
    `block (5 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:276:in
    `connect'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:408:in
    `block (4 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in
    `block (3 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:230:in
    `prepare_connection_for'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:404:in
    `block (2 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in
    `block in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in
    `deploy'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/task.rb:22:in
    `run'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/invocation.rb:118:in
    `invoke_task'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor.rb:263:in
    `dispatch'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/base.rb:389:in
    `start'
    from ../chef_deployer/bin/chef_deployer:16:in `<main>'

    I can ssh into the instance without problems and I also get the same error
    when I try to deploy it from another ec2 instance.

    Is there something I might be doing wrong? Should I use some other version
    of ruby? (I have 1.9.2p180 installed with RVM).

    Or maybe there is some other way to install BOSH? My goal is to deploy
    Cloud Foundry on AWS.

    Thanks,

    Tomas


  • Tomas Markauskas at Jun 25, 2012 at 4:55 pm
    Nic,

    The problem still exists when using the same AMI as you did. But while
    preparing the instance in us-east-1 region I've noticed that bosh is
    building ruby 1.8.7. I changed my local ruby version to 1.8.7 from 1.9.2
    and now it's working. I guess that was the only problem.

    Tomas
    On Monday, June 25, 2012 5:50:28 PM UTC+2, Tomas Markauskas wrote:

    It looks like you were using ami-3202f25b in us-east-1. I'll try it. But
    it seems to be also provided by Canonical
    (099720109477/ebs/ubuntu-images/ubuntu-lucid-10.04-amd64-server-20110201.1).

    Tomas
    On Monday, June 25, 2012 5:41:46 PM UTC+2, Dr Nic Williams wrote:

    Are you able to try the tutorial exactly as mentioned? Perhaps the
    fog-provided AMI has something extra in it that we're not aware of.

    If you can't; I'll try to reproduce your bug and investigate later this
    week.

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:17 AM, Tomas Markauskas wrote:

    The only thing I did differently was that I used a newer Ubuntu 10.04
    AMI: ami-edc6fe99 (also provided by Canonical).

    Tomas

    On Monday, June 25, 2012 5:08:27 PM UTC+2, Dr Nic Williams wrote:

    Did you deviate from any steps in the tutorial at all? (to figure out if
    its a regression in chef_deployer or something different on your VM)

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:05 AM, Tomas Markauskas wrote:

    Hello,

    I'm trying to install BOSH on AWS. I'm using Dr Nic`s tutorial:
    https://github.com/drnic/bosh-getting-started/blob/master/creating-a-bosh-from-scratch.md

    When I run "ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh"
    I get the following error:

    % ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh
    config reading cloud configuration config.yml
    metadata generating cookbook metadata
    config reading deploy configuration
    config reading repo configuration
    syncing syncing bosh
    Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list
    of known hosts.
    repos checking which repos need to be uploaded
    ==> DIRECTLY CONNECTING TO
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com
    repos uploading bosh to
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com
    ==> EXECUTING SSH LOGIN git push -q ssh://
    ubuntu@ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com:22/var/vcap/deploy/repos/bosh
    master
    Warning: Permanently added '
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com,XXX.XX.XX.XXX' (RSA)
    to the list of known hosts.
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in
    `eof?': Input/output error - /dev/pts/2 (Errno::EIO)
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in
    `expect'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:136:in
    `block in answer_ssh'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
    `spawn'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
    `answer_ssh'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:163:in
    `block in update_remote_repo'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in
    `block in inside'
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in
    `chdir'
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in
    `cd'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in
    `inside'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:161:in
    `update_remote_repo'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:409:in
    `block (5 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:276:in
    `connect'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:408:in
    `block (4 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in
    `block (3 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:230:in
    `prepare_connection_for'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:404:in
    `block (2 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in
    `block in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in
    `deploy'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/task.rb:22:in
    `run'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/invocation.rb:118:in
    `invoke_task'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor.rb:263:in
    `dispatch'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/base.rb:389:in
    `start'
    from ../chef_deployer/bin/chef_deployer:16:in `<main>'

    I can ssh into the instance without problems and I also get the same
    error when I try to deploy it from another ec2 instance.

    Is there something I might be doing wrong? Should I use some other
    version of ruby? (I have 1.9.2p180 installed with RVM).

    Or maybe there is some other way to install BOSH? My goal is to deploy
    Cloud Foundry on AWS.

    Thanks,

    Tomas


  • Dr Nic Williams at Jul 10, 2012 at 9:00 pm
    Here is a diff of MRI's expect.rb between MRI 1.9.3 and MRI
    1.8.7 http://rxr.whitequark.org/mri/diff/ext/pty/lib/expect.rb?v=1.9.3;diffval=1.8.7;diffvar=v

    Can anyone suggest why chef_deployer is barfing under 1.9.3?

    Nic
    On Monday, June 25, 2012 9:55:26 AM UTC-7, Tomas Markauskas wrote:

    Nic,

    The problem still exists when using the same AMI as you did. But while
    preparing the instance in us-east-1 region I've noticed that bosh is
    building ruby 1.8.7. I changed my local ruby version to 1.8.7 from 1.9.2
    and now it's working. I guess that was the only problem.

    Tomas
    On Monday, June 25, 2012 5:50:28 PM UTC+2, Tomas Markauskas wrote:

    It looks like you were using ami-3202f25b in us-east-1. I'll try it. But
    it seems to be also provided by Canonical
    (099720109477/ebs/ubuntu-images/ubuntu-lucid-10.04-amd64-server-20110201.1).

    Tomas
    On Monday, June 25, 2012 5:41:46 PM UTC+2, Dr Nic Williams wrote:

    Are you able to try the tutorial exactly as mentioned? Perhaps the
    fog-provided AMI has something extra in it that we're not aware of.

    If you can't; I'll try to reproduce your bug and investigate later this
    week.

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:17 AM, Tomas Markauskas wrote:

    The only thing I did differently was that I used a newer Ubuntu 10.04
    AMI: ami-edc6fe99 (also provided by Canonical).

    Tomas

    On Monday, June 25, 2012 5:08:27 PM UTC+2, Dr Nic Williams wrote:

    Did you deviate from any steps in the tutorial at all? (to figure out if
    its a regression in chef_deployer or something different on your VM)

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:05 AM, Tomas Markauskas wrote:

    Hello,

    I'm trying to install BOSH on AWS. I'm using Dr Nic`s tutorial:
    https://github.com/drnic/bosh-getting-started/blob/master/creating-a-bosh-from-scratch.md

    When I run "ruby ../chef_deployer/bin/chef_deployer deploy
    ~/.microbosh" I get the following error:

    % ruby ../chef_deployer/bin/chef_deployer deploy ~/.microbosh
    config reading cloud configuration config.yml
    metadata generating cookbook metadata
    config reading deploy configuration
    config reading repo configuration
    syncing syncing bosh
    Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the
    list of known hosts.
    repos checking which repos need to be uploaded
    ==> DIRECTLY CONNECTING TO
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com
    repos uploading bosh to
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com
    ==> EXECUTING SSH LOGIN git push -q ssh://
    ubuntu@ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com:22/var/vcap/deploy/repos/bosh
    master
    Warning: Permanently added '
    ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com,XXX.XX.XX.XXX' (RSA)
    to the list of known hosts.
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in
    `eof?': Input/output error - /dev/pts/2 (Errno::EIO)
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/expect.rb:24:in
    `expect'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:136:in
    `block in answer_ssh'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
    `spawn'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
    `answer_ssh'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:163:in
    `block in update_remote_repo'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in
    `block in inside'
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in
    `chdir'
    from
    /home/tomas/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/fileutils.rb:121:in
    `cd'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/actions.rb:178:in
    `inside'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:161:in
    `update_remote_repo'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:409:in
    `block (5 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:276:in
    `connect'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:408:in
    `block (4 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in
    `block (3 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:230:in
    `prepare_connection_for'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:404:in
    `block (2 levels) in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in
    `block in deploy'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in `each'
    from
    /home/tomas/.microbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in
    `deploy'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/task.rb:22:in
    `run'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/invocation.rb:118:in
    `invoke_task'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor.rb:263:in
    `dispatch'
    from
    /home/tomas/.rvm/gems/ruby-1.9.2-p180@bosh/gems/thor-0.14.6/lib/thor/base.rb:389:in
    `start'
    from ../chef_deployer/bin/chef_deployer:16:in `<main>'

    I can ssh into the instance without problems and I also get the same
    error when I try to deploy it from another ec2 instance.

    Is there something I might be doing wrong? Should I use some other
    version of ruby? (I have 1.9.2p180 installed with RVM).

    Or maybe there is some other way to install BOSH? My goal is to deploy
    Cloud Foundry on AWS.

    Thanks,

    Tomas


  • Hugues Malphettes at Jul 11, 2012 at 12:44 am
    I got that error too and a fix... that worked for the 3 times I used the
    chef-deployer.
    Martin is reviewing the patch: http://reviews.cloudfoundry.org/6935
    I hope this helps.
    Hugues
    PS: I don't have access to gerrit at the moment.
    What worked for me was: in answer_ssh
    the line before expect add a guard:
    if password
    #### do the password interactive login
    end
    On Wed, Jul 11, 2012 at 5:00 AM, Dr Nic Williams wrote:

    Here is a diff of MRI's expect.rb between MRI 1.9.3 and MRI 1.8.7
    http://rxr.whitequark.org/mri/diff/ext/pty/lib/expect.rb?v=1.9.3;diffval=1.8.7;diffvar=v

    Can anyone suggest why chef_deployer is barfing under 1.9.3?

    Nic
    On Monday, June 25, 2012 9:55:26 AM UTC-7, Tomas Markauskas wrote:

    Nic,

    The problem still exists when using the same AMI as you did. But while
    preparing the instance in us-east-1 region I've noticed that bosh is
    building ruby 1.8.7. I changed my local ruby version to 1.8.7 from 1.9.2
    and now it's working. I guess that was the only problem.

    Tomas
    On Monday, June 25, 2012 5:50:28 PM UTC+2, Tomas Markauskas wrote:

    It looks like you were using ami-3202f25b in us-east-1. I'll try it. But
    it seems to be also provided by Canonical (099720109477/ebs/ubuntu-**
    images/ubuntu-lucid-10.04-**amd64-server-20110201.1).

    Tomas
    On Monday, June 25, 2012 5:41:46 PM UTC+2, Dr Nic Williams wrote:

    Are you able to try the tutorial exactly as mentioned? Perhaps the
    fog-provided AMI has something extra in it that we're not aware of.

    If you can't; I'll try to reproduce your bug and investigate later this
    week.

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:17 AM, Tomas Markauskas wrote:

    The only thing I did differently was that I used a newer Ubuntu 10.04
    AMI: ami-edc6fe99 (also provided by Canonical).

    Tomas

    On Monday, June 25, 2012 5:08:27 PM UTC+2, Dr Nic Williams wrote:

    Did you deviate from any steps in the tutorial at all? (to figure out
    if its a regression in chef_deployer or something different on your VM)

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:05 AM, Tomas Markauskas wrote:

    Hello,

    I'm trying to install BOSH on AWS. I'm using Dr Nic`s tutorial:
    https://github.com/**drnic/bosh-getting-started/**
    blob/master/creating-a-bosh-**from-scratch.md<https://github.com/drnic/bosh-getting-started/blob/master/creating-a-bosh-from-scratch.md>

    When I run "ruby ../chef_deployer/bin/chef_**deployer deploy
    ~/.microbosh" I get the following error:

    % ruby ../chef_deployer/bin/chef_**deployer deploy ~/.microbosh
    config reading cloud configuration config.yml
    metadata generating cookbook metadata
    config reading deploy configuration
    config reading repo configuration
    syncing syncing bosh
    Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the
    list of known hosts.
    repos checking which repos need to be uploaded
    ==> DIRECTLY CONNECTING TO ec2-XXX-XX-XX-XXX.eu-west-1.**
    compute.amazonaws.com<http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com>
    repos uploading bosh to ec2-XXX-XX-XX-XXX.eu-west-1.**
    compute.amazonaws.com<http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com>
    ==> EXECUTING SSH LOGIN git push -q ssh://ubuntu@ec2-XXX-XX-XX-**
    XXX.eu-west-1.compute.**amazonaws.com<ubuntu@ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com>
    :22/var/vcap/**deploy/repos/bosh master
    Warning: Permanently added 'ec2-XXX-XX-XX-XXX.eu-west-1.**
    compute.amazonaws.com<http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com>
    ,XXX.XX.**XX.XXX' (RSA) to the list of known hosts.
    /home/tomas/.rvm/rubies/ruby-**1.9.2-p180/lib/ruby/1.9.1/**expect.rb:24:in
    `eof?': Input/output error - /dev/pts/2 (Errno::EIO)
    from /home/tomas/.rvm/rubies/ruby-**1.9.2-p180/lib/ruby/1.9.1/*
    *expect.rb:24:in `expect'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:136:in
    `block in answer_ssh'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:135:in
    `spawn'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:135:in
    `answer_ssh'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:163:in
    `block in update_remote_repo'
    from /home/tomas/.rvm/gems/ruby-1.**9.2-p180@bosh
    /gems/thor-0.14.**6/lib/thor/actions.rb:178:in `block in inside'
    from /home/tomas/.rvm/rubies/ruby-**1.9.2-p180/lib/ruby/1.9.1/*
    *fileutils.rb:121:in `chdir'
    from /home/tomas/.rvm/rubies/ruby-**1.9.2-p180/lib/ruby/1.9.1/*
    *fileutils.rb:121:in `cd'
    from /home/tomas/.rvm/gems/ruby-1.**9.2-p180@bosh
    /gems/thor-0.14.**6/lib/thor/actions.rb:178:in `inside'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:161:in
    `update_remote_repo'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:409:in
    `block (5 levels) in deploy'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:276:in
    `connect'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:408:in
    `block (4 levels) in deploy'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:405:in
    `each'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:405:in
    `block (3 levels) in deploy'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:230:in
    `prepare_connection_for'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:404:in
    `block (2 levels) in deploy'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:401:in
    `each'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:401:in
    `block in deploy'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:400:in
    `each'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:400:in
    `deploy'
    from /home/tomas/.rvm/gems/ruby-1.**9.2-p180@bosh
    /gems/thor-0.14.**6/lib/thor/task.rb:22:in `run'
    from /home/tomas/.rvm/gems/ruby-1.**9.2-p180@bosh
    /gems/thor-0.14.**6/lib/thor/invocation.rb:118:**in `invoke_task'
    from /home/tomas/.rvm/gems/ruby-1.**9.2-p180@bosh
    /gems/thor-0.14.**6/lib/thor.rb:263:in `dispatch'
    from /home/tomas/.rvm/gems/ruby-1.**9.2-p180@bosh
    /gems/thor-0.14.**6/lib/thor/base.rb:389:in `start'
    from ../chef_deployer/bin/chef_**deployer:16:in `<main>'

    I can ssh into the instance without problems and I also get the same
    error when I try to deploy it from another ec2 instance.

    Is there something I might be doing wrong? Should I use some other
    version of ruby? (I have 1.9.2p180 installed with RVM).

    Or maybe there is some other way to install BOSH? My goal is to deploy
    Cloud Foundry on AWS.

    Thanks,

    Tomas


  • Ruslan K at Jul 23, 2012 at 2:05 pm
    Hello!

    I have exact same error.
    Last week there was no such error.
    This error is the result of updating BOSH?
    Who can help?
    Thanks!

    <code>
    cd ~/.chefbosh
    git clone https://github.com/cloudfoundry/bosh.git
    cd bosh/chef_deployer
    bundle
    cd ../release/


    config reading cloud configuration config.yml
    metadata generating cookbook metadata
    config reading deploy configuration
    config reading repo configuration
    syncing syncing bosh
    Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of
    known hosts.
    repos checking which repos need to be uploaded
    ==> DIRECTLY CONNECTING TO 10.1.117.62
    repos uploading bosh to 10.1.117.62
    ==> EXECUTING SSH LOGIN git push -q
    ssh://ubuntu@10.1.117.62:22/var/vcap/deploy/repos/bosh master
    Warning: Permanently added '10.1.117.62' (RSA) to the list of known hosts.
    /home/ruslan/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/expect.rb:24:in
    `eof?': Input/output error - /dev/pts/1 (Errno
    from
    /home/ruslan/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/expect.rb:24:in
    `expect'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:136:in
    `block in answer_ssh'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
    `spawn'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:135:in
    `answer_ssh'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:163:in
    `block in update_remote_repo'
    from
    /home/ruslan/.rvm/gems/ruby-1.9.2-p320/gems/thor-0.14.6/lib/thor/actions.rb:178:in
    `block in inside'
    from
    /home/ruslan/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/fileutils.rb:121:in
    `chdir'
    from
    /home/ruslan/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/fileutils.rb:121:in
    `cd'
    from
    /home/ruslan/.rvm/gems/ruby-1.9.2-p320/gems/thor-0.14.6/lib/thor/actions.rb:178:in
    `inside'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:161:in
    `update_remote_repo'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:409:in
    `block (5 levels) in deploy'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:276:in
    `connect'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:408:in
    `block (4 levels) in deploy'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in `each'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:405:in
    `block (3 levels) in deploy'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:230:in
    `prepare_connection_for'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:404:in
    `block (2 levels) in deploy'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in `each'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:401:in
    `block in deploy'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in `each'
    from
    /home/ruslan/.chefbosh/bosh/chef_deployer/lib/chef_deployer.rb:400:in
    `deploy'
    from
    /home/ruslan/.rvm/gems/ruby-1.9.2-p320/gems/thor-0.14.6/lib/thor/task.rb:22:in
    `run'
    from
    /home/ruslan/.rvm/gems/ruby-1.9.2-p320/gems/thor-0.14.6/lib/thor/invocation.rb:118:in
    `invoke_task'
    from
    /home/ruslan/.rvm/gems/ruby-1.9.2-p320/gems/thor-0.14.6/lib/thor.rb:263:in
    `dispatch'
    from
    /home/ruslan/.rvm/gems/ruby-1.9.2-p320/gems/thor-0.14.6/lib/thor/base.rb:389:in
    `start'
    from ../chef_deployer/bin/chef_deployer:16:in `<main>'
    </code>

    On Wednesday, July 11, 2012 3:44:04 AM UTC+3, Hugues Malphettes wrote:

    I got that error too and a fix... that worked for the 3 times I used the
    chef-deployer.
    Martin is reviewing the patch: http://reviews.cloudfoundry.org/6935
    I hope this helps.
    Hugues
    PS: I don't have access to gerrit at the moment.
    What worked for me was: in answer_ssh
    the line before expect add a guard:
    if password
    #### do the password interactive login
    end
    On Wed, Jul 11, 2012 at 5:00 AM, Dr Nic Williams wrote:

    Here is a diff of MRI's expect.rb between MRI 1.9.3 and MRI 1.8.7
    http://rxr.whitequark.org/mri/diff/ext/pty/lib/expect.rb?v=1.9.3;diffval=1.8.7;diffvar=v

    Can anyone suggest why chef_deployer is barfing under 1.9.3?

    Nic
    On Monday, June 25, 2012 9:55:26 AM UTC-7, Tomas Markauskas wrote:

    Nic,

    The problem still exists when using the same AMI as you did. But while
    preparing the instance in us-east-1 region I've noticed that bosh is
    building ruby 1.8.7. I changed my local ruby version to 1.8.7 from 1.9.2
    and now it's working. I guess that was the only problem.

    Tomas
    On Monday, June 25, 2012 5:50:28 PM UTC+2, Tomas Markauskas wrote:

    It looks like you were using ami-3202f25b in us-east-1. I'll try it.
    But it seems to be also provided by Canonical (099720109477/ebs/ubuntu-
    **images/ubuntu-lucid-10.04-**amd64-server-20110201.1).

    Tomas
    On Monday, June 25, 2012 5:41:46 PM UTC+2, Dr Nic Williams wrote:

    Are you able to try the tutorial exactly as mentioned? Perhaps the
    fog-provided AMI has something extra in it that we're not aware of.

    If you can't; I'll try to reproduce your bug and investigate later
    this week.

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:17 AM, Tomas Markauskas wrote:

    The only thing I did differently was that I used a newer Ubuntu 10.04
    AMI: ami-edc6fe99 (also provided by Canonical).

    Tomas

    On Monday, June 25, 2012 5:08:27 PM UTC+2, Dr Nic Williams wrote:

    Did you deviate from any steps in the tutorial at all? (to figure
    out if its a regression in chef_deployer or something different on your VM)

    Nic

    Dr Nic Williams - VP Developer Evangelism
    Engine Yard
    The Leading Platform as a Service
    Mobile: +1 415 860 2185
    Skype: nicwilliams
    Twitter: @drnic

    On Monday, June 25, 2012 at 8:05 AM, Tomas Markauskas wrote:

    Hello,

    I'm trying to install BOSH on AWS. I'm using Dr Nic`s tutorial:
    https://github.com/**drnic/bosh-getting-started/**
    blob/master/creating-a-bosh-**from-scratch.md<https://github.com/drnic/bosh-getting-started/blob/master/creating-a-bosh-from-scratch.md>

    When I run "ruby ../chef_deployer/bin/chef_**deployer deploy
    ~/.microbosh" I get the following error:

    % ruby ../chef_deployer/bin/chef_**deployer deploy ~/.microbosh
    config reading cloud configuration config.yml
    metadata generating cookbook metadata
    config reading deploy configuration
    config reading repo configuration
    syncing syncing bosh
    Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the
    list of known hosts.
    repos checking which repos need to be uploaded
    ==> DIRECTLY CONNECTING TO ec2-XXX-XX-XX-XXX.eu-west-1.**
    compute.amazonaws.com<http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com>
    repos uploading bosh to ec2-XXX-XX-XX-XXX.eu-west-1.**
    compute.amazonaws.com<http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com>
    ==> EXECUTING SSH LOGIN git push -q ssh://ubuntu@ec2-XXX-XX-XX-**
    XXX.eu-west-1.compute.**amazonaws.com<ubuntu@ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com>
    :22/var/vcap/**deploy/repos/bosh master
    Warning: Permanently added 'ec2-XXX-XX-XX-XXX.eu-west-1.**
    compute.amazonaws.com<http://ec2-XXX-XX-XX-XXX.eu-west-1.compute.amazonaws.com>
    ,XXX.XX.**XX.XXX' (RSA) to the list of known hosts.
    /home/tomas/.rvm/rubies/ruby-**1.9.2-p180/lib/ruby/1.9.1/**expect.rb:24:in
    `eof?': Input/output error - /dev/pts/2 (Errno::EIO)
    from /home/tomas/.rvm/rubies/ruby-**1.9.2-p180/lib/ruby/1.9.1/
    **expect.rb:24:in `expect'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:136:in
    `block in answer_ssh'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:135:in
    `spawn'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:135:in
    `answer_ssh'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:163:in
    `block in update_remote_repo'
    from /home/tomas/.rvm/gems/ruby-1.**
    9.2-p180@bosh/gems/thor-0.14.**6/lib/thor/actions.rb:178:in `block in
    inside'
    from /home/tomas/.rvm/rubies/ruby-**1.9.2-p180/lib/ruby/1.9.1/
    **fileutils.rb:121:in `chdir'
    from /home/tomas/.rvm/rubies/ruby-**1.9.2-p180/lib/ruby/1.9.1/
    **fileutils.rb:121:in `cd'
    from /home/tomas/.rvm/gems/ruby-1.**
    9.2-p180@bosh/gems/thor-0.14.**6/lib/thor/actions.rb:178:in `inside'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:161:in
    `update_remote_repo'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:409:in
    `block (5 levels) in deploy'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:276:in
    `connect'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:408:in
    `block (4 levels) in deploy'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:405:in
    `each'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:405:in
    `block (3 levels) in deploy'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:230:in
    `prepare_connection_for'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:404:in
    `block (2 levels) in deploy'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:401:in
    `each'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:401:in
    `block in deploy'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:400:in
    `each'
    from /home/tomas/.microbosh/bosh/**chef_deployer/lib/chef_**deployer.rb:400:in
    `deploy'
    from /home/tomas/.rvm/gems/ruby-1.**
    9.2-p180@bosh/gems/thor-0.14.**6/lib/thor/task.rb:22:in `run'
    from /home/tomas/.rvm/gems/ruby-1.**
    9.2-p180@bosh/gems/thor-0.14.**6/lib/thor/invocation.rb:118:**in
    `invoke_task'
    from /home/tomas/.rvm/gems/ruby-1.**
    9.2-p180@bosh/gems/thor-0.14.**6/lib/thor.rb:263:in `dispatch'
    from /home/tomas/.rvm/gems/ruby-1.**
    9.2-p180@bosh/gems/thor-0.14.**6/lib/thor/base.rb:389:in `start'
    from ../chef_deployer/bin/chef_**deployer:16:in `<main>'

    I can ssh into the instance without problems and I also get the same
    error when I try to deploy it from another ec2 instance.

    Is there something I might be doing wrong? Should I use some other
    version of ruby? (I have 1.9.2p180 installed with RVM).

    Or maybe there is some other way to install BOSH? My goal is to deploy
    Cloud Foundry on AWS.

    Thanks,

    Tomas


Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupbosh-users @
postedJun 25, '12 at 3:05p
activeJul 23, '12 at 2:05p
posts9
users4

People

Translate

site design / logo © 2022 Grokbase