Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no implicit conversion of nil into String #13

Open
allaire opened this issue Jun 2, 2016 · 2 comments
Open

no implicit conversion of nil into String #13

allaire opened this issue Jun 2, 2016 · 2 comments

Comments

@allaire
Copy link

allaire commented Jun 2, 2016

Getting the following warning, any ideas?

 mysql2_chef_gem[default] action install

 ================================================================================
 Error executing action `install` on resource 'mysql2_chef_gem[default]'
 ================================================================================

 TypeError
 ---------
 no implicit conversion of nil into String

 Cookbook Trace:
 ---------------
 /var/chef/cache/cookbooks/mysql2_chef_gem/libraries/provider_mysql2_chef_gem_mysql.rb:17:in `block (2 levels) in <class:Mysql>'
 /var/chef/cache/cookbooks/mysql2_chef_gem/libraries/provider_mysql2_chef_gem_mysql.rb:16:in `block in <class:Mysql>'
 /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:41:in `run_action'

 Resource Declaration:
 ---------------------
 # In /var/chef/cache/cookbooks/myorg-mysql/recipes/default.rb

   9: mysql2_chef_gem "default" do
  10:   action :install
  11: end
  12:

 Compiled Resource:
 ------------------
 # Declared in /var/chef/cache/cookbooks/myorg-mysql/recipes/default.rb:9:in `from_file'

 mysql2_chef_gem("default") do
   action [:install]
   retries 0
   retry_delay 2
   default_guard_interpreter :default
   declared_type :mysql2_chef_gem
   cookbook_name "myorg-mysql"
   recipe_name "default"
 end

 Platform:
 ---------
 x86_64-linux
@nickma
Copy link

nickma commented Jul 11, 2016

Same issue here

@heaven
Copy link

heaven commented Sep 21, 2017

Also having the same problem with rvm. As I understand the problem my chef is using system ruby 1.9 while when I do require 'mysql2' from a recipe it is trying to load from ruby 3.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants