#1

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 methodgsub’
called for nil:NilClass (NoMethodError)
from ./…/lib/chef/client.rb:101:in run_solo' from ./../lib/chef/application/solo.rb:191:inrun_application’
from ./…/lib/chef/application/solo.rb:183:in loop' from ./../lib/chef/application/solo.rb:183:inrun_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/emailAddress=ops@example.com"
},
“recipes”: “chef::server”
}

Any suggestions would be appreciated.

Karl


#2

Where did your Ruby come from?

On Wed, Sep 16, 2009 at 11:06 PM, karl.rossing@gmail.com 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 methodgsub’
called for nil:NilClass (NoMethodError)
from ./…/lib/chef/client.rb:101:in run_solo' from ./../lib/chef/application/solo.rb:191:inrun_application’
from ./…/lib/chef/application/solo.rb:183:in loop' from ./../lib/chef/application/solo.rb:183:inrun_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/emailAddress=ops@example.com"
},
“recipes”: “chef::server”
}

Any suggestions would be appreciated.

Karl


#3

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
rasputnik@hellooperator.net wrote:

Where did your Ruby come from?

On Wed, Sep 16, 2009 at 11:06 PM, karl.rossing@gmail.com 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 methodgsub’
called for nil:NilClass (NoMethodError)
from ./…/lib/chef/client.rb:101:in run_solo' from ./../lib/chef/application/solo.rb:191:inrun_application’
from ./…/lib/chef/application/solo.rb:183:in loop' from ./../lib/chef/application/solo.rb:183:inrun_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/emailAddress=ops@example.com"
},
“recipes”: “chef::server”
}

Any suggestions would be appreciated.

Karl


#4

He asked about ruby, not rubygems.

Joe

On Thu, Sep 17, 2009 at 7:18 AM, Karl Rossing karl.rossing@gmail.com 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
rasputnik@hellooperator.net wrote:

Where did your Ruby come from?

On Wed, Sep 16, 2009 at 11:06 PM, karl.rossing@gmail.com 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 methodgsub’
called for nil:NilClass (NoMethodError)
from ./…/lib/chef/client.rb:101:in run_solo' from ./../lib/chef/application/solo.rb:191:inrun_application’
from ./…/lib/chef/application/solo.rb:183:in loop' from ./../lib/chef/application/solo.rb:183:inrun_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/emailAddress=ops@example.com"
},
“recipes”: “chef::server”
}

Any suggestions would be appreciated.

Karl


Joe Van Dyk
http://fixieconsulting.com


#5

/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 joe@fixieconsulting.com wrote:

He asked about ruby, not rubygems.

Joe

On Thu, Sep 17, 2009 at 7:18 AM, Karl Rossing karl.rossing@gmail.com 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
rasputnik@hellooperator.net wrote:

Where did your Ruby come from?

On Wed, Sep 16, 2009 at 11:06 PM, karl.rossing@gmail.com 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 methodgsub’
called for nil:NilClass (NoMethodError)
from ./…/lib/chef/client.rb:101:in run_solo' from ./../lib/chef/application/solo.rb:191:inrun_application’
from ./…/lib/chef/application/solo.rb:183:in loop' from ./../lib/chef/application/solo.rb:183:inrun_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/emailAddress=ops@example.com"
},
“recipes”: “chef::server”
}

Any suggestions would be appreciated.

Karl


Joe Van Dyk
http://fixieconsulting.com


#6

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 karl.rossing@gmail.comwrote:

/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 joe@fixieconsulting.com
wrote:

He asked about ruby, not rubygems.

Joe

On Thu, Sep 17, 2009 at 7:18 AM, Karl Rossing karl.rossing@gmail.com
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
rasputnik@hellooperator.net wrote:

Where did your Ruby come from?

On Wed, Sep 16, 2009 at 11:06 PM, karl.rossing@gmail.com 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 methodgsub’

