g.f
g.f
Intern
Intern
  • UID6279
  • Fans0
  • Follows0
  • Posts2
Reads:2316Replies:0

Access key is not found

Created#
More Posted time:Sep 21, 2018 21:37 PM
Hello all,


Following this documentation https://www.alibabacloud.com/help/doc-detail/55479.htm where it is described how to deploy .war file to EDAS.
Using the same demo.zip, whenever I try to run python build/build.py, I am getting response "Deploy app failed. Ret: 200, Resp {"code":401,"msg":"Access key is not found."} "


Does anyone have any idea what could cause it? I am sure I have put right accesskeyID and secret in build/.osscredentials config file.
Also I am using RAM user where I generated my own AccessKey not with the primary account.


I would be really thankful for any help.


Also when trying to follow this guide - https://www.alibabacloud.com/help/doc-detail/62123.htm I am not able to connect to any of the endpoints as when running the code it always gives me -
"Exception in thread "main" com.aliyuncs.exceptions.ClientException: SDK.ServerUnreachable : Server unreachable: java.net.UnknownHostException: edas.ap-southeast-1.aliyuncs.com
 at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:298)
 at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:215)
 at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:89)
 at com.aliyuncs.DefaultAcsClient.getAcsResponse(DefaultAcsClient.java:133)
 at com.example.test.TestAliyun.main(TestAliyun.java:44)
Caused by: java.net.UnknownHostException: edas.ap-southeast-1.aliyuncs.com  "

Also using aliyun CLI there is no luck -  trying to run
$ aliyun ecs DescribeRegions
this is what I am getting -

ERROR: [SDK.TimeoutError] The request timed out 4 times(4 for retry), perhaps we should have the threshold raised a little?
caused by:
Post http://ecs-cn-hangzhou.aliyuncs.com/?AccessKeyId=LTAID98VsdDf5I29&Action=DescribeRegions&Format=JSON&RegionId=cn-hangzhou&Signature=2HmL2Y0U12aLzLs00dJmlsvktLx%3D&SignatureMethod=HMAC-SHA1&SignatureNonce=dcfdd6d34eed4x6a81e2d10cdd23ca3f&SignatureType=&SignatureVersion=1.0&Timestamp=2018-09-21T13%3A43%3A15Z&Version=2014-05-26: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

I am located in Europe.

Thank you!
g.f
Guest