ptwobrussell / Mining-the-Social-Web-2nd-Edition

The official online compendium for Mining the Social Web, 2nd Edition (O'Reilly, 2013)
http://bit.ly/135dHfs
Other
2.9k stars 1.49k forks source link

Chef never successfully completed - "cannot load such file -- chef/mixin/language" #336

Open kelvin8773 opened 5 years ago

kelvin8773 commented 5 years ago

I running on macOS 10.13.6 (17G65), just install Virtualbox(Oracle VM VirtualBox Manager 5.2.18), Vagrant 2.1.4. I tried with "https://github.com/rreben/Mining-the-Social-Web-2nd-Edition" @rreben 's repo (base on Issue 317.

Some detail logs errors show below -

==> default: - yum (2.3.0)
==> default: Installing Cookbook Gems:
==> default: Compiling Cookbooks...
==> default: 
==> default: ================================================================================
==> default: Recipe Compile Error in /var/chef/cache/cookbooks/runit/libraries/provider_runit_service.rb
==> default: ================================================================================
==> default: 
==> default: 
==> default: LoadError
==> default: ---------
==> default: cannot load such file -- chef/mixin/language
==> default: 
==> default: Cookbook Trace:
==> default: ---------------
==> default:   /var/chef/cache/cookbooks/runit/libraries/provider_runit_service.rb:31:in `<top (required)>'
==> default: 
==> default: Relevant File Content:
==> default: ----------------------
==> default: /var/chef/cache/cookbooks/runit/libraries/provider_runit_service.rb:
==> default: 
==> default:  24:  require 'chef/provider/directory'
==> default:  25:  require 'chef/resource/directory'
==> default:  26:  require 'chef/provider/template'
==> default:  27:  require 'chef/resource/template'
==> default:  28:  require 'chef/provider/file'
==> default:  29:  require 'chef/resource/file'
==> default:  30:  require 'chef/mixin/shell_out'
==> default:  31>> require 'chef/mixin/language'
==> default:  32:  
==> default:  33:  class Chef
==> default:  34:    class Provider
==> default:  35:      class Service
==> default:  36:        class Runit < Chef::Provider::Service
==> default:  37:          include Chef::Mixin::ShellOut
==> default:  38:  
==> default:  39:          def initialize(*args)
==> default:  40:            super
==> default: 
==> default: System Info:
==> default: ------------
==> default: chef_version=14.4.56
==> default: platform=ubuntu
==> default: platform_version=14.04
==> default: ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
==> default: program_name=/usr/bin/chef-solo
==> default: executable=/opt/chef/bin/chef-solo
==> default: 
==> default: 
==> default: Running handlers:
==> default: [2018-09-12T00:43:09+00:00] ERROR: Running exception handlers
==> default: Running handlers complete
==> default: [2018-09-12T00:43:09+00:00] ERROR: Exception handlers complete
==> default: Chef Client failed. 0 resources updated in 08 seconds
==> default: [2018-09-12T00:43:09+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2018-09-12T00:43:09+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
==> default: [2018-09-12T00:43:09+00:00] FATAL: LoadError: cannot load such file -- chef/mixin/language
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

The VM is up, just something wrong with chef configuration, probably due to the update of other softwares. Please advice, thanks!

pblemel commented 5 years ago

I just went through this too. Bear in mind that I don't know the first thing about 'chef' ...

The problem is that the 'python' chef plugin is deprecated and no longer supported. Other projects have the same issue that were resolved using poise-python

If someone knows what substitutions need to be made to change the 'python' to 'poise-python', that would be the solution. I just don't know anything about 'chef'.

If your VM is up and running, this solution appears to work : https://github.com/ptwobrussell/Mining-the-Social-Web-2nd-Edition/issues/319