Receiving a 401 from eu-central-1 region

132 views
Skip to first unread message

Priyanga Gunaratne

unread,
Nov 6, 2014, 8:16:41 PM11/6/14
to simianar...@googlegroups.com
I have recently started to use the Simian Army and I am running into this weird exception - I do not have any instance in eu-central-1. Any insight into whatever misconfiguration would be greatly appreciated. 

Thank you. 

2014-11-06 17:09:40.923 - DEBUG SLF4JLogger - [SLF4JLogger.java:61] Sending request -2108097352: POST https://ec2.eu-central-1.amazonaws.com/ HTTP/1.1
2014-11-06 17:09:41.719 - DEBUG SLF4JLogger - [SLF4JLogger.java:61] Receiving response -2108097352: HTTP/1.1 401 Unauthorized
2014-11-06 17:09:41.721 - ERROR BasicChaosMonkey - [BasicChaosMonkey.java:201] failed to terminate instance i-kfdjfkdj
org
.jclouds.rest.AuthorizationException: POST https://ec2.eu-central-1.amazonaws.com/ HTTP/1.1 -> HTTP/1.1 401 Unauthorized
 at org
.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.refineException(ParseAWSErrorFromXmlContent.java:123)
 at org
.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:92)
 at org
.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
 at org
.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:182)






Amit Kumar

unread,
Jan 19, 2015, 6:14:27 AM1/19/15
to simianar...@googlegroups.com
Even I am getting similar error below are the logs:

2015-01-19 05:37:05.028 - DEBUG SLF4JLogger - [SLF4JLogger.java:61] Sending request -1804412292: POST https://ec2.eu-central-1.amazonaws.com/ HTTP/1.1

2015-01-19 05:37:05.029 - DEBUG SLF4JLogger - [SLF4JLogger.java:61] >> "Action=DescribeInstances&Signature=Ao5fLfM%2B/rOcbdll0LF0K2F9U8NBlgd%2BAwuFk83GOxo%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2015-01-19T10%3A37%3A05.024Z&Version=2010-06-15&AWSAccessKeyId=xxx"

2015-01-19 05:37:05.029 - DEBUG SLF4JLogger - [SLF4JLogger.java:61] >> POST https://ec2.eu-central-1.amazonaws.com/ HTTP/1.1

2015-01-19 05:37:05.029 - DEBUG SLF4JLogger - [SLF4JLogger.java:61] >> Host: ec2.eu-central-1.amazonaws.com

2015-01-19 05:37:05.030 - DEBUG SLF4JLogger - [SLF4JLogger.java:61] >> Content-Type: application/x-www-form-urlencoded

2015-01-19 05:37:05.030 - DEBUG SLF4JLogger - [SLF4JLogger.java:61] >> Content-Length: 225

2015-01-19 05:37:05.609 - DEBUG SLF4JLogger - [SLF4JLogger.java:61] Receiving response -1804412292: HTTP/1.1 401 Unauthorized

2015-01-19 05:37:05.610 - DEBUG SLF4JLogger - [SLF4JLogger.java:61] << HTTP/1.1 401 Unauthorized


It is using signature version v2 and eu-central-1 requires v4. 
How can we set signature version to v4? Or How to exclude this region to remove this error? Did anyone resolve this issue? Any help would greatly be appreciated.

Thanks.
Reply all
Reply to author
Forward
0 new messages