Mysql Service Recipe throws undefined method error - mysql

I'm trying to use the chef mysql recipe but I keep getting an error, undefined method '[]' for nil:NilClass.
mysql.rb
mysql_service 'mysql' do
port '3306'
version '5.7.10'
initial_root_password 'SuperSecretPassword'
action [:create, :start]
end
mysql_config 'foo' do
source 'wp-config.php.erb'
notifies :restart, 'mysql_service[mysql]'
action :create
end
errr log
Recipe: wp::mysql
* mysql_service[mysql] action create
================================================================================
Error executing action `create` on resource 'mysql_service[mysql]'
================================================================================
NoMethodError
-------------
undefined method `[]' for nil:NilClass
Cookbook Trace:
---------------
/root/chef-solo/cookbooks-2/mysql/libraries/helpers.rb:380:in `package_name_for'
/root/chef-solo/cookbooks-2/mysql/libraries/helpers.rb:421:in `server_package'
/root/chef-solo/cookbooks-2/mysql/libraries/helpers.rb:432:in `server_package_name'
/root/chef-solo/cookbooks-2/mysql/libraries/provider_mysql_service_base.rb:31:in `block in <class:MysqlServiceBase>'
Resource Declaration:
---------------------
# In /root/chef-solo/cookbooks-3/wp/recipes/mysql.rb
5: mysql_service 'mysql' do
6: port '3306'
7: version '5.7.10'
8: initial_root_password 'ZH9D3nHE9gm1gFIgKdDC'
9: action [:create, :start]
10: end
11:
Compiled Resource:
------------------
# Declared in /root/chef-solo/cookbooks-3/wp/recipes/mysql.rb:5:in `from_file'
mysql_service("mysql") do
action [:create, :start]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :mysql_service
cookbook_name :wp
recipe_name "mysql"
port "3306"
version "5.7.10"
initial_root_password "ZH9D3nHE9gm1gFIgKdDC"
end
Running handlers:
[2016-01-17T12:04:43-05:00] ERROR: Running exception handlers
Running handlers complete
[2016-01-17T12:04:43-05:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 04 seconds
[2016-01-17T12:04:43-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-01-17T12:04:43-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-01-17T12:04:43-05:00] ERROR: mysql_service[mysql] (wp::mysql line 5) had an error: NoMethodError: undefined method `[]' for nil:NilClass
[2016-01-17T12:04:43-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.

That method is involved with looking up the package names for the current platform et al. Likely means you are trying to use an OS/distro the cookbook does not support.

Related

ebtables.c:61:3: error: implicit declaration of function 'xt_compat_calc_jump' [-Werror=implicit-function-declaration]

I am getting the following exception while building the recovery for a lineageos project and need some help diagnosing and resolving the issue
Device tree:= https://github.com/darran-kelinske-fivestars/android_device_lenovo_tb8504f/tree/lineage-15.1
Vendor tree:= https://github.com/darran-kelinske-fivestars/android_vendor_lenovo_tb8504f/tree/lineage-15.1
Kernel source:= https://github.com/darran-kelinske-fivestars/android_kernel_lenovo_tb8504f/tree/lineage-15.1
ROM Source:= https://github.com/LineageOS/android
Command: source build/envsetup.sh && breakfast tb8504f && repo sync --force-sync -q -j6 && mka recoveryimage -j6 | tee recovery.log
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c: In function 'ebt_standard_compat_from_user':
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c:61:3: error: implicit declaration of function 'xt_compat_calc_jump' [-Werror=implicit-function-declaration]
v += xt_compat_calc_jump(NFPROTO_BRIDGE, v);
^
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c: At top level:
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c:76:15: error: variable 'ebt_standard_target' has initializer but incomplete type
static struct xt_target ebt_standard_target = {
^
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c:77:2: error: unknown field 'name' specified in initializer
.name = "standard",
^
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c:77:2: warning: excess elements in struct initializer
error, forbidden warning: ebtables.c:77
CC net/core/gen_estimator.o
/home/lineageos/kernel/lenovo/msm8917/scripts/Makefile.build:257: recipe for target 'net/bridge/netfilter/ebtables.o' failed
make[4]: *** [net/bridge/netfilter/ebtables.o] Error 1
/home/lineageos/kernel/lenovo/msm8917/scripts/Makefile.build:402: recipe for target 'net/bridge/netfilter' failed
make[3]: *** [net/bridge/netfilter] Error 2
/home/lineageos/kernel/lenovo/msm8917/scripts/Makefile.build:402: recipe for target 'net/bridge' failed
make[2]: *** [net/bridge] Error 2
make[2]: *** Waiting for unfinished jobs....
Full log:
https://pastebin.com/v2ZsfRuc
I resolved this issue by replacing the source in the include directory of this project with the include directory of another project.
I replaced the source with the source from this directory:
https://github.com/HighwayStar/android_kernel_lenovo_tb8704/tree/tab4-8plus-LA.UM.5.6.r1-0/include

MySql Connect Lost in Crystal Language with Kemal

I try connection Kemal Framework with crystal-mysql.
This my shard:
mysql:
github: crystal-lang/crystal-mysql
db:
github: crystal-lang/crystal-db
And this my connection:
db = DB.open "mysql://root:password#localhost:787878/book"
But, if I'm running crystal src/book.cr I have this error:
Unhandled exception: (DB::ConnectionLost)
from lib/mysql/src/mysql/read_packet.cr:16:7 in 'initialize'
from lib/mysql/src/mysql/read_packet.cr:6:3 in 'new'
from lib/mysql/src/mysql/connection.cr:77:5 in 'build_read_packet'
from lib/mysql/src/mysql/connection.cr:59:5 in 'read_packet'
from lib/mysql/src/mysql/connection.cr:22:19 in 'initialize'
from lib/mysql/src/mysql/connection.cr:4:3 in 'new'
from lib/mysql/src/mysql/driver.cr:3:5 in 'build_connection'
from lib/db/src/db/database.cr:51:9 in '->'
from lib/db/src/db/pool.cr:255:3 in 'build_resource'
from lib/db/src/db/pool.cr:17:34 in 'initialize'
from lib/db/src/db/pool.cr:15:5 in 'new:initial_pool_size:max_pool_size:max_idle_pool_size:checkout_timeout:retry_attempts:retry_delay'
from lib/db/src/db/database.cr:50:7 in 'initialize'
from lib/db/src/db/database.cr:43:5 in 'new'
from lib/db/src/db.cr:139:5 in 'build_database'
from lib/db/src/db.cr:135:5 in 'build_database'
from lib/db/src/db.cr:103:5 in 'open'
from src/news_monitoring.cr:13:1 in '__crystal_main'
from /usr/share/crystal/src/crystal/main.cr:97:5 in 'main_user_code'
from /usr/share/crystal/src/crystal/main.cr:86:7 in 'main'
from /usr/share/crystal/src/crystal/main.cr:106:3 in 'main'
from __libc_start_main
from _start
from ???
How I can fix it.

OS X, Elixir, Ecto, Crypto, MySQL

Trying out Elixir & Ecto (not Phoenix) in a sample app to help me learn the language.
Running my program results in the following error:
=INFO REPORT==== 7-Apr-2016::16:23:28 ===
application: logger
exited: stopped
type: temporary
** (Mix) Could not start application tpos: exited in: Tpos.start(:normal, [])
** (EXIT) exited in: GenServer.call(#PID<0.164.0>, {:get_all, Tpos.Data.Models.ProfitCenter}, 5000)
** (EXIT) exited in: GenServer.call(#PID<0.163.0>, {:checkout, :run}, 5000)
** (EXIT) exited in: GenServer.call(#PID<0.168.0>, {:connect, [hostname: "localhost", timeout: 5000, otp_app: :tpos, repo: Tpos.Repo, adapter: Ecto.Adapters.MySQL, database: "tpos", username: "tpos", password: "tpos", port: 3306]}, 5000)
** (EXIT) an exception was raised:
** (UndefinedFunctionError) undefined function :crypto.hash/2 (module :crypto is not available)
(crypto) :crypto.hash(:sha, "tpos")
(mariaex) lib/mariaex/protocol.ex:150: Mariaex.Protocol.mysql_native_password/2
(mariaex) lib/mariaex/protocol.ex:47: Mariaex.Protocol.dispatch/2
(mariaex) lib/mariaex/connection.ex:284: Mariaex.Connection.process/2
(mariaex) lib/mariaex/connection.ex:251: Mariaex.Connection.handle_info/2
(stdlib) gen_server.erl:615: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:681: :gen_server.handle_msg/5
(stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
If I do a mix deps.clean --all and a mix.deps get and run the program again, it works. But only once. If I exit and attempt to run it again, I receive the above error.
The line that causes the error is:
data = Repo.all(ProfitCenter)
As I said, the first time through this runs fine and returns the expected data. It's only on subsequent runs that the error pops up.
From mix.exs:
defmodule Tpos.Mixfile do
use Mix.Project
def project do
[app: :tpos,
version: "0.0.1",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
def application do
[ applications: [:mariaex, :ecto],
mod: { Tpos, [] } ]
end
defp deps do
[
{:credo, "~> 0.3", only: [:dev, :test]},
{:mariaex, "~> 0.5.0"},
{:ecto, "~> 1.1.5"},
{:exactor, "~> 2.2.0"}
]
end
end
I'm running OS X 10.11.1, and have tried several things to get it going based on advice like this.
Thoughts? Thanks!
The error states that you don't have :crypto module. You can verify that by running:
iex(1)> Application.start(:crypto)
:ok
If you get anything else than :ok, it means that your Erlang installation is not fully functional. It happens very often when you install Erlang via kerl. Kerl doesn't consider lack of openssl an error. It just skips crytpo libraries without warning.
To install fully functional Erlang with kerl you need to run:
brew install openssl
brew install unixodbc
After that create ~/.kerlrc file with following contents:
KERL_INSTALL_MANPAGES=yes
KERL_CONFIGURE_OPTIONS="--disable-hipe --enable-smp-support --enable-threads
--enable-kernel-poll --with-wx
--with-ssl=/usr/local/opt/openssl
--with-odbc=/usr/local/opt/unixodbc"
And try to reinstall Erlang. This config also adds wx-widgets which are handy if you want to run :observer application. Unixodbc also may come in handy, but less often.
If you are using different tool to install Erlang, you still need to point it to openssl path during compilation.
Alternatively, you can use packages provided by Erlang Solutions: https://www.erlang-solutions.com/resources/download.html They should install all required dependencies including crypto.

Chef failed to install MySQL: no resouce, method or variable named create

Hi Im trying to install MySQL on a fresh CentOS 6.6 using Chef
From the project https://github.com/chef-cookbooks/mysql I worte the following script
include_recipe 'selinux::disabled'
mysql_service 'default' do
port '3306'
version '5.7'
initial_root_password 'youllneverguess'
action [:create, :start]
end
The metadata.rb looks like this
depends 'selinux'
depends 'mysql'
The configuration couldn't be simpler.
When I run the script this is what I obtain
INFO -- m-01-centos-66: ================================================================================
INFO -- m-01-centos-66: Error executing action `create` on resource 'mysql_service[default]'
INFO -- m-01-centos-66: ================================================================================
INFO -- m-01-centos-66:
INFO -- m-01-centos-66: NameError
INFO -- m-01-centos-66: ---------
INFO -- m-01-centos-66: No resource, method, or local variable named `create_stop_system_service' for `Chef::Provider::MysqlService ""'
INFO -- m-01-centos-66:
INFO -- m-01-centos-66: Cookbook Trace:
INFO -- m-01-centos-66: ---------------
INFO -- m-01-centos-66: /tmp/kitchen/cache/cookbooks/mysql/libraries/provider_mysql_service.rb:39:in `block in <class:MysqlService>'
INFO -- m-01-centos-66:
INFO -- m-01-centos-66: Resource Declaration:
INFO -- m-01-centos-66: ---------------------
INFO -- m-01-centos-66: # In /tmp/kitchen/cache/cookbooks/eon_hadoop/recipes/ranger.rb
INFO -- m-01-centos-66:
INFO -- m-01-centos-66: 12: mysql_service 'default' do
INFO -- m-01-centos-66: 13: port '3306'
INFO -- m-01-centos-66: 14: version '5.7'
INFO -- m-01-centos-66: 15: initial_root_password 'youllneverguess'
INFO -- m-01-centos-66: 16: action [:create, :start]
INFO -- m-01-centos-66: 17: end
INFO -- m-01-centos-66: 18:
INFO -- m-01-centos-66:
INFO -- m-01-centos-66: Compiled Resource:
INFO -- m-01-centos-66: ------------------
INFO -- m-01-centos-66: # Declared in /tmp/kitchen/cache/cookbooks/eon_hadoop/recipes/ranger.rb:12:in `from_file'
INFO -- m-01-centos-66:
INFO -- m-01-centos-66: mysql_service("default") do
INFO -- m-01-centos-66: action [:create, :start]
INFO -- m-01-centos-66: retries 0
INFO -- m-01-centos-66: retry_delay 2
INFO -- m-01-centos-66: default_guard_interpreter :default
INFO -- m-01-centos-66: declared_type :mysql_service
INFO -- m-01-centos-66: cookbook_name "eon_hadoop"
INFO -- m-01-centos-66: recipe_name "ranger"
INFO -- m-01-centos-66: port "3306"
INFO -- m-01-centos-66: version "5.7"
INFO -- m-01-centos-66: initial_root_password "youllneverguess"
INFO -- m-01-centos-66: package_action :install
INFO -- m-01-centos-66: end
INFO -- m-01-centos-66:
INFO -- m-01-centos-66:
INFO -- m-01-centos-66: Running handlers:
INFO -- m-01-centos-66: [2015-06-25T13:05:36+00:00] ERROR: Running exception handlers
INFO -- m-01-centos-66: Running handlers complete
INFO -- m-01-centos-66: [2015-06-25T13:05:36+00:00] ERROR: Exception handlers complete
INFO -- m-01-centos-66: Chef Client failed. 2 resources updated in 40.87935617 seconds
INFO -- m-01-centos-66: [2015-06-25T13:05:36+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
INFO -- m-01-centos-66: [2015-06-25T13:05:36+00:00] ERROR: mysql_service[default] (eon_hadoop::ranger line 12) had an error: NameError: No resource, method, or local variable named `create_stop_system_service' for `Chef::Provider::MysqlService ""'
INFO -- m-01-centos-66: [2015-06-25T13:05:36+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR -- m-01-centos-66: Converge failed on instance <m-01-centos-66>.
ERROR -- m-01-centos-66: ------Exception-------
ERROR -- m-01-centos-66: Class: Kitchen::ActionFailed
ERROR -- m-01-centos-66: Message: SSH exited (1) for command: [sh -c '
al-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889
ERROR -- m-01-centos-66: ---Nested Exception---
ERROR -- m-01-centos-66: Class: Kitchen::Transport::SshFailed
ERROR -- m-01-centos-66: Message: SSH exited (1) for command: [sh -c '
al-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889
ERROR -- m-01-centos-66: ------Backtrace-------
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/provisioner/base.rb:74:in `rescue in call'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/provisioner/base.rb:77:in `call'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:366:in `block in converge_action'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:488:in `call'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:488:in `synchronize_or_call'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:453:in `block in action'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/lib/ruby/2.1.0/benchmark.rb:279:in `measure'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:452:in `action'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:362:in `converge_action'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:341:in `block in transition_to'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:340:in `each'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:340:in `transition_to'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:138:in `converge'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:176:in `public_send'
ERROR -- m-01-centos-66: C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:176:in `block (2 levels) in run_action'
ERROR -- m-01-centos-66: ----------------------
I have already tried different versions of the cookbook, differenet versions of the database, restart everything from scratch, the solutions proposed in the following pages Chef Mysql recipe fails, https://github.com/chef-cookbooks/mysql/issues/332, https://gist.github.com/faraazkhan/680c3e79c7524be355ca, but I couldn't get any further.
What I am doing wrong? Am I missing any configuration/parameter/attribute/dependency??
Thank you
It seems like for some reason mysql_service does not select the right provider.
Try to add provider Chef::Provider::MysqlService::Sysvinit to mysql_service.
mysql_service 'default' do
port '3306'
version '5.7'
initial_root_password 'youllneverguess'
provider Chef::Provider::MysqlService::Sysvinit
action [:create, :start]
end

Error executing action `install` on resource 'package[mysql-devel]

I ran a recipe to install the mysql-client and mysql-server on my rhel6 linux box. The recipes used were downloaded from supermarket using knife tool.
i am following this tutorial step by step.
on executing this command:
chef-solo -c solo.rb -j web.json
====
I got the following error.
Recipe: mysql::client
* package[mysql] action install (up to date)
* package[mysql-devel] action install
================================================================================
**Error executing action `install` on resource 'package[mysql-devel]'**
================================================================================
Chef::Exceptions::Exec
----------------------
returned 1, expected 0
Resource Declaration:
---------------------
# In /home/subham/chef-repo/chef-repo/cookbooks/mysql/recipes/client.rb
47: package name
48: end
Compiled Resource:
------------------
# Declared in /home/subham/chef-repo/chef-repo/cookbooks/mysql/recipes/client.rb:47:in `block in from_file'
package("mysql-devel") do
action :install
retries 0
retry_delay 2
guard_interpreter :default
package_name "mysql-devel"
version "5.1.61-4.el6"
timeout 900
cookbook_name :mysql
recipe_name "client"
end
Running handlers:
[2014-11-26T06:22:23-05:00] ERROR: Running exception handlers
Running handlers complete
[2014-11-26T06:22:23-05:00] ERROR: Exception handlers complete
[2014-11-26T06:22:23-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 1 resources updated in 29.10138575 seconds
[2014-11-26T06:22:24-05:00] ERROR: package[mysql-devel] (mysql::client line 47) had an error: Chef::Exceptions::Exec: returned 1, expected 0
[2014-11-26T06:22:24-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Stacktrace at /var/chef/cache/chef-stacktrace.out
Generated at 2014-11-26 06:22:23 -0500
Chef::Exceptions::Exec: package[mysql-devel] (mysql::client line 47) had an error: Chef::Exceptions::Exec: returned 1, expected 0
/opt/chefdk/embedded/apps/chef/lib/chef/mixin/command.rb:158:in `handle_command_failures'
/opt/chefdk/embedded/apps/chef/lib/chef/provider/package/yum.rb:1021:in `yum_command'
/opt/chefdk/embedded/apps/chef/lib/chef/provider/package/yum.rb:1136:in `install_package'
/opt/chefdk/embedded/apps/chef/lib/chef/provider/package.rb:82:in `block in action_install'
/opt/chefdk/embedded/apps/chef/lib/chef/mixin/why_run.rb:52:in `call'
/opt/chefdk/embedded/apps/chef/lib/chef/mixin/why_run.rb:52:in `add_action'
/opt/chefdk/embedded/apps/chef/lib/chef/provider.rb:156:in `converge_by'
/opt/chefdk/embedded/apps/chef/lib/chef/provider/package.rb:80:in `action_install'
/opt/chefdk/embedded/apps/chef/lib/chef/provider.rb:121:in `run_action'
/opt/chefdk/embedded/apps/chef/lib/chef/resource.rb:648:in `run_action'
/opt/chefdk/embedded/apps/chef/lib/chef/runner.rb:49:in `run_action'
/opt/chefdk/embedded/apps/chef/lib/chef/runner.rb:81:in `block (2 levels) in converge'
/opt/chefdk/embedded/apps/chef/lib/chef/runner.rb:81:in `each'
/opt/chefdk/embedded/apps/chef/lib/chef/runner.rb:81:in `block in converge'
/opt/chefdk/embedded/apps/chef/lib/chef/resource_collection.rb:98:in `block in execute_each_resource'
/opt/chefdk/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/opt/chefdk/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/opt/chefdk/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/chefdk/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/opt/chefdk/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/chefdk/embedded/apps/chef/lib/chef/resource_collection.rb:96:in `execute_each_resource'
/opt/chefdk/embedded/apps/chef/lib/chef/runner.rb:80:in `converge'
/opt/chefdk/embedded/apps/chef/lib/chef/client.rb:345:in `converge'
/opt/chefdk/embedded/apps/chef/lib/chef/client.rb:431:in `do_run'
/opt/chefdk/embedded/apps/chef/lib/chef/client.rb:213:in `block in run'
/opt/chefdk/embedded/apps/chef/lib/chef/client.rb:207:in `fork'
/opt/chefdk/embedded/apps/chef/lib/chef/client.rb:207:in `run'
/opt/chefdk/embedded/apps/chef/lib/chef/application.rb:236:in `run_chef_client'
/opt/chefdk/embedded/apps/chef/lib/chef/application/solo.rb:226:in `block in run_application'
/opt/chefdk/embedded/apps/chef/lib/chef/application/solo.rb:218:in `loop'
/opt/chefdk/embedded/apps/chef/lib/chef/application/solo.rb:218:in `run_application'
/opt/chefdk/embedded/apps/chef/lib/chef/application.rb:55:in `run'
/opt/chefdk/embedded/apps/chef/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:33:in `load'
/usr/bin/chef-solo:33:in `<main>'
File at /home/subham/chef-repo/chef-repo/cookbooks/mysql/recipes/client.rb
line 46 : node['mysql']['client']['packages'].each do |name|
line 47 : package name
line 48 : end
In the header comment section of the same file
# Include Opscode helper in Recipe class to get access
# to debian_before_squeeze? and ubuntu_before_lucid?
Does it mean that this recipe will only work in debian family based systems like ubuntu and not in RHEL or fedora/Cent OS ?
If yes then what changes i need to perform ?