wwestenbrink / vagrant-opsworks Goto Github PK
View Code? Open in Web Editor NEWBuild vagrant box for developing cookbooks in AWS opsworks
License: Other
Build vagrant box for developing cookbooks in AWS opsworks
License: Other
Dears,
Has the box been deleted ?
Please see message i get (I'm logged in) :
boxes named 'ubuntu1404-opsworks' could be found.
The box 'virtualbox/ubuntu1404-opsworks.box' could not be found or
could not be accessed in the remote catalog. If this is a private
box on Vagrant Cloud, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:
URL: ["https://vagrantcloud.com/virtualbox/ubuntu1404-opsworks.box"]
Error: The requested URL returned error: 404 Not Found```
Hi,
I got error messge below when running virtualbox-build.
Would you shed some lights on the issue?
virtualbox-iso: Using opsworks-instance-assets.s3.amazonaws.com for assets.
virtualbox-iso: find: `/tmp/opsworks-downloader*': No such file or directory
virtualbox-iso: Downloading agent ruby package
virtualbox-iso: [ Fri, 13 Feb 2015 09:15:19 +0000 ] downloader: Successfully created temporary download directory. (/tmp/opsworks-downloader.F5aNvEOC)
virtualbox-iso: [ Fri, 13 Feb 2015 09:17:21 +0000 ] downloader: [ERROR] File size test failed. (ix-amz-id-2: CjH0pslI5io4XoNNgLwK4dH9ek+mrlWmFU1VUBzjFf4dnQIMoVpXn5UwGojisW5u - x-amz-request-id: 109EE102C730BCE1)
virtualbox-iso: [ Fri, 13 Feb 2015 09:17:21 +0000 ] downloader: Retrying download after 0 seconds
virtualbox-iso: [ Fri, 13 Feb 2015 09:17:21 +0000 ] downloader: Deleting content of directory /tmp/opsworks-downloader.F5aNvEOC
virtualbox-iso: [ Fri, 13 Feb 2015 09:19:23 +0000 ] downloader: [ERROR] File size test failed. (ix-amz-id-2: SXDKY+w7KLTWcA199rdIahlNqt61Timeylba+kZ9WgFtBSTmy+JNO58K1s19/tV5 - x-amz-request-id: 7B0F92294386E5F4)
root@opsworks-vagrant:/opt/aws/opsworks/current# opsworks-agent-cli run_command execute_recipes unicorn::rails
No commands where found on this instance. Please execute a command on this instance using
the Web Console at https://console.aws.amazon.com/opsworks
Couldn't execute run_command: NoMethodError - undefined method `include?' for nil:NilClass - /opt/aws/opsworks/current/lib/cli/base.rb:37:in `call_with_params_for'
/opt/aws/opsworks/current/lib/cli/options/run_command.rb:24:in `run_command'
/opt/aws/opsworks/current/lib/cli/runner.rb:77:in `execute'
/opt/aws/opsworks/current/lib/cli/runner.rb:50:in `run'
/usr/sbin/opsworks-agent-cli:85:in `block (2 levels) in <main>'
/opt/aws/opsworks/current/vendor/bundle/ruby/2.0.0/gems/gli-2.5.6/lib/gli/command_support.rb:130:in `call'
/opt/aws/opsworks/current/vendor/bundle/ruby/2.0.0/gems/gli-2.5.6/lib/gli/command_support.rb:130:in `execute'
/opt/aws/opsworks/current/vendor/bundle/ruby/2.0.0/gems/gli-2.5.6/lib/gli/app_support.rb:262:in `block in call_command'
/opt/aws/opsworks/current/vendor/bundle/ruby/2.0.0/gems/gli-2.5.6/lib/gli/app_support.rb:275:in `call'
/opt/aws/opsworks/current/vendor/bundle/ruby/2.0.0/gems/gli-2.5.6/lib/gli/app_support.rb:275:in `call_command'
/opt/aws/opsworks/current/vendor/bundle/ruby/2.0.0/gems/gli-2.5.6/lib/gli/app_support.rb:69:in `run'
/usr/sbin/opsworks-agent-cli:104:in `<main>'
Under Opsworks today, we have two system rubies: 1.8 for chef runs, and your chosen version installed in /usr/local (1.9.3 in my case).
When trying to install a gem in /usr/local from my recipe, the gem gets installed in ruby 1.8 path:
gem_package "eye" do
gem_binary "/usr/local/bin/gem"
end
# /usr/local/bin/gem list
*** LOCAL GEMS ***
bigdecimal (1.1.0)
bundler (1.3.5)
io-console (0.3)
json (1.5.5)
minitest (2.5.1)
rake (0.9.2.2)
rdoc (3.9.5)
root@ubuntu1204-opsworks:/chef/
# /usr/bin/gem list eye
*** LOCAL GEMS ***
eye (0.5)
A dump of the Ruby environment inside the Chef run shows this:
[2013-12-23T11:46:01-05:00] DEBUG: gem_package[bundler] no installed version found for bundler (>= 0)
RubyGems Environment:
- RUBYGEMS VERSION: 2.1.7
- RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [x86_64-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
- SPEC CACHE DIRECTORY: /root/.gem/specs
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /var/lib/gems/1.8
- /root/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /var/lib/gems/1.8/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
I meet the same problem as #13 ,solve the problem now?
any thoughts? thanks
virtualbox-iso: Installing OpsWorks agent version 3432-20160120135248
virtualbox-iso: 2016-03-23 16:08:13 URL:https://opsworks-instance-agent.s3.amazonaws.com/3432-20160120135248/opsworks-agent-installer.tgz [6626115/6626115] -> "opsworks-agent-installer.tgz" [1]
virtualbox-iso: Using opsworks-instance-assets.s3.amazonaws.com for assets.
virtualbox-iso: Downloading agent ruby package
virtualbox-iso: [Wed, 23 Mar 2016 16:08:13 +0000] downloader: Successfully created temporary download directory. (/tmp/opsworks-downloader.LrqxjNhp)
virtualbox-iso: [Wed, 23 Mar 2016 16:10:22 +0000] downloader: [ERROR] File size test failed. HTTP/1.1 200 OK url: https://opsworks-instance-assets.s3.amazonaws.com/packages/ubuntu/14.04/opsworks-agent-ruby_2.0.0-p645-1_amd64.deb
virtualbox-iso: [Wed, 23 Mar 2016 16:10:22 +0000] downloader: Retrying download after 0 seconds
virtualbox-iso: [Wed, 23 Mar 2016 16:10:22 +0000] downloader: Deleting content of directory /tmp/opsworks-downloader.LrqxjNhp
virtualbox-iso: [Wed, 23 Mar 2016 16:12:30 +0000] downloader: [ERROR] File size test failed. HTTP/1.1 200 OK url: https://opsworks-instance-assets.s3.amazonaws.com/packages/ubuntu/14.04/opsworks-agent-ruby_2.0.0-p645-1_amd64.deb
OS version: ubuntu 14.04
Ruby version: ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
Chef Development Kit Version: 0.11.2
Chef-client version: 12.7.2
Berks version: 4.2.0
Kitchen version: 1.5.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.