ice icon indicating copy to clipboard operation
ice copied to clipboard

The requested metadata is not found

Open zaccus opened this issue 11 years ago • 6 comments

I'm trying to deploy Ice as a war on an ec2 instance, and am getting the following error when I do run-war:

com.amazonaws.AmazonClientException: The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/

I see from the iceusers Google group that someone was having a similar issue last August when doing run-app on an ec2, and got the impression that there is newer code that is looking in a different place for credentials:

"Can you pull the latest code? The new code does not talk to http://169.254.169.254/latest/meta-data/iam/security-credentials/"

I just cloned this from master a few hours ago. So is it looking in the correct place for this metadata, and if so, is there some other way this is supposed to be run other than ./grailsw run-war? There is no way to specify credentials as system parameters when running tomcat, correct?

Also, is it possible to run Ice as a war from a non-ec2 server?

zaccus avatar Jan 28 '14 19:01 zaccus

I'm researching a similar error but I am using an IAM user, not a role, but my Google search brought me here. So I'm bumping this in case it helps.

jonathanwcrane avatar May 05 '14 14:05 jonathanwcrane

I am running into a the same issue. I have a role configured in IAM. When Ice starts I get the same error i.e. com.amazonaws.AmazonClientException: The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/

Any help resolving it is appreciated. Thanks in advance.

vgarg avatar May 08 '14 14:05 vgarg

I was able to solve this problem by putting the -D options in the command to start ice, per the documentation.

On Thu, May 8, 2014 at 10:50 AM, Vivek Garg [email protected]:

I am running into a the same issue. I have a role configured in IAM. When Ice starts I get the same error i.e. com.amazonaws.AmazonClientException: The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/

Any help resolving it is appreciated. Thanks in advance.

— Reply to this email directly or view it on GitHubhttps://github.com/Netflix/ice/issues/85#issuecomment-42559067 .

jonathanwcrane avatar May 08 '14 14:05 jonathanwcrane

./grailsw -Dice.s3AccessKeyId=<s3AccessKeyId> -Dice.s3SecretKey=<s3SecretKey> run-app

jonathanwcrane avatar May 08 '14 15:05 jonathanwcrane

If I use my AccessKeyID and SecretKey it works fine. But I am trying to have Netflix Ice use an IAM role instead of the AccessKey ID and SecretKey. In that case it fails when trying to get the http://169.254.169.254/latest/meta-data/iam/security-credentials/

vgarg avatar May 08 '14 15:05 vgarg

Oh OK. I think I saw something about that in the past week on the ice users Google group. Try checking there--it's the official support area for ICE.

jonathanwcrane avatar May 08 '14 17:05 jonathanwcrane