question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting EACCES error message on lambda

See original GitHub issue

Hello,

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
SidneyNemzercommented, Nov 26, 2018

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.

0reactions
zolbayarscommented, Feb 17, 2020

Hey @Huljo, Did it work with docker?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found