aheckmann / gm

GraphicsMagick for node
http://aheckmann.github.com/gm/
6.95k stars 616 forks source link

Permission denied for gm binaries installed within AWS Lambda #762

Closed basimhennawi closed 5 years ago

basimhennawi commented 5 years ago

I'm using GraphicsMagick in my Lambda function (NodeJs 8.10) , for that I need to install both:

To get the gm binaries on the Lambda, after some googling/stackingoverflow, get to create this github gist that states what I did briefly as follow:

Now the problem is that I got "Stream yields empty buffer" error whenever I used and manipulating method from gm, for that needed to check if my installed binaries there is correct, so added the following in my lambda handler function:

const exec = require('child_process').exec;
exec("gm -help", console.log)

And got the following "Permission denied" error as shown below:

enter image description here

Any clue? Thanks in advance!

basimhennawi commented 5 years ago

Got it solved! Too much details to list here. Gonna close it.

KempfCreative commented 5 years ago

@basimhennawi can you elaborate somewhere else? I too have this use case and issue :)

puneeth8994 commented 5 years ago

@basimhennawi Facing the same issue, what was your final folder structure? and can you elaborate a bit on the issue?