called for nil:NilClass (NoMethodError)
from ./…/lib/chef/client.rb:101:in run_solo' from ./../lib/chef/application/solo.rb:191:inrun_application’
from ./…/lib/chef/application/solo.rb:183:in loop' from ./../lib/chef/application/solo.rb:183:inrun_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/emailAddress=
ops@example.com

},
“recipes”: “chef::server”
}

Any suggestions would be appreciated.

Karl


Joe Van Dyk
http://fixieconsulting.com


#7

I would do 1.8.6.

There is something wrong with your ruby install. Stuff like that is
why I quit solaris. I spent too much time mucking with compilers and
linking and undefined symbols.

Joe

On Thu, Sep 17, 2009 at 9:02 AM, Karl Rossing karl.rossing@gmail.com 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 joe@fixieconsulting.com wrote:

He asked about ruby, not rubygems.

Joe

On Thu, Sep 17, 2009 at 7:18 AM, Karl Rossing karl.rossing@gmail.com 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
rasputnik@hellooperator.net wrote:

Where did your Ruby come from?

On Wed, Sep 16, 2009 at 11:06 PM, karl.rossing@gmail.com 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 methodgsub’
called for nil:NilClass (NoMethodError)
from ./…/lib/chef/client.rb:101:in run_solo' from ./../lib/chef/application/solo.rb:191:inrun_application’
from ./…/lib/chef/application/solo.rb:183:in loop' from ./../lib/chef/application/solo.rb:183:inrun_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/emailAddress=ops@example.com"
},
“recipes”: “chef::server”
}

Any suggestions would be appreciated.

Karl


Joe Van Dyk
http://fixieconsulting.com


Joe Van Dyk
http://fixieconsulting.com


#8

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 dan@kallistec.com 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 karl.rossing@gmail.com
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 joe@fixieconsulting.com
wrote:

He asked about ruby, not rubygems.

Joe

On Thu, Sep 17, 2009 at 7:18 AM, Karl Rossing karl.rossing@gmail.com
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
rasputnik@hellooperator.net wrote:

Where did your Ruby come from?

On Wed, Sep 16, 2009 at 11:06 PM, karl.rossing@gmail.com 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 methodgsub’
called for nil:NilClass (NoMethodError)
from ./…/lib/chef/client.rb:101:in run_solo' from ./../lib/chef/application/solo.rb:191:inrun_application’
from ./…/lib/chef/application/solo.rb:183:in loop' from ./../lib/chef/application/solo.rb:183:inrun_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/emailAddress=ops@example.com”
},
“recipes”: “chef::server”
}

Any suggestions would be appreciated.

Karl


Joe Van Dyk
http://fixieconsulting.com


#9

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 karl.rossing@gmail.comwrote:

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 dan@kallistec.com 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 karl.rossing@gmail.com
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 joe@fixieconsulting.com
wrote:

He asked about ruby, not rubygems.

Joe

On Thu, Sep 17, 2009 at 7:18 AM, Karl Rossing <karl.rossing@gmail.com

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
rasputnik@hellooperator.net wrote:

Where did your Ruby come from?

On Wed, Sep 16, 2009 at 11:06 PM, karl.rossing@gmail.com 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:inrun_solo’
from ./…/lib/chef/application/solo.rb:191:in
run_application' from ./../lib/chef/application/solo.rb:183:inloop’
from ./…/lib/chef/application/solo.rb:183:in
run_application' from ./../lib/chef/application.rb:57:inrun’
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/emailAddress=
ops@example.com

},
“recipes”: “chef::server”
}

Any suggestions would be appreciated.

Karl


Joe Van Dyk
http://fixieconsulting.com


#10

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™ 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 methodgsub’ 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:inrun_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:inrun_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:inload’
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 dan@kallistec.com 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 karl.rossing@gmail.com
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 dan@kallistec.com 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 karl.rossing@gmail.com
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 joe@fixieconsulting.com
wrote:

He asked about ruby, not rubygems.

Joe

On Thu, Sep 17, 2009 at 7:18 AM, Karl Rossing
karl.rossing@gmail.com
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
rasputnik@hellooperator.net wrote:

Where did your Ruby come from?

On Wed, Sep 16, 2009 at 11:06 PM, karl.rossing@gmail.com 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 methodgsub’
called for nil:NilClass (NoMethodError)
from ./…/lib/chef/client.rb:101:in run_solo' from ./../lib/chef/application/solo.rb:191:inrun_application’
from ./…/lib/chef/application/solo.rb:183:in loop' from ./../lib/chef/application/solo.rb:183:inrun_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/emailAddress=ops@example.com”
},
“recipes”: “chef::server”
}

Any suggestions would be appreciated.

Karl


Joe Van Dyk
http://fixieconsulting.com


#11

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Karl!

On Sep 16, 2009, at 4:06 PM, karl.rossing@gmail.com <karl.rossing@gmail.com

wrote:

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 methodgsub’
called for nil:NilClass (NoMethodError)
from ./…/lib/chef/client.rb:101:in run_solo' from ./../lib/chef/application/solo.rb:191:inrun_application’
from ./…/lib/chef/application/solo.rb:183:in loop' from ./../lib/chef/application/solo.rb:183:inrun_application’
from ./…/lib/chef/application.rb:57:in `run’
from ./chef-solo:26

Once a working Ruby is installed, it seems the problem is, at least on
my test system (opensolaris 11):

$ ohai os
"solaris2.11"

But there’s no plugins for solaris2.11, the directory is solaris2:

$ ls -d /usr/local/lib/ruby/gems/1.8/gems/ohai-0.3.2/lib/ohai/plugins/
solaris*
/usr/local/lib/ruby/gems/1.8/gems/ohai-0.3.2/lib/ohai/plugins/solaris2/

I created a symlink on my system, solaris2 to solaris2.11, and chef
ran successfully.

I opened a ticket for this issue in ohai:

http://tickets.opscode.com/browse/OHAI-122

Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.878.4322 E: joshua@opscode.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAkqyf0sACgkQO97WSdVpzT2uyQCdF72un1lypdr4NIQZu9kCNw8U
G4MAoIgqlpk6gJfZoFhnToHJo0qL+chi
=eaqi
-----END PGP SIGNATURE-----


#12

On Thu, Sep 17, 2009 at 1:26 PM, Joshua Timberman joshua@opscode.com wrote:

I created a symlink on my system, solaris2 to solaris2.11, and chef ran
successfully.

Thanks! That got me further than before!

./chef-solo -c /solo.rb -j /chef.json -r

/home/karlr/Downloads/chef/bootstrap-latest.tar.gz
/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/mixin/command.rb:157:in
run_command': tar zxvfC /tmp/chef-solo/recipes.tgz /tmp/chef-solo returned 1, expected 0 (Chef::Exceptions::Exec) ---- Begin output of tar zxvfC /tmp/chef-solo/recipes.tgz /tmp/chef-solo ---- STDOUT: STDERR: tar: z: unknown function modifier Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@/[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...---- End output of tar zxvfC /tmp/chef-solo/recipes.tgz /tmp/chef-solo ---- from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/mixin/command.rb:133:inchdir’
from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/mixin/command.rb:133:in
run_command' from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application/solo.rb:166:inreconfigure’
from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application.rb:55:in
run' from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/bin/chef-solo:26 from ./chef-solo:19:inload’
from ./chef-solo:19

Solaris tar does not recognize -z. GNU tar is available as gtar or in
this case, solaris has gnu utils in /usr/gnu/bin

export PATH=/usr/gnu/bin:$PATH

./chef-solo -c /solo.rb -j /chef.json -r

/home/karlr/Downloads/chef/bootstrap-latest.tar.gz
[Thu, 17 Sep 2009 13:53:04 -0500] INFO: Starting Chef Solo Run
/tmp/chef-solo/cookbooks/ruby/recipes/default.rb:45:in from_file': undefined methodeach’ for nil:NilClass (NoMethodError)
from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/cookbook.rb:139:in
load_recipe' from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/recipe.rb:79:ininclude_recipe’
from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/recipe.rb:64:in
each' from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/recipe.rb:64:ininclude_recipe’
from /tmp/chef-solo/cookbooks/passenger_apache2/recipes/default.rb:26:in
from_file' from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/cookbook.rb:139:inload_recipe’
from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/recipe.rb:79:in
include_recipe' from /usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/recipe.rb:64:ineach’
… 16 levels…
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:inload’
from ./chef-solo:19


#13

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sep 17, 2009, at 12:54 PM, Karl Rossing wrote:

export PATH=/usr/gnu/bin:$PATH

./chef-solo -c /solo.rb -j /chef.json -r

/home/karlr/Downloads/chef/bootstrap-latest.tar.gz

Is this bootstrap-latest.tar.gz downloaded from S3?

If so, please note the Opscode cookbooks are focused on Linux,
particularly Debian or Ubuntu. As such, you’ll need to modify the
cookbooks to work on Solaris.

Also, at this time Chef doesn’t have a provider for managing packages
on Solaris. I believe someone from IRC (sigmonsays?) was working on
Solaris providers, but I don’t know the status.

That said, a Solaris chef-client should [mostly] work. You can use
execute/script resources to manage packages until a provider is
available. I don’t know if chef-server will install on Solaris, as I
couldn’t get stompserver gem installed (I didn’t spend much time, but
it was an eventmachine compile problem).


Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.878.4322 E: joshua@opscode.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAkqyjuYACgkQO97WSdVpzT3DKgCfa9P6aqcVZpj3g+nvSoXTLRbF
zwgAoJ8+d/CmUWSwaMmIQ4Xk0hhIRKFW
=yP4l
-----END PGP SIGNATURE-----


#14

Karl, you have run into a bug in the ruby::default recipe. It needs an else
clause around line 43:

extra_packages = case node[:platform]

else
[]
end

Also, I think you will be able to build eventmachine at least, but you’ll
need to completely gnu-ify: gnu make (possibly aliased as make somehow),
gcc, so on. Works for me on a Solaris 9 box I have access to.

HTH,
Dan DeLeo

On Thu, Sep 17, 2009 at 1:32 PM, Joshua Timberman joshua@opscode.comwrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sep 17, 2009, at 12:54 PM, Karl Rossing wrote:

export PATH=/usr/gnu/bin:$PATH

./chef-solo -c /solo.rb -j /chef.json -r

/home/karlr/Downloads/chef/bootstrap-latest.tar.gz

Is this bootstrap-latest.tar.gz downloaded from S3?

If so, please note the Opscode cookbooks are focused on Linux, particularly
Debian or Ubuntu. As such, you’ll need to modify the cookbooks to work on
Solaris.

Also, at this time Chef doesn’t have a provider for managing packages on
Solaris. I believe someone from IRC (sigmonsays?) was working on Solaris
providers, but I don’t know the status.

That said, a Solaris chef-client should [mostly] work. You can use
execute/script resources to manage packages until a provider is available. I
don’t know if chef-server will install on Solaris, as I couldn’t get
stompserver gem installed (I didn’t spend much time, but it was an
eventmachine compile problem).


Opscode, Inc
Joshua Timberman, Senior Solutions Engineer
C: 720.878.4322 E: joshua@opscode.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAkqyjuYACgkQO97WSdVpzT3DKgCfa9P6aqcVZpj3g+nvSoXTLRbF
zwgAoJ8+d/CmUWSwaMmIQ4Xk0hhIRKFW
=yP4l
-----END PGP SIGNATURE-----


#15

On Thu, Sep 17, 2009 at 2:59 PM, Daniel DeLeo dan@kallistec.com wrote:

else
[]
end

That seemed to help

Also, I think you will be able to build eventmachine at least, but you’ll
need to completely gnu-ify: gnu make (possibly aliased as make somehow),
gcc, so on. Works for me on a Solaris 9 box I have access to.

I’m not sure what you mean but I’m stuck on

DEBUG: gem_package[stompserver] using Chef::Provider::package::Rubygems

Karl


#16

Ok… That fixed it…

On to the next thing

[Thu, 17 Sep 2009 16:28:00 -0500] DEBUG: STDERR: ERROR: Error
installing stompserver:
ERROR: Failed to build gem native extension.

/usr/local/chef/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h… no
checking for rb_thread_blocking_region()… no
checking for inotify_init() in sys/inotify.h… no
checking for __NR_inotify_init in sys/syscall.h… no
checking for writev() in sys/uio.h… no
checking for sys/event.h… no
checking for main() in -lnsl… no
could not find library: nsl
*** extconf.rb failed ***

Karl

On Thu, Sep 17, 2009 at 4:19 PM, Scott M. Likens scott@likens.us wrote:

Hi Karl,

You may need to re-configure rubygems to handle/honor proxy servers.

for example in root’s /root/.gemrc


gem: --http-proxy http://1.2.3.4:3128

replace 1.2.34 with your actual ip/port of your proxy server.

Sincerely,

Scott M. Likens

On Sep 17, 2009, at 1:59 PM, Karl Rossing wrote:

Ohh…

It just generated another error
[Thu, 17 Sep 2009 15:57:46 -0500] ERROR: gem_package[stompserver]
(/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/recipe.rb
line 191) had an error:
gem list --remote failed - #<Process::Status: pid=10063,exited(1)>!

/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/provider/package/rubygems.rb:92:in

`candidate_version’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/provider/package.rb:44:in

