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

Restart doesn't work the first time if a stale PID exists #310

Closed
andresp99999 opened this issue Apr 8, 2015 · 2 comments
Closed

Restart doesn't work the first time if a stale PID exists #310

andresp99999 opened this issue Apr 8, 2015 · 2 comments

Comments

@andresp99999
Copy link

I am seeing an error when trying to restart elasticsearch if a PID exists. This can be reproduced with the following steps

$ sudo service elasticsearch stop
Stopping elasticsearch....................

$ ls /usr/local/var/run
search_master_1_localdomain.pid  <--- PID exists

$ sudo service elasticsearch restart
Stopping elasticsearch...PID file found, but no matching process running?
Removing PID file...   <--- PID is deleted but restart process doesn't continue.

$sudo service elasticsearch restart
No PID file found -- elasticsearch not running?
Starting Elasticsearch... [OK]   <--- The second time ES is restarted it works fine.

Ideally restart should work the first time even if a PID is present.

@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 are planning to focus on fixing the init script as part of #321. I'm going to close this in favor of #321. Hope this helps!

@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