Comments (3)
Hi @ozbillwang, sorry for the late reply, this issue was fixed in DataDog/datadog-agent#5957, which was released with Agent v7.22.0
/6.22.0
.
A couple of additional notes:
- To build a custom image based on
tomcat
with the agent in it, you can also consider building a multi-stage docker image using the officialdatadog/agent
image. Although the recommended deployment would be to run the agent as a separatedatadog/agent
container. - For future reference, please note that this repository is home to the (older) Agent v5, the repository of the newer Agent v6/v7 you're referring to in this issue is located here: https://github.com/DataDog/datadog-agent/
In any case, this should be fixed now, so I'll go ahead and close this issue. Feel free to open an issue https://github.com/DataDog/datadog-agent or contact our support team if you're facing further issues.
from dd-agent.
do a deep debug, I found the command service datadog-agent stop
can't clean dd-agent at all
root@ca2bf4b588d5:/var/log/datadog# service datadog-agent stop
[ ok ] Stopping Datadog Agent: datadog-agent.
[ ok ] Stopping Datadog Process Agent: datadog-agent-process.
[ ok ] Stopping Datadog Trace Agent (APM): datadog-agent-trace.
root@ca2bf4b588d5:/var/log/datadog# ps aux |more
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 5752 3692 pts/0 Ss 11:19 0:00 bash
dd-agent 3985 1.1 1.1 1410296 97432 ? Sl 11:35 0:03 /opt/datadog-agent/bin/agent/agent run -p /opt/datadog-agent/run/agent.pid
root 5080 0.0 0.0 9392 3056 pts/0 R+ 11:39 0:00 ps aux
root 5081 0.0 0.0 4252 892 pts/0 S+ 11:39 0:00 more
I have to run with pkill -15 agent
to clean it nicely.
That's the reason, when the install script tries to restart the dd-agent service (service datadog-agent restart
), it found the port 5001 is still in use, then start service is failed.
2020-07-24 11:34:06 UTC | CORE | ERROR | (cmd/agent/app/run.go:237 in StartAgent) | Error while starting api server, exiting: Unable to create the api server: listen tcp 127.0.0.1:5001: bind: address already in use
from dd-agent.
Thanks a lot for the updates.
from dd-agent.
Related Issues (20)
- [{"message": "Could not find the TLS certificate file, invalid path HOT 3
- Datadog not honoring DD_COLLECT_EC2_TAGS when ec2 integration is turned on
- Unable to run check 'container' HOT 6
- [systemd] opening of /run/systemd/private causes errors in system journal
- ImportError: No module named checks HOT 3
- DataDog intermittent failure when install using PowerShell script HOT 1
- Permission denied: '/sys/kernel/debug/tracing' HOT 2
- dd-agent NOt sending logs after file roatations HOT 3
- Proxy Certificate Expired HOT 2
- Cleanup: remove `set_win32_cert_path()` unused function.
- sampleRate from dd-trace-js is not taken into account in statistics HOT 1
- use_mount not working on Windows with volumes mapped to drive path HOT 1
- High CPU use by datadog agent (CentOS) HOT 1
- Docker: Datadog agent stops sending default JMX metrics after adding bean HOT 2
- Datadog agent installation issue HOT 2
- synthetic monitoring for endpoint HOT 2
- Unbound: unable to import module 'unbound': No module named 'unbound'
- Is it possible to run dd-agent inside same docker container as my application? HOT 2
- Issue with setup_agent.sh file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-agent.