AWS Batch job stuck in RUNNABLE state

1

I'm trying to execute a Batch Job with the help of AWS AMI. The Compute Environment for the job is intended to have certain installations for which I need to use AMI. But whenever I give the AMI reference in Compute Environment, the job gets stuck in RUNNABLE state forever. I have tried all the troubleshooting measures given in https://aws.amazon.com/premiumsupport/knowledge-center/batch-job-stuck-runnable-status/ but even that did not help. I even tried using different AMIs for the same. It has been observed that jobs get stuck whenever any custom AMI is used,. As soon as job is submitted, the instance is launched but the job still fails to execute. Without the use of AMI, I have been able to execute the job successfully. I want to know the possible causes and reasons of this. Following are the details of my Compute Environment:

{
    "computeEnvironmentName": "computeenvironmentname",
    "type": "MANAGED",
    "state": "ENABLED",
    "unmanagedvCpus": 0,
    "computeResources": {
        "type": "EC2",
        "allocationStrategy": "BEST_FIT_PROGRESSIVE",
        "minvCpus": 0,
        "maxvCpus": 256,
        "desiredvCpus": 0,
        "instanceTypes": [
            "p3.2xlarge"
        ],
        "imageId": "imageid",
        "subnets": [
            "list of subnets"
        ],
        "securityGroupIds": [
            "security groups"
        ],
        "ec2KeyPair": "keypair",
        "instanceRole": "instancerole",
        "tags": {
            "KeyName": ""
        },
        "placementGroup": "",
        "bidPercentage": 0,
        "spotIamFleetRole": "",
        "launchTemplate": {
            "launchTemplateId": "",
            "launchTemplateName": "",
            "version": ""
        },
        "ec2Configuration": [
            {
                "imageType": "ECS_AL2_NVIDIA",
                "imageIdOverride": "imageid"
            }
        ]
    },
    "serviceRole": "servicerole",
    "tags": {
        "KeyName": ""
    }
}
질문됨 2년 전216회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