octohost / octohost-cookbook

DEPRECATED: A set of Chef cookbooks that build the octohost server using Packer, Terraform, Vagrant and knife solo.
http://www.octohost.io
Apache License 2.0
95 stars 10 forks source link

Error while building droplet #2

Closed goosechaser closed 10 years ago

goosechaser commented 10 years ago

Hi,

Using rake build_droplet, the process starts and interrupts at:

[...]
9 files inspected, no offences detected
berks install --path vendor/cookbooks; packer build -only=digitalocean template.
json
ERROR: berks install was called with arguments ["packer", "build", "-only=digita
locean", "template.json"]
Usage: "berks install".

Running on a Windows machine. Packer and other dependencies are installed. DO client id/API key are in the ENV.

Output from birks install:

Using octohost (0.5.0)
Installing ubuntu_base (0.7.0) from git: 'https://github.com/darron/ubuntu_base-
cookbook.git' with branch: 'master' at ref: '0410c5b3ca89cc40f30cde38b0147051ae0
71182'
Installing sysstat (1.3.1) from git: 'https://github.com/retr0h/cookbook-sysstat
.git' with branch: 'master' at ref: 'ca54b51bebab5a1eab2a1847534e912c8b0b40ab'
Installing octobase (0.5.0) from git: 'https://github.com/darron/octobase-cookbo
ok.git' with branch: 'master' at ref: 'c0a960aec45d14ea1600f2a9d683f8ceb6ebb826'

Installing docker (0.4.0) from git: 'https://github.com/darron/docker-cookbook.g
it' with branch: 'master' at ref: '39465297fde308c644c5a3868dcc63f46111d72d'
Installing redis (0.1.0) from git: 'https://github.com/darron/redis-cookbook.git
' with branch: 'master' at ref: 'ff5013fb007dc39770d2b3991dd5ec365221093a'
Installing nodejs (0.1.0) from git: 'https://github.com/darron/nodejs-cookbook.g
it' with branch: 'master' at ref: '4598a5450974eeb2df00d81a98d8bdf861674af5'
Installing hipache (0.1.0) from git: 'https://github.com/darron/hipache-cookbook
.git' with branch: 'master' at ref: '524eeeb3ba9307d4402db136b9f9f88c64512a0f'
Installing serf (0.2.0) from git: 'https://github.com/darron/serf-cookbook.git'
with branch: 'master' at ref: '8eac85b51cb334606221f9ff7f0a6230b26d640c'
Installing gitreceive (0.3.0) from git: 'https://github.com/darron/gitreceive-co
okbook.git' with branch: 'master' at ref: 'ccfc01a3505296db57e3b9bf2e817c5f56326
fc1'
Using apt (2.3.8)
Using sudo (2.3.0)
darron commented 10 years ago

Looks like Windows isn't honoring the ';' to delineate 2 separate commands.

Does this help?

https://github.com/octohost/octohost-cookbook/commit/a88ddc8453f613fbacee284dad8b635f127a8f5e

goosechaser commented 10 years ago

Thanks, that helped... things moved slightly forward until another roadblock:

Using apt (2.3.8)
Using sudo (2.3.0)
packer build -only=digitalocean template.json
rake aborted!
Command failed with status (127): [packer build -only=digitalocean template.j...
]
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/file_utils.rb:55:in `bl
ock in create_shell_runner'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/file_utils.rb:45:in `ca
ll'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/file_utils.rb:45:in `sh
'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:37:in
 `sh'
D:/octo/octohost-cookbook/Rakefile:85:in `block in <top (required)>'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `call'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in `block i
n execute'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:in `each'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:in `execute
'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:175:in `block i
n invoke_with_call_chain'
C:/Ruby193/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_
with_call_chain'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:197:in `block i
n invoke_prerequisites'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `each'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_
prerequisites'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:174:in `block i
n invoke_with_call_chain'
C:/Ruby193/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_
with_call_chain'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:197:in `block i
n invoke_prerequisites'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `each'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in `invoke_
prerequisites'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:174:in `block i
n invoke_with_call_chain'
C:/Ruby193/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:in `invoke_
with_call_chain'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:161:in `invoke'

C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:149:in `
invoke_task'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `
block (2 levels) in top_level'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `
each'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in `
block in top_level'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:115:in `
run_with_threads'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:100:in `
top_level'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:78:in `b
lock in run'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:165:in `
standard_exception_handling'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:75:in `r
un'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/bin/rake:33:in `<top (required)>
'
C:/Ruby193/bin/rake:23:in `load'
C:/Ruby193/bin/rake:23:in `<main>'
Tasks: TOP => build_droplet => packer_droplet => packer_build_droplet
darron commented 10 years ago

Sorry - I really have no idea what's going on - I don't have any Windows boxes where I can even look into this.

On Mon, Feb 17, 2014 at 8:06 PM, goosechaser notifications@github.comwrote:

Thanks, that helped... things moved slightly forward until another roadblock:

Using apt (2.3.8) Using sudo (2.3.0) packer build -only=digitalocean template.json rake aborted! Command failed with status (127): [packer build -only=digitalocean template.j... ] C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/file_utils.rb:55:in bl ock in create_shell_runner' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/file_utils.rb:45:inca ll' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/file_utils.rb:45:in sh ' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:37:in sh' D:/octo/octohost-cookbook/Rakefile:85:in block in <top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:incall' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:236:in block i n execute' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:ineach' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:231:in execute ' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:175:inblock i n invoke_with_call_chain' C:/Ruby193/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:ininvoke_ with_call_chain' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:197:in block i n invoke_prerequisites' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:ineach' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in invoke_ prerequisites' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:174:inblock i n invoke_with_call_chain' C:/Ruby193/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:ininvoke_ with_call_chain' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:197:in block i n invoke_prerequisites' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:ineach' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:195:in invoke_ prerequisites' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:174:inblock i n invoke_with_call_chain' C:/Ruby193/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:168:ininvoke_ with_call_chain' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/task.rb:161:in `invoke'

C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:149:in invoke_task' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in block (2 levels) in top_level' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:106:in block in top_level' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:115:in run_with_threads' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:100:in top_level' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:78:in b lock in run' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:165:in standard_exception_handling' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:75:in r un' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-10.1.1/bin/rake:33:in<top (required)> ' C:/Ruby193/bin/rake:23:in load' C:/Ruby193/bin/rake:23:in

' Tasks: TOP => build_droplet => packer_droplet => packer_build_droplet

Reply to this email directly or view it on GitHubhttps://github.com/octohost/octohost-cookbook/issues/2#issuecomment-35348443 .

goosechaser commented 10 years ago

Too bad. Please adjust readme to say that this has not been tested/verified to work on Windows.

Hopefully someone will be able to sort out the issues in the future. Thanks!