-
Notifications
You must be signed in to change notification settings - Fork 369
Getting exception when starting application on EC2 VM that doesn't have user-data set #423
Comments
The exception is thrown, but also caught within |
Any update? I'm facing the same problem |
I belive that this should be fixed. do you have an update on this ? |
The same here! we are trying to retrieve instance metadata info and it attempts 4 times to retrieve it, and 4 times throw this horrible exception as WARN message and just polluting logs
As I understand it happens because |
Same problem here; any guidance would be appreciated. |
Exception is logged by AWS SDK - we cannot change it easily - you can perhaps configure Logback to exclude this particular exception message from logs. We need to change approach to Cloud environment detection. I am closing this one as a duplicate of #556 as it touches the same problem. |
springCloudVersion=2.1.0.RELEASE
This error is thrown on application start on EC2 VM which was created without user-data (stack trace in attached file aws_error.txt).
Problem is that user data is requested regardless if it is available or not (AmazonEc2InstanceDataPropertySource class). AWS provides ability to check this by querying
curl http://169.254.169.254/latest
As a workaround it is possible to exclude ContextInstanceDataAutoConfiguration class, but in such case it also excludes meta-data properties.
The text was updated successfully, but these errors were encountered: