Mailing List Archive

#1731: 4.0.3 Panic
#1731: 4.0.3 Panic
---------------------------------+----------------------
Reporter: billnbell | Type: defect
Status: new | Priority: highest
Milestone: Varnish 4.0 release | Component: varnishd
Version: unknown | Severity: normal
Keywords: |
---------------------------------+----------------------
root@ip-10-250-1-184:/var/log# varnishadm
200
-----------------------------
Varnish Cache CLI 1.0
-----------------------------
Linux,3.2.0-4-amd64,x86_64,-smalloc,-smalloc,-hcritbit
varnish-4.0.3 revision b8c4a34

Type 'help' for command list.
Type 'quit' to close CLI session.

varnish> panic.show
200
Last panic at: Mon, 04 May 2015 20:38:19 GMT
Assert error in Tcheck(), cache/cache.h line 1296:
Condition((t.b) != 0) not true.
thread = (cache-worker)
version = varnish-4.0.3 revision b8c4a34
ident = Linux,3.2.0-4-amd64,x86_64,-smalloc,-smalloc,-hcritbit,epoll
Backtrace:
0x435424: /usr/sbin/varnishd() [0x435424]
0x40e7e8: /usr/sbin/varnishd() [0x40e7e8]
0x429e33: /usr/sbin/varnishd() [0x429e33]
0x42c856: /usr/sbin/varnishd(http_FilterResp+0x86) [0x42c856]
0x420d3e: /usr/sbin/varnishd() [0x420d3e]
0x42142f: /usr/sbin/varnishd() [0x42142f]
0x438301: /usr/sbin/varnishd(Pool_Work_Thread+0x381) [0x438301]
0x44b29d: /usr/sbin/varnishd() [0x44b29d]
0x7f1f2da24b50: /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50)
[0x7f1f2da24b50]
0x7f1f2d76e95d: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)
[0x7f1f2d76e95d]
busyobj = 0x7f1f0a94e020 {
ws = 0x7f1f0a94e0e0 { OVERFLOW
id = ""o",
{s,f,r,e} = {0x7f1f0a951400,+52256,(nil),+52256},
},
refcnt = 2
retries = 5
failed = 0
state = 1
is_do_stream
is_do_pass
is_uncacheable
bodystatus = 3 (length),
},
http[bereq] = {
ws = 0x7f1f0a94e0e0["o]
"GET",
"/provider-search-
directory/search?what=pain+management+&where=New+York%2C+NY&DeviceLocationLatitude=40.6638&DeviceLocationLongitude=-73.938141&SearchLocationLatitude=40.71455&SearchLocationLongitude=-74.007118&Specialty=&SpecialtyId=&SearchCity=&SearchState=&SearchZip=&SearchFormattedAddress=New+York%2C+NY&DidAskForLocation=&DeviceLocationName=&WasSearchByAddress=true&lat=&lon=&SearchType=",
"HTTP/1.1",
"host: www.healthgrades.com",
"Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"Accept-Encoding: gzip,deflate,sdch",
"Accept-Language: en-US,en;q=0.8",
"Cookie:
__gads=ID=6363003f23801784:T=1430758616:S=ALNI_MZcbf6Mv8nOPKmRJDgdzsPZgrEBHg;
__utmt=1; __utmt_b=1; hg.omniture=Desktop|Se010fafa338d92d0;
msession=Sac9fe9d13044a20;
mbox=PC#1430758615257-738325.17_65#1431981465|session#1430771543694-639832#1430773725|check#true#1430771925;
s_vi=[CS]v1|2AA3D26C05011824-400001092003671B[CE];
__utma=236544792.2001808011.1430758616.1430764531.1430771545.3;
__utmb=236544792.4.10.1430771545; __utmc=236544792;
__utmz=236544792.1430758616.1.1.utmcsr=bing|utmccn=(organic)|utmcmd=organic|utmctr=dr.%20S%20Kundi;
save.complete.show.pwid=;
QSI_HistorySession=http%3A%2F%2Fwww.healthgrades.com%2Fphysician%2Fdr-
samiullah-kundi-y8w6d%2Frate-
doctor~1430771549550%7Chttp%3A%2F%2Fwww.healthgrades.com%2Ffind-a-doctor~1430771868179;
where=%7B%22pt%22%3A%2240.71455%2C-74.007118%22%2C%22displayText%22%3A%22New%20York%2C%20NY%22%2C%22selectedText%22%3A%22New%20York%2C%20NY%22%7D;
searchMode=providers; what=pain%20management%20;
s_pers=%20s_firstvisit%3D1430758645862%7C1588438645862%3B%20s_firstvisit_s%3DFirst%2520Visit%7C1430760805392%3B%20s_nr%3D1430771884563-Repeat%7C1433363884563%3B%20s_lastvisit%3D1430771884578%7C1525379884578%3B%20s_lastvisit_s%3DLess%2520than%25201%2520day%7C1430773684578%3B;
s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dhgprod%253D%252526pid%25253Dsearch%2525253A%25252520doctor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A%2525252F%2525252Fwww.healthgrades.com%2525252Ffind-a-doctor%25252523_8%252526oidt%25253D1%252526ot%25253DA%252526oi%25253D1%3B",
"Referer: http://www.healthgrades.com/find-a-doctor",
"User-Agent: Mozilla/5.0 (Linux; Android 5.0; SAMSUNG-SM-G870A
Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.1
Chrome/34.0.1847.76 Mobile Safari/537.36",
"Via: HTTP/1.1 chcnz01msp4ts07.wnsnet.attws.com",
"x-wap-profile: "http://wap.samsungmobile.com/uaprof/SM-
G870A.xml"",
"X-Forwarded-Port: 80",
"X-Forwarded-Proto: http",
"X-Forwarded-For: 107.77.83.120, 10.250.0.75",
"X-Backend-Type: m",
"X-Varnish: 12877833",
"X-Varnish: 10944621",
"X-Varnish: 10944622",
"X-Varnish: 10944623",
"X-Varnish: 10944624",
},
http[beresp] = {
ws = 0x7f1f0a94e0e0["o]
"HTTP/1.1",
"Internal Server Error",
"Server: Varnish",
},
ws = 0x7f1f0a94e270 {
id = "obj",
{s,f,r,e} = {0x7f1f07faa2c8,0x7f1f07faa2c8,(nil),+56},
},
objcore (FETCH) = 0x7f1f07ec1020 {
refcnt = 2
flags = 0x106
objhead = 0x7f1f2cc50500
}
obj (FETCH) = 0x7f1f07faa180 {
vxid = 2158428272,
http[obj] = {
ws = 0x7f1f0a94e270[obj]
"HTTP/1.1",
},
len = 0,
store = {
},
},
}

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1731>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1731: 4.0.3 Panic [ In reply to ]
#1731: 4.0.3 Panic
-----------------------+----------------------------------
Reporter: billnbell | Owner:
Type: defect | Status: new
Priority: highest | Milestone: Varnish 4.0 release
Component: varnishd | Version: unknown
Severity: normal | Resolution:
Keywords: |
-----------------------+----------------------------------

Comment (by billnbell):

Not sure why we get this on retry. We confirmed that is happens on
retry... The only thing that looks weird is:

"x-wap-profile: "http://wap.samsungmobile.com/uaprof/SM-G870A.xml"",

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1731#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1731: 4.0.3 Panic [ In reply to ]
#1731: 4.0.3 Panic
-----------------------+----------------------------------
Reporter: billnbell | Owner:
Type: defect | Status: new
Priority: highest | Milestone: Varnish 4.0 release
Component: varnishd | Version: unknown
Severity: normal | Resolution:
Keywords: |
-----------------------+----------------------------------

Comment (by billnbell):

Also, this looks weird:

"X-Varnish: 12877833", "X-Varnish: 10944621", "X-Varnish: 10944622",
"X-Varnish: 10944623", "X-Varnish: 10944624",

AND

"Via: HTTP/1.1 chcnz01msp4ts07.wnsnet.attws.com"

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1731#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1731: 4.0.3 Panic [ In reply to ]
#1731: 4.0.3 Panic
-----------------------+----------------------------------
Reporter: billnbell | Owner:
Type: defect | Status: new
Priority: highest | Milestone: Varnish 4.0 release
Component: varnishd | Version: 4.0.3
Severity: normal | Resolution:
Keywords: |
-----------------------+----------------------------------
Changes (by fgsch):

* version: unknown => 4.0.3


Old description:

> root@ip-10-250-1-184:/var/log# varnishadm
> 200
> -----------------------------
> Varnish Cache CLI 1.0
> -----------------------------
> Linux,3.2.0-4-amd64,x86_64,-smalloc,-smalloc,-hcritbit
> varnish-4.0.3 revision b8c4a34
>
> Type 'help' for command list.
> Type 'quit' to close CLI session.
>
> varnish> panic.show
> 200
> Last panic at: Mon, 04 May 2015 20:38:19 GMT
> Assert error in Tcheck(), cache/cache.h line 1296:
> Condition((t.b) != 0) not true.
> thread = (cache-worker)
> version = varnish-4.0.3 revision b8c4a34
> ident = Linux,3.2.0-4-amd64,x86_64,-smalloc,-smalloc,-hcritbit,epoll
> Backtrace:
> 0x435424: /usr/sbin/varnishd() [0x435424]
> 0x40e7e8: /usr/sbin/varnishd() [0x40e7e8]
> 0x429e33: /usr/sbin/varnishd() [0x429e33]
> 0x42c856: /usr/sbin/varnishd(http_FilterResp+0x86) [0x42c856]
> 0x420d3e: /usr/sbin/varnishd() [0x420d3e]
> 0x42142f: /usr/sbin/varnishd() [0x42142f]
> 0x438301: /usr/sbin/varnishd(Pool_Work_Thread+0x381) [0x438301]
> 0x44b29d: /usr/sbin/varnishd() [0x44b29d]
> 0x7f1f2da24b50: /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50)
> [0x7f1f2da24b50]
> 0x7f1f2d76e95d: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)
> [0x7f1f2d76e95d]
> busyobj = 0x7f1f0a94e020 {
> ws = 0x7f1f0a94e0e0 { OVERFLOW
> id = ""o",
> {s,f,r,e} = {0x7f1f0a951400,+52256,(nil),+52256},
> },
> refcnt = 2
> retries = 5
> failed = 0
> state = 1
> is_do_stream
> is_do_pass
> is_uncacheable
> bodystatus = 3 (length),
> },
> http[bereq] = {
> ws = 0x7f1f0a94e0e0["o]
> "GET",
> "/provider-search-
> directory/search?what=pain+management+&where=New+York%2C+NY&DeviceLocationLatitude=40.6638&DeviceLocationLongitude=-73.938141&SearchLocationLatitude=40.71455&SearchLocationLongitude=-74.007118&Specialty=&SpecialtyId=&SearchCity=&SearchState=&SearchZip=&SearchFormattedAddress=New+York%2C+NY&DidAskForLocation=&DeviceLocationName=&WasSearchByAddress=true&lat=&lon=&SearchType=",
> "HTTP/1.1",
> "host: www.healthgrades.com",
> "Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
> "Accept-Encoding: gzip,deflate,sdch",
> "Accept-Language: en-US,en;q=0.8",
> "Cookie:
> __gads=ID=6363003f23801784:T=1430758616:S=ALNI_MZcbf6Mv8nOPKmRJDgdzsPZgrEBHg;
> __utmt=1; __utmt_b=1; hg.omniture=Desktop|Se010fafa338d92d0;
> msession=Sac9fe9d13044a20;
> mbox=PC#1430758615257-738325.17_65#1431981465|session#1430771543694-639832#1430773725|check#true#1430771925;
> s_vi=[CS]v1|2AA3D26C05011824-400001092003671B[CE];
> __utma=236544792.2001808011.1430758616.1430764531.1430771545.3;
> __utmb=236544792.4.10.1430771545; __utmc=236544792;
> __utmz=236544792.1430758616.1.1.utmcsr=bing|utmccn=(organic)|utmcmd=organic|utmctr=dr.%20S%20Kundi;
> save.complete.show.pwid=;
> QSI_HistorySession=http%3A%2F%2Fwww.healthgrades.com%2Fphysician%2Fdr-
> samiullah-kundi-y8w6d%2Frate-
> doctor~1430771549550%7Chttp%3A%2F%2Fwww.healthgrades.com%2Ffind-a-doctor~1430771868179;
> where=%7B%22pt%22%3A%2240.71455%2C-74.007118%22%2C%22displayText%22%3A%22New%20York%2C%20NY%22%2C%22selectedText%22%3A%22New%20York%2C%20NY%22%7D;
> searchMode=providers; what=pain%20management%20;
> s_pers=%20s_firstvisit%3D1430758645862%7C1588438645862%3B%20s_firstvisit_s%3DFirst%2520Visit%7C1430760805392%3B%20s_nr%3D1430771884563-Repeat%7C1433363884563%3B%20s_lastvisit%3D1430771884578%7C1525379884578%3B%20s_lastvisit_s%3DLess%2520than%25201%2520day%7C1430773684578%3B;
> s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dhgprod%253D%252526pid%25253Dsearch%2525253A%25252520doctor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A%2525252F%2525252Fwww.healthgrades.com%2525252Ffind-a-doctor%25252523_8%252526oidt%25253D1%252526ot%25253DA%252526oi%25253D1%3B",
> "Referer: http://www.healthgrades.com/find-a-doctor",
> "User-Agent: Mozilla/5.0 (Linux; Android 5.0; SAMSUNG-SM-G870A
> Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.1
> Chrome/34.0.1847.76 Mobile Safari/537.36",
> "Via: HTTP/1.1 chcnz01msp4ts07.wnsnet.attws.com",
> "x-wap-profile: "http://wap.samsungmobile.com/uaprof/SM-
> G870A.xml"",
> "X-Forwarded-Port: 80",
> "X-Forwarded-Proto: http",
> "X-Forwarded-For: 107.77.83.120, 10.250.0.75",
> "X-Backend-Type: m",
> "X-Varnish: 12877833",
> "X-Varnish: 10944621",
> "X-Varnish: 10944622",
> "X-Varnish: 10944623",
> "X-Varnish: 10944624",
> },
> http[beresp] = {
> ws = 0x7f1f0a94e0e0["o]
> "HTTP/1.1",
> "Internal Server Error",
> "Server: Varnish",
> },
> ws = 0x7f1f0a94e270 {
> id = "obj",
> {s,f,r,e} = {0x7f1f07faa2c8,0x7f1f07faa2c8,(nil),+56},
> },
> objcore (FETCH) = 0x7f1f07ec1020 {
> refcnt = 2
> flags = 0x106
> objhead = 0x7f1f2cc50500
> }
> obj (FETCH) = 0x7f1f07faa180 {
> vxid = 2158428272,
> http[obj] = {
> ws = 0x7f1f0a94e270[obj]
> "HTTP/1.1",
> },
> len = 0,
> store = {
> },
> },
> }

New description:

{{{
root@ip-10-250-1-184:/var/log# varnishadm
200
-----------------------------
Varnish Cache CLI 1.0
-----------------------------
Linux,3.2.0-4-amd64,x86_64,-smalloc,-smalloc,-hcritbit
varnish-4.0.3 revision b8c4a34

Type 'help' for command list.
Type 'quit' to close CLI session.

varnish> panic.show
200
Last panic at: Mon, 04 May 2015 20:38:19 GMT
Assert error in Tcheck(), cache/cache.h line 1296:
Condition((t.b) != 0) not true.
thread = (cache-worker)
version = varnish-4.0.3 revision b8c4a34
ident = Linux,3.2.0-4-amd64,x86_64,-smalloc,-smalloc,-hcritbit,epoll
Backtrace:
0x435424: /usr/sbin/varnishd() [0x435424]
0x40e7e8: /usr/sbin/varnishd() [0x40e7e8]
0x429e33: /usr/sbin/varnishd() [0x429e33]
0x42c856: /usr/sbin/varnishd(http_FilterResp+0x86) [0x42c856]
0x420d3e: /usr/sbin/varnishd() [0x420d3e]
0x42142f: /usr/sbin/varnishd() [0x42142f]
0x438301: /usr/sbin/varnishd(Pool_Work_Thread+0x381) [0x438301]
0x44b29d: /usr/sbin/varnishd() [0x44b29d]
0x7f1f2da24b50: /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b50)
[0x7f1f2da24b50]
0x7f1f2d76e95d: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)
[0x7f1f2d76e95d]
busyobj = 0x7f1f0a94e020 {
ws = 0x7f1f0a94e0e0 { OVERFLOW
id = ""o",
{s,f,r,e} = {0x7f1f0a951400,+52256,(nil),+52256},
},
refcnt = 2
retries = 5
failed = 0
state = 1
is_do_stream
is_do_pass
is_uncacheable
bodystatus = 3 (length),
},
http[bereq] = {
ws = 0x7f1f0a94e0e0["o]
"GET",
"/provider-search-
directory/search?what=pain+management+&where=New+York%2C+NY&DeviceLocationLatitude=40.6638&DeviceLocationLongitude=-73.938141&SearchLocationLatitude=40.71455&SearchLocationLongitude=-74.007118&Specialty=&SpecialtyId=&SearchCity=&SearchState=&SearchZip=&SearchFormattedAddress=New+York%2C+NY&DidAskForLocation=&DeviceLocationName=&WasSearchByAddress=true&lat=&lon=&SearchType=",
"HTTP/1.1",
"host: www.healthgrades.com",
"Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"Accept-Encoding: gzip,deflate,sdch",
"Accept-Language: en-US,en;q=0.8",
"Cookie:
__gads=ID=6363003f23801784:T=1430758616:S=ALNI_MZcbf6Mv8nOPKmRJDgdzsPZgrEBHg;
__utmt=1; __utmt_b=1; hg.omniture=Desktop|Se010fafa338d92d0;
msession=Sac9fe9d13044a20;
mbox=PC#1430758615257-738325.17_65#1431981465|session#1430771543694-639832#1430773725|check#true#1430771925;
s_vi=[CS]v1|2AA3D26C05011824-400001092003671B[CE];
__utma=236544792.2001808011.1430758616.1430764531.1430771545.3;
__utmb=236544792.4.10.1430771545; __utmc=236544792;
__utmz=236544792.1430758616.1.1.utmcsr=bing|utmccn=(organic)|utmcmd=organic|utmctr=dr.%20S%20Kundi;
save.complete.show.pwid=;
QSI_HistorySession=http%3A%2F%2Fwww.healthgrades.com%2Fphysician%2Fdr-
samiullah-kundi-y8w6d%2Frate-
doctor~1430771549550%7Chttp%3A%2F%2Fwww.healthgrades.com%2Ffind-a-doctor~1430771868179;
where=%7B%22pt%22%3A%2240.71455%2C-74.007118%22%2C%22displayText%22%3A%22New%20York%2C%20NY%22%2C%22selectedText%22%3A%22New%20York%2C%20NY%22%7D;
searchMode=providers; what=pain%20management%20;
s_pers=%20s_firstvisit%3D1430758645862%7C1588438645862%3B%20s_firstvisit_s%3DFirst%2520Visit%7C1430760805392%3B%20s_nr%3D1430771884563-Repeat%7C1433363884563%3B%20s_lastvisit%3D1430771884578%7C1525379884578%3B%20s_lastvisit_s%3DLess%2520than%25201%2520day%7C1430773684578%3B;
s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dhgprod%253D%252526pid%25253Dsearch%2525253A%25252520doctor%252526pidt%25253D1%252526oid%25253Dhttp%2525253A%2525252F%2525252Fwww.healthgrades.com%2525252Ffind-a-doctor%25252523_8%252526oidt%25253D1%252526ot%25253DA%252526oi%25253D1%3B",
"Referer: http://www.healthgrades.com/find-a-doctor",
"User-Agent: Mozilla/5.0 (Linux; Android 5.0; SAMSUNG-SM-G870A
Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.1
Chrome/34.0.1847.76 Mobile Safari/537.36",
"Via: HTTP/1.1 chcnz01msp4ts07.wnsnet.attws.com",
"x-wap-profile: "http://wap.samsungmobile.com/uaprof/SM-
G870A.xml"",
"X-Forwarded-Port: 80",
"X-Forwarded-Proto: http",
"X-Forwarded-For: 107.77.83.120, 10.250.0.75",
"X-Backend-Type: m",
"X-Varnish: 12877833",
"X-Varnish: 10944621",
"X-Varnish: 10944622",
"X-Varnish: 10944623",
"X-Varnish: 10944624",
},
http[beresp] = {
ws = 0x7f1f0a94e0e0["o]
"HTTP/1.1",
"Internal Server Error",
"Server: Varnish",
},
ws = 0x7f1f0a94e270 {
id = "obj",
{s,f,r,e} = {0x7f1f07faa2c8,0x7f1f07faa2c8,(nil),+56},
},
objcore (FETCH) = 0x7f1f07ec1020 {
refcnt = 2
flags = 0x106
objhead = 0x7f1f2cc50500
}
obj (FETCH) = 0x7f1f07faa180 {
vxid = 2158428272,
http[obj] = {
ws = 0x7f1f0a94e270[obj]
"HTTP/1.1",
},
len = 0,
store = {
},
},
}
}}}

--

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1731#comment:3>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1731: 4.0.3 Panic [ In reply to ]
#1731: 4.0.3 Panic
-----------------------+----------------------------------
Reporter: billnbell | Owner:
Type: defect | Status: new
Priority: highest | Milestone: Varnish 4.0 release
Component: varnishd | Version: 4.0.3
Severity: normal | Resolution:
Keywords: |
-----------------------+----------------------------------

Comment (by fgsch):

Workspace overflow.

{{{
ws = 0x7f1f0a94e0e0 { OVERFLOW
id = ""o", {s,f,r,e} = {0x7f1f0a951400,+52256,(nil),+52256},
},
}}}

What's in your vcl_backend_fetch{} and vcl_backend_response{} ?

Try increasing `workspace_backend`.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1731#comment:4>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1731: 4.0.3 Panic [ In reply to ]
#1731: 4.0.3 Panic
-----------------------+----------------------------------
Reporter: billnbell | Owner:
Type: defect | Status: new
Priority: highest | Milestone: Varnish 4.0 release
Component: varnishd | Version: 4.0.3
Severity: normal | Resolution:
Keywords: |
-----------------------+----------------------------------

Comment (by billnbell):

What does s,f,r,e mean? Does it mean that I went over by 52256 bytes? It
seemed like we were only doing 5 retries. Why would it need more than the
default fix for these parameters?

