James Forbis's picture

I am getting the following error when putting in the key for tklmab init.

Traceback (most recent call last):
  File "/usr/bin/tklbam-init", line 209, in main() File "/usr/bin/tklbam-init", line 179, in main if not is_valid_apikey(apikey): File "/usr/bin/tklbam-init", line 91, in is_valid_apikey struct.unpack("!L8s", base64.b32decode(padded + "=" * 4)) struct.error: unpack requires a string argument of length 12

 

Any ideas??  I have generated a new key and tried that too with the same error. I have done all of the updates to the system as well.

Forum: 
Jeremy Davis's picture

Perhaps you are copy/pasting a space or new-line character?

James Forbis's picture

The key I am getting from AWS is 28 characters. Is this correct?

Jeremy Davis's picture

I've been ill. Anyway, you have the wrong key. The key you need to use is your Hub API key. Log into the TurnKey Hub (if you don't already have a Hub account, then that's where you'll need to input your AWS API key). Once you are logged into the Hub then go to your User Profile page and look for the 12 character API key under "Account Details"

Add new comment