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

Error 500 on comments url #37

Closed
antrecu opened this Issue Feb 14, 2017 · 9 comments

Comments

Projects
None yet
4 participants
@antrecu

antrecu commented Feb 14, 2017

Hi,
thanks for sharing your configuration! i just started using it with a Drupal 8 site an everything seems to be working great except for the comments urls, what i mean is for example, a user posts a comment, an admin goes to the admin/content/comments url to see the list of approved/un-approved comments and clicks on any of the links i.e https://example.com/comment/19#comment-19, the server returns an error 500, when visiting the page without using the varnish server but pointing directly to the web-server (apache), the page loads normally with no problems

screen shot 2017-02-13 at 3 22 50 pm

hope you can provide some guide to fix this issue.
thank you!

@mattiasgeniar

This comment has been minimized.

Owner

mattiasgeniar commented Feb 14, 2017

I'm going to need a varnishlog output of such a failed HTTP call, can you provide that?

@antrecu

This comment has been minimized.

antrecu commented Feb 14, 2017

Hi Matias, thank you for your quick response! sure i have an output! not sure whats really going on, but tracing the issue i found out that disabling the Devel module "fixes" the issue. Seems to be a overflow issue, i also tried changing the workspace_client memory to 512k but no luck, only disabling Devel, lets access the comment pages through varnish

deamon config

/usr/sbin/varnishd -j unix,user=vcache -F -a :8080 -T 192.168.10.15:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,1G -p workspace_client=512k

log