`action_install’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/runner.rb:85:in

`send’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/runner.rb:85:in

`converge’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/runner.rb:83:in

`each’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/runner.rb:83:in

`converge’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/resource_collection.rb:58:in

`each’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/resource_collection.rb:57:in

`each’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/runner.rb:61:in

`converge’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/client.rb:382:in

`converge’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/client.rb:103:in

`run_solo’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application/solo.rb:191:in

`run_application’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application/solo.rb:183:in

`loop’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application/solo.rb:183:in

`run_application’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application.rb:57:in

run'/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/bin/chef-solo:26./chef-solo:19:inload’./chef-solo:19

Could this be because i’m behind a proxy server?

Karl

On Thu, Sep 17, 2009 at 3:58 PM, Karl Rossing karl.rossing@gmail.com
wrote:

On Thu, Sep 17, 2009 at 2:59 PM, Daniel DeLeo dan@kallistec.com wrote:

else
[]
end

That seemed to help

Also, I think you will be able to build eventmachine at least, but
you’ll
need to completely gnu-ify: gnu make (possibly aliased as make somehow),
gcc, so on. Works for me on a Solaris 9 box I have access to.

I’m not sure what you mean but I’m stuck on

DEBUG: gem_package[stompserver] using Chef::Provider::package::Rubygems

Karl

!DSPAM:4ab2a53a220021804284693!


#17

Karl,Basically what I mean by “gnuified” is to have the GNU equivalents for
everything. So, you’ll want to make sure you have gnu make, gcc, gnu libc,
and probably more. From what I can glean from doing an ldd on my install of
EventMachine, you’ll also need libstdc++ and libiconv. I might have also
needed to modify $PATH so ginstall would be found.

HTH,
Dan DeLeo

On Thu, Sep 17, 2009 at 3:36 PM, Karl Rossing karl.rossing@gmail.comwrote:

Ok… That fixed it…

On to the next thing

[Thu, 17 Sep 2009 16:28:00 -0500] DEBUG: STDERR: ERROR: Error
installing stompserver:
ERROR: Failed to build gem native extension.

/usr/local/chef/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h… no
checking for rb_thread_blocking_region()… no
checking for inotify_init() in sys/inotify.h… no
checking for __NR_inotify_init in sys/syscall.h… no
checking for writev() in sys/uio.h… no
checking for sys/event.h… no
checking for main() in -lnsl… no
could not find library: nsl
*** extconf.rb failed ***

Karl

On Thu, Sep 17, 2009 at 4:19 PM, Scott M. Likens scott@likens.us wrote:

Hi Karl,

You may need to re-configure rubygems to handle/honor proxy servers.

for example in root’s /root/.gemrc


gem: --http-proxy http://1.2.3.4:3128

replace 1.2.34 with your actual ip/port of your proxy server.

Sincerely,

Scott M. Likens

On Sep 17, 2009, at 1:59 PM, Karl Rossing wrote:

Ohh…

It just generated another error
[Thu, 17 Sep 2009 15:57:46 -0500] ERROR: gem_package[stompserver]
(/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/recipe.rb
line 191) had an error:
gem list --remote failed - #<Process::Status: pid=10063,exited(1)>!

/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/provider/package/rubygems.rb:92:in

`candidate_version’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/provider/package.rb:44:in

