-
Notifications
You must be signed in to change notification settings - Fork 233
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
Request too large when create action #760
Comments
I'm running on AWS EC2, will it be a problem? |
You need to increase the nginx config and akka-http configuration. |
@style95 Sorry about the late reply, but after changing those two files and set the limitition to ~100M, it still has the same output of request too large problem. I've recreated a KinD cluster and redeployed whisk but seems the problem still exists. Shall I clean up anything else after changing the configurations? |
Did you rebuild the images with those configurations? |
@style95 Yes, I've restarted the whole process. But I was using |
openwhisk has the hard 48mb attachment limit and i'm pretty sure that includes base64 encoding so the true limit is actually like a third lower |
@bdoyle0182 Yes, actually this is the case I'm facing, I'm just wondering since deploying from source code can relax this limits by editing configurations, how can I do the same when deploying helm charts? |
the 48mb limit is actually hard coded in code right now I'm pretty sure, how are you modifying it? it's the one thing that can't really be configured besides the 1mb payload limit |
You can use the From
|
@bdoyle0182 So I guess it is not actually a problem of nginx size limit but a size limit of packaged uploaded in openwhisk it self right? Let me see if decreasing the size settings in |
Dom might be right here you are hitting a higher level limit first based on your error logs either with nginx configuration or an akka http configuration before actually entering the openwhisk create action route. Though once past that I think you may still hit the error I posted above for the package in question due to the base64 encoding putting it over 48mb, not 100% sure. |
@style95 Things got weird here actually, I've tried to minimize nginx size limit in This is how my configuration looks like:
|
@bdoyle0182 I guess there might be multiple limits here, however, I suspect there might be something wrong when customizing the deployment following the instructions, hopefully I did not miss any steps but I think |
I think you should revised the openwhisk scala source code |
@Farrrrland Did you try rebuilding the OpenWhisk source code after updating the |
Hi, I've found that OpenWhisk keep telling me the request size is too large when I try creating an action with zip file ~40MB large (base64 format will be ~52MB).
wsk action create gmm --kind python:3 --main media_meta get-media-meta.zip -i -v
The error looks like:
The file size is as follows:
$ ls -lh total 46M -rw-rw-r-- 1 ec2-user ec2-user 39M Mar 8 11:43 get-media-meta.zip -rw-rw-r-- 1 ec2-user ec2-user 898 Mar 8 11:42 __main__.py -rw-rw-r-- 1 ec2-user ec2-user 7.3M Mar 18 2019 mp4_test_yewen.mp4 -rw-rw-r-- 1 ec2-user ec2-user 19 Mar 7 08:40 requirements.txt drwxrwxr-x 5 ec2-user ec2-user 77 Mar 8 06:44 virtualenv $ base64 get-media-meta.zip > temp $ ls -lh total 98M -rw-rw-r-- 1 ec2-user ec2-user 39M Mar 8 11:43 get-media-meta.zip -rw-rw-r-- 1 ec2-user ec2-user 898 Mar 8 11:42 __main__.py -rw-rw-r-- 1 ec2-user ec2-user 7.3M Mar 18 2019 mp4_test_yewen.mp4 -rw-rw-r-- 1 ec2-user ec2-user 19 Mar 7 08:40 requirements.txt -rw-rw-r-- 1 ec2-user ec2-user 52M Mar 8 13:29 temp drwxrwxr-x 5 ec2-user ec2-user 77 Mar 8 06:44 virtualenv
I've changed
nginx.ingress.kubernetes.io/proxy-body-size: "100m"
when deploying but it seems not solving the problem. Smaller size zip files are working fine, but I'm not so sure how can I use a larger file to create my actions?The text was updated successfully, but these errors were encountered: