TurnKey Linux Virtual Appliance Library

turnkey -> amazon ec2 problem

I'm following procedure and getting below message. My Hub account is varshone@yahoo.com. See below messagewhen I imput API key I have got. Link to your TurnKey Hub accountEnter the API Key from your TurnKey Hub account's user profile to link TKLBAM to the Hub: API KEY: Traceback (most recent call last): File "/usr/bin/tklbam-init", line 127, in main() File "/usr/bin/tklbam-init", line 99, in main if not is_valid_apikey(apikey): File "/usr/bin/tklbam-init", line 41, in is_valid_apikey struct.unpack("!L8s", base64.b32decode(padded + "=" * 4)) struct.error: unpack requires a string argument of length 12
Jeremy Davis's picture

Just guessing...

The error message suggests to me that the API key you're trying is wrong. Double check that it is 12 characters (error message: "...requires a string of length 12")

Guest's picture

solution found

Hi Shone, Jeremy,

I know this thread is 5 months old, but I hope it helps...

I enconter the same problem when I introduced the Amazon Activation Key generated at http://aws-portal.amazon.com. I thought that's the key 'tklbam-init' requires, but like Jeremy said it's too long:



SOLUTION: I found the valid key (17 characters long) inside my hub account, below "User Profile"

(Why I first choose the key provided by Amazon than the one provided by my hub account, I don't know... may be I don't read instruccions carefully.)

Best regards.

Guest's picture

Thanks for that post! I would

Thanks for that post! I would have otherwise been stuck...

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)