clearml
clearml copied to clipboard
413 Request Entity Too Large
when I try to log an image I get this error:
clearml.metrics - WARNING - Failed uploading to
[...]
<html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>
I assume it's because the image is too big, how can I fix the issue? I want to upload high-res images
Hi @davidenitti,
What ClearML Server are you using? Also, how bug is the typical image?
I'm using the self-hosted clearml server, the image is around 3000x4000
I think this can be controlled using the nginx client_max_body_size 0;
setting - that would require changing the nginx configuration (so basically a rebuild of the docker)
I'm assuming you're using the built-in fileserver, right? What's the URL configured to it in your clearml.conf
?
thanks I fixed it with your suggestion
Is it something you can do a PR on? 🙂
Hi,
In fact, the problem was solved by adding the annotation nginx.ingress.kubernetes.io/proxy-body-size=50m
at the level of the ingress files. Adding annotations is already supported in the helm chart.
I think it might be worthwhile having as a default in the helm chart, perhaps with the value 0
(unlimited) - WDYT?
I agree with you there is no point in puttin restriction on upload size. So we can put unlimited by default.
As the web application deployed in a nginx server and the service is behind an ingress, we have to put client_max_body_size 0;
in two places :
- in the config map used by the nginx-controller as described [here](client_max_body_size 0;).
- in the /etc/nginx/nginx.conf of the web server.