irnnr / vagrant-typo3

A Vagrant file to get you up and running with TYPO3 in a few minutes.
35 stars 11 forks source link

uninitialized constant Homebrew #3

Closed peterkraume closed 10 years ago

peterkraume commented 10 years ago

Ubuntu 13.10 VirtualBox 4.2.16_Ubuntu Vagrant 1.2.7

I have added

cookbook 'solr',
  :github => 'irnnr/chef-typo3-solr'

to the Cheffile and then did the librarian-chef install and vagrant up.

[2014-03-10T16:23:26+00:00] INFO: *** Chef 10.14.2 ***
[2014-03-10T16:23:27+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[vim]", "recipe[networking_basic]", "recipe[mysql::server]", "recipe[php]", "recipe[php::module_gd]", "recipe[php::module_apc]", "recipe[apache2]", "recipe[graphicsmagick]", "recipe[typo3]", "recipe[typo3::scheduler]"] from JSON
[2014-03-10T16:23:27+00:00] INFO: Run List is [recipe[apt], recipe[vim], recipe[networking_basic], recipe[mysql::server], recipe[php], recipe[php::module_gd], recipe[php::module_apc], recipe[apache2], recipe[graphicsmagick], recipe[typo3], recipe[typo3::scheduler]]
[2014-03-10T16:23:27+00:00] INFO: Run List expands to [apt, vim, networking_basic, mysql::server, php, php::module_gd, php::module_apc, apache2, graphicsmagick, typo3, typo3::scheduler]
[2014-03-10T16:23:27+00:00] INFO: Starting Chef Run for www.vagrant-typo3.dev
[2014-03-10T16:23:27+00:00] INFO: Running start handlers
[2014-03-10T16:23:27+00:00] INFO: Start handlers complete.

================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/homebrew/libraries/homebrew_package.rb
================================================================================

NameError
---------
uninitialized constant Homebrew

Cookbook Trace:
---------------
  /tmp/vagrant-chef-1/chef-solo-1/cookbooks/homebrew/libraries/homebrew_package.rb:34

Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/homebrew/libraries/homebrew_package.rb:

  1:  #
  2:  # Author:: Joshua Timberman (<jtimberman@opscode.com>)
  3:  # Author:: Graeme Mathieson (<mathie@woss.name>)
  4:  # Cookbook Name:: homebrew
  5:  # Libraries:: homebrew_package
  6:  #
  7:  # Copyright 2011-2013, Opscode, Inc.
  8:  #
  9:  # Licensed under the Apache License, Version 2.0 (the "License");

[2014-03-10T16:23:27+00:00] ERROR: Running exception handlers
[2014-03-10T16:23:27+00:00] ERROR: Exception handlers complete
[2014-03-10T16:23:27+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-03-10T16:23:27+00:00] FATAL: NameError: uninitialized constant Homebrew
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
irnnr commented 10 years ago

I'm not aware of a home-brew dependency. Could you please try again using the Cheffile included in this repo and report whether that works?

https://github.com/irnnr/vagrant-typo3/blob/master/Cheffile

irnnr commented 10 years ago

Also, please post or check your Cheffile.lock file, it contains the dependency tree, that should give you an indication of where the home-brew dependency comes from.

peterkraume commented 10 years ago

The dependency comes with the mysql cookbook:

SITE
  remote: http://community.opscode.com/api/v1
  specs:
    apache2 (1.9.6)
      iptables (>= 0.0.0)
      logrotate (>= 0.0.0)
      pacman (>= 0.0.0)
    apt (1.10.0)
    aws (2.1.0)
    build-essential (1.4.4)
    chef_handler (1.1.5)
    cron (1.3.0)
    database (2.0.0)
      aws (>= 0.0.0)
      mysql (>= 1.3.0)
      postgresql (>= 1.0.0)
      xfs (>= 0.0.0)
    homebrew (1.5.4)
    iis (2.0.2)
      windows (>= 1.2.6)
    iptables (0.12.0)
    logrotate (1.5.0)
    mysql (4.1.2)
      build-essential (~> 1.4)
      homebrew (>= 0.0.0)
      openssl (~> 1.1)
      windows (>= 0.0.0)
    ntp (1.6.0)
    openssl (1.1.0)
    pacman (1.1.1)
    php (1.4.2)
      build-essential (>= 0.0.0)
      iis (>= 0.0.0)
      mysql (>= 0.0.0)
      windows (>= 0.0.0)
      xml (>= 0.0.0)
      yum-epel (>= 0.0.0)
    postgresql (3.3.4)
      apt (>= 0.0.0)
      build-essential (>= 0.0.0)
      openssl (>= 0.0.0)
    timezone (0.0.1)
    vim (1.1.2)
    windows (1.30.0)
      chef_handler (>= 0.0.0)
    xfs (1.1.0)
    xml (1.2.2)
      build-essential (>= 0.0.0)
    yum (3.1.2)
    yum-epel (0.3.4)
      yum (~> 3.0)

GIT
  remote: https://github.com/fred/fredz_cookbooks
  ref: master
  sha: 62ab8d3de6fa89008be6dd02d23e70bf9904c454
  specs:
    networking_basic (0.0.7)

GIT
  remote: https://github.com/irnnr/chef-typo3
  ref: master
  sha: 916cc618397af4ba1430be003ebae045fec1f6b0
  specs:
    typo3 (0.6.0)
      apache2 (>= 0.0.0)
      cron (>= 0.0.0)
      database (>= 0.0.0)
      mysql (>= 0.0.0)
      php (>= 0.0.0)

GIT
  remote: https://github.com/jondot/graphicsmagick_cookbook
  ref: master
  sha: c95ce08c564cdde32f29ecfbcc5d5753fc01490f
  specs:
    graphicsmagick (0.1.0)

DEPENDENCIES
  apache2 (>= 0)
  apt (= 1.10.0)
  database (>= 0)
  graphicsmagick (>= 0)
  mysql (>= 0)
  networking_basic (>= 0)
  ntp (>= 0)
  php (>= 0)
  timezone (= 0.0.1)
  typo3 (>= 0)
  vim (>= 0)

But regarding to mysql/recipies/client.rb homebrew should only be included when the OS is Mac OS X.

irnnr commented 10 years ago

So than that's the culprit. Just checked one of my boxes, here it's using mysql cookbook v3.0.2. You could hard wire that in your Cheffile by adding the version number after the cookbook's name:

cookbook 'mysql', '3.0.2'