LW@req 86 rxreq+PW@Start: 1487082335.510768 0.000000 0.000000)PW@Req: 1487082335.510768 0.000000 0.000000?W@127.0.0.1 48624W@GET
W@/comment/19 W@HTTP/1.1W@Host: antrecu.com_W@User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:51.0) Gecko/20100101 Firefox/51.0HW@Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 W@Accept-Language: en-US,en;q=0.5#W@Accept-Encoding: gzip, deflate, br3W@Referer: https://antrecu.com/admin/content/comment�W@Cookie: _ga=GA1.2.1412487976.1487082096; _gat=1; SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMW@Connection: keep-aliveW@Upgrade-Insecure-Requests: 1W@Cache-Control: max-age=0W@X-Forwarded-Proto: httpsgW@X-SSL-cipher: TLSv1.2/ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(128) Mac=AEADW@X-Forwarded-For: 186.4.166.172W@X-Forwarded-For: 186.4.166.172W@X-Forwarded-For: 186.4.166.172, 127.0.0.1<W@RECVW@Host: antrecu.comW@Host: antrecu.com
W@/comment/19�W@Cookie: _ga=GA1.2.1412487976.1487082096; _gat=1; SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyM�W@Cookie: _ga=GA1.2.1412487976.1487082096; _gat=1; SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyM�W@Cookie: _ga=GA1.2.1412487976.1487082096; _gat=1; SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyM�W@Cookie: _ga=GA1.2.1412487976.1487082096; _gat=1; SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyM�W@Cookie: _ga=GA1.2.1412487976.1487082096; _gat=1; SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMaW@Cookie: _gat=1; SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMaW@Cookie: _gat=1; SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyMYW@Cookie: SESS53d00b15e54ebf1b8fffd7fb77bdee4e=fIBoca5xwx7XL2Pb5YusXS60K7axQIUGpdxXANRooyM"W@Surrogate-Capability: key=ESI/1.0>W@hash#W@Accept-Encoding: gzip, deflate, brW@Accept-Encoding: gzipW@HASHW@lookupW@MISSW@fetchKW@bereq 88 fetch+PW@Fetch: 1487082337.220999 1.710231 1.710231 W@HTTP/1.1W@200@OK$W@Date: Tue, 14 Feb 2017 14:25:35 GMTW@Server: Apache/2.4.18 (Ubuntu)2W@Cache-Control: must-revalidate, no-cache, private$W@X-Drupal-Dynamic-Cache: UNCACHEABLE$W@Link: </node/6494>; rel="shortlink"-W@Link: </node/6494/delete>; rel="delete-form".0.)W@Link: </node/6494/edit>; rel="edit-form"TTP4W@Link: </node/6494/revisions>; rel="version-history";W@Link: </blog/install-composer-ubuntu-1604>; rel="revision"i+W@Link: </devel/node/6494>; rel="devel-load"h4W@Link: </devel/node/6494/render>; rel="devel-render"<W@Link: </devel/node/6494/definition>; rel="devel-definition"1W@Link: </node/6494/manage_display>; rel="display"0W@Link: </devel/node/6494/solr>; rel="devel-solr"2W@Link: </node/6494/devel/token>; rel="token-devel"K7$W@Link: </node/6494>; rel="shortlink"-W@Link: </node/6494/delete>; rel="delete-form"@)W@Link: </node/6494/edit>; rel="edit-form"rot4W@Link: </node/6494/revisions>; rel="version-history";W@Link: </blog/install-composer-ubuntu-1604>; rel="revision"+W@Link: </devel/node/6494>; rel="devel-load"r4W@Link: </devel/node/6494/render>; rel="devel-render"<W@Link: </devel/node/6494/definition>; rel="devel-definition"1W@Link: </node/6494/manage_display>; rel="display"ga=0W@Link: </devel/node/6494/solr>; rel="devel-solr"2W@Link: </node/6494/devel/token>; rel="token-devel"oy$W@Link: </node/6494>; rel="shortlink"-W@Link: </node/6494/delete>; rel="delete-form"=fI)W@Link: </node/6494/edit>; rel="edit-form"@4w@Link: </node/6494/revisions>; rel="version-history";W@Link: </blog/install-composer-ubuntu-1604>; rel="revision"y+W@Link: </devel/node/6494>; rel="devel-load";4W@Link: </devel/node/6494/render>; rel="devel-render"<W@Link: </devel/node/6494/definition>; rel="devel-definition"1W@Link: </node/6494/manage_display>; rel="display"=fI0W@Link: </devel/node/6494/solr>; rel="devel-solr"2W@Link: </node/6494/devel/token>; rel="token-devel"x7$W@Link: </node/6494>; rel="shortlink"-W@Link: </node/6494/delete>; rel="delete-form"fIB)W@Link: </node/6494/edit>; rel="edit-form"@4w@Link: </node/6494/revisions>; rel="version-history";W@Link: </blog/install-composer-ubuntu-1604>; rel="revision"b+W@Link: </devel/node/6494>; rel="devel-load"x4W@Link: </devel/node/6494/render>; rel="devel-render"<W@Link: </devel/node/6494/definition>; rel="devel-definition"1W@Link: </node/6494/manage_display>; rel="display"XS60W@Link: </devel/node/6494/solr>; rel="devel-solr"2W@Link: </node/6494/devel/token>; rel="token-devel"NRW@X-UA-Compatible: IE=edgeb15W@Content-language: enca5 W@X-Content-Type-Options: nosniffW@X-Frame-Options: SAMEORIGIN'W@Expires: Sun, 19 Nov 1978 05:00:00 GMTU/W@X-Generator: Drupal 8 (https://www.drupal.org)fW@Vary: Accept-EncodingYuW@Content-Encoding: gzip'W@Content-Type: text/html; charset=UTF-8eW@X-Varnish: 87S6W@Age: 0R8W@Via: 1.1 varnish-v4W@out of workspace (req)<W@DELIVER8W@X-Cache: MISSNRW@out of workspace (Req)08W@X-Cache-Hits: 0W@out of workspace (Req)>W@deliver-PW@Process: 1487082337.221068 1.710299 0.000068e4e8W@Accept-Ranges: bytesQIUW@out of workspace (Req) 8W@Transfer-Encoding: chunkedeW@out of workspace (Req)U
W@RES_MODE 88W@Connection: keep-alivebW@out of workspace (Req)PW@workspace_client overflow W@HTTP/1.13d0W@500@Internal Server Error2P
PW@Resp: 1487082337.221318 1.710549 0.000250CaQW@710 0 710 0 0 0MW@ashroot@

@mattiasgeniar

This comment has been minimized.

Owner

mattiasgeniar commented Feb 14, 2017

Looks like your error is out of workspace (req). I see you've increased the workspace_client, but this seems to be affected by sess_workspace more.

Try setting sess_workspace=262144, http_req_size=131072 and http_req_hdr_len=49152.

Let me know how that goes!

@antrecu

This comment has been minimized.

antrecu commented Mar 27, 2017

Hi Mattias, sorry for the late feedback.. I added the config params you mentioned except for the sess_workspace, since it's causing an error on Varnish 4, when restarting the service you get an "Unknown paramenter" error. (more info here: http://stackoverflow.com/questions/26788794/varnish-error-sess-workspace) and the error when accessing the page is still present. I'm pasting the new log for your review if possible:

root@inferno:/var/log/varnish# varnishlog -a -q "RespStatus >= 500 or BerespStatus >= 500"

  • << Request >> 32770
  • Begin req 32769 rxreq
  • Timestamp Start: 1490636807.599038 0.000000 0.000000
  • Timestamp Req: 1490636807.599038 0.000000 0.000000
  • ReqStart 127.0.0.1 52638
  • ReqMethod GET
  • ReqURL /comment/20
  • ReqProtocol HTTP/1.1
  • ReqHeader Host: dev.antrecu.com
  • ReqHeader Connection: keep-alive
  • ReqHeader Cache-Control: max-age=0
  • ReqHeader Upgrade-Insecure-Requests: 1
  • ReqHeader User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
  • ReqHeader Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
  • ReqHeader Accept-Encoding: gzip, deflate, sdch
  • ReqHeader Accept-Language: en-US,en;q=0.8
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; _ga=GA1.3.1330595453.1479559087
  • ReqHeader X-Forwarded-Proto: http
  • ReqHeader X-Forwarded-For: 192.168.10.110
  • ReqUnset X-Forwarded-For: 192.168.10.110
  • ReqHeader X-Forwarded-For: 192.168.10.110, 127.0.0.1
  • VCL_call RECV
  • ReqURL /comment/20
  • ReqHeader Surrogate-Capability: key=ESI/1.0
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; _ga=GA1.3.1330595453.1479559087
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; _ga=GA1.3.1330595453.1479559087
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; _ga=GA1.3.1330595453.1479559087
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; _ga=GA1.3.1330595453.1479559087
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; _ga=GA1.3.1330595453.1479559087
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; __atuvc=12%7C6%2C4%7C7; SESS687
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; SESS6874cd1170e17534e1947809b31
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; SESS6874cd1170e17534e1947809b31
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; SESS6874cd1170e17534e1947809b31
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; SESS6874cd1170e17534e1947809b31
  • ReqHeader Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; SESS6874cd1170e17534e1947809b31
  • ReqUnset Cookie: __zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; SESS6874cd1170e17534e1947809b31
  • ReqHeader Cookie: ;__zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; SESS6874cd1170e17534e1947809b3
  • ReqUnset Cookie: ;__zlcmid=dgg0qUtEWMLhnx; calltrk_referrer=direct; calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user; calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1; Drupal.tableDrag.showWeight=0; SESS6874cd1170e17534e1947809b3
  • ReqHeader Cookie: ;__zlcmid=dgg0qUtEWMLhnx;calltrk_referrer=direct;calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user;calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1;Drupal.tableDrag.showWeight=0;SESS6874cd1170e17534e1947809b31b5f4
  • ReqUnset Cookie: ;__zlcmid=dgg0qUtEWMLhnx;calltrk_referrer=direct;calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user;calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1;Drupal.tableDrag.showWeight=0;SESS6874cd1170e17534e1947809b31b5f4
  • ReqHeader Cookie: ;__zlcmid=dgg0qUtEWMLhnx;calltrk_referrer=direct;calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user;calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1;Drupal.tableDrag.showWeight=0; SESS6874cd1170e17534e1947809b31b5f
  • ReqUnset Cookie: ;__zlcmid=dgg0qUtEWMLhnx;calltrk_referrer=direct;calltrk_landing=http%3A//www.markschneiderdesign.antrecu.com/user;calltrk_session_id_186631921=f21eb789-b9db-4e4b-bec9-8d8e766ad7e1;Drupal.tableDrag.showWeight=0; SESS6874cd1170e17534e1947809b31b5f
  • ReqHeader Cookie: ; SESS6874cd1170e17534e1947809b31b5f4b=H2BdMAWtbF5rR8zcdZnE_908ADcDIb9LuY2ZzBsnq2A; SESS53d00b15e54ebf1b8fffd7fb77bdee4e=OpAvvggycp8hlm-1cssXEReh8RjIU2S7CJxmYGEjgAM;
  • ReqUnset Cookie: ; SESS6874cd1170e17534e1947809b31b5f4b=H2BdMAWtbF5rR8zcdZnE_908ADcDIb9LuY2ZzBsnq2A; SESS53d00b15e54ebf1b8fffd7fb77bdee4e=OpAvvggycp8hlm-1cssXEReh8RjIU2S7CJxmYGEjgAM;
  • ReqHeader Cookie: SESS6874cd1170e17534e1947809b31b5f4b=H2BdMAWtbF5rR8zcdZnE_908ADcDIb9LuY2ZzBsnq2A; SESS53d00b15e54ebf1b8fffd7fb77bdee4e=OpAvvggycp8hlm-1cssXEReh8RjIU2S7CJxmYGEjgAM
  • VCL_return pass
  • VCL_call HASH
  • VCL_return lookup
  • VCL_call PASS
  • VCL_return fetch
  • Link bereq 32771 pass
  • Timestamp Fetch: 1490636808.362986 0.763948 0.763948
  • RespProtocol HTTP/1.1
  • RespStatus 200
  • RespReason OK
  • RespHeader Date: Mon, 27 Mar 2017 17:46:47 GMT
  • RespHeader Server: Apache/2.4.18 (Ubuntu)
  • RespHeader Cache-Control: must-revalidate, no-cache, private
  • RespHeader X-Drupal-Dynamic-Cache: UNCACHEABLE
  • RespHeader Link: </node/6493>; rel="shortlink"
  • RespHeader Link: </node/6493/delete>; rel="delete-form"
  • RespHeader Link: </node/6493/edit>; rel="edit-form"
  • RespHeader Link: </node/6493/revisions>; rel="version-history"
  • RespHeader Link: </blog/run-php7-fpm-apache-mpmevent-ubuntu-1604>; rel="revision"
  • RespHeader Link: </devel/node/6493>; rel="devel-load"
  • RespHeader Link: </devel/node/6493/render>; rel="devel-render"
  • RespHeader Link: </devel/node/6493/definition>; rel="devel-definition"
  • RespHeader Link: </node/6493/manage_display>; rel="display"
  • RespHeader Link: </devel/node/6493/solr>; rel="devel-solr"
  • RespHeader Link: </node/6493/devel/token>; rel="token-devel"
  • RespHeader Link: </node/6493>; rel="shortlink"
  • RespHeader Link: </node/6493/delete>; rel="delete-form"
  • RespHeader Link: </node/6493/edit>; rel="edit-form"
  • RespHeader Link: </node/6493/revisions>; rel="version-history"
  • RespHeader Link: </blog/run-php7-fpm-apache-mpmevent-ubuntu-1604>; rel="revision"
  • RespHeader Link: </devel/node/6493>; rel="devel-load"
  • RespHeader Link: </devel/node/6493/render>; rel="devel-render"
  • RespHeader Link: </devel/node/6493/definition>; rel="devel-definition"
  • RespHeader Link: </node/6493/manage_display>; rel="display"
  • RespHeader Link: </devel/node/6493/solr>; rel="devel-solr"
  • RespHeader Link: </node/6493/devel/token>; rel="token-devel"
  • RespHeader Link: </node/6493>; rel="shortlink"
  • RespHeader Link: </node/6493/delete>; rel="delete-form"
  • RespHeader Link: </node/6493/edit>; rel="edit-form"
  • RespHeader Link: </node/6493/revisions>; rel="version-history"
  • RespHeader Link: </blog/run-php7-fpm-apache-mpmevent-ubuntu-1604>; rel="revision"
  • RespHeader Link: </devel/node/6493>; rel="devel-load"
  • RespHeader Link: </devel/node/6493/render>; rel="devel-render"
  • RespHeader Link: </devel/node/6493/definition>; rel="devel-definition"
  • RespHeader Link: </node/6493/manage_display>; rel="display"
  • RespHeader Link: </devel/node/6493/solr>; rel="devel-solr"
  • RespHeader Link: </node/6493/devel/token>; rel="token-devel"
  • RespHeader Link: </node/6493>; rel="shortlink"
  • RespHeader Link: </node/6493/delete>; rel="delete-form"
  • RespHeader Link: </node/6493/edit>; rel="edit-form"
  • RespHeader Link: </node/6493/revisions>; rel="version-history"
  • RespHeader Link: </blog/run-php7-fpm-apache-mpmevent-ubuntu-1604>; rel="revision"
  • RespHeader Link: </devel/node/6493>; rel="devel-load"
  • RespHeader Link: </devel/node/6493/render>; rel="devel-render"
  • RespHeader Link: </devel/node/6493/definition>; rel="devel-definition"
  • RespHeader Link: </node/6493/manage_display>; rel="display"
  • RespHeader Link: </devel/node/6493/solr>; rel="devel-solr"
  • RespHeader Link: </node/6493/devel/token>; rel="token-devel"
  • RespHeader X-UA-Compatible: IE=edge
  • RespHeader Content-language: en
  • RespHeader X-Content-Type-Options: nosniff
  • RespHeader X-Frame-Options: SAMEORIGIN
  • RespHeader Expires: Sun, 19 Nov 1978 05:00:00 GMT
  • RespHeader X-Generator: Drupal 8 (https://www.drupal.org)
  • RespHeader Vary: Accept-Encoding
  • RespHeader Content-Encoding: gzip
  • RespHeader Content-Type: text/html; charset=UTF-8
  • RespHeader X-Varnish: 32770
  • RespHeader Age: 0
  • LostHeader Via: 1.1 varnish-v4
  • Error out of workspace (req)
  • VCL_call DELIVER
  • LostHeader X-Varnish-Cache: MISS
  • Error out of workspace (Req)
  • RespUnset Cache-Control: must-revalidate, no-cache, private
  • RespHeader Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0
  • LostHeader X-Cache-Hits: 0
  • Error out of workspace (Req)
  • VCL_return deliver
  • Timestamp Process: 1490636808.363038 0.764000 0.000052
  • LostHeader Accept-Ranges: bytes
  • Error out of workspace (Req)
  • LostHeader Transfer-Encoding: chunked
  • Error out of workspace (Req)
  • Debug "RES_MODE 8"
  • LostHeader Connection: keep-alive
  • Error out of workspace (Req)
  • Error workspace_client overflow
  • RespProtocol HTTP/1.1
  • RespStatus 500
  • RespReason Internal Server Error
  • Timestamp Resp: 1490636808.363100 0.764062 0.000062
  • ReqAcct 955 0 955 0 0 0
  • End

varnish-status

Thank you!!!

@mattiasgeniar

This comment has been minimized.

Owner

mattiasgeniar commented Mar 28, 2017

Ow, Varnish 4, my bad. Please add the following;

             -p http_req_size=32768 \
             -p http_req_hdr_len=8192

Increase those values as you debug, they determine;

http_req_size: Maximum number of bytes of HTTP client request we will deal with.
http_req_hdr_len: Maximum length of any HTTP client request header we will allow. The limit is inclusive its continuation lines.
@antrecu

This comment has been minimized.

antrecu commented Mar 29, 2017

Hi Mattias! thanks once again for your support!

unfortunately i can't get rid of this weird issue, i've tried multiple combinations on the parameters you suggested and included other combinations as well to see if that might fix the issue. i tried combinations like this one for example:

-p workspace_client=4096k
-p workspace_backend=4096k
-p http_req_size=64000
-p http_req_hdr_len=32000
-p feature=+esi_disable_xml_check

but no matter what values you set for the varnish daemon theres no way to access the /comment/19#comment-19 URL on this specific Drupal 8 site (lets call it site A).

I tried on a new Drupal 8 install ( fresh install, lets call it site B ) with similar Drupal modules enabled as site A and with a standard daemon params for varnish:

-p workspace_client=512k
-p feature=+esi_disable_xml_check

and the comments url (i.e comment/19#comment-19) on site B is completely accesible! Which makes me think that is either a some sort of combination of modules on site A that break varnish no matter what configuration you set for the deamon ( which makes no much sense ) or is a Varnish 4.1 bug on the Ubuntu package.
Apparently this issue is already reported on the varnish community, https://www.varnish-cache.org/lists/pipermail/varnish-misc/2016-February/024837.html
I'll keep looking into this and get back to you if i can find a solution. On the other hand your VCL config is working great!

if you have the time eventually to go over this, here's the guide i followed (which includes your vcl) to setup the environment where im doing my tests,
https://antrecu.com/blog/advanced-drupal-8-cache-pound-varnish-4-ubuntu

Thank you!!

Andres.

@fiasco

This comment has been minimized.

fiasco commented May 25, 2017

I used this patch for Drupal 8 to help get around this problem (though I'd like to know how to get Varnish to handle this).

@mattiasgeniar

This comment has been minimized.

Owner

mattiasgeniar commented May 27, 2017

I don't think Varnish will ever handle this, it adheres to the HTTP protocol, and those duplicate headers violate that protocol. Only (*) the Set-Cookie header is allowed to be duplicate.

The only fix is in the code, which you did: you should be good now. :-)

(*) Could be more, but I doubt it.

@cherouvim

This comment has been minimized.

cherouvim commented Jul 17, 2018

Sovled it with -p http_max_hdr=256. Default is 64 and that was not enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment