No I haven’t. Thanks for pointing this out. I will look into it.

Thank you,

Jan

From: David Davis <[email protected]>
Sent: Tuesday, August 17, 2021 5:07 PM
To: Jan David <[email protected]>
Cc: [email protected]
Subject: Re: [Pulp-list] Pulp 3 docker: Request Entity Too Large

Have you considered using the chunked upload api? It was developed to deal with 
this problem.

The pulp-cli uses it by default when uploading artifacts:

    pulp artifact upload --file test.rpm

David


On Tue, Aug 17, 2021 at 10:54 AM Jan David 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

I’m running the docker version of Pulp 3 (3.13 to be specific).

The nginx configuration in the docker container does not allow large files 
(packages) to be uploaded. If an (rpm) package is too large, you’ll receive an 
error “Request Entity Too Large”.

I’ve worked around this by modifying the nginx config as so:

location /pulp/api/v3/ {
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header Host $http_host;
            # we don't want nginx trying to do something clever with
            # redirects, we set the Host: header above already.
            proxy_redirect off;
            proxy_pass http://pulp-api;
            client_max_body_size 500m;
        }

As can be seen, the client_max_body size was increased to 500m.

Is there an easier way to change this via a parameter? Otherwise, I would have 
to tweak the docker config manually each time I want to use a newer version of 
the container.

Thank you,

J. David

PS: The error is:

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



Jan David
unix engineer
Brussels Airport Company
Tel
Mobile
[Brussels Airport 
Company]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.brusselsairport.be%2Fen%2Fpassengers&data=04%7C01%7Cjan.david%40brusselsairport.be%7C650bde4d56654940a2d108d96190c2e4%7C1dbedab5849a4c839c4346581df437d8%7C0%7C0%7C637648096648066220%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=AuUUJgBw4nKiOWxdNU9fYWSS8yz5GNr3O1qn0vbu6WA%3D&reserved=0>
follow us on:
[https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-facebook.jpg]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fbrusselsairport&data=04%7C01%7Cjan.david%40brusselsairport.be%7C650bde4d56654940a2d108d96190c2e4%7C1dbedab5849a4c839c4346581df437d8%7C0%7C0%7C637648096648076176%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8b0gt4AsssPlfXaSxYn6C%2F8F%2BZH%2BU5tDz%2BKiWgVsqzo%3D&reserved=0>
[https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-twitter.jpg]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FBrusselsAirport&data=04%7C01%7Cjan.david%40brusselsairport.be%7C650bde4d56654940a2d108d96190c2e4%7C1dbedab5849a4c839c4346581df437d8%7C0%7C0%7C637648096648076176%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=C4cC7OBjP84cmHEBpcBGqzhftrHPo%2FFyPDNu%2FlLHNsA%3D&reserved=0>
[https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-linkedin.jpg]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fthe-brussels-airport-company-tbac&data=04%7C01%7Cjan.david%40brusselsairport.be%7C650bde4d56654940a2d108d96190c2e4%7C1dbedab5849a4c839c4346581df437d8%7C0%7C0%7C637648096648086129%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=DhQpNwKCZklGntVjoZfXfXPP3Xiw605Im%2Fu0LhRLI3k%3D&reserved=0>
[https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-instagram.jpg]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Finstagram.com%2Fbrusselsairport&data=04%7C01%7Cjan.david%40brusselsairport.be%7C650bde4d56654940a2d108d96190c2e4%7C1dbedab5849a4c839c4346581df437d8%7C0%7C0%7C637648096648086129%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=iirKWkBsYAGAyzxvpqbG6fupOxrqLBfG6MT%2BNWoQ8k4%3D&reserved=0>
[https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-youtube.jpg]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2FBrusselsairportBRU&data=04%7C01%7Cjan.david%40brusselsairport.be%7C650bde4d56654940a2d108d96190c2e4%7C1dbedab5849a4c839c4346581df437d8%7C0%7C0%7C637648096648086129%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=o0ESkn1WC%2FoczxtJ1PUPfn5I2FeBKi4vNHLuhCiOQD0%3D&reserved=0>
Company 
info<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.brusselsairport.be%2Fnl%2Fonze-luchthaven%2Fover-brussels-airport%2Fbrussels-airport-company%2Fthe-company&data=04%7C01%7Cjan.david%40brusselsairport.be%7C650bde4d56654940a2d108d96190c2e4%7C1dbedab5849a4c839c4346581df437d8%7C0%7C0%7C637648096648096082%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ggBU2xm1qvjOV2z05L6AdxnzAIiDErbbi6Pn9GWi8lo%3D&reserved=0>

Be green, keep it on the screen
_______________________________________________
Pulp-list mailing list
[email protected]<mailto:[email protected]>
https://listman.redhat.com/mailman/listinfo/pulp-list<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistman.redhat.com%2Fmailman%2Flistinfo%2Fpulp-list&data=04%7C01%7Cjan.david%40brusselsairport.be%7C650bde4d56654940a2d108d96190c2e4%7C1dbedab5849a4c839c4346581df437d8%7C0%7C0%7C637648096648096082%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=LU%2F82p0CHGg3vatzAd%2F5JeqX5OYakjUOOca5DTRbLzM%3D&reserved=0>
_______________________________________________
Pulp-list mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/pulp-list

Reply via email to