`action_install’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/runner.rb:85:in

`send’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/runner.rb:85:in

`converge’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/runner.rb:83:in

`each’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/runner.rb:83:in

`converge’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/resource_collection.rb:58:in

`each’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/resource_collection.rb:57:in

`each’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/runner.rb:61:in

`converge’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/client.rb:382:in

`converge’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/client.rb:103:in

`run_solo’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application/solo.rb:191:in

`run_application’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application/solo.rb:183:in

`loop’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application/solo.rb:183:in

`run_application’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/lib/chef/application.rb:57:in

`run’/usr/local/chef/lib/ruby/gems/1.8/gems/chef-0.7.10/bin/chef-solo:26./chef-solo:19:in

`load’./chef-solo:19

Could this be because i’m behind a proxy server?

Karl

On Thu, Sep 17, 2009 at 3:58 PM, Karl Rossing karl.rossing@gmail.com
wrote:

On Thu, Sep 17, 2009 at 2:59 PM, Daniel DeLeo dan@kallistec.com
wrote:

else
[]
end

That seemed to help

Also, I think you will be able to build eventmachine at least, but
you’ll
need to completely gnu-ify: gnu make (possibly aliased as make
somehow),

gcc, so on. Works for me on a Solaris 9 box I have access to.

I’m not sure what you mean but I’m stuck on

DEBUG: gem_package[stompserver] using Chef::Provider::package::Rubygems

Karl

!DSPAM:4ab2a53a220021804284693!


#18

On Thu, Sep 17, 2009 at 4:36 PM, Karl Rossing karl.rossing@gmail.com wrote:

Ok… That fixed it…

On to the next thing

[Thu, 17 Sep 2009 16:28:00 -0500] DEBUG: STDERR: ERROR: Error
installing stompserver:
ERROR: Failed to build gem native extension.

/usr/local/chef/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h… no
checking for rb_thread_blocking_region()… no
checking for inotify_init() in sys/inotify.h… no
checking for __NR_inotify_init in sys/syscall.h… no
checking for writev() in sys/uio.h… no
checking for sys/event.h… no
checking for main() in -lnsl… no
could not find library: nsl
*** extconf.rb failed ***

fixed that by setting my path to include /usr/sfw/bin

echo $PATH

/usr/local/chef/bin:/usr/gnu/bin:/usr/sbin:/usr/bin:/usr/sfw/bi

Now I’m getting this error.

[Fri, 18 Sep 2009 10:08:34 -0500] ERROR: service[stompserver]
(/tmp/chef-solo/cookbooks/runit/definitions/runit_service.rb line 65)
had an error:
No such file or directory - /etc/init.d/stompserver status

Which might be related to this:
https://tickets.opscode.com/browse/CHEF-256%3Bjsessionid=D203976577F8546D16FA67A146EC3219?actionOrder=desc

But i’m not sure what to make of it.

Karl


#19

Karl,does it succeed when you re-run chef, like in the comments on that
ticket? I think runit should be fine, since Solaris is standard System V
Revision 4 init system, but have yet to try it myself.

Dan DeLeo

On Fri, Sep 18, 2009 at 9:12 AM, Karl Rossing karl.rossing@gmail.comwrote:

On Thu, Sep 17, 2009 at 4:36 PM, Karl Rossing karl.rossing@gmail.com
wrote:

Ok… That fixed it…

On to the next thing

[Thu, 17 Sep 2009 16:28:00 -0500] DEBUG: STDERR: ERROR: Error
installing stompserver:
ERROR: Failed to build gem native extension.

/usr/local/chef/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h… no
checking for rb_thread_blocking_region()… no
checking for inotify_init() in sys/inotify.h… no
checking for __NR_inotify_init in sys/syscall.h… no
checking for writev() in sys/uio.h… no
checking for sys/event.h… no
checking for main() in -lnsl… no
could not find library: nsl
*** extconf.rb failed ***

fixed that by setting my path to include /usr/sfw/bin

echo $PATH

/usr/local/chef/bin:/usr/gnu/bin:/usr/sbin:/usr/bin:/usr/sfw/bi

Now I’m getting this error.

[Fri, 18 Sep 2009 10:08:34 -0500] ERROR: service[stompserver]
(/tmp/chef-solo/cookbooks/runit/definitions/runit_service.rb line 65)
had an error:
No such file or directory - /etc/init.d/stompserver status

Which might be related to this:

https://tickets.opscode.com/browse/CHEF-256%3Bjsessionid=D203976577F8546D16FA67A146EC3219?actionOrder=desc

But i’m not sure what to make of it.

Karl


#20

If I rerun it I get the same error.

On Fri, Sep 18, 2009 at 11:49 AM, Daniel DeLeo dan@kallistec.com wrote:

Karl,
does it succeed when you re-run chef, like in the comments on that ticket? I
think runit should be fine, since Solaris is standard System V Revision 4
init system, but have yet to try it myself.
Dan DeLeo

On Fri, Sep 18, 2009 at 9:12 AM, Karl Rossing karl.rossing@gmail.com
wrote:

On Thu, Sep 17, 2009 at 4:36 PM, Karl Rossing karl.rossing@gmail.com
wrote:

Ok… That fixed it…

On to the next thing

[Thu, 17 Sep 2009 16:28:00 -0500] DEBUG: STDERR: ERROR: Error
installing stompserver:
ERROR: Failed to build gem native extension.

/usr/local/chef/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h… no
checking for rb_thread_blocking_region()… no
checking for inotify_init() in sys/inotify.h… no
checking for __NR_inotify_init in sys/syscall.h… no
checking for writev() in sys/uio.h… no
checking for sys/event.h… no
checking for main() in -lnsl… no
could not find library: nsl
*** extconf.rb failed ***

fixed that by setting my path to include /usr/sfw/bin

echo $PATH

/usr/local/chef/bin:/usr/gnu/bin:/usr/sbin:/usr/bin:/usr/sfw/bi

Now I’m getting this error.

[Fri, 18 Sep 2009 10:08:34 -0500] ERROR: service[stompserver]
(/tmp/chef-solo/cookbooks/runit/definitions/runit_service.rb line 65)
had an error:
No such file or directory - /etc/init.d/stompserver status

Which might be related to this:

https://tickets.opscode.com/browse/CHEF-256%3Bjsessionid=D203976577F8546D16FA67A146EC3219?actionOrder=desc

But i’m not sure what to make of it.

Karl