toniblyx / alfresco-backup-and-recovery-tool

Alfresco BART is a tool written in shell script on top of Duplicity to do Alfresco backups and restore from a local file system, FTP, SCP or Amazon S3.
Apache License 2.0
96 stars 48 forks source link

S3 authentication fails (NoAuthHandlerFound): access key id and secret key are "None" #5

Closed jvanmalder closed 10 years ago

jvanmalder commented 10 years ago

Was getting this error:

NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV1Handler'] Check your credentials

Debugged the Boto Python code (storage_uri.py) and found out the access key id and secret key are None (and not Strings as they should be).

Fixed it by adding two export statements at line 80 of alfresco-bart.sh (just below the s3 case):

export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" export AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}"