[ruby-core:71079] [Ruby trunk - Bug #11574] chef-client-FATAL: Chef::Exceptions::ChildConvergeError: Chef run process terminated by signal 6 (IOT)

From: ally0224@...
Date: 2015-10-14 01:37:35 UTC
List: ruby-core #71079
Issue #11574 has been updated by Ally Kuo.

File OpEN.so added
File OpENUtil.rb added
File test.rb added

thanks for the reply,
i've downgraded the ruby to 1.8 and try to run the OpEN.so and got the error msg like below:
honestly, before i posted the article yesterday, i got the same msg,using the ryby 1.8 with the .so file from switch equipment, i cannot find any solution for the error, 
so i tried to upgrade my ruby to 2.0.
and now i downgraded the ruby to 1.8 and stuck in **'cannot load such file -- OpEN'**
i have no idea why i excute it from **ruby test.rb** was good but from chef-client?
does anyone have any idea about this?
`
root@localhost:/usr/bin# chef-client
Starting Chef Client, version 11.4.0
resolving cookbooks for run list: ["apt"]
Synchronizing Cookbooks:
  - apt
Compiling Cookbooks...

================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/apt/recipes/default.rb
================================================================================
LoadError
---------
cannot load such file -- OpEN

Cookbook Trace:
---------------
  /var/chef/cache/cookbooks/apt/recipes/default.rb:11:in `from_file'


Relevant File Content:
----------------------
/var/chef/cache/cookbooks/apt/recipes/default.rb:

  4:  #
  5:  # Copyright 2015, YOUR_COMPANY_NAME
  6:  #
  7:  # All rights reserved - Do Not Redistribute
  8:  #
  9:
 10:
 11>> require "OpEN"
 12:  require "OpENUtil"
 13:
 14:  open = OpENUtil.new()
 15:    conn_ret = open.connect("boa-vlan")
 16:    exists = false
 17:    if conn_ret == OpEN::OPEN_E_NONE
 18:      client = open.client
 19:      ret = OpEN::openapiVlanCreatedCheck(client,1)
 20:      if ret == OpEN::OPEN_E_NONE

[2015-10-14T01:27:00+00:00] ERROR: Running exception handlers
[2015-10-14T01:27:00+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2015-10-14T01:27:00+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2015-10-14T01:27:00+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2015-10-14T01:27:00+00:00] FATAL: LoadError: cannot load such file -- OpEN
`

Nobuyoshi Nakada wrote:
> `unknown type 0x22 (0x11 given)` means the extension library you loaded is for 1.8.
> It is not binary compatible.
> 
> Rebuild that extension library.



----------------------------------------
Bug #11574: chef-client-FATAL: Chef::Exceptions::ChildConvergeError: Chef run process terminated by signal 6 (IOT)
https://bugs.ruby-lang.org/issues/11574#change-54445

* Author: Ally Kuo
* Status: Rejected
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi, I'm running chef-clien and got the following msg, please help to solve.

-------------sysinfo-------------------------

~~~
root@localhost:/home# ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

root@localhost:/home# uname -a
Linux chef-switch 3.5.0-23-generic #35~precise1 SMP Thu Apr 23 19:34:58 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux

root@localhost:/home# sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:        12.04
Codename:       precise

root@localhost:/home# which ruby
/usr/bin/ruby

root@localhost:/home# chef-client -v
Chef: 12.4.3
~~~

-----------------error-----------------------

~~~
root@localhost:/home# chef-client
Starting Chef Client, version 12.4.3
resolving cookbooks for run list: ["boa"]
Synchronizing Cookbooks:
  - boa
Compiling Cookbooks...
/mnt/application/OpEN.so: [BUG] unknown type 0x22 (0x11 given)
ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]
(snip)

[2015-10-08T07:23:40+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process terminated by signal 6 (IOT)
root@localhost:/home# clear

root@localhost:/home# chef-client
Starting Chef Client, version 12.4.3
resolving cookbooks for run list: ["boa"]
Synchronizing Cookbooks:
  - boa
Compiling Cookbooks...
/mnt/application/OpEN.so: [BUG] unknown type 0x22 (0x11 given)
ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]
(snip)

[2015-10-08T07:34:09+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process terminated by signal 6 (IOT)
~~~


---Files--------------------------------
OpENUtil.rb (2.78 KB)
OpEN.so (1.63 MB)
test.rb (494 Bytes)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next