Coder Social home page Coder Social logo

Comments (7)

evanp avatar evanp commented on July 26, 2024

As a side note, my Docker Hub account keeps getting locked for "Too many login attempts." And I think this might be related.

from dockercloud-haproxy.

fermayo avatar fermayo commented on July 26, 2024

@evanp Did the haproxy container show the 95% CPU load? What was the time that passed between INFO:haproxy:Websocket close?

from dockercloud-haproxy.

evanp avatar evanp commented on July 26, 2024

Yes, the haproxy container. I used "docker stats" to get the figure.

It was scrolling as fast as it could in the console (through an SSH connection, so probably pretty fast).

HERE'S MY THEORY: I think that the container is using some kind of inherited, transient authentication credentials to log into the docker cloud API.

I think that these credentials are expiring at some point after redeployment. However, I think that the container is ignoring that the credentials have expired and trying to re-connect over and over and over and over, which is why the "Websocket close" message keeps looping.

I'm going to try deploying with explicit Docker Cloud credentials using the DOCKERCLOUD_USER and DOCKERCLOUD_APIKEY environment variables that the python-dockercloud module uses.

At the same time, I'll look into doing something better when credentials expire, and send a PR.

from dockercloud-haproxy.

evanp avatar evanp commented on July 26, 2024

Looking at the code, it looks like the library will always use the DOCKERCLOUD_AUTH environment variable passed by the Docker Cloud infrastructure for auth, if it's provided, and ignore the DOCKERCLOUD_USER and DOCKERCLOUD_APIKEY.

Oh, and: I'd love to be testing this, but my account is still locked out of
I'm not sure I can fix this; it seems to be a problem with the lifetime of the DOCKERCLOUD_AUTH.

from dockercloud-haproxy.

fermayo avatar fermayo commented on July 26, 2024

The DOCKERCLOUD_AUTH token only expires when the container is destroyed in Docker Cloud, not before that. Do you have that container running for troubleshooting?

from dockercloud-haproxy.

svenmueller avatar svenmueller commented on July 26, 2024

We are facing the same issue #33

from dockercloud-haproxy.

tifayuki avatar tifayuki commented on July 26, 2024

This is related to API throttling, and we are keep optimizing it on the server side.
Not really an error of this haproxy image, and I am going to close this issue at the moment.
If you still have such a problem, please contact support@docker

from dockercloud-haproxy.

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.