Vagrant和Chef ......完全惊人的版本冲突,现在有mysql问题

时间:2014-06-16 20:18:34

标签: mysql ruby vagrant chef-solo

我正在努力让Vagrant / Chef起来跑步。几年前我用它没有太多问题,但这只是......令人沮丧。我已经尝试了各种各样的东西让它发挥作用,并且在过去的4天里可能已经花了20多个小时。这是我得到的最远的。我找不到任何与mysql相关的特殊错误。厨师专家的建议吗?

==> default: [2014-06-16T22:07:08+02:00] INFO: *** Chef 11.4.2 ***
==> default: [2014-06-16T22:07:08+02:00] INFO: Setting the run_list to ["role[vagrant-test-box]"] from JSON
==> default: [2014-06-16T22:07:08+02:00] INFO: Run List is [role[vagrant-test-box]]
==> default: [2014-06-16T22:07:08+02:00] INFO: Run List expands to [apt, build-essential, openssl, apache2, apache2::mod_php5, mysql, mysql::server, php, php::module_mysql, apache2::vhosts, database::mysql, nodejs]
==> default: [2014-06-16T22:07:08+02:00] INFO: Starting Chef Run for www.example.vm
==> default: [2014-06-16T22:07:08+02:00] INFO: Running start handlers
==> default: [2014-06-16T22:07:08+02:00] INFO: Start handlers complete.
==> default: 
==> default: ================================================================================
==> default: Recipe Compile Error in /tmp/vagrant-chef-3/chef-solo-2/cookbooks/mysql/libraries/provider_mysql_service_suse.rb
==> default: ================================================================================
==> default: 
==> default: 
==> default: NoMethodError
==> default: -------------
==> default: undefined method `require_relative' for main:Object
==> default: 
==> default: 
==> default: Cookbook Trace:
==> default: ---------------
==> default:   /tmp/vagrant-chef-3/chef-solo-2/cookbooks/mysql/libraries/provider_mysql_service_suse.rb:3
==> default: 
==> default: 
==> default: 
==> default: Relevant File Content:
==> default: ----------------------
==> default: /tmp/vagrant-chef-3/chef-solo-2/cookbooks/mysql/libraries/provider_mysql_service_suse.rb:
==> default: 
==> default:   1:  require 'chef/provider/lwrp_base'
==> default:   2:  require 'shellwords'
==> default:   3>> require_relative 'helpers'
==> default:   4:  
==> default:   5:  extend Opscode::Mysql::Helpers
==> default:   6:  
==> default:   7:  class Chef
==> default:   8:    class Provider
==> default:   9:      class MysqlService
==> default:  10:        class Suse < Chef::Provider::MysqlService
==> default:  11:          use_inline_resources if defined?(use_inline_resources)
==> default:  12:  
==> default: 
==> default: 
==> default: 
==> default: [2014-06-16T22:07:08+02:00] ERROR: Running exception handlers
==> default: [2014-06-16T22:07:08+02:00] ERROR: Exception handlers complete
==> default: [2014-06-16T22:07:08+02:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2014-06-16T22:07:08+02:00] FATAL: NoMethodError: undefined method `require_relative' for main:Object
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

0 个答案:

没有答案