[chef] Re: Re: Re: Re: Re: Re: application_ruby


Chronological Thread 
  • From: Rob Watkin < >
  • To: Chef List < >
  • Subject: [chef] Re: Re: Re: Re: Re: Re: application_ruby
  • Date: Thu, 5 Dec 2013 13:37:59 +0000

Doh!
Thanks Jorge



On 5 December 2013 11:13, Jorge Bianquetti < " target="_blank"> > wrote:
> ERROR: could not find recipe default for cookbook application_ruby

You have recipe[application_ruby] on the run_list, and this cookbook
has not an default.rb recipe.
This kind of cookbook  is called  "library", because you need to
include them into other cookbooks recipes

2013/12/5 Rob Watkin < "> >:
> Hence I've been experimenting with
> config.vm.provision :shell, :inline => "curl -L
> https://www.opscode.com/chef/install.sh | sudo bash"
>
> So following your advice I'll keep that in there:
>
> chef-repo$ vagrant ssh
> ~]$ chef-solo --version
> Chef: 11.8.2
> ~]$ chef-client --version
> Chef: 11.8.2
>
> Now I get the error:
>
> [2013-12-05T09:10:12+00:00] ERROR: could not find recipe default for
> cookbook application_ruby
>
> full listing below:
>
> chef-repo$ vagrant up
> Bringing machine 'default' up with 'virtualbox' provider...
> [default] Importing base box 'Berkshelf-CentOS-6.3'...
> [default] Matching MAC address for NAT networking...
> [default] Setting the name of the VM...
> [default] Clearing any previously set forwarded ports...
> [Berkshelf] This version of the Berkshelf plugin has not been fully tested
> on this version of Vagrant.
> [Berkshelf] You should check for a newer version of vagrant-berkshelf.
> [Berkshelf] If you encounter any errors with this version, please report
> them at https://github.com/RiotGames/vagrant-berkshelf/issues
> [Berkshelf] You can also join the discussion in #berkshelf on Freenode.
> [Berkshelf] Updating Vagrant's berkshelf:
> '/Users/rob/.berkshelf/default/vagrant/berkshelf-20131205-66017-jq94th-default'
> [Berkshelf] Using application_ruby (3.0.2)
> [Berkshelf] Using unicorn (1.3.0)
> [Berkshelf] Using apache2 (1.8.4)
> [Berkshelf] Using passenger_apache2 (2.1.2)
> [Berkshelf] Using build-essential (1.4.2)
> [Berkshelf] Using application (4.1.4)
> [Berkshelf] Using runit (1.4.0)
> [Berkshelf] Using yum (2.4.2)
> [Berkshelf] Using logrotate (1.4.0)
> [default] Creating shared folders metadata...
> [default] Clearing any previously set network interfaces...
> [default] Preparing network interfaces based on configuration...
> [default] Forwarding ports...
> [default] -- 22 => 2222 (adapter 1)
> [default] -- 8080 => 9080 (adapter 1)
> [default] -- 15672 => 15672 (adapter 1)
> [default] Booting VM...
> [default] Waiting for machine to boot. This may take a few minutes...
> [default] Machine booted and ready!
> [default] Setting hostname...
> [default] Mounting shared folders...
> [default] -- /vagrant
> [default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks
> [default] -- /tmp/vagrant-chef-1/chef-solo-2/data_bags
> [default] Running provisioner: shell...
> [default] Running: inline script
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
> Current
>                                  Dload  Upload   Total   Spent    Left
> Speed
> 101  6790  101  6790    0     0   1173      0  0:00:05  0:00:05 --:--:--
> 25719
> Downloading Chef  for el...
> Installing Chef
> warning: /tmp/tmp.TSFbNOSM/chef-.x86_64.rpm: Header V4 DSA/SHA1 Signature,
> key ID 83ef826a: NOKEY
> Preparing...
> ##################################################
> chef
> ##################################################
> Thank you for installing Chef!
> [default] Running provisioner: chef_solo...
> Generating chef JSON and uploading...
> Running chef-solo...
> [2013-12-05T09:10:11+00:00] INFO: Forking chef instance to converge...
> [2013-12-05T09:10:11+00:00] INFO: *** Chef 11.8.2 ***
> [2013-12-05T09:10:11+00:00] INFO: Chef-client pid: 2663
> [2013-12-05T09:10:11+00:00] INFO: Setting the run_list to
> ["recipe[application_ruby]"] from JSON
> [2013-12-05T09:10:11+00:00] INFO: Run List is [recipe[application_ruby]]
> [2013-12-05T09:10:11+00:00] INFO: Run List expands to [application_ruby]
> [2013-12-05T09:10:11+00:00] INFO: Starting Chef Run for devirsatel
> [2013-12-05T09:10:11+00:00] INFO: Running start handlers
> [2013-12-05T09:10:11+00:00] INFO: Start handlers complete.
> [2013-12-05T09:10:12+00:00] WARN: Chef::Mixin::LanguageIncludeRecipe is
> deprecated, use Chef::DSL::IncludeRecipe
> instead.
>
> [2013-12-05T09:10:12+00:00] WARN: Called from:
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application_ruby/providers/passenger_apache2.rb:20:in
> `class_from_file'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:42:in
> `class_eval'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:42:in
> `class_from_file'
> [2013-12-05T09:10:12+00:00] WARN: Chef::Mixin::LanguageIncludeRecipe is
> deprecated, use Chef::DSL::IncludeRecipe
> instead.
>
> [2013-12-05T09:10:12+00:00] WARN: Called from:
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application_ruby/providers/unicorn.rb:21:in
> `class_from_file'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:42:in
> `class_eval'
> /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.8.2/lib/chef/mixin/from_file.rb:42:in
> `class_from_file'
> [2013-12-05T09:10:12+00:00] ERROR: Running exception handlers
> [2013-12-05T09:10:12+00:00] ERROR: Exception handlers complete
> [2013-12-05T09:10:12+00:00] FATAL: Stacktrace dumped to
> /var/chef/cache/chef-stacktrace.out
> [2013-12-05T09:10:12+00:00] ERROR: could not find recipe default for
> cookbook application_ruby
>
> ================================================================================
> Recipe Compile Error
> ================================================================================
>
>
> Chef::Exceptions::RecipeNotFound
> --------------------------------
> could not find recipe default for cookbook application_ruby
>
>
> [2013-12-05T09:10:11+00:00] INFO: Forking chef instance to converge...
> [2013-12-05T09:10:12+00:00] FATAL: Chef::Exceptions::ChildConvergeError:
> Chef run process exited unsuccessfully (exit code 1)
> Chef never successfully completed! Any errors should be visible in the
> output above. Please fix your recipes so that they properly complete.
>
>
>
> On 5 December 2013 03:49, Lamont Granquist < "> > wrote:
>>
>>
>> A related change already went into the application cookbook so the latest
>> major versions of both application and application_ruby no longer support
>> 10.x
>>
>>
>> On 12/4/13 2:59 PM, Stephen Lauck wrote:
>>
>> Is this related to the deprecation warnings?
>>
>> I have a pull request in if we want to assume Chef 11.
>>
>> https://github.com/poise/application_ruby/pull/43
>>
>>
>> On Wed, Dec 4, 2013 at 2:50 PM, Noah Kantrowitz < "> >
>> wrote:
>>>
>>> What version of Chef are you using?
>>>
>>> --Noah
>>>
>>> On Dec 4, 2013, at 2:48 PM, Rob Watkin < "> > wrote:
>>>
>>> > I'm getting the following error with application_ruby. It's probably
>>> > something I've missed. I'm running it locally with vagrant and berkshelf,
>>> > both files below. Any help would be appreciated.
>>> >
>>> > Thanks
>>> > Rob
>>> >
>>> > [2013-12-04T22:30:37+00:00] INFO: Start handlers complete.
>>> >
>>> >
>>> > ================================================================================
>>> > Recipe Compile Error in
>>> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb
>>> >
>>> > ================================================================================
>>> >
>>> > NameError
>>> > ---------
>>> > uninitialized constant Chef::DSL
>>> >
>>> > Cookbook Trace:
>>> > ---------------
>>> >
>>> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb:23:in
>>> > `class_from_file'
>>> >
>>> > Relevant File Content:
>>> > ----------------------
>>> >
>>> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb:
>>> >
>>> >   1:  #
>>> >   2:  # Author:: Noah Kantrowitz < "> >
>>> >   3:  # Cookbook Name:: application
>>> >
>>> >
>>> > Vagrantfile
>>> > ========
>>> >
>>> > Vagrant.configure("2") do |config|
>>> >   config.vm.box = "Berkshelf-CentOS-6.3"
>>> >   config.berkshelf.enabled = true
>>> >   config.vm.box_url =
>>> > "https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box"
>>> >   config.vm.hostname = "devirsatel"
>>> >   config.vm.network :forwarded_port, guest: 8080, host: 9080
>>> >   config.vm.network :forwarded_port, guest: 15672, host: 15672
>>> >   config.vm.provision :chef_solo do |chef|
>>> >     chef.cookbooks_path = "cookbooks"
>>> >     chef.add_recipe "application_ruby"
>>> >     chef.data_bags_path = "data_bags"
>>> >   end
>>> > end
>>> >
>>> > Berksfile
>>> > =======
>>> >
>>> > site :opscode
>>> > cookbook "application_ruby"
>>> >
>>>
>>
>>
>




Archive powered by MHonArc 2.6.16.

§