Should I try both workspace_backend and workspace_client? What are the
issue with increasing this? Is 252144 a good size?

Here are the 2 functions you requested.

If I comment out the following section, the problem goes away. The max
retries is the default, so it should stop right? Or is it infinite
looping?

if ( beresp.status >= 500 && beresp.status < 600) {
return(retry);
}

Here ya go:

sub vcl_backend_fetch {
if(bereq.http.X-Backend-Type == "m") {
set bereq.backend = m.backend();
} else if(bereq.http.X-Backend-Type == "hg_tips") {
set bereq.backend = hg_tips.backend();
} else if(bereq.http.X-Backend-Type == "hg") {
set bereq.backend = hg.backend();
} else if(bereq.http.X-Backend-Type == "articles") {
set bereq.backend = articles.backend();
}


if(bereq.url ~ "(?i)^/(?!provider-search)[^/]+-directory(/[^/]+)?/?$")
{
unset bereq.http.set-cookie;
unset bereq.http.Cookie;
}
return (fetch);
}

sub vcl_backend_response {
if ( beresp.status >= 500 && beresp.status < 600) {
return(retry);
}
if ( beresp.backend.name ~ "(web|mobile|hg3)") {
if(bereq.url ~ "(?i)^/error$" && beresp.backend.name ~ "mobile" )
{
set beresp.status = 500;
}
if(bereq.http.Accept-Encoding ~ "gzip" && beresp.http.Content-
Encoding ~ "^\s*$") {
if ((beresp.http.content-type ~ "\/xml") ||
(beresp.http.content-type ~ "\/json") ||
(beresp.http.content-type ~ "^text\/") ||
(beresp.http.content-type ~
"^application\/x-javascript") ||
(beresp.http.content-type ~ "^image\/svg\+xml") ||
(beresp.http.content-type ~ "^application\/x-font-
ttf") ||
(beresp.http.content-type ~ "^application\/x-font-
woff") ||
(beresp.http.content-type ~ "^application\/font-
woff") ||
(beresp.http.content-type ~ "^application\/font-
ttf") ||
(beresp.http.content-type ~ "^application\/font-
otf") ||
(beresp.http.content-type ~ "^application\/vnd
\.ms-fontobject") ||
(beresp.http.content-type ~ "^application\/x-font-
opentype") ||
(beresp.http.content-type ~
"^application\/javascript") ||
(beresp.http.content-type ~ "\/html")) {
set beresp.do_gzip = true;
}
}
if(bereq.url ~ ".(png|ico|js)$") {
unset beresp.http.Set-Cookie;
unset beresp.http.expires;
set beresp.http.X-Cache-Control = "1";
unset beresp.http.cache-control;
unset beresp.http.pragma;
unset beresp.http.last-modified;
set beresp.ttl = 30m;
}

if (beresp.http.Vary !~ "User-Agent") {
if (beresp.http.Content-Type ~ "text/html") {
if (beresp.http.Vary !~ "^\s*$") {
set beresp.http.Vary = beresp.http.Vary + ", User-
Agent";
} else {
set beresp.http.Vary = "User-Agent";
}
}
} else {
if (beresp.http.Content-Type !~ "text/html") {
set beresp.http.Vary = regsub(beresp.http.Vary, ",? *User-
Agent *", "");
set beresp.http.Vary = regsub(beresp.http.Vary, "^, *", "");
if (beresp.http.Vary == "") {
unset beresp.http.Vary;
}
}
}
if (beresp.http.Vary !~ "Accept-Encoding" && beresp.http.Content-
Encoding ~ "gzip|deflate") {
if (beresp.http.Vary !~ "^\s*$") {
set beresp.http.Vary = beresp.http.Vary + ", Accept-
Encoding";
} else {
set beresp.http.Vary = "Accept-Encoding";
}
}
set beresp.http.X-Vary = beresp.http.Vary;
unset beresp.http.Vary;
set beresp.http.X-Backend-Name = beresp.backend.name;
if(bereq.url ~ "(?i)^/(?!provider-
search)[^/]+-directory(/[^/]+)?/?$") {
unset beresp.http.Set-Cookie;
unset beresp.http.expires;
unset beresp.http.cache-control;
unset beresp.http.pragma;
unset beresp.http.last-modified;
set beresp.ttl = 15m;
# return(deliver);
}
} else {
unset beresp.http.Set-Cookie;
unset beresp.http.expires;
set beresp.http.X-Cache-Control = "1";
unset beresp.http.cache-control;
unset beresp.http.pragma;
unset beresp.http.last-modified;
set beresp.http.X-Vary = beresp.http.Vary;
unset beresp.http.Vary;
if ((beresp.http.content-type ~ "\/xml") ||
(beresp.http.content-type ~ "\/json") ||
(beresp.http.content-type ~ "^text\/") ||
(beresp.http.content-type ~ "^application\/x-javascript") ||
(beresp.http.content-type ~ "^image\/svg\+xml") ||
(beresp.http.content-type ~ "^application\/x-font-ttf") ||
(beresp.http.content-type ~ "^application\/x-font-woff") ||
(beresp.http.content-type ~ "^application\/font-woff") ||
(beresp.http.content-type ~ "^application\/font-ttf") ||
(beresp.http.content-type ~ "^application\/font-otf") ||
(beresp.http.content-type ~ "^application\/vnd\.ms-fontobject")
||
(beresp.http.content-type ~ "^application\/x-font-opentype") ||
(beresp.http.content-type ~ "^application\/javascript") ||
(beresp.http.content-type ~ "\/html")) {
set beresp.do_gzip = true;
}

set beresp.grace = 1h;

if (bereq.url == "/home/PageNotFound") {
set beresp.ttl = 0s;
} else {
set beresp.ttl = 15m;
}

set beresp.http.X-Backend = beresp.backend.ip;
}
# set one hour cache for TIPS
if(beresp.backend.name ~ "hg_tips") {
set beresp.ttl = 60m;
}
if (beresp.status == 404) {
set beresp.http.X-Cache-Control = "2";
set beresp.ttl = 30s;
}
}

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1731#comment:5>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1731: 4.0.3 Panic [ In reply to ]
#1731: 4.0.3 Panic
-----------------------+----------------------------------
Reporter: billnbell | Owner:
Type: defect | Status: closed
Priority: highest | Milestone: Varnish 4.0 release
Component: varnishd | Version: 4.0.3
Severity: normal | Resolution: worksforme
Keywords: |
-----------------------+----------------------------------
Changes (by martin):

* status: new => closed
* resolution: => worksforme


Comment:

This is workspace exhaustion. Original advise stands. Reclosing.

Martin

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1731#comment:6>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

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