Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Varnish Cache log not working

Tags:

varnish

varnishlog is returning:

_.vsm: No such file or directory

Has anyone else seen this before?

like image 474
Charlie Davies Avatar asked Aug 28 '12 19:08

Charlie Davies


People also ask

How to check varnish error logs?

In order for you to understand whats going on there are a couple of places you can check. varnishlog, /var/log/syslog, /var/log/messages are all places where varnish might leave clues of whats going on.

How do I restart varnish Cache?

Use "systemctl start/restart/stop varnish".

Where is the varnish params?

params. Debian: /etc/default/varnish. Ubuntu: /etc/default/varnish.


1 Answers

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.

like image 170
Doomsday Avatar answered Oct 02 '22 12:10

Doomsday