Getting started...

Tim Kientzle tim at metaweb.com
Wed Nov 12 20:11:54 CET 2008


I'm trying to just run a plain-vanilla varnish so I can see it running  
before I start mucking with configuration.

But I'm not having much luck:

$ uname -a
Darwin tbkk.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep  3  
11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
$ sbin/varnishd -a 127.0.0.1:3128 -b 127.0.0.1:80 -d
storage_file: filename: ./varnish.2wA0fp (unlinked) size 669 MB.
Using old SHMFILE
Debugging mode, enter "start" to start child
$ echo $?
2
$

So, varnishd simply exits with no explanation at all.

After the above, bin/varnishlog just hangs with no output.

I finally resorted to running varnishd under GDB, which shows that  
vev_schedule_one() is getting NULL from binheap_root(), which leads it  
to return zero, which causes vev_schedule() to return, which causes  
mgt_schedule() to log "manager dies" and exit(2).

What have I missed?

Are there any good examples just showing how to run varnish?

Tim




More information about the varnish-misc mailing list