Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init Script + Existing PID File #274

Closed
bassrock opened this issue Jan 12, 2015 · 2 comments
Closed

Init Script + Existing PID File #274

bassrock opened this issue Jan 12, 2015 · 2 comments

Comments

@bassrock
Copy link

It seems like the init script has issues dealing with an existing PID file. When restarting elastic search I get the following error:

==> default: [2015-01-12T11:40:54-08:00] INFO: service[elasticsearch] started
==> default: [2015-01-12T11:40:54-08:00] INFO: ark[elasticsearch] sending restart action to service[elasticsearch] (delayed)
==> default: 
==> default: ================================================================================
==> default: Error executing action `restart` on resource 'service[elasticsearch]'
==> default: ================================================================================
==> default: 
==> default: 
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of /etc/init.d/elasticsearch start ----
==> default: STDOUT: PID file found in /usr/local/var/run/vagrant_curveu_Daniels_Mac_Pro.pid
==> default: PID 31287 still alive, Elasticsearch already running...
==> default: STDERR: 
==> default: ---- End output of /etc/init.d/elasticsearch start ----
==> default: Ran /etc/init.d/elasticsearch start returned 1

@martinb3
Copy link
Contributor

martinb3 commented Jul 7, 2015

Hello! We've re-written the cookbook using libraries that expose resources and providers, and we also plan on fix the init script further in #321. Hope this helps! I'm going to close this so we track init script fixes/issues in #321, if that's okay. Thanks in advance!

@martinb3 martinb3 closed this as completed Jul 7, 2015
@martinb3
Copy link
Contributor

Hi folks -- could you try the 2.0.0_wip branch of this cookbook, and report back any issues in #321? It has the same init scripts now as the packaged version of ES; it's our goal to release a 2.0.0 version that works with ES 2.0.0. It does have some changes from the current version, but depending on how complex your resource usage is, you may or may not be affected. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants