[chef] httpd load failing - No version specified, and no candidate version available for apr


Chronological Thread 
  • From: Sudhakar Anemu < >
  • To:
  • Subject: [chef] httpd load failing - No version specified, and no candidate version available for apr
  • Date: Tue, 8 Sep 2015 20:19:41 +0530

Hi All, 

I am trying to execute a small book to install httpd webserver. Coming to node : I am using rhel6-Vagrant. can any one helps to resolve this issue please. I am attaching kitchen and httpd.rb files. Please let me know if I need to provide more details.

**************************************
          ================================================================================
           Error executing action `install` on resource 'package[apr]'
           ================================================================================

           Chef::Exceptions::Package
           -------------------------
           No version specified, and no candidate version available for apr

           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb

            11:   package pkg do
            12:     action :install
            13:   end
            14: end

           Compiled Resource:
           ------------------
           # Declared in /tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb:11:in `block in from_file'

           package("apr") do
             action [:install]
             retries 0
             retry_delay 2
             guard_interpreter :default
             package_name "apr"
             timeout 900
             cookbook_name :"hello-world"
             recipe_name "httpd"
           end

***************************************


O:\repo\chef-repo\cookbooks\hello-world>bundle exec kitchen converge
-----> Starting Kitchen (v1.4.2)
Celluloid 0.17.1.2 is running in BACKPORTED mode. [ http://git.io/vJf3J ;]
-----> Converging <default-rhel6-vagrant>...
       Preparing files for transfer
       Preparing dna.json
       Resolving cookbook dependencies with Berkshelf 2.0.18...
       Removing non-cookbook files before transfer
       Preparing solo.rb
-----> Chef Omnibus installation detected (install only if missing)
       Transferring files to <default-rhel6-vagrant>
       Starting Chef Client, version 11.14.6
       Compiling Cookbooks...
       Converging 5 resources
       Recipe: hello-world::httpd


           
================================================================================
           Error executing action `install` on resource 'package[apr]'
           
================================================================================

           Chef::Exceptions::Package
           -------------------------
           No version specified, and no candidate version available for apr

           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb

            11:   package pkg do
            12:     action :install
            13:   end
            14: end

           Compiled Resource:
           ------------------
           # Declared in 
/tmp/kitchen/cookbooks/hello-world/recipes/httpd.rb:11:in `block in from_file'

           package("apr") do
             action [:install]
             retries 0
             retry_delay 2
             guard_interpreter :default
             package_name "apr"
             timeout 900
             cookbook_name :"hello-world"
             recipe_name "httpd"
           end


       Running handlers:
       [2015-09-07T07:49:49+00:00] ERROR: Running exception handlers
       Running handlers complete
       [2015-09-07T07:49:49+00:00] ERROR: Exception handlers complete
       [2015-09-07T07:49:49+00:00] FATAL: Stacktrace dumped to 
/tmp/kitchen/cache/chef-stacktrace.out
       Chef Client failed. 0 resources updated in 29.107887524 seconds
       [2015-09-07T07:49:49+00:00] ERROR: package[apr] (hello-world::httpd 
line 11) had an error: Chef::Exceptions::Package: No version specified, and 
no candidate version available for apr
       [2015-09-07T07:49:49+00:00] FATAL: 
Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully 
(exit code 1)
>>>>>> Converge failed on instance <default-rhel6-vagrant>.
>>>>>> Please see .kitchen/logs/default-rhel6-vagrant.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sh -c '

sudo -E /opt/chef/bin/chef-solo --config /tmp/kitchen/solo.rb --log_level 
auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json
']
>>>>>> ----------------------
zlib(finalizer): the stream was freed prematurely.

Attachment: .kitchen.yml
Description: Binary data

Attachment: httpd.rb
Description: Binary data




Archive powered by MHonArc 2.6.16.

§