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

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")

Sergi Morraja's picture

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.

Hags's picture

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

Add new comment