[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-misc
Subject:    RE: Error 413 Request Entity Too Large
From:       "Rowan  ()  Jetboy" <rowan () jetboy ! co ! uk>
Date:       2012-10-22 16:45:54
Message-ID: 001901cdb074$b4056600$1c103200$ () co ! uk
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Cheers Per. Nick Tailor's been helping out off-list as well, and I've ended
up with:

 

DAEMON_OPTS="-a :80 \

             -f /etc/varnish/varnish.vcl \

             -p http_req_size=65536 \

             -p http_resp_size=65536 \

             -p sess_workspace=262144 \

             -p thread_pool_min=250 \

             -p thread_pool_max=2000 \

             -s malloc,4G \

             -S /etc/varnish/secret \

             -T localhost:6082"

 

I tried increasing http_req_size and http_resp_size first, together with
http_req_hdr_len and http_resp_hdr_len, but I was still getting reports of
problems. Bumping up sess_workspace as well *seems* to have fixed things,
but time will tell. Another fix was to get the client to clear their
cookies, but I don't know whether this is a temporary or permanent solution.
The problem seemed to be isolated to IE/Windows, but included IE8/Windows XP
and IE9/Windows 7. I can't replicate the problem use virgin Windows installs
on VMs or other Windows boxes I have access to. The user with IE8/Windows
had no problem accessing the forum on a non-Windows tablet via the same ISP.
While having a (tentative) fix is great, I still don't know why these users
were having the problem in the first place.

 

Thanks to both.

 

 

From: Per Buer [mailto:perbu@varnish-software.com] 
Sent: 11 October 2012 13:06
To: rowan@jetboy.co.uk
Cc: varnish-misc@varnish-cache.org
Subject: Re: Error 413 Request Entity Too Large

 

On Mon, Oct 8, 2012 at 12:12 PM, Rowan @ Jetboy <rowan@jetboy.co.uk> wrote:

I've had a handful of complaints from my website users that they're seeing
the error below when trying to access an installation of the MyBB forum.

 

Error 413

Request Entity Too Large

Guru Meditation:

XID: 190197240

Varnish cache server

 

I'm not 100% sure but if memory serves me well you need to tweak this one:

 

       http_req_size

 

              . Units: bytes

 

              . Default: 32768

 

              Maximum  number  of  bytes  of  HTTP client request we will
deal

              with.  This is a limit on all bytes up to the double blank
line

              which  ends  the  HTTP  request.   The memory for the request
is

              allocated from the session workspace (param: sess_workspace)
and

              this parameter limits how much of that the request is allowed
to

              take up.


[Attachment #5 (text/html)]

<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=us-ascii"><meta name=Generator content="Microsoft Word 12 \
(filtered medium)"><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;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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 lang=EN-GB link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Cheers Per. Nick Tailor's \
been helping out off-list as well, and I've ended up with:<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>DAEMON_OPTS=&quot;-a :80 \
\<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
-f /etc/varnish/varnish.vcl \<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
-p http_req_size=65536 \<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
-p http_resp_size=65536 \<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
-p sess_workspace=262144 \<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
-p thread_pool_min=250 \<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
-p thread_pool_max=2000 \<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
-s malloc,4G \<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
-S /etc/varnish/secret \<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
-T localhost:6082&quot;<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>I \
tried increasing http_req_size and http_resp_size first, together with </span><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>http_req_hdr_len and \
http_resp_hdr_len, but I was still getting reports of problems. Bumping up \
sess_workspace as well *<b>seems</b>* to have fixed things, but time will tell. \
Another fix was to get the client to clear their cookies, but I don't know whether \
this is a temporary or permanent solution. The problem seemed to be isolated to \
IE/Windows, but included IE8/Windows XP and IE9/Windows 7. I can't replicate the \
problem use virgin Windows installs on VMs or other Windows boxes I have access to. \
The user with IE8/Windows had no problem accessing the forum on a non-Windows tablet \
via the same ISP. While having a (tentative) fix is great, I still don't know why \
these users were having the problem in the first place.<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Thanks to \
both.</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div \
style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p \
class=MsoNormal><b><span lang=EN-US \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span \
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Per Buer \
[mailto:perbu@varnish-software.com] <br><b>Sent:</b> 11 October 2012 \
13:06<br><b>To:</b> rowan@jetboy.co.uk<br><b>Cc:</b> \
varnish-misc@varnish-cache.org<br><b>Subject:</b> Re: Error 413 Request Entity Too \
Large<o:p></o:p></span></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>On Mon, Oct 8, 2012 at 12:12 PM, Rowan @ Jetboy &lt;<a \
href="mailto:rowan@jetboy.co.uk" target="_blank">rowan@jetboy.co.uk</a>&gt; \
wrote:<o:p></o:p></p><div><blockquote style='border:none;border-left:solid #CCCCCC \
1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>I've had a handful of \
complaints from my website users that they're seeing the error below when trying to \
access an installation of the MyBB forum.</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>&nbsp;</span><o:p></o:p></p><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Error \
413</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>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 \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Guru \
Meditation:</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>XID: \
190197240</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Varnish cache \
server</span><o:p></o:p></p></div></div></blockquote><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>I'm not 100% sure \
but if memory serves me well you need to tweak this one:<o:p></o:p></p></div><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><div><p class=MsoNormal>&nbsp; &nbsp; \
&nbsp; &nbsp;http_req_size<o:p></o:p></p></div><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &middot; Units: bytes<o:p></o:p></p></div><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &middot; Default: \
32768<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p \
class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Maximum &nbsp;number \
&nbsp;of &nbsp;bytes &nbsp;of &nbsp;HTTP client request we will \
deal<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; with. &nbsp;This is a limit on all bytes up to the double blank \
&nbsp;line<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; which &nbsp;ends &nbsp;the &nbsp;HTTP &nbsp;request. &nbsp; The \
memory for the request is<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; allocated from the session workspace (param: \
sess_workspace) and<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; this parameter limits how much of that the request is \
allowed to<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; take up.<span \
style='color:#1F497D'><o:p></o:p></span></p></div></div></div></div></body></html>



_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic