OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Resource handler returned message: "Error occurred during operation 'ECS Deployment Circuit Breaker was triggered'."

  • Thread starter Thread starter Saksham Paliwal
  • Start date Start date
S

Saksham Paliwal

Guest
I'm encountering this error when trying to create a service using Task Definition in my ECS Cluster:

Encountered error deploying NoteAppService. Resource handler message: "Operation 'ECS Deployment Circuit Breaker was triggered' encountered an error." (RequestToken: a9b4170a-b382-355d-0dc5-ae55cc25d314, HandlerErrorCode: GeneralServiceException)

Consequently, I'm unable to create the service in the cluster. I have tried multiple times but error still persists. Lacking experience, I'm unsure about the specific error and how to resolve it. The following is my Task Definition file:

Code:
{
  "taskDefinitionArn": "arn:aws:ecs:us-east-1:755204033406:task-definition/NoteappTaskDefin:1",
  "containerDefinitions": [
    {
      "name": "Container1",
      "image": "public.ecr.aws/d4a1q9y6/note_app_public_repo",
      "cpu": 0,
      "portMappings": [
        {
          "name": "container1-3000-tcp",
          "containerPort": 3000,
          "hostPort": 3000,
          "protocol": "tcp",
          "appProtocol": "http"
        }
      ],
      "essential": true,
      "environment": [],
      "environmentFiles": [],
      "mountPoints": [],
      "volumesFrom": [],
      "ulimits": [],
      "logConfiguration": {
        "logDriver": "awslogs",
        "options": {
          "awslogs-create-group": "true",
          "awslogs-group": "/ecs/NoteappTaskDefin",
          "awslogs-region": "us-east-1",
          "awslogs-stream-prefix": "ecs"
        },
        "secretOptions": []
      }
    }
  ],
  "family": "NoteappTaskDefin",
  "executionRoleArn": "arn:aws:iam::755204033406:role/ecsTaskExecutionRole",
  "networkMode": "awsvpc",
  "revision": 1,
  "volumes": [],
  "status": "ACTIVE",
  "requiresAttributes": [
    {
      "name": "com.amazonaws.ecs.capability.logging-driver.awslogs"
    },
    {
      "name": "ecs.capability.execution-role-awslogs"
    },
    {
      "name": "com.amazonaws.ecs.capability.docker-remote-api.1.19"
    },
    {
      "name": "com.amazonaws.ecs.capability.docker-remote-api.1.18"
    },
    {
      "name": "ecs.capability.task-eni"
    },
    {
      "name": "com.amazonaws.ecs.capability.docker-remote-api.1.29"
    }
  ],
  "placementConstraints": [],
  "compatibilities": [
    "EC2",
    "FARGATE"
  ],
  "requiresCompatibilities": [
    "EC2"
  ],
  "cpu": "1024",
  "memory": "3072",
  "runtimePlatform": {
    "cpuArchitecture": "X86_64",
    "operatingSystemFamily": "LINUX"
  },
  "registeredAt": "2023-08-22T09:37:03.162Z",
  "registeredBy": "arn:aws:iam::755204033406:root",
  "tags": []
}

AWS Console Screenshot
<p>I'm encountering this error when trying to create a service using Task Definition in my ECS Cluster:</p>
<blockquote>
<p>Encountered error deploying NoteAppService. Resource handler message: "Operation 'ECS Deployment Circuit Breaker was triggered' encountered an error." (RequestToken: a9b4170a-b382-355d-0dc5-ae55cc25d314, HandlerErrorCode: GeneralServiceException)</p>
</blockquote>
<p>Consequently, I'm unable to create the service in the cluster. I have tried multiple times but error still persists.
Lacking experience, I'm unsure about the specific error and how to resolve it.
The following is my <em>Task Definition</em> file:</p>
<pre class="lang-json prettyprint-override"><code>{
"taskDefinitionArn": "arn:aws:ecs:us-east-1:755204033406:task-definition/NoteappTaskDefin:1",
"containerDefinitions": [
{
"name": "Container1",
"image": "public.ecr.aws/d4a1q9y6/note_app_public_repo",
"cpu": 0,
"portMappings": [
{
"name": "container1-3000-tcp",
"containerPort": 3000,
"hostPort": 3000,
"protocol": "tcp",
"appProtocol": "http"
}
],
"essential": true,
"environment": [],
"environmentFiles": [],
"mountPoints": [],
"volumesFrom": [],
"ulimits": [],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/ecs/NoteappTaskDefin",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs"
},
"secretOptions": []
}
}
],
"family": "NoteappTaskDefin",
"executionRoleArn": "arn:aws:iam::755204033406:role/ecsTaskExecutionRole",
"networkMode": "awsvpc",
"revision": 1,
"volumes": [],
"status": "ACTIVE",
"requiresAttributes": [
{
"name": "com.amazonaws.ecs.capability.logging-driver.awslogs"
},
{
"name": "ecs.capability.execution-role-awslogs"
},
{
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.19"
},
{
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.18"
},
{
"name": "ecs.capability.task-eni"
},
{
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.29"
}
],
"placementConstraints": [],
"compatibilities": [
"EC2",
"FARGATE"
],
"requiresCompatibilities": [
"EC2"
],
"cpu": "1024",
"memory": "3072",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"registeredAt": "2023-08-22T09:37:03.162Z",
"registeredBy": "arn:aws:iam::755204033406:root",
"tags": []
}
</code></pre>
<p><a href="https://i.sstatic.net/YU3Q8.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YU3Q8.png" alt="AWS Console Screenshot" /></a></p>
Continue reading...
 

Latest posts

Top