1.0.9 won't recognize AWS credentials

512 views
Skip to first unread message

Jonathan Berliner

unread,
Mar 26, 2014, 9:12:32 PM3/26/14
to psi...@googlegroups.com
have basically started over trying to understand why it won't recognize my AWS credentials.

i have a verified aws account and a psiturk.org account. i've installed awscli, in case that was needed. i tried setting up an IAM account in case that was the issue but psiturk said it didn't work with them.

already tried:
-fresh installed 1.0.9dev
-regenerated psiturk.org keys
-deleted any and every previous key i had on aws and regenerated
-put all credentials in local folder

default psiturk-setup-example folder being used - didn't change anything except added in credentials to config file

any ideas??

error:
"
Please log in to https://requester.mturk.com/ and complete registration. (1395881551877)
WARNING *****************************
Sorry, AWS Credentials invalid.
You will only be able to test experiments locally until you enter
valid credentials in the AWS Access section of ~/.psiturkconfig

Sorry, unable to connect to Amazon Mechanical Turk. AWS credentials invalid.
"

thanks in advance!

Todd Gureckis

unread,
Mar 26, 2014, 10:08:34 PM3/26/14
to Jonathan Berliner, psi...@googlegroups.com
hi jonathan,

have you actually registered with the whole phone verification/credit card thing?
your AWS credentials don't seem to work until you do that. the error message you
are getting is one i specifically coded to handle when you have an account but
haven't verified it with a credit card/phone (although i'm never confident it all works
right).

T
> --
> You received this message because you are subscribed to the Google Groups "PsiTurk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to psiturk+u...@googlegroups.com.
> To post to this group, send email to psi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/psiturk.
> For more options, visit https://groups.google.com/d/optout.

Todd Gureckis

unread,
Mar 27, 2014, 12:42:42 PM3/27/14
to Jonathan Berliner, psi...@googlegroups.com
Python 2.7.6 (default, Feb 16 2014, 10:28:44)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from boto.mturk.connection import MTurkConnection, MTurkRequestError
>>> mturkparams = dict(aws_access_key_id = 'XXX',
... aws_secret_access_key = 'XXX',
... host=host)
>>> mtc = MTurkConnection(**mturkparams)
>>> mtc.get_account_balance()
[$0.00]

You can test you credentials with the code above which uses the raw Boto commands similar to the
stuff that is used deep inside psiTurk.  Perhaps it will give better diagnostic info?  Enter your keys
in where the XXX are.

I’m not 100% sure why some people sail through with the AWS keys and others have difficulty
at this point.

T



On Mar 26, 2014, at 10:58 PM, Jonathan Berliner <js...@princeton.edu> wrote:

hey todd,
  it’s been phone verified.  i’ll check again just in case, but it was working with the older version of mturk when i had to set up db instances myself
JB

Todd Gureckis

unread,
Mar 27, 2014, 11:18:32 PM3/27/14
to Jonathan Berliner, psi...@googlegroups.com
We’re working on docs that will step you through an example from debugging all the way to downloading data.  Unfortunately
we don’t have that up yet.

Without trying to make this a "mystery novel"…  one good approach would be to create an actual HIT on the sandbox
(i.e., make sure you mode is set to “sandbox” then use “hit create” to make a hit/ad…  as fairly well documented
website and take your own HIT as though you were a actual AMT worker (just search for it using “Stroop” or something).

The conceptual issue you are running up against is that when you use the “debug” command it assumes you are just testing 
out your javascript and doesn’t record data to the database.  We’ve found that convenient for development purposes.

Alex recently added some notes about downloading data here: http://psiturk.readthedocs.org/en/latest/retrieving.html
although more docs are forthcoming.

In general, if you have a specific questions (or insights) please post to the mailing list.  There are about 30+ people right now using it as
“beta testers” and sharing the info that we implicitly know in my lab but haven’t documented in our immediate goal.  So if you are
confused on a specific point don’t be afraid to email.  No question is too obvious.  If something isn’t clear it is most likely
that we haven’t documented  everything yet.  Discussion will pull things from the darkness into the light. ;)
Chances are someone may be able to answer quickly and we can use your confusion to figure 
out what common issues arise.

Thanks,
Todd


On Mar 27, 2014, at 2:52 PM, Jonathan Berliner <js...@princeton.edu> wrote:

shut down the account and am going to sign up fresh in a bit.  in the meantime, @princeton account seems to be working.  do you have a recommendation of how to test a full experiment data collection locally (e.g. run experiment, store to db, output csv data file)?  when i try to run locally, i get the error message after running the toy stroop experiment and it doesn’t save the experiment info.
best,
jb



--
You received this message because you are subscribed to a topic in the Google Groups "PsiTurk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psiturk/VFMkF2BfXsc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psiturk+u...@googlegroups.com.

emily.q...@gmail.com

unread,
Dec 22, 2014, 11:19:03 PM12/22/14
to psi...@googlegroups.com
Hello, I am having the same problem. How did you solve it?
I just created the AWS account today and it has been phone verified. Is it possible that AWS need couple days to actually approve the credential?

Thanks,
WQ

emily.q...@gmail.com

unread,
Dec 22, 2014, 11:24:11 PM12/22/14
to psi...@googlegroups.com
When I try the script, I got the following error:
>>> mtc = MTurkConnection(**mturkparams)
>>> mtc.get_account_balance()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/EmDev/anaconda/lib/python2.7/site-packages/boto/mturk/connection.py", line 75, in get_account_balance
('OnHoldBalance', Price)])
File "/root/EmDev/anaconda/lib/python2.7/site-packages/boto/mturk/connection.py", line 824, in _process_request
return self._process_response(response, marker_elems)
File "/root/EmDev/anaconda/lib/python2.7/site-packages/boto/mturk/connection.py", line 839, in _process_response
raise MTurkRequestError(response.status, response.reason, body)
boto.mturk.connection.MTurkRequestError: MTurkRequestError: 200 OK
<?xml version="1.0"?>
<GetAccountBalanceResponse><OperationRequest><RequestId>c58145b6-bffc-4795-af52-22feff00db3f</RequestId></OperationRequest><GetAccountBalanceResult><Request><IsValid>False</IsValid><Errors><Error><Code>AWS.MechanicalTurk.MustRegister</Code><Message>Please log in to https://requester.mturk.com/ and complete registration. (1419308508067)</Message></Error></Errors></Request></GetAccountBalanceResult></GetAccountBalanceResponse>

Todd Gureckis

unread,
Dec 23, 2014, 2:58:30 AM12/23/14
to emily.q...@gmail.com, psi...@googlegroups.com
notice that near the end of the error message you posted the following text appears:

"Please log in to https://requester.mturk.com/ and complete registration."
Reply all
Reply to author
Forward
0 new messages