This is different than the ticket, it's similar to the NoMethodError from
before. The recipe for runit has a case statement for platform with no
default (else) clause (nor a specific Solaris clause). See here:
http://github.com/opscode/cookbooks/blob/master/runit/recipes/default.rb

You can either setup runit manually or hack the cookbook, unfortunately I
don't have access to a Solaris system I can mangle that much right now to
help you much more with this step.

Good luck,
Dan DeLeo

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

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

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

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!