Giter VIP home page Giter VIP logo

awesome_app's People

Contributors

aagsd123 avatar

Watchers

 avatar  avatar

awesome_app's Issues

Won't work, any ideas?

Hi there Nilesh,

I was jazzed to come across this repo.
Unfortunately, I was not able to get it running.

I started with a fresh rvm gemset before doing anything:

Here's the output in case it helps.

p.s. Your blog, http://blog.fungibleclouds.com/, seems rad too.

Cheers,

-joe

OUTPUT
ruby-1.9.3-p194@t3 awesome_app: vagrant up
[default] Importing base box 'precise64'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.

Guest Additions Version: 4.2.0
VirtualBox Version: 4.2.6
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Fixed port collision for 22 => 2222. Now on port 2202.
[default] Forwarding ports...
[default] -- 22 => 2202 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] -- v-csc-2: /tmp/vagrant-chef-1/chef-solo-2/cookbooks
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
stdin: is not a tty
[2013-01-10T18:56:04+00:00] INFO: *** Chef 10.14.2 ***
[2013-01-10T18:56:04+00:00] INFO: Setting the run_list to ["recipe[build-essential]", "recipe[rails-lastmile]"] from JSON
[2013-01-10T18:56:04+00:00] INFO: Run List is [recipe[build-essential], recipe[rails-lastmile]]
[2013-01-10T18:56:04+00:00] INFO: Run List expands to [build-essential, rails-lastmile]
[2013-01-10T18:56:04+00:00] INFO: Starting Chef Run for precise64
[2013-01-10T18:56:04+00:00] INFO: Running start handlers
[2013-01-10T18:56:04+00:00] INFO: Start handlers complete.
[2013-01-10T18:56:04+00:00] INFO: ohai plugins will be at: /etc/chef/ohai_plugins
[2013-01-10T18:56:04+00:00] INFO: Processing remote_directory[/etc/chef/ohai_plugins] action create (ohai::default line 27)
[2013-01-10T18:56:04+00:00] INFO: Processing directory[/etc/chef/ohai_plugins] action create (dynamically defined)
[2013-01-10T18:56:04+00:00] INFO: directory[/etc/chef/ohai_plugins] created directory /etc/chef/ohai_plugins
[2013-01-10T18:56:04+00:00] INFO: directory[/etc/chef/ohai_plugins] owner changed to 0
[2013-01-10T18:56:04+00:00] INFO: directory[/etc/chef/ohai_plugins] group changed to 0
[2013-01-10T18:56:04+00:00] INFO: directory[/etc/chef/ohai_plugins] mode changed to 755
[2013-01-10T18:56:04+00:00] INFO: Processing cookbook_file[/etc/chef/ohai_plugins/README] action create (dynamically defined)
[2013-01-10T18:56:04+00:00] INFO: cookbook_file[/etc/chef/ohai_plugins/README] mode changed to 644
[2013-01-10T18:56:04+00:00] INFO: cookbook_file[/etc/chef/ohai_plugins/README] created file /etc/chef/ohai_plugins/README
[2013-01-10T18:56:04+00:00] INFO: remote_directory[/etc/chef/ohai_plugins] created directory /etc/chef/ohai_plugins
[2013-01-10T18:56:04+00:00] INFO: remote_directory[/etc/chef/ohai_plugins] owner changed to 0
[2013-01-10T18:56:04+00:00] INFO: remote_directory[/etc/chef/ohai_plugins] group changed to 0
[2013-01-10T18:56:04+00:00] INFO: remote_directory[/etc/chef/ohai_plugins] mode changed to 755
[2013-01-10T18:56:04+00:00] INFO: Processing ohai[custom_plugins] action reload (ohai::default line 42)
[2013-01-10T18:56:05+00:00] INFO: ohai[custom_plugins] reloaded
[2013-01-10T18:56:05+00:00] INFO: Processing package[build-essential] action install (build-essential::default line 51)
[2013-01-10T18:56:11+00:00] INFO: Processing package[binutils-doc] action install (build-essential::default line 51)
[2013-01-10T18:56:13+00:00] INFO: Processing package[autoconf] action install (build-essential::default line 58)
[2013-01-10T18:56:16+00:00] INFO: Processing package[flex] action install (build-essential::default line 58)
[2013-01-10T18:56:18+00:00] INFO: Processing package[bison] action install (build-essential::default line 58)
[2013-01-10T18:56:19+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
[2013-01-10T18:56:29+00:00] INFO: execute[apt-get-update] ran successfully
[2013-01-10T18:56:29+00:00] INFO: Processing execute[apt-get update] action nothing (apt::default line 29)
[2013-01-10T18:56:29+00:00] INFO: Processing execute[apt-get autoremove] action nothing (apt::default line 36)
[2013-01-10T18:56:29+00:00] INFO: Processing execute[apt-get autoclean] action nothing (apt::default line 42)
[2013-01-10T18:56:29+00:00] INFO: Processing package[update-notifier-common] action install (apt::default line 48)
[2013-01-10T18:56:31+00:00] INFO: package[update-notifier-common] sending run action to executeapt-get-update
[2013-01-10T18:56:31+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
[2013-01-10T18:56:34+00:00] INFO: execute[apt-get-update] ran successfully
[2013-01-10T18:56:34+00:00] INFO: Processing execute[apt-get-update-periodic] action run (apt::default line 52)
[2013-01-10T18:56:34+00:00] INFO: Processing directory[/var/cache/local] action create (apt::default line 62)
[2013-01-10T18:56:34+00:00] INFO: directory[/var/cache/local] created directory /var/cache/local
[2013-01-10T18:56:34+00:00] INFO: directory[/var/cache/local] owner changed to 0
[2013-01-10T18:56:34+00:00] INFO: directory[/var/cache/local] group changed to 0
[2013-01-10T18:56:34+00:00] INFO: directory[/var/cache/local] mode changed to 755
[2013-01-10T18:56:34+00:00] INFO: Processing directory[/var/cache/local/preseeding] action create (apt::default line 62)
[2013-01-10T18:56:34+00:00] INFO: directory[/var/cache/local/preseeding] created directory /var/cache/local/preseeding
[2013-01-10T18:56:34+00:00] INFO: directory[/var/cache/local/preseeding] owner changed to 0
[2013-01-10T18:56:34+00:00] INFO: directory[/var/cache/local/preseeding] group changed to 0
[2013-01-10T18:56:34+00:00] INFO: directory[/var/cache/local/preseeding] mode changed to 755
[2013-01-10T18:56:34+00:00] INFO: Processing package[build-essential] action install (rails-lastmile::setup line 17)
[2013-01-10T18:56:34+00:00] INFO: Processing package[tar] action install (ruby_build::default line 34)
[2013-01-10T18:56:34+00:00] INFO: Processing package[bash] action install (ruby_build::default line 34)
[2013-01-10T18:56:34+00:00] INFO: Processing package[curl] action install (ruby_build::default line 34)
[2013-01-10T18:56:36+00:00] INFO: Processing package[git-core] action install (ruby_build::default line 34)
[2013-01-10T18:56:39+00:00] INFO: Processing execute[Install ruby-build] action nothing (ruby_build::default line 38)
[2013-01-10T18:56:39+00:00] INFO: Processing directory[/tmp/vagrant-chef-1] action create (ruby_build::default line 48)
[2013-01-10T18:56:39+00:00] INFO: Processing git[/tmp/vagrant-chef-1/ruby-build] action checkout (ruby_build::default line 52)
[2013-01-10T18:56:40+00:00] INFO: git[/tmp/vagrant-chef-1/ruby-build] cloning repo git://github.com/sstephenson/ruby-build.git to /tmp/vagrant-chef-1/ruby-build
[2013-01-10T18:56:41+00:00] INFO: git[/tmp/vagrant-chef-1/ruby-build] checked out branch: master reference: 4f45814438e492063a8f968c5d817c0b13a67a12
[2013-01-10T18:56:41+00:00] INFO: git[/tmp/vagrant-chef-1/ruby-build] sending run action to executeInstall ruby-build
[2013-01-10T18:56:41+00:00] INFO: Processing execute[Install ruby-build] action run (ruby_build::default line 38)
[2013-01-10T18:56:41+00:00] INFO: execute[Install ruby-build] ran successfully
[2013-01-10T18:56:41+00:00] INFO: Processing package[git-core] action install (rbenv::system_install line 43)
[2013-01-10T18:56:41+00:00] INFO: Processing package[grep] action install (rbenv::system_install line 43)
[2013-01-10T18:56:41+00:00] INFO: Processing template[/etc/profile.d/rbenv.sh] action create (rbenv::system_install line 29)
[2013-01-10T18:56:41+00:00] INFO: template[/etc/profile.d/rbenv.sh] updated content
[2013-01-10T18:56:41+00:00] INFO: template[/etc/profile.d/rbenv.sh] owner changed to 0
[2013-01-10T18:56:41+00:00] INFO: template[/etc/profile.d/rbenv.sh] mode changed to 755
[2013-01-10T18:56:41+00:00] INFO: Processing git[/usr/local/rbenv] action checkout (rbenv::system_install line 61)
[2013-01-10T18:56:41+00:00] INFO: git[/usr/local/rbenv] cloning repo git://github.com/sstephenson/rbenv.git to /usr/local/rbenv
[2013-01-10T18:56:42+00:00] INFO: git[/usr/local/rbenv] checked out branch: master reference: 045f6c1bce9e4a133a6da9f816e5fa230e55f8a8
[2013-01-10T18:56:42+00:00] INFO: Processing bash[Initialize rbenv (system)] action run (rbenv::system_install line 80)

Error executing action run on resource 'bash[Initialize rbenv (system)]'

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '127'
---- Begin output of "bash" "/tmp/chef-script20130110-1230-1p0wfsv-0" ----
STDOUT: export PATH="/usr/local/rbenv/shims:${PATH}"
source "/usr/local/rbenv/libexec/../completions/rbenv.bash"
rbenv rehash 2>/dev/null
STDERR: /usr/local/rbenv/libexec/rbenv-init: line 88: rbenv-commands: command not found
---- End output of "bash" "/tmp/chef-script20130110-1230-1p0wfsv-0" ----
Ran "bash" "/tmp/chef-script20130110-1230-1p0wfsv-0" returned 127

Resource Declaration:

In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rbenv/libraries/chef_rbenv_recipe_helpers.rb

79:
80: bash "Initialize rbenv (#{opts[:user] || 'system'})" do
81: code %{PATH="#{prefix}/bin:$PATH" #{prefix}/libexec/rbenv-init -}
82: environment({'RBENV_ROOT' => prefix}.merge(init_env))
83: user opts[:user] if opts[:user]
84: group opts[:group] if opts[:group]
85: end
86:

Compiled Resource:

Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rbenv/libraries/chef_rbenv_recipe_helpers.rb:80:in `initialize_rbenv'

bash("Initialize rbenv (system)") do
retry_delay 2
environment {"RBENV_ROOT"=>"/usr/local/rbenv"}
returns 0
command ""bash" "/tmp/chef-script20130110-1230-1p0wfsv-0""
retries 0
recipe_name "system_install"
code "PATH="/usr/local/rbenv/bin:$PATH" /usr/local/rbenv/libexec/rbenv-init -"
action "run"
cookbook_name :rbenv
interpreter "bash"
backup 5
end

[2013-01-10T18:56:42+00:00] ERROR: Running exception handlers
[2013-01-10T18:56:42+00:00] ERROR: Exception handlers complete
[2013-01-10T18:56:42+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-01-10T18:56:42+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[Initialize rbenv (system)](rbenv::system_install line 80) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '127'
---- Begin output of "bash" "/tmp/chef-script20130110-1230-1p0wfsv-0" ----
STDOUT: export PATH="/usr/local/rbenv/shims:${PATH}"
source "/usr/local/rbenv/libexec/../completions/rbenv.bash"
rbenv rehash 2>/dev/null
STDERR: /usr/local/rbenv/libexec/rbenv-init: line 88: rbenv-commands: command not found
---- End output of "bash" "/tmp/chef-script20130110-1230-1p0wfsv-0" ----
Ran "bash" "/tmp/chef-script20130110-1230-1p0wfsv-0" returned 127
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.