AWS: None of the Instances are sending data

后端 未结 7 2206
无人共我
无人共我 2020-12-23 22:22

I\'m trying to set up an Elastic Beanstalk application with Amazon Web Services however I\'m receiving a load of errors with the message None of the instances are send

7条回答
  •  鱼传尺愫
    2020-12-23 22:58

    There can be many reasons why the health agent is not able to send any data, so this may not be the answer to your problem, but it was to mine and hopefully can help somebody else:

    I got the same error and looking into /var/log/healthd/daemon.log the following was repeatedly reported:

    sending message(s) failed: (Aws::Healthd::Errors::GroupNotFoundException) Group 97c30ca2-5eb5-40af-8f9a-eb3074622172 does not exist
    

    This was caused by me making and using an AMI image from an EC2 instance inside an Elastic Beanstalk environment. That is, I created a temporary environment with one instance the same configuration as my production environment, went into the EC2 console and created an image of the instance, terminated the temporary environment, and then created yet another environment using the new custom AMI.

    Of course (in hindsight) this meant some settings of the temporary environment were still being used. In this case specifically /etc/healthd/config.yaml, resulting in the health agent trying to send messages to a no longer existing health group.

    To fix this and make sure there was no other stale configuration around, I instead started a new EC2 instance by hand from the default AMI used in the production environment (find it under the 'Instances' configuration page of your environment), provision that, then create a new image from that and use that image in my new EB environment.

提交回复
热议问题