- From: Wes Morgan <
>
- To:
- Subject: [chef] Re: Segmentation fault when I upload cookbooks
- Date: Fri, 16 Mar 2012 09:15:11 -0600
On Mar 16, 2012, at 9:09 AM, Bryan McLellan wrote:
>
On Thu, Mar 15, 2012 at 8:42 PM, Gustavo
>
<
>
>
wrote:
>
> I'm getting the following segfault when I upload cookbooks to chef server:
>
>
>
> /usr/lib/ruby/vendor_ruby/chef/checksum_cache.rb:174: [BUG]
>
> Segmentation
>
> fault
>
> ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
>
>
>
> I'm running chef server and clients on Debian Squeeze amd64.
>
>
The 'easiest' path for Ruby segfaults most of the time is upgrading to
>
a newer Ruby. These patches rarely get backported.
>
>
A few routes:
>
1) Backporting Ruby from wheezy/testing, it contains Ruby 1.8.7.352-2.
>
For instance, using pbuilder:
>
http://edseek.com/~jasonb/articles/pbuilder_backports/
>
2) Upgrade to Debian wheezy/testing.
>
3) Remove all ruby packages from apt and install Ruby from source
>
4) Use RVM to install a confined Ruby (and live with the consequences
>
of what it does to your environment)
There is also rbenv which purports to be a simpler and less invasive
implementation of RVM's central concept, namely sandboxed Ruby installations
that you can switch among on the fly. It lives here:
https://github.com/sstephenson/rbenv
I use RVM personally, so caveat emptor.
>
>
Bryan
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
Archive powered by MHonArc 2.6.16.