mweagle / Sparta

go microservices, powered by AWS Lambda
https://gosparta.io
MIT License
717 stars 48 forks source link

permission denied when testing lambda #103

Closed kkesley closed 6 years ago

kkesley commented 6 years ago

Hello, I got this error when using the tutorial on the documentation. Do you know why is it happening?

{ "errorMessage": "fork/exec /var/task/Sparta.lambda.amd64: permission denied", "errorType": "PathError" }

mweagle commented 6 years ago

Hi @kendrickkesley - can you provide a bit more information on your local setup? Also, if you provision with --level debug there will be more information for both the local logs and AWS lambda logs that will help diagnose the issue. Thanks!

kkesley commented 6 years ago

Hi @mweagle thanks for replying back!

these are some details regarding the issue:

mweagle commented 6 years ago

HI @kendrickkesley - the issue is that executable flags aren't being set on the binary inside the zip file. This happens to work on OSX/Linux, but not Windows.

I've pushed up a fix to https://github.com/mweagle/Sparta/tree/mweagle/1.0.2 which will be included in the next Sparta release. In the meantime, if you switch to that branch then you should be able to execute the Lambda function via the AWS Console. Please LMK - thanks!

kkesley commented 6 years ago

Yup! It works now! Thanks a lot! Closing this issue now