Giter VIP home page Giter VIP logo

Comments (3)

olivielpeau avatar olivielpeau commented on June 3, 2024 1

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 official datadog/agent image. Although the recommended deployment would be to run the agent as a separate datadog/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.

ozbillwang avatar ozbillwang commented on June 3, 2024

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.

ozbillwang avatar ozbillwang commented on June 3, 2024

Thanks a lot for the updates.

from dd-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.