[chef] Re: Re: Re: Re: Re: Re: Re: Re:


Chronological Thread 
  • From: Karl Rossing < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Re:
  • Date: Thu, 17 Sep 2009 12:25:50 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=rDJ28F6rKh/GNRzYf/9iGmt1isre9An8h8iixgGjBFaNxo03M3+OQaMVNmQyFGx2MT CmycCvn0qMiIPNtE0+duL+kbQ9AiLuYOUTS09vPbRUzqrRL+/i3OJP4Cm5YKaJpE8XSG dpsGVbznzE4DPjhkfns23F2nfN/o4xkGGx4kI=

I recompiled ruby (this time with version 1.8.6), gem and chef.

ohai outputs information without an error

# ./ohai
{
  "dmi": {

  },
  "command": {

  },
  "kernel": {
    "modules": {

    },
    "machine": "sun4u",
    "name": "SunOS",
    "version": "snv_115",
    "release": "5.11"
  },
  "platform_version": "5.11",
  "platform": "solaris2.11",
  "keys": {

  },
  "network": {
    "interfaces": {

    }
  },
  "ohai_time": 1253207929.44944,
  "os": "solaris2.11",
  "counters": {
    "network": {

    }
  },
  "os_version": "5.11",
  "languages": {
    "java": {
      "runtime": {
        "name": "Java(TM) SE Runtime Environment",
        "build": "1.6.0_16-b01"
      },
      "version": "1.6.0_16"
    },
    "python": {
      "builddate": "May 4 2009, 02:11:32",
      "version": "2.4.4"
    },
    "perl": {
      "archname": "sun4-solaris-64int",
      "version": "5.8.4"
    },
    "ruby": {
      "gems_dir": "/usr/local/chef/lib/ruby/gems/1.8",
      "target_os": "solaris2.11",
      "platform": "sparc-solaris2.11",
      "host_vendor": "sun",
      "target_vendor": "sun",
      "target_cpu": "sparc",
      "host_os": "solaris2.11",
      "ruby_bin": "/usr/local/chef/bin/ruby",
      "host_cpu": "sparc",
      "version": "1.8.6",
      "host": "sparc-sun-solaris2.11",
      "target": "sparc-sun-solaris2.11",
      "release_date": "2009-08-04"
    },
    "erlang": {
      "options": [
        "SMP",
        "ASYNC_THREADS",
        "HIPE"
      ],
      "version": "5.6.1",
      "emulator": "BEAM"
    }
  }
}

chef-solo is giving the same error
chef-solo \-c \/solo.rb \-j \/chef.json \-r
/home/karlr/Downloads/chef/bootstrap-latest.tar.gz
[Thu, 17 Sep 2009 12:21:53 -0500] INFO: Starting Chef Solo Run
/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/client.rb:122:in
`determine_node_name': private method `gsub' called for nil:NilClass
(NoMethodError)
        from 
/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/client.rb:101:in
`run_solo'
        from 
/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application/solo.rb:191:in
`run_application'
        from 
/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application/solo.rb:183:in
`loop'
        from 
/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application/solo.rb:183:in
`run_application'
        from 
/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application.rb:57:in
`run'
        from 
/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/bin/chef-solo:26
        from ./chef-solo:19:in `load'
        from ./chef-solo:19
# ldd -r /usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/*.so
/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so:
        librt.so.1 =>    /lib/librt.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libcrypt.so.1 =>         /usr/lib/libcrypt.so.1
        libm.so.2 =>     /lib/libm.so.2
        libc.so.1 =>     /lib/libc.so.1
        libgcc_s.so.1 =>         /usr/sfw/lib/libgcc_s.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        symbol not found: rb_cObject
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_eArgError
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_cHash
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_str_buf_cat
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_str_buf_cat2
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_path2class
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_raise
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_check_type
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_str_times
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_str_buf_append
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_funcall
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_scan_args
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_obj_id
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_hash_aref
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_hash_aset
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_str_buf_new
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_hash_foreach
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_hash_delete
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_str_new2
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_str_append
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_string_value_cstr
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_hash_new
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_obj_class
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_class_name
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_gc_mark_maybe
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: ruby_xmalloc
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_data_object_alloc
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_convert_type
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: st_lookup
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_obj_is_kind_of
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_require
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_define_module
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_define_module_under
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_define_class_under
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_define_alloc_func
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_define_singleton_method
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_define_method
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        symbol not found: rb_intern
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/generator.so)
        /platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so:
        librt.so.1 =>    /lib/librt.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libcrypt.so.1 =>         /usr/lib/libcrypt.so.1
        libm.so.2 =>     /lib/libm.so.2
        libc.so.1 =>     /lib/libc.so.1
        libgcc_s.so.1 =>         /usr/sfw/lib/libgcc_s.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        symbol not found: rb_cObject
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_eArgError
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_str_new
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_str_buf_new
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_str_buf_cat
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_str_buf_cat2
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_class_new_instance
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_hash_new
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_hash_aref
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_string_value_cstr
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_path2class
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_funcall
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_raise
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_hash_aset
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_Integer
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_Float
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_ary_new
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_ary_push
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_check_type
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_scan_args
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_string_value
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_convert_type
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: st_lookup
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_gc_mark_maybe
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: ruby_xfree
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: ruby_xmalloc
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_data_object_alloc
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_str_dup
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_require
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_define_module
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_define_module_under
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_define_class_under
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_define_alloc_func
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_define_method
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_intern
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        symbol not found: rb_const_get
(/usr/local/chef/lib/ruby/gems/1.8/gems/json-1.1.9/ext/json/ext/parser.so)
        /platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1


Karl


On Thu, Sep 17, 2009 at 11:52 AM, Daniel DeLeo 
< >
 wrote:
> Karl those look right as far as I can tell. You're looking for something
> like "symbol not found". See if you get anything interesting with ldd -r.
> Also, are you setting $LD_LIBRARY_PATH to a non-default value? Try unsetting
> this variable if it is not empty.
> HTH,
> Dan DeLeo
>
> On Thu, Sep 17, 2009 at 10:35 AM, Karl Rossing 
> < >
> wrote:
>>
>> I'm not sure if I would recognise a hint if I saw it.
>>
>> # ldd parser.so
>>        libruby.so =>    /usr/ruby/1.8/lib/libruby.so
>>        libdl.so.1 =>    /lib/libdl.so.1
>>        libcrypt.so.1 =>         /usr/lib/libcrypt.so.1
>>        libm.so.2 =>     /lib/libm.so.2
>>        libc.so.1 =>     /lib/libc.so.1
>>        libreadline.so.5 =>      /usr/lib/libreadline.so.5
>>        libcurses.so.1 =>        /usr/lib/libcurses.so.1
>>        libgen.so.1 =>   /lib/libgen.so.1
>>        /platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
>>
>> # ldd generator.so
>>        libruby.so =>    /usr/ruby/1.8/lib/libruby.so
>>        libdl.so.1 =>    /lib/libdl.so.1
>>        libcrypt.so.1 =>         /usr/lib/libcrypt.so.1
>>        libm.so.2 =>     /lib/libm.so.2
>>        libc.so.1 =>     /lib/libc.so.1
>>        libreadline.so.5 =>      /usr/lib/libreadline.so.5
>>        libcurses.so.1 =>        /usr/lib/libcurses.so.1
>>        libgen.so.1 =>   /lib/libgen.so.1
>>        /platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
>>
>> On Thu, Sep 17, 2009 at 11:09 AM, Daniel DeLeo 
>> < >
>>  wrote:
>> > Karl,
>> > There's clearly something strange happening with the linking of C
>> > extensions. Does running ldd (or equivalent) on  the .so files
>> > under /var/ruby/1.8/gem_home/gems/json-1.1.9/ext/json/ext/ give you any
>> > hints?
>> > HTH,
>> > Dan DeLeo
>> >
>> > On Thu, Sep 17, 2009 at 10:02 AM, Karl Rossing 
>> > < >
>> > wrote:
>> >>
>> >> # /usr/bin/ruby --version
>> >> ruby 1.8.7 (2008-08-11 patchlevel 72) [sparc-solaris2.11]
>> >>
>> >> I'll see if I can't install 1.8.5 and give it another try.
>> >>
>> >> Karl
>> >>
>> >> On Thu, Sep 17, 2009 at 10:41 AM, Joe Van Dyk 
>> >> < >
>> >> wrote:
>> >> > He asked about ruby, not rubygems.
>> >> >
>> >> > Joe
>> >> >
>> >> > On Thu, Sep 17, 2009 at 7:18 AM, Karl Rossing
>> >> > < >
>> >> > wrote:
>> >> >>
>> >> >>
>> >> >> http://wiki.opscode.com/display/chef/Installation+on+OpenSolaris+2008.11+with+RubyGems
>> >> >>
>> >> >> cd /tmp
>> >> >> wget http://rubyforge.org/frs/download.php/57643/rubygems-1.3.4.tgz
>> >> >> tar zxf rubygems-1.3.4.tgz
>> >> >> cd rubygems-1.3.4
>> >> >> sudo ruby setup.rb
>> >> >>
>> >> >> On Thu, Sep 17, 2009 at 7:41 AM, Dick Davies
>> >> >> < >
>> >> >>  wrote:
>> >> >>> Where did your Ruby come from?
>> >> >>>
>> >> >>> On Wed, Sep 16, 2009 at 11:06 PM,  
>> >> >>> < >
>> >> >>>  wrote:
>> >> >>>> I'm trying to get chef running on opensolaris sxce build 115.
>> >> >>>>
>> >> >>>> I'm getting the following error
>> >> >>>>  # ./chef-solo \-c \/solo.rb \-j \/chef.json \-r
>> >> >>>> /home/karlr/Downloads/chef/bootstrap-latest.tar.gz
>> >> >>>> [Wed, 16 Sep 2009 17:00:31 -0500] INFO: Starting Chef Solo Run
>> >> >>>> ./../lib/chef/client.rb:122:in `determine_node_name': private
>> >> >>>> method
>> >> >>>> `gsub'
>> >> >>>> called for nil:NilClass (NoMethodError)
>> >> >>>>        from ./../lib/chef/client.rb:101:in `run_solo'
>> >> >>>>        from ./../lib/chef/application/solo.rb:191:in
>> >> >>>> `run_application'
>> >> >>>>        from ./../lib/chef/application/solo.rb:183:in `loop'
>> >> >>>>        from ./../lib/chef/application/solo.rb:183:in
>> >> >>>> `run_application'
>> >> >>>>        from ./../lib/chef/application.rb:57:in `run'
>> >> >>>>        from ./chef-solo:26
>> >> >>>>
>> >> >>>> # hostname
>> >> >>>> chef
>> >> >>>>
>> >> >>>> # ohai
>> >> >>>> ld.so.1: ruby: fatal: relocation error: file
>> >> >>>> /var/ruby/1.8/gem_home/gems/json-1.1.9/ext/json/ext/generator.so:
>> >> >>>> symbol isinf:
>> >> >>>> referenced symbol not found
>> >> >>>> Killed
>> >> >>>>
>> >> >>>> # cat /chef.json
>> >> >>>> {
>> >> >>>> "chef": {
>> >> >>>>    "server_fqdn": "chef",
>> >> >>>>    "server_ssl_req":
>> >> >>>>
>> >> >>>>
>> >> >>>> "/C=CA/ST=Manitoba/L=Winnipeg/O=Summer/OU=Operations/CN=chef/ "
>> >> >>>>  },
>> >> >>>> "recipes": "chef::server"
>> >> >>>> }
>> >> >>>>
>> >> >>>> Any suggestions would be appreciated.
>> >> >>>>
>> >> >>>> Karl
>> >> >>>>
>> >> >>>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Joe Van Dyk
>> >> > http://fixieconsulting.com
>> >> >
>> >
>> >
>
>



Archive powered by MHonArc 2.6.16.

§