-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Connection aborted.', error(32, 'Broken pipe' when uploading ImageMagick #246
Comments
The |
Still getting the same error. |
Ok, I'll take a look and see if I can repro. |
Any update on this? |
I am able to reproduce this issue. What is happening is Lambda only allows for a 50 MB deployment package. So if the deployment package is over 50 MB, the service will try to send an error message back about the deployment package and abort the connection. For this case though, the aborted connection happens as chalice is still sending data before the error message is returned resulting in a general connection error. Unfortunately, there is not really much we can do to make the deployment actually go through given Lambda controls the deployment size limit. While there may be optimizations chalice could make to decrease the deployment size, I think it is important at the very least to detect this error and raise a more informative error related to the deployment package being too large. |
I'm using Moviepy to make captioned videos on the python Lambda. ImageMagick is a dependency of Moveipy and comes preinstalled on Lambda, which would be great; however, when I try to create a frame using moviepy.TextClip, I get the following error:
I googled forever and it looks like the problem is fallout from https://alas.aws.amazon.com/ALAS-2016-699.html. "This update contains an updated /etc/ImageMagick/policy.xml file that disables the EPHEMERAL, HTTPS, HTTP, URL, FTP, MVG, MSL, TEXT, and LABEL coders."
It also says, "if you experience any problems after the update, it may be necessary to manually adjust the policy.xml file to match your requirements." But I can't do that on Lambda.
StackOverflow folks suggest repackaging lambda and uploading it to Lambda yourself (http://stackoverflow.com/questions/37046586/aws-lambda-not-working-along-with-the-gm-module) but whenever I add ImageMagick to the vendor folder and try to deploy I get a broken pipe error from Botocore
The text was updated successfully, but these errors were encountered: