Varnish Cache log not working

Charlie Davies picture Charlie Davies · Aug 28, 2012 · Viewed 16.9k times · Source

varnishlog is returning:

_.vsm: No such file or directory

Has anyone else seen this before?

Answer

Doomsday picture Doomsday · Aug 29, 2012

It looks like varnishlog is not pointing to the correct directory, or has not access to it.

Please check the command line options of varnishd. If the deamon run with -n <instancename> argument, you have to add it to varnishlog as well.

The second thing, is to see the permissions of varnish directory. In order to see the current directory used, you must log into root and run the command below :

$ lsof -p <PID of varnishd> | grep vsm

Once revealed, you just had to be sure the full path has read permission for your user.