镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

ecs-agent disconnected, ConnectionExpired: Reconnect to continue #122

Open

Description

@nathanielks

Hey team!

ECS is complaining that it's lost connection with the agent. I was just curious if y'all have seen these errors before:

In the ECS console:

service docker-demo-app was unable to place a task because no container instance met all of its requirements. The closest matching container-instance af2a4711-2b8b-420a-8699-66623a6fa9c9 encountered error "AGENT". For more information, see the Troubleshooting section.

From docker log:

[WARN] Connection closed for a valid reason: websocket: close 1000 (normal): ConnectionExpired: Reconnect to continue

Activity

  1. nathanielks commented on Apr 21, 2017

    @nathanielks
    ContributorAuthor

    service ecs-agent status:

    Process: 1705 ExecStartPre=/usr/bin/docker pull amazon/amazon-ecs-agent:v1.14.1 (code=exited, status=0/SUCCESS)
    Process: 1681 ExecStartPre=/usr/bin/docker rm ecs-agent (code=exited, status=1/FAILURE)
    Process: 1668 ExecStartPre=/usr/bin/docker kill ecs-agent (code=exited, status=1/FAILURE)
    Process: 1665 ExecStartPre=/bin/mkdir -p /var/log/ecs (code=exited, status=0/SUCCESS)
    Process: 1662 ExecStartPre=/bin/mkdir -p /var/lib/ecs/data (code=exited, status=0/SUCCESS)
    
  2. achille-roussel commented on Apr 24, 2017

    @achille-roussel
    Contributor

    We've seen this on older versions of the ECS agent. Does the agent not reconnect automatically after losing the connection?

  3. nathanielks commented on Apr 24, 2017

    @nathanielks
    ContributorAuthor

    @achille-roussel correct, the logs are littered with those ConnectionExpired warnings every 30 seconds or so. We're running 1.14.1. I'm going to try downgrading and see if that helps at all.

  4. nathanielks commented on Apr 24, 2017

    @nathanielks
    ContributorAuthor

    This ticket suggests the agent disconnects due to inactivity. With this being a test stack, it's super inactive and I suppose it's disconnecting because of that. aws/amazon-ecs-agent#730.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions