Useless Amazon ECS Error Message when creating tasks












1















Using the ecs agent container on an Ubuntu instance, I am able to register the agent with my cluster.



I also have a service created in that cluster and task definitions as well. When I try to add a task to the cluster I get the useless error message:



Run tasks failed
Reasons : ["ATTRIBUTE"]


The ecs agent log has no related error message. Any thoughts on how I can get better debugging or what the issue might be?



The cli also returns the same useless error message



{
"tasks": ,
"failures": [
{
"arn": "arn:aws:ecs:us-east-1:sssssss:container-instance/sssssssssssss",
"reason": "ATTRIBUTE"
}
]
}









share|improve this question





























    1















    Using the ecs agent container on an Ubuntu instance, I am able to register the agent with my cluster.



    I also have a service created in that cluster and task definitions as well. When I try to add a task to the cluster I get the useless error message:



    Run tasks failed
    Reasons : ["ATTRIBUTE"]


    The ecs agent log has no related error message. Any thoughts on how I can get better debugging or what the issue might be?



    The cli also returns the same useless error message



    {
    "tasks": ,
    "failures": [
    {
    "arn": "arn:aws:ecs:us-east-1:sssssss:container-instance/sssssssssssss",
    "reason": "ATTRIBUTE"
    }
    ]
    }









    share|improve this question



























      1












      1








      1








      Using the ecs agent container on an Ubuntu instance, I am able to register the agent with my cluster.



      I also have a service created in that cluster and task definitions as well. When I try to add a task to the cluster I get the useless error message:



      Run tasks failed
      Reasons : ["ATTRIBUTE"]


      The ecs agent log has no related error message. Any thoughts on how I can get better debugging or what the issue might be?



      The cli also returns the same useless error message



      {
      "tasks": ,
      "failures": [
      {
      "arn": "arn:aws:ecs:us-east-1:sssssss:container-instance/sssssssssssss",
      "reason": "ATTRIBUTE"
      }
      ]
      }









      share|improve this question
















      Using the ecs agent container on an Ubuntu instance, I am able to register the agent with my cluster.



      I also have a service created in that cluster and task definitions as well. When I try to add a task to the cluster I get the useless error message:



      Run tasks failed
      Reasons : ["ATTRIBUTE"]


      The ecs agent log has no related error message. Any thoughts on how I can get better debugging or what the issue might be?



      The cli also returns the same useless error message



      {
      "tasks": ,
      "failures": [
      {
      "arn": "arn:aws:ecs:us-east-1:sssssss:container-instance/sssssssssssss",
      "reason": "ATTRIBUTE"
      }
      ]
      }






      amazon-web-services docker amazon-ecs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 18 '17 at 17:52







      Sam Hammamy

















      asked Jul 18 '17 at 17:39









      Sam HammamySam Hammamy

      3,97162665




      3,97162665
























          2 Answers
          2






          active

          oldest

          votes


















          2














          From the troubleshooting guide:




          ATTRIBUTE (container instance ID)



          Your task definition contains a parameter that requires a specific container instance attribute that is not available on your container instances. For more information on which attributes are required for specific task definition parameters and agent configuration variables, see Task Definition Parameters and Amazon ECS Container Agent Configuration.




          You can find the attributes required for your task definition by looking at the requiredAttributes field. You can find the attributes that are present for your container instances in the result of the DescribeContainerInstances API call.






          share|improve this answer



















          • 1





            I found the same on the forums; saying the attribute definitions in the task are missing on the instance which has the agent. But it's still a useless error message. How much trouble to write out the sentence?

            – Sam Hammamy
            Jul 18 '17 at 18:14



















          1














          The ECS console webpage does not provide enough information, but you can connect to the EC2 instance to retrieve more logs.



          You can try by manually restart ecs agent daemon, ecs agent docker.
          Sometimes, you need to manually delete the checkpoint file



          A cheatsheet with location of logs, commands can be found at
          ecs-agent troubleshoot






          share|improve this answer

























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f45173637%2fuseless-amazon-ecs-error-message-when-creating-tasks%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            From the troubleshooting guide:




            ATTRIBUTE (container instance ID)



            Your task definition contains a parameter that requires a specific container instance attribute that is not available on your container instances. For more information on which attributes are required for specific task definition parameters and agent configuration variables, see Task Definition Parameters and Amazon ECS Container Agent Configuration.




            You can find the attributes required for your task definition by looking at the requiredAttributes field. You can find the attributes that are present for your container instances in the result of the DescribeContainerInstances API call.






            share|improve this answer



















            • 1





              I found the same on the forums; saying the attribute definitions in the task are missing on the instance which has the agent. But it's still a useless error message. How much trouble to write out the sentence?

              – Sam Hammamy
              Jul 18 '17 at 18:14
















            2














            From the troubleshooting guide:




            ATTRIBUTE (container instance ID)



            Your task definition contains a parameter that requires a specific container instance attribute that is not available on your container instances. For more information on which attributes are required for specific task definition parameters and agent configuration variables, see Task Definition Parameters and Amazon ECS Container Agent Configuration.




            You can find the attributes required for your task definition by looking at the requiredAttributes field. You can find the attributes that are present for your container instances in the result of the DescribeContainerInstances API call.






            share|improve this answer



















            • 1





              I found the same on the forums; saying the attribute definitions in the task are missing on the instance which has the agent. But it's still a useless error message. How much trouble to write out the sentence?

              – Sam Hammamy
              Jul 18 '17 at 18:14














            2












            2








            2







            From the troubleshooting guide:




            ATTRIBUTE (container instance ID)



            Your task definition contains a parameter that requires a specific container instance attribute that is not available on your container instances. For more information on which attributes are required for specific task definition parameters and agent configuration variables, see Task Definition Parameters and Amazon ECS Container Agent Configuration.




            You can find the attributes required for your task definition by looking at the requiredAttributes field. You can find the attributes that are present for your container instances in the result of the DescribeContainerInstances API call.






            share|improve this answer













            From the troubleshooting guide:




            ATTRIBUTE (container instance ID)



            Your task definition contains a parameter that requires a specific container instance attribute that is not available on your container instances. For more information on which attributes are required for specific task definition parameters and agent configuration variables, see Task Definition Parameters and Amazon ECS Container Agent Configuration.




            You can find the attributes required for your task definition by looking at the requiredAttributes field. You can find the attributes that are present for your container instances in the result of the DescribeContainerInstances API call.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 18 '17 at 18:00









            Samuel KarpSamuel Karp

            2,0961418




            2,0961418








            • 1





              I found the same on the forums; saying the attribute definitions in the task are missing on the instance which has the agent. But it's still a useless error message. How much trouble to write out the sentence?

              – Sam Hammamy
              Jul 18 '17 at 18:14














            • 1





              I found the same on the forums; saying the attribute definitions in the task are missing on the instance which has the agent. But it's still a useless error message. How much trouble to write out the sentence?

              – Sam Hammamy
              Jul 18 '17 at 18:14








            1




            1





            I found the same on the forums; saying the attribute definitions in the task are missing on the instance which has the agent. But it's still a useless error message. How much trouble to write out the sentence?

            – Sam Hammamy
            Jul 18 '17 at 18:14





            I found the same on the forums; saying the attribute definitions in the task are missing on the instance which has the agent. But it's still a useless error message. How much trouble to write out the sentence?

            – Sam Hammamy
            Jul 18 '17 at 18:14













            1














            The ECS console webpage does not provide enough information, but you can connect to the EC2 instance to retrieve more logs.



            You can try by manually restart ecs agent daemon, ecs agent docker.
            Sometimes, you need to manually delete the checkpoint file



            A cheatsheet with location of logs, commands can be found at
            ecs-agent troubleshoot






            share|improve this answer






























              1














              The ECS console webpage does not provide enough information, but you can connect to the EC2 instance to retrieve more logs.



              You can try by manually restart ecs agent daemon, ecs agent docker.
              Sometimes, you need to manually delete the checkpoint file



              A cheatsheet with location of logs, commands can be found at
              ecs-agent troubleshoot






              share|improve this answer




























                1












                1








                1







                The ECS console webpage does not provide enough information, but you can connect to the EC2 instance to retrieve more logs.



                You can try by manually restart ecs agent daemon, ecs agent docker.
                Sometimes, you need to manually delete the checkpoint file



                A cheatsheet with location of logs, commands can be found at
                ecs-agent troubleshoot






                share|improve this answer















                The ECS console webpage does not provide enough information, but you can connect to the EC2 instance to retrieve more logs.



                You can try by manually restart ecs agent daemon, ecs agent docker.
                Sometimes, you need to manually delete the checkpoint file



                A cheatsheet with location of logs, commands can be found at
                ecs-agent troubleshoot







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 30 '18 at 0:13

























                answered Oct 22 '17 at 10:05









                greensuissegreensuisse

                9821114




                9821114






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f45173637%2fuseless-amazon-ecs-error-message-when-creating-tasks%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Mossoró

                    Error while reading .h5 file using the rhdf5 package in R

                    Pushsharp Apns notification error: 'InvalidToken'