Getting EACCES error message on lambda
See original GitHub issueHello,
After redeploying examples/serverless-framework/aws and running a GET request on /screenshot
I started seeing this error message on screenshot lambda’s logs:
UnhandledPromiseRejectionWarning: Error: spawn EACCES
at _errnoException (util.js:1022:11)
at ChildProcess.spawn (internal/child_process.js:323:11)
at exports.spawn (child_process.js:502:9)
at /var/task/src/handlers/screenshot.js:3077:86
at Generator.next (<anonymous>)
at step (/var/task/src/handlers/screenshot.js:2947:193)
at /var/task/src/handlers/screenshot.js:2947:439
at new Promise (<anonymous>)
at /var/task/src/handlers/screenshot.js:2947:101
at Promise (/var/task/src/handlers/screenshot.js:3098:23)
Anyone else seeing this?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Permission denied on function Lamda - node.js - Stack Overflow
I am uploading a zip file which contains the index.js and the node module packets. Have run through this twice now and still...
Read more >"EACCESS: Permission denied" for a file that has ... - GitHub
The error message is: EACCES: permission denied, open '/var/task/handler.js'. What did you expect should have happened?
Read more >Troubleshoot Lambda deployment package upload errors - AWS
Depending on the programing language used to write your Lambda function code, the cause of the error might not be clear in the...
Read more >How do I troubleshoot Invalid Permissions on Lambda ...
How do I troubleshoot Invalid Permissions on Lambda function errors from API Gateway REST APIs?
Read more >Lambda EACCESS -13 - Serverless Framework
Lambda EACCESS -13 ... “errorMessage”: “EACCES: permission denied, ... ran a test with everything at 777, and I still get the same issue....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry, I should have linked the issues! Specifically adieuadieu/serverless-chrome#21 and serverless/serverless#3557
The problem is deploying executable files from Windows, because the Windows file system does not preserve the executable permission. My personal work-around is using Cloud 9 to deploy, but I imagine that Windows Linux Subsystem (Bash on Ubuntu on WIndows) would work too.
Hey @Huljo, Did it work with docker?