openwhisk-devtools icon indicating copy to clipboard operation
openwhisk-devtools copied to clipboard

Docker Compose limiting action size to 512KB?

Open jthomas opened this issue 6 years ago • 3 comments

User has reported an issue deploying larger actions with error returned: 413 Request Entity Too Large.

I've started devtools using docker compose and can reproduce the issue using the following command.

mkfile -n 512k source.js; ls -lh source.js; wsk action create test --kind nodejs:6 source.js -v

This is the response body from the CLI command.

<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>openresty/1.13.6.1</center>
</body>
</html>

Using a file with less than 512KB doesn't have this issue, e.g. mkfile -n 511k. Looks like the default body size configuration from nginx in the api gateway service could be set as 512k? https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size

If this is correct, can we update it to be the same as the maximum file size (48MB) for actions?

jthomas avatar May 14 '18 11:05 jthomas

Any workaround for this? This issue prevents me from using openwhisk locally...

matthewpflueger avatar May 16 '18 19:05 matthewpflueger

@matthewpflueger Have you tried setting that configuration value for NGINX to a higher default and seeing if that helps?

jthomas avatar May 21 '18 13:05 jthomas

Is there an update on this issue? I am facing the same and can't resolve it...

megawer avatar Oct 25 '18 11:10 megawer