The Problem
When you install varnish natively on your macOS you might run into issues when using tools like varnishlog, varnishtop, ...
You will get an error-message like:
$ varnishlog
.....
VSM: Could not get hold of varnishd, is it running?
The Solution
To solve the issue, simply add the working directory to the commands:
varnishlog -n /usr/local/var/varnish
This should fix the problem.
Top comments (3)
No this command is not working , when i execute this command in terminal -
varnishlog -n /usr/local/var/varnish
Again the same issue message coming - VSM: Could not get hold of varnishd, is it running?
or try using sudo varnishlog . It will work but not recommended)
I have this issue with
varnish:stablebut not withvarnish:7.6