-
Notifications
You must be signed in to change notification settings - Fork 813
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 problem with datadog-agent if configured mongo not running #2330
Comments
Hi @spiritmonger Thanks again |
Hi, with regards
|
@spiritmonger I've tried reproducing your issue but haven't been able to replicate this behavior. Could you send us a flare please? This could allow us to understand what happened. Thanks! |
Hi,
but… and init finished with exit 1 from log:2016-03-08 14:26:48 UTC | INFO | dd.collector | utils.pidfile(pidfile.py:31) | Pid file is: /opt/datadog-agent/run/dd-agent.pid 2016-03-08 14:27:03 UTC | INFO | dd.collector | collector(agent.py:215) | Exiting. Bye bye.
with regards
|
Thanks @spiritmonger for the details. After some digging here's what I've found: there's currently an issue with our init script on RHEL, and that explains why the restart command doesn't work properly: #2349 will fix the issue (you can apply the same change to your init script in Now I haven't found exactly why the issue only exists since Hope these bits help. |
@spiritmonger #2439 should be available in our most recent release. Please let us know if this helped address the issues you were experiencing. |
datadog-agent: 5.7.0
os: amazon linux 2015.09
configured mongo (/etc/dd-agent/conf.d/mongo.yaml):
PROBLEM
if mongo not running, datadog can't stop correctly. If i tried restart, i saw:
...and i saw in process list is "/opt/datadog-agent/embedded/bin/python /opt/datadog-agent/agent/agent.py foreground --use-local-forwarder"
Can't restarting datadog-agent immediately, with stopped mongo.
if agent.py process had finished/died, then is possible start datadog-agent!
if mongo is running, then can restart datadog-agent.
if i use datadog-agent package version 5.6.3, then restart working correctly.
The text was updated successfully, but these errors were encountered: