varnishlog broken after reinstall

Steven Stone smstone at gmail.com
Thu Mar 21 16:34:28 CET 2013


Hi,

You should be able to symlink /var/lib/varnish/test-jcornuwe/_.vsm
to /usr/local/var/varnish/test-jcornuwe/_.vsm and Varnishlog will read it.
I had the same problem recently but did not find how to point Varnishlog to
the correct file without the temporary symlink fix.

Steven


On Thu, Mar 21, 2013 at 10:21 AM, Julien Cornuwel <cornuwel at gmail.com>wrote:

> Hi,
>
> I had varnish installed from debian packages. I removed it and compiled it
> from source. Then I changed my mind again and reinstalled from package. I
> know, I shouldn't have.
>
> Varnish works fine, but varnishlog doesn't.
>
> Lauched on its own, it looks for a file that was created by the source
> install :
> # /usr/bin/varnishlog
> Cannot open /usr/local/var/varnish/test-jcornuwe/_.vsm: No such file or
> directory
>
> If I try to force the correct file path :
> # varnishlog -r /var/lib/varnish/test-jcornuwe/_.vsm
>     0 Debug        - ""
>     0 Debug        - ""
>     0 Debug        - ""
>     0 Debug        - ""
>     0 Debug        - ""
>     0 Debug        - ""
> ...
>
> Said file is 84MB in size.
>
> I can't find a config file that would have been overwritten and have no
> idea how to get varnishlog to work again.
> If there is a simple way to make varnish write its logs to a file, I'll
> take it.
>
> Any pointer?
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130321/e835d7ea/attachment.html>


More information about the varnish-misc mailing list