monasca-agent restart fails

Bug #1484203 reported by Bradley Klein
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Monasca
Triaged
Undecided
Unassigned

Bug Description

We've seen this several times in our environment -- where the monasca agent fails to restart with:

17:12:32 2015-08-12T17:12:07+00:00 Error: Could not start Service[monasca-agent]: Execution of '/etc/init.d/monasca-agent start' returned 1: * Starting Monasca Monitoring Agent (using supervisord) monasca-agent
17:12:32 2015-08-12T17:12:07+00:00 Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.
17:12:32 2015-08-12T17:12:07+00:00 For help, use /var/lib/monasca-agent/bin/supervisord -h
17:12:32 2015-08-12T17:12:07+00:00 ...fail!
17:12:32 2015-08-12T17:12:07+00:00 ...fail!
17:12:32 2015-08-12T17:12:07+00:00 2
17:12:32 2015-08-12T17:12:07+00:00 Monasca Monitoring Agent (supervisor) is NOT running all child processes
17:12:32 2015-08-12T17:12:07+00:00 * Stopping Monasca Monitoring Agent (stopping supervisord) monasca-agent
17:12:32 2015-08-12T17:12:07+00:00 ...done.
17:12:32 2015-08-12T17:12:07+00:00 Error: /Stage[main]/Monasca::Agent/Service[monasca-agent]/ensure: change from stopped to running failed: Could not start Service[monasca-agent]: Execution of '/etc/init.d/monasca-agent start' returned 1: * Starting Monasca Monitoring Agent (using supervisord) monasca-agent
17:12:32 2015-08-12T17:12:07+00:00 Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.
17:12:32 2015-08-12T17:12:07+00:00 For help, use /var/lib/monasca-agent/bin/supervisord -h
17:12:32 2015-08-12T17:12:07+00:00 ...fail!
17:12:32 2015-08-12T17:12:07+00:00 ...fail!
17:12:32 2015-08-12T17:12:07+00:00 2
17:12:32 2015-08-12T17:12:07+00:00 Monasca Monitoring Agent (supervisor) is NOT running all child processes
17:12:32 2015-08-12T17:12:07+00:00 * Stopping Monasca Monitoring Agent (stopping supervisord) monasca-agent
17:12:32 2015-08-12T17:12:07+00:00 ...done.

Revision history for this message
Ryan Bak (ryanmbak) wrote :

This is occuring because the processes somehow become orphaned. 'service monasca-agent status' says monasca-agent is stopped, so our agent tries to start the agent, but the processes are still running, so the start fails with the above error. We have not been able to determine how the agent gets in this state.

Revision history for this message
Ryan Bak (ryanmbak) wrote :

We also just discovered another behavior, likely related, where doing a restart or stop fails to actually stop the agent, even though the status shows it is running.

Revision history for this message
Tim Kuhlman (timkuhlman) wrote :

Is it possible agent was started without the init script? Also what init system are using upstart, systemd or plain old sys V?

Revision history for this message
Allan G (greental) wrote :

need more details if reproduceable

Changed in monasca:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.