Skip to content

Instantly share code, notes, and snippets.

@behemphi
Created September 11, 2013 17:34
Show Gist options
  • Save behemphi/6527017 to your computer and use it in GitHub Desktop.
Save behemphi/6527017 to your computer and use it in GitHub Desktop.
Apache2 Cookbook Troubles
bhemphill:~/Code/cook_rave 18:22:53 > vagrant provision
[Berkshelf] Updating Vagrant's berkshelf: '/Users/bhemphill/.berkshelf/default/vagrant/berkshelf-20130910-2463-6eqb9w-default'
[Berkshelf] Using java (1.13.0)
[Berkshelf] Using apache2 (1.7.0)
[Berkshelf] Using cook_rave (0.1.0)
[Berkshelf] Using windows (1.10.0)
[Berkshelf] Using chef_handler (1.1.4)
[default] Chef 11.6.0 Omnibus package is already installed.
[default] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
stdin: is not a tty
[2013-09-10T23:34:08+00:00] INFO: Forking chef instance to converge...
[2013-09-10T23:34:08+00:00] INFO: *** Chef 11.6.0 ***
[2013-09-10T23:34:08+00:00] INFO: Setting the run_list to ["recipe[cook_rave::default]"] from JSON
[2013-09-10T23:34:08+00:00] INFO: Run List is [recipe[cook_rave::default]]
[2013-09-10T23:34:08+00:00] INFO: Run List expands to [cook_rave::default]
[2013-09-10T23:34:08+00:00] INFO: Starting Chef Run for cook-rave-berkshelf
[2013-09-10T23:34:08+00:00] INFO: Running start handlers
[2013-09-10T23:34:08+00:00] INFO: Start handlers complete.
================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/cook_rave/recipes/default.rb
================================================================================
NameError
---------
Cannot find a resource for apache_module on ubuntu version 12.04
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apache2/recipes/mod_alias.rb:20:in `from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apache2/recipes/default.rb:214:in `block in from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apache2/recipes/default.rb:212:in `each'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apache2/recipes/default.rb:212:in `from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/cook_rave/recipes/default.rb:7:in `from_file'
Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apache2/recipes/mod_alias.rb:
13: # Unless required by applicable law or agreed to in writing, software
14: # distributed under the License is distributed on an "AS IS" BASIS,
15: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16: # See the License for the specific language governing permissions and
17: # limitations under the License.
18: #
19:
20>> apache_module "alias" do
21: conf true
22: end
23:
[2013-09-10T23:34:08+00:00] ERROR: Running exception handlers
[2013-09-10T23:34:08+00:00] ERROR: Exception handlers complete
[2013-09-10T23:34:08+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-09-10T23:34:08+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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment