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

Supervisor exits and fails to clean-up running services #2065

Closed
nathenharvey opened this issue Apr 8, 2017 · 1 comment · Fixed by #2167
Closed

Supervisor exits and fails to clean-up running services #2065

nathenharvey opened this issue Apr 8, 2017 · 1 comment · Fixed by #2167
Labels
Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Type: Bug Issues that describe broken functionality

Comments

@nathenharvey
Copy link

Steps to reproduce:

  1. Start the supervisor (sudo hab sup run)
  2. Load a service (sudo hab sup load learn/mongodb)
  3. Load another service, one that requires a bind, but don't specify the bind (sudo hab sup load learn/national-parks)

The supervisor raises an error and exits at this point.

  1. Unload both services (sudo hab sup unload learn/national-parks ; sudo hab sup unload learn/mongodb)
  2. Restart the supervisor (sudo hab sup run)
  3. Reload MongoDB (sudo hab sup load mongodb)

MongoDB fails.

Cancel the supervisor, check running habitat processes and see that mongod is still running.

Was it not shutdown cleanly when the supervisor exited?

Killing the mongod process and restarting everything works.

A screen cast of the issue can be found here - https://youtu.be/64Ql6hDWhxY

@eeyun eeyun added Bug labels Apr 11, 2017
@eeyun eeyun added this to the Accepted Minor milestone Apr 11, 2017
@fnichol
Copy link
Collaborator

fnichol commented Apr 11, 2017

Thanks for the repro! Yes, agreed, this is a bug which was introduced in 0.20.0. We will need to fix this up for sure by pushing these checks into a concern of a Service (and not just the Supervisor)

@christophermaier christophermaier added Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Type: Bug Issues that describe broken functionality and removed A-supervisor labels Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Type: Bug Issues that describe broken functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants