Giter Site home page Giter Site logo

Comments (2)

WillHoule avatar WillHoule commented on July 4, 2024 2

Hey there!

For that step in the collection, the script uses the builtin Docker commands to gather the information. So this seems like the Docker daemon itself was hanging when receiving commands. If you manually run something like docker info or docker ps from the instance, are you seeing a delayed/no response?

Regardless, it'd probably be a good idea for a timeout of sorts to be added for some of the collection steps.

from amazon-ecs-logs-collector.

UnaKarlsen avatar UnaKarlsen commented on July 4, 2024

This sort of issue is usually as a result of the Docker Daemon being unresponsive. The Docker client just never seems to time out when requesting info from the daemon.

A possible fix for this would be to ping the Docker API to check whether it is responding first.
curl -S -m 60 --unix-socket /var/run/docker.sock http://localhost/_ping
Doing this lets you set a timeout. If the API does not respond successfully, there is no point in running any of the Docker commands as they will just hang. This can be reported to the user and the rest of the log collection can continue as per normal.

I'll try to send a PR with this modification in the next day or 2.

from amazon-ecs-logs-collector.

Related Issues (18)

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.