<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#44546A;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#44546A;mso-fareast-language:EN-US">No I haven’t. Thanks for pointing this out. I will look into it.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#44546A;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#44546A;mso-fareast-language:EN-US">Thank you,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#44546A;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#44546A;mso-fareast-language:EN-US">Jan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#44546A;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> David Davis <daviddavis@redhat.com>
<br>
<b>Sent:</b> Tuesday, August 17, 2021 5:07 PM<br>
<b>To:</b> Jan David <jan.david@brusselsairport.be><br>
<b>Cc:</b> Pulp-list@redhat.com<br>
<b>Subject:</b> Re: [Pulp-list] Pulp 3 docker: Request Entity Too Large<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Have you considered using the chunked upload api? It was developed to deal with this problem.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The pulp-cli uses it by default when uploading artifacts:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">    pulp artifact upload --file test.rpm<o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">David<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Tue, Aug 17, 2021 at 10:54 AM Jan David <<a href="mailto:jan.david@brusselsairport.be" target="_blank">jan.david@brusselsairport.be</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">Hi,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">I’m running the docker version of Pulp 3 (3.13 to be specific).</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">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”.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">I’ve worked around this by modifying the nginx config as so:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">location /pulp/api/v3/ {</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">            proxy_set_header X-Forwarded-Proto $scheme;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">            proxy_set_header Host $http_host;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">            # we don't want nginx trying to do something clever with</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">            # redirects, we set the Host: header above already.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">            proxy_redirect off;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">            proxy_pass
<a href="http://pulp-api" target="_blank">http://pulp-api</a>;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">            client_max_body_size 500m;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">        }</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">As can be seen, the client_max_body size was increased to 500m.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">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.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">Thank you,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">J. David</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt">PS: The error is:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"><html></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"><head><title>413 Request Entity Too Large</title></head></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"><body bgcolor="white"></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"><center><h1>413 Request Entity Too Large</h1></center></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"><hr><center>nginx/1.14.1</center></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"></body></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"></html></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:12.0pt"> </span></b><o:p></o:p></p>
</div>
<p><b><span style="font-size:12.0pt;color:#EE1825">Jan David</span></b><span style="font-size:12.0pt;color:black"><br>
unix engineer<br>
</span><b><span style="font-size:11.5pt;color:black">Brussels Airport Company</span></b><span style="font-size:12.0pt;color:black"><br>
<b>Tel</b> <br>
<b>Mobile</b> <br>
</span><a href="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" target="_blank"><span style="font-size:12.0pt;text-decoration:none"><img border="0" width="140" height="70" style="width:1.4583in;height:.7291in" id="_x0000_i1030" src="https://media.brusselsairport.be/bruweb/default/0001/20/Bac_Signature.png" alt="Brussels Airport Company"></span></a><span style="font-size:12.0pt;color:black"><br>
</span><b><span style="font-size:7.5pt;color:#201F1E">follow us on:</span></b><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="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" target="_blank"><span style="text-decoration:none"><img border="0" width="24" height="24" style="width:.25in;height:.25in" id="_x0000_i1029" src="https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-facebook.jpg"></span></a><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="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" target="_blank"><span style="text-decoration:none"><img border="0" width="24" height="24" style="width:.25in;height:.25in" id="_x0000_i1028" src="https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-twitter.jpg"></span></a><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="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" target="_blank"><span style="text-decoration:none"><img border="0" width="24" height="24" style="width:.25in;height:.25in" id="_x0000_i1027" src="https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-linkedin.jpg"></span></a><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="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" target="_blank"><span style="text-decoration:none"><img border="0" width="24" height="24" style="width:.25in;height:.25in" id="_x0000_i1026" src="https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-instagram.jpg"></span></a><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="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" target="_blank"><span style="text-decoration:none"><img border="0" width="24" height="24" style="width:.25in;height:.25in" id="_x0000_i1025" src="https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-youtube.jpg"></span></a><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="color:white"><a href="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" target="_blank"><b><span style="color:black;text-decoration:none">Company
 info</span></b></a></span><br>
<br>
<i>Be green, keep it on the screen</i><o:p></o:p></p>
</div>
<p class="MsoNormal">_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="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" target="_blank">https://listman.redhat.com/mailman/listinfo/pulp-list</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>