Skip to content
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

Docker Compose limiting action size to 512KB? #124

Open
jthomas opened this issue May 14, 2018 · 3 comments
Open

Docker Compose limiting action size to 512KB? #124

jthomas opened this issue May 14, 2018 · 3 comments

Comments

@jthomas
Copy link
Member

jthomas commented May 14, 2018

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?

@matthewpflueger
Copy link
Contributor

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

@jthomas
Copy link
Member Author

jthomas commented May 21, 2018

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

@megawer
Copy link

megawer commented Oct 25, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants