Chef-solo run hangs while attempting to restart service

Hi,

I'm seeing an issue when I'm running chef-solo bringing up a new
server. Most of the recipes run OK, but when it comes to starting up
a service, it just pauses. Looking at it on another ssh session, I
see there's no activity, and there's an unreaped zombie called (for
example) chef-indexer. Same thing happens with couchdb which is using
the Ubuntu-supplied init script, so hopefully it's not just poor init
script writing skills on my part!

When I then run sudo /etc/init.d/chef-indexer restart (or whatever,
for the service that's currently causing it to stick) it'll carry on
working its way through the recipes, and the zombie will have
disappeared.

I'll dig into it a bit further over the next few days, but I just
thought I'd throw it out there, see if anybody else had seen this too?

G

--
Graeme Mathieson
Managing Director
Rubaidh Ltd: Scottish for Ruby on Rails

Follow us on Twitter: http://twitter.com/rubaidh and <http://twitter.com/mathie

Web Site: http://rubaidh.com/
Blog: http://woss.name/
Telephone: +44 (0)131 273 5271
Mobile: +44 (0)7949 0777 44

Rubaidh Ltd is a limited company registered in Scotland with
registration number SC297029 and VAT number GB 916 0341 53. The
registered address is: Stuart House, Eskmills, Musselburgh, East
Lothian, EH21 7PB, United Kingdom.

On Tue, Aug 4, 2009 at 5:25 PM, Graeme Mathiesonmathie@woss.name wrote:

I'll dig into it a bit further over the next few days, but I just thought
I'd throw it out there, see if anybody else had seen this too?
G

Yes, I have seen this behaviour exhibited when I first ran the
chef-solo on a client. It just hung until I restarted it.

Joel

--
$ echo "kpfmAdpoofdufevq/dp/vl" | perl -pe 's/(.)/chr(ord($1)-1)/ge'

On 4 Aug 2009, at 17:27, Joel Merrick wrote:

Yes, I have seen this behaviour exhibited when I first ran the
chef-solo on a client. It just hung until I restarted it.

Ah, good, at least it's not my deranged imagination. :slight_smile:

G

I do know that couchdb init script incorrectly leaks FDs causing chef to
hang.

I opened a bug on couchdb at
https://issues.apache.org/jira/browse/COUCHDB-443

That link contains a patch to fix the rc.d -- so feel free to put that into
your recipe.

~ Sig
On Tue, Aug 4, 2009 at 9:41 AM, Graeme Mathieson mathie@woss.name wrote:

On 4 Aug 2009, at 17:27, Joel Merrick wrote:

Yes, I have seen this behaviour exhibited when I first ran the

chef-solo on a client. It just hung until I restarted it.

Ah, good, at least it's not my deranged imagination. :slight_smile:

G