evertrue / zookeeper-cookbook

Chef cookbook for installing and managing Zookeeper.
https://supermarket.chef.io/cookbooks/zookeeper
Apache License 2.0
81 stars 119 forks source link

Upstart services fail to start zookeeper #179

Closed ZeroWiggliness closed 8 years ago

ZeroWiggliness commented 8 years ago

Upstart gives the error 'start-stop-daemon: unable to stat /bin/java (No such file or directory)'. It appears the JAVA_HOME value is not valid at the time upstart starts.

This is on Ubuntu 14.04.

jeffbyrnes commented 8 years ago

@DarrenV79 would you describe your situation more fully? I’m unable to reproduce this with the test suite.

jeffbyrnes commented 8 years ago

Oh, wait, yes I am. Derp. Fixing!

ZeroWiggliness commented 8 years ago

Hi,

I modified the upstarted by adding . /etc/profile in the line above . /etc/default/zookeeper. This initializes everything required.

Sorry, I cant really help much more because company policy forbids it or I would have branched it myself and mad the change.

jeffbyrnes commented 8 years ago

Company policy forbids contributing to OSS projects? Good grief…

Thanks for the heads-up on source /etc/profile, I’ll see if that helps.

ZeroWiggliness commented 8 years ago

One more change I forgot to mention that I solved. Upstart log also gives

Error: Invalid com.sun.management.jmxremote.port number:

This is because there is no jmx_local attribute in the defaults. I set this to 4242.

It's more every single change has to be run by legal, which takes time, which they often veto because they are not developers and think its to do with our application.

jeffbyrnes commented 8 years ago

Turns out this is quite the rat’s nest, actually. Some things I’ve discovered, diving in to the non-Runit service methods:

I’m going to do a much more significant refactor to get this sorted; keep your 👀 on #180.

jeffbyrnes commented 8 years ago

@DarrenV79 fixed in v6.0.0

ZeroWiggliness commented 8 years ago

Great, will take me a week or so to get around to using it and making the changes I need. Thanks for doing it so quick.