Discussion Forums
Discussion Forums > Category: Compute > Forum: Amazon Elastic Compute Cloud (EC2) >Thread: user-data seemingly not available.
Advanced search options
user-data seemingly not available.
Posted by: raughan2
Posted on: Oct 20, 2010 9:49 AM
  Click to reply to this thread Reply
This question is answered.
I am using Atlassian Bamboo, when the program starts I am getting an exception hitting: http://169.254.169.254/2008-02-01/user-data

I found this forum post suggesting that this might be an issue on Amazon's side:
http://developer.amazonwebservices.com/connect/message.jspa?messageID=60410

I am able to hit http://169.254.169.254/latest/meta-data/ with a web browser.

I honestly don't even know what these urls are for, but if it is something that can easily be fixed on the Amazon side, that would be great.

Thanks.
Permlink Replies: 8 | Pages: 1 - Last Post: Oct 21, 2010 9:37 AM by: raughan2
Replies
Re: user-data seemingly not available.
Posted by: raughan2
Posted on: Oct 20, 2010 12:40 PM
in response to: raughan2 in response to: raughan2
  Click to reply to this thread Reply
It seems that http://169.254.169.254/2008-02-01 and http://169.254.169.254/2008-02-01/meta-data are working fine, it is just http://169.254.169.254/2008-02-01/user-data actually that is throwing the error.
Re: user-data seemingly not available.
Posted by: Jason@AWS
Posted on: Oct 20, 2010 1:54 PM
in response to: raughan2 in response to: raughan2
  Click to reply to this thread Reply
Hi raughan2,

The application appears to be trying to access the instance metadata service, which is described in some detail in the User Guide:

http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html

http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html

You might see if you can change it to request http://169.254.169.254/latest/user-data instead; as the previous datestamp may be unavailable in this context.

Regards,
-Jason
Re: user-data seemingly not available.
Posted by: raughan2
Posted on: Oct 21, 2010 7:07 AM
in response to: Jason@AWS in response to: Jason@AWS
  Click to reply to this thread Reply
http://169.254.169.254/latest/user-data also gives me a 404 error. I am trying to hit this from the Windows AMI image itself. So there shouldn't be anything blocking from my side.
Re: user-data seemingly not available.
Posted by: raughan2
Posted on: Oct 21, 2010 7:41 AM
in response to: Jason@AWS in response to: Jason@AWS
  Click to reply to this thread Reply
From the documentation you provided, I found this:
"Requests for a general metadata resource (i.e. an URI ending with a/) return a list of available resources or a 404HTTP error code if there is no such resource."

So how do I get user-data to populate on the url? What data should be there?
Re: user-data seemingly not available.
Posted by: J. Drukman RealName(TM)
Posted on: Oct 21, 2010 9:05 AM
in response to: raughan2 in response to: raughan2
  Click to reply to this thread Reply
You can make any sort of data available to your instance by setting the user-data instance attribute.  If you didn't provide any, you'll get a 404 at the latest/user-data URL.

You can specify the data when you start an instance for the first time, and you can change it when the instance is stopped, but you can't change it while the instance is running.

Re: user-data seemingly not available.
Posted by: raughan2
Posted on: Oct 21, 2010 9:19 AM
in response to: J. Drukman in response to: J. Drukman
  Click to reply to this thread Reply
Ok, so the Bamboo server must auto-populate these fields when it initiates an instance. Because I am starting it via the EC2 console, they must not be being created. Does that sound possible?

So sounds like I need to go bang on their door some more.

Thank you for the <span class="HA-spellcheck-error HA-spellcheck-fixed HA-spellcheck-current ">explanatio</span>n.
Re: user-data seemingly not available.
Posted by: Alan@AWS
Posted on: Oct 21, 2010 9:25 AM
in response to: raughan2 in response to: raughan2
  Click to reply to this thread Reply
Hi,

J. Drukman is quite right: if you launch an instance with specifying user data you'll get a 404 when trying to retrieve the user data from within the instance.

Judging from our records of the two instances you launched only 1 had user data specified.
Re: user-data seemingly not available.
Posted by: raughan2
Posted on: Oct 21, 2010 9:37 AM
in response to: Alan@AWS in response to: Alan@AWS
  Click to reply to this thread Reply
OK, then it is Bamboo specifying the data.

Thank you all very  much. I will focus my attention on the Bamboo side.

-Dennis