[Varnish] #848: varnishlog -r seems broken

Varnish varnish-bugs at varnish-cache.org
Wed Jun 29 12:41:40 CEST 2011


#848: varnishlog -r seems broken
------------------------+---------------------------------------------------
 Reporter:  perbu       |       Owner:  kristian  
     Type:  defect      |      Status:  new       
 Priority:  normal      |   Milestone:            
Component:  varnishlog  |     Version:  trunk     
 Severity:  normal      |    Keywords:  varnishlog
------------------------+---------------------------------------------------
Changes (by kristian):

  * milestone:  Varnish 3.0 dev =>


Comment:

 I was finally able to re-create this, after Mortsa pinged me about it.

 It seems -r is rather broken, and still tries to read the actual shmlog
 (?) or some combination, instead of the real file...

 This is a mental note for self, more or less, but here's some examples:
 (the foo.vlog gets some data printed to it that matches the size):

 {{{
 kristian at freud:~$ varnishlog -w foo.vlog -n /home/kristian/tmp/asf/ -O
 Assert error in vsl_nextlog(), vsl.c line 187:
   Condition((usleep((50*1000))) == 0) not true.
   errno = 4 (Interrupted system call)
 Aborted
 kristian at freud:~$ varnishlog  -r foo.vlog -n /home/kristian/tmp/asf/ -d
 kristian at freud:~$ varnishlog  -r foo.vlog
 Cannot open /usr/local/var/varnish/freud/_.vsm: No such file or directory
 kristian at freud:~$ varnishlog  -r foo.vlog  -d
 Cannot open /usr/local/var/varnish/freud/_.vsm: No such file or directory
 kristian at freud:~$ varnishlog -r foo.vlog
 Cannot open /usr/local/var/varnish/freud/_.vsm: No such file or directory
 kristian at freud:~$ varnishlog -O -r foo.vlog
 Cannot open /usr/local/var/varnish/freud/_.vsm: No such file or directory
 kristian at freud:~$ ls -lh foo.vlog
 -rw-r--r-- 1 kristian kristian 26K 2011-06-29 12:36 foo.vlog
 kristian at freud:~$ strings foo.vlog | head -n2
 Rd ping
 Wr 200 19 PONG 1309343755 1.0
 kristian at freud:~$ strings foo.vlog | head -n5
 Rd ping
 Wr 200 19 PONG 1309343755 1.0
 Rd ping
 Wr 200 19 PONG 1309343758 1.0
 127.0.0.1 56886 :8000
 kristian at freud:~$
 }}}

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




More information about the varnish-bugs mailing list