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

413 Request Entity Too Large #15823

Closed
xiongyunhua-star opened this issue Oct 20, 2021 · 3 comments
Closed

413 Request Entity Too Large #15823

xiongyunhua-star opened this issue Oct 20, 2021 · 3 comments
Assignees

Comments

@xiongyunhua-star
Copy link

What can we help you?
docker push error,info: 413 Request Entity Too Large

harbor version:
harbor harbor-offline-installer-v2.2.2.tgz

nginx.config:
[root@xyh-harbor-single-host nginx]# pwd
/root/harbor/common/config/nginx
[root@xyh-harbor-single-host nginx]# ls
conf.d nginx.conf
[root@xyh-harbor-single-host nginx]# grep client nginx.conf
client_body_temp_path /tmp/client_body_temp;
client_max_body_size 0;

error info:
[root@xyh-gitlab ~]# docker push 10.0.0.87/s2i/tomcat:8
The push refers to a repository [10.0.0.87/s2i/tomcat]
aa3d17275dd0: Pushed
c190c471d474: Pushed
82ec57a337a5: Pushing [==================================================>] 18.98 MB
ecf2a68d58aa: Pushed
211736d7fc9d: Pushing [==================================================>] 342.7 MB/342.7 MB
62a5b8741e83: Pushing [==================================================>] 512 B
36e0782f1159: Waiting
ba6e5ff31f23: Waiting
9f9f651e9303: Waiting
0b3c02b5d746: Waiting
62a747bf1719: Waiting
error parsing HTTP 413 response body: invalid character '<' looking for beginning of value: "\r\n<title>413 Request Entity Too Large</title>\r\n<body bgcolor="white">\r\n

413 Request Entity Too Large

\r\n
nginx/1.14.2\r\n\r\n\r\n"

@heww
Copy link
Contributor

heww commented Oct 25, 2021

What is the size of your image? Is there an Nginx proxy before the Nginx container of the harbor?

If there is an nginx proxy before the nginx container of the harbor, please set the proxy body size to 0 for harbor nginx container in the front nginx proxy.

@heww heww self-assigned this Oct 25, 2021
@xiongyunhua-star
Copy link
Author

Have a nginx proxy. set a client_max_body_size.
It has been solved

@LinuxSuRen
Copy link

Have a nginx proxy. set a client_max_body_size. It has been solved

But how to set the via helm chart?

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

No branches or pull requests

3 participants