Last active
December 18, 2015 03:19
-
-
Save trinitronx/5717611 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -lR cookbooks/chef-solo-search/libraries/ | |
total 8 | |
drwxr-xr-x 4 jcuzella staff 136 Jun 5 15:21 search | |
-rw-r--r-- 1 jcuzella staff 2163 Jun 7 08:55 search.rb | |
drwxr-xr-x 3 jcuzella staff 102 Jun 5 15:21 vendor | |
cookbooks/chef-solo-search/libraries//search: | |
total 24 | |
-rw-r--r-- 1 jcuzella staff 3083 Jun 5 15:21 overrides.rb | |
-rw-r--r-- 1 jcuzella staff 5513 Jun 5 15:21 parser.rb | |
cookbooks/chef-solo-search/libraries//vendor: | |
total 0 | |
drwxr-xr-x 3 jcuzella staff 102 Jun 5 15:21 chef | |
cookbooks/chef-solo-search/libraries//vendor/chef: | |
total 0 | |
drwxr-xr-x 5 jcuzella staff 170 Jun 5 15:21 solr_query | |
cookbooks/chef-solo-search/libraries//vendor/chef/solr_query: | |
total 32 | |
-rw-r--r-- 1 jcuzella staff 3136 Jun 5 15:21 lucene.treetop | |
-rw-r--r-- 1 jcuzella staff 5794 Jun 5 15:21 lucene_nodes.rb | |
-rw-r--r-- 1 jcuzella staff 2001 Jun 5 15:21 query_transform.rb | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[33m[Berkshelf] This version of the Berkshelf plugin has not been fully tested on this version of Vagrant.[0m | |
[33m[Berkshelf] You should check for a newer version of vagrant-berkshelf.[0m | |
[33m[Berkshelf] If you encounter any errors with this version, please report them at https://github.com/RiotGames/vagrant-berkshelf/issues[0m | |
[33m[Berkshelf] You can also join the discussion in #berkshelf on Freenode.[0m | |
[Berkshelf] Updating Vagrant's berkshelf: '/Users/jcuzella/.berkshelf/vagrant/berkshelf-20130605-8934-xzjfo2' | |
[Berkshelf] Using github-repo-backup (0.1.0) at path: '/Users/jcuzella/src/gloo/gloo-chef/site-cookbooks/github-repo-backup' | |
[Berkshelf] Using ruby_build (0.8.0) | |
[Berkshelf] Using rbenv (0.7.2) | |
[Berkshelf] Using java (1.10.0) | |
[Berkshelf] Using windows (1.8.6) | |
[Berkshelf] Using chef_handler (1.1.4) | |
[Berkshelf] Using users-gloo (0.1.6) | |
[Berkshelf] Using users (1.4.0) | |
[Berkshelf] Using ssh_known_hosts (1.0.0) | |
[Berkshelf] Using partial_search (1.0.0) | |
[Berkshelf] Using cron (1.2.2) | |
[Berkshelf] Using chef-solo-search (0.4.0) | |
[default] Running provisioner: chef_solo... | |
Uploading chef encrypted data bag secret key... | |
Generating chef JSON and uploading... | |
Running chef-solo... | |
stdin: is not a tty | |
[2013-06-05T21:52:13+00:00] INFO: *** Chef 11.4.0 *** | |
[2013-06-05T21:52:14+00:00] INFO: Setting the run_list to ["recipe[ruby_build]", "recipe[github-repo-backup::default]"] from JSON | |
[2013-06-05T21:52:14+00:00] INFO: Run List is [recipe[ruby_build], recipe[github-repo-backup::default]] | |
[2013-06-05T21:52:14+00:00] INFO: Run List expands to [ruby_build, github-repo-backup::default] | |
[2013-06-05T21:52:14+00:00] INFO: Starting Chef Run for github-repo-backup-berkshelf | |
[2013-06-05T21:52:14+00:00] INFO: Running start handlers | |
[2013-06-05T21:52:14+00:00] INFO: Start handlers complete. | |
[0m | |
================================================================================[0m | |
[31mRecipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/chef-solo-search/libraries/search.rb[0m | |
================================================================================[0m | |
[0m | |
LoadError[0m | |
---------[0m | |
cannot load such file -- search/overrides[0m | |
[0m | |
Cookbook Trace:[0m | |
---------------[0m | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/chef-solo-search/libraries/search.rb:40:in `<top (required)>'[0m | |
[0m | |
Relevant File Content:[0m | |
----------------------[0m | |
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/chef-solo-search/libraries/search.rb: | |
33: rescue LoadError | |
34: run_context = Chef::RunContext.new(Chef::Node.new, {}, Chef::EventDispatch::Dispatcher.new) | |
35: chef_gem = Chef::Resource::ChefGem.new("treetop", run_context) | |
36: chef_gem.version('>= 1.4') | |
37: chef_gem.run_action(:install) | |
38: end | |
39: | |
40>> require 'search/overrides' | |
41: require 'search/parser' | |
42: | |
43: module Search; class Helper; end; end | |
44: | |
45: # The search and data_bag related methods moved form `Chef::Mixin::Language` | |
46: # to `Chef::DSL::DataQuery` in Chef 11. | |
47: if Chef::VERSION.to_i >= 11 | |
48: module Chef::DSL::DataQuery | |
49: def self.included(base) | |
[0m | |
[0m | |
[2013-06-05T21:52:14+00:00] ERROR: Running exception handlers | |
[2013-06-05T21:52:14+00:00] ERROR: Exception handlers complete | |
[2013-06-05T21:52:14+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out | |
[2013-06-05T21:52:14+00:00] FATAL: LoadError: cannot load such file -- search/overrides |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turns out this was because
knife cookbook upload
did not copy any subdirectories of thechef-solo-search/libraries
folder to my chef server (see this image)Adding
cookbook 'chef-solo-search', path: "#{Dir.pwd}/../../cookbooks/chef-solo-search"
to my Berksfile fixed it for local testing purposes.