DanThiffault / rails-lastmile

Chef rails configuration
MIT License
28 stars 23 forks source link

Issue similar to #4 #10

Closed cgpsn closed 11 years ago

cgpsn commented 11 years ago

[Thu, 21 Feb 2013 15:01:21 +0000] FATAL: Mixlib::ShellOut::ShellCommandFailed: script[run-rails](/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rbenv/providers/script.rb line 28) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '10' t::ShellCommandFailed: Expected process to exit with [0], but received '10' ---- Begin output of "bash" "/tmp/chef-script20130221-1038-1lyi56x-0" ---- STDOUT: Could not locate Gemfile Could not locate Gemfile Could not locate Gemfile

I've tried all the latest checkouts and can't seem to get past this point.

Cheffile -------------------------------------------------------------------------------------------------------------

site 'http://community.opscode.com/api/v1'

cookbook 'build-essential'

cookbook 'nodejs'

cookbook 'ruby_build', :git => 'git://github.com/fnichol/chef-ruby_build.git', :ref => 'v0.7.2'

cookbook 'rbenv', :git => 'https://github.com/fnichol/chef-rbenv', :ref => '3b1c59abc1134a50b0b8844954eca9a566aaffb8'

cookbook 'apt', :git => 'https://github.com/opscode-cookbooks/apt'

cookbook 'unicorn' cookbook 'nginx' cookbook 'runit'

Vagrant ----------------------------------------------------------------------------------------------------------

config.vm.provision :chef_solo do |chef| chef.cookbooks_path = ["cookbooks", "cookbooks-src"]

chef.add_recipe "nodejs"
chef.add_recipe "rails-lastmile"

end

Dropped the config from rails-lastmile thinking that the ruby version passed in was conflicting somehow, same issue occuring.

Any help would be greatly appreciated!

DanThiffault commented 11 years ago

Interesting. What OS & Vagrant versions are you using? If you vagrant ssh in to the provisioned box can you see all of your app files at /vagrant?

cgpsn commented 11 years ago

Thanks for the quick reply!

Running OSX mountain lion Vagrant 1.0.6/ VirtualBox 4.2.6 r82870 Everything looks mounted at /vagrant

-rw-r--r-- 1 vagrant vagrant 734 Feb 21 15:24 Cheffile -rw-r--r-- 1 vagrant vagrant 946 Feb 21 14:27 Cheffile.lock drwxr-xr-x 1 vagrant vagrant 374 Feb 21 14:27 cookbooks drwxr-xr-x 1 vagrant vagrant 102 Feb 20 23:48 cookbooks-src drwxr-xr-x 1 vagrant vagrant 408 Feb 20 23:48 .git -rw-r--r-- 1 vagrant vagrant 14 Feb 20 23:48 .gitignore -rw-r--r-- 1 vagrant vagrant 136 Feb 20 23:48 .gitmodules drwxr-xr-x 1 vagrant vagrant 102 Feb 21 01:04 tmp -rw-r--r-- 1 vagrant vagrant 61 Feb 21 14:40 .vagrant -rw-r--r-- 1 vagrant vagrant 4148 Feb 21 15:23 Vagrantfile

I also started out running an older vagrant/virtualbox version and upgraded thinking that was the issue.

DanThiffault commented 11 years ago

Cool. Signing off for the night, but I'll poke at it in the morning

On Feb 21, 2013, at 20:57, caseygipson notifications@github.com wrote:

Thanks for the quick reply!

Running OSX mountain lion Vagrant 1.0.6/ VirtualBox 4.2.6 r82870 Everything looks mounted at /vagrant

-rw-r--r-- 1 vagrant vagrant 734 Feb 21 15:24 Cheffile -rw-r--r-- 1 vagrant vagrant 946 Feb 21 14:27 Cheffile.lock drwxr-xr-x 1 vagrant vagrant 374 Feb 21 14:27 cookbooks drwxr-xr-x 1 vagrant vagrant 102 Feb 20 23:48 cookbooks-src drwxr-xr-x 1 vagrant vagrant 408 Feb 20 23:48 .git -rw-r--r-- 1 vagrant vagrant 14 Feb 20 23:48 .gitignore -rw-r--r-- 1 vagrant vagrant 136 Feb 20 23:48 .gitmodules drwxr-xr-x 1 vagrant vagrant 102 Feb 21 01:04 tmp -rw-r--r-- 1 vagrant vagrant 61 Feb 21 14:40 .vagrant -rw-r--r-- 1 vagrant vagrant 4148 Feb 21 15:23 Vagrantfile

I also started out running an older vagrant/virtualbox version and upgraded thinking that was the issue.

— Reply to this email directly or view it on GitHubhttps://github.com/DanThiffault/rails-lastmile/issues/10#issuecomment-13894393.

cgpsn commented 11 years ago

Thanks, I'll let you know if I find anything myself.

cgpsn commented 11 years ago

Thinking it may be a permissions issue I set the app path to /vagrant/app/ .. still fails

Here is the full output https://gist.github.com/caseygipson/5006487

jgarber commented 11 years ago

I'm having the same problem.

jgarber commented 11 years ago

Oh, it helps to have a Gemfile. :disappointed_relieved:

cgpsn commented 11 years ago

did you just add an empty Gemfile to your app dir?

jgarber commented 11 years ago

No, I just generated a rails application in the vagrant project.

On Thu, Feb 21, 2013 at 3:18 PM, caseygipson notifications@github.comwrote:

did you just add an empty Gemfile to your app dir?

— Reply to this email directly or view it on GitHubhttps://github.com/DanThiffault/rails-lastmile/issues/10#issuecomment-13910476.

cgpsn commented 11 years ago

did you add that to the Vagrant file or did you just generate a new project and reload the vagrant box?

jgarber commented 11 years ago

Generated a new project and reloaded.

On Thu, Feb 21, 2013 at 4:08 PM, caseygipson notifications@github.comwrote:

did you add that to the Vagrant file or did you just generate a new project and reload the vagrant box?

— Reply to this email directly or view it on GitHubhttps://github.com/DanThiffault/rails-lastmile/issues/10#issuecomment-13912910.

cgpsn commented 11 years ago

Cool, thats what I did too, works for me now. Now I know to start with a working rails setup before loading this. Thanks!

DanThiffault commented 11 years ago

Great sounds like its all fixed. I'd like to update the readme in case anyone else has the same issue. What kind of project are you developing that didn't have a Gemfile?

cgpsn commented 11 years ago

My confusion was I thought a rails project would be created at the specified path, my